diff --git a/checkin_notes b/checkin_notes index 144ab2c1d5..a5e08d5a69 100644 --- a/checkin_notes +++ b/checkin_notes @@ -2800,3 +2800,9 @@ David 5 May 2011 validator.cpp html/user/ friend.php + +David 5 May 2011 + - web RPC: add RPC for getting teams by country + + html/user/ + team_search.php diff --git a/html/user/team_search.php b/html/user/team_search.php index ca712e3e64..683fba4e77 100644 --- a/html/user/team_search.php +++ b/html/user/team_search.php @@ -20,8 +20,9 @@ include_once("../inc/boinc_db.inc"); include_once("../inc/util.inc"); include_once("../inc/team.inc"); include_once("../inc/team_types.inc"); +include_once("../inc/xml.inc"); -check_get_args(array("keywords", "active", "country", "type", "submit")); +check_get_args(array("keywords", "active", "country", "type", "submit", "xml")); // Merge list1 into list2. // list entries are of the form id => team, @@ -87,6 +88,38 @@ function show_list($list) { echo ""; } +function show_teams_html($list) { + page_head(tra("Team search results")); + if (sizeof($list) == 0) { + echo tra("No teams were found matching your criteria. Try another search.") + ."
" + .tra("Or you can %1create a new team%2.", "", "") + ."
\n"; + team_search_form($params); + } else { + echo tra("The following teams match one or more of your search criteria. + To join a team, click its name to go to the team page, + then click %1Join this team%2.", "", "") + ."+ "; + sort_list($list); + show_list($list); + echo "
" - .tra("Or you can %1create a new team%2.", "", "") - ."
\n"; - team_search_form($params); - } else { - echo tra("The following teams match one or more of your search criteria. - To join a team, click its name to go to the team page, - then click %1Join this team%2.", "", "") - ."- "; - sort_list($list); - show_list($list); - echo "
".tra("%1I'm not interested%2 in joining a team right now.", "", ""); } + page_tail(); } -page_tail(); ?>