"; echo "
"; echo "BOINC users may form "teams" - "; echo "for example, students in a school, employees of a company, etc. "; echo "
"; echo "Teams may compete against other teams to analyze the most data, "; echo "or they may meet and discuss BOINC projects via the web. "; echo "Team members may view their individual records and compare "; echo "personals statistics with other team members' statistics, in addition "; echo "to viewing their team's total statistics on the team's statistics page."; echo "
";
echo "
";
echo "To create a team click on the below link. ";
echo "Team founder's have more privileges than normal team members.";
echo "
"; echo "Create a new team"; echo "
";
echo "
";
echo "
";
echo "To search for a team type in the team name below and hit the Search button. ";
echo "You may join teams through these team pages.";
echo "
"; echo "It may be more effective to type in only a portion of the team name "; echo "and choose from the search results in order to assure "; echo "that you do not overlook a variation of the team. "; echo "(i.e. If you work for a team affiliated with Apple Computer, Inc. it will be more effective "; echo "to search for \"Apple\" and to choose fromt eh search results than to search for the entire name of the company.)"; echo "
"; echo "
"; echo ""; echo "$team->name_html"; } echo "
";
echo "[id>Join] ";
echo "[id>Quit] ";
echo "[id>Edit*] ";
echo "[id>Remove Inactive Members*] ";
echo "[id>Disband Team*] ";
echo "[id>View Team Emails*]";
echo "
* Team founder only";
echo "
";
echo "
|
"; echo "
"; echo "Team Info: |
"; echo "
"; echo "Team Members: |
Name | "; echo "Total credit | "; echo "Recent average CPU time per work unit | ";
echo "Country | "; echo "
---|---|---|---|
$j) $user->name"; echo " | $user->total_credit | "; echo "$user->expavg_time | "; echo "$user->country | "; echo "
";
echo " "; echo "Use this form to create a team. "; echo " "; echo "You'll become the first member of the team. "; echo "Then tell your friends/co-workers/etc. about the team. "; echo "They may join it using the BOINC "Teams" page. "; echo " |
"; echo "
"; page_tail(); } function print_team_join_form($id) { $query = sprintf( "select * from team where id = %d", $id ); $result = mysql_query($query); if ($result) { $team = mysql_fetch_object($result); mysql_free_result($result); } $team_name = $team->name; $team_id = $team->id; page_head("Join $team_name"); echo "";
echo " Please note before joining or switching to a new team:"; echo "
"; echo ""; echo " |
";
echo " Please note before quitting a team:"; echo "
"; echo ""; echo " |
";
echo " Please note before editing a team:"; echo "
"; echo " |
Team name (plain-text version): | ";
echo "";
echo " This name will be print as-is"; echo " and is the name you should use when searching for your team."; echo " | Team name (HTML version): | ";
echo "";
echo " This name will be printed as HTML source, so you may include any HTML"; echo " code that you want. This will only be displayed in your team's page."; echo " If you don't know HTML, just leave this box blank."; echo " |
URL of team web page, if any: (without "http://") | ";
echo "";
echo " This page will be linked to from the project's team page."; echo " |
Description of team: | "; echo ""; echo " |
Type of team: | ";
printf("Club ", ($team->type==4)?" checked":""); printf("Small Company (< 50 employees) ", ($team->type==1)?" checked":""); printf("Medium Company (50-1000 employees) ", ($team->type==2)?" checked":""); printf("Large Company (> 1000 employees) ", ($team->type==3)?" checked":""); printf("Primary School ", ($team->type==5)?" checked":""); printf("Secondary School ", ($team->type==6)?" checked":""); printf("Junior College ", ($team->type==8)?" checked":""); printf("University or Department ", ($team->type==7)?" checked":""); printf("Government Agency | ", ($team->type==9)?" checked":"");
echo "
";
echo " Please note:"; echo "
"; echo " |
Remove? | "; echo "Name | "; echo "Total Credit | ";
$query = sprintf(
"select * from user where teamid = %d",
$team_id
);
$result = mysql_query($query);
$ninactive_users = 0;
for ($i = 0; $i < $nusers; $i++) {
$user = mysql_fetch_object($result);
echo "
---|---|---|
id>"; echo " | $user->name | "; echo "$user->total_credit | "; $ninactive_users++; } echo ""; if ($result) { mysql_free_result($result); } echo "
";
echo " Please note:"; echo "
"; echo ""; echo " |