"; echo "

BOINC Teams

"; echo ""; 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 "Search for a team: "; echo ""; echo ""; echo "
"; echo ""; page_tail(); } function display_team_page($team) { page_head("$team->name"); if ($team->name_html != null) { 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 "
  • Anyone may join a team at any time.
  • "; echo "
  • Likewise, anyone may quit a team at any time.
  • "; echo "
  • Only the team founder may edit a team's fields (i.e. name, html code, "; echo "description, etc.).
  • "; echo "
  • In addition, team founder's have the right of removing inactive members "; echo "from a team.
  • "; echo "
  • Only the team founder may disband a team, however, in order to successfully disband a "; echo "team all members of the team must no longer be members of the team, including the team founder. "; echo "Then the team founder may go to the team page and disband the team. "; echo "A team may not be disbanded if it still has members.
  • "; echo "
  • Finally, the team founder has access to all team members' email addresses.
  • "; echo "
"; echo "
"; echo "
"; echo "

"; echo ""; echo "
"; echo "Team Info:
"; echo ""; if (strlen($team->description)) { row("Description: ", $team->description); } if (strlen($team->url)) {; row("Web site: ", "url>http://$team->url"); } row("Members: ", $team->nusers); $query = sprintf( "select * from user where teamid = %d", $team->id ); $result = mysql_query($query); $total_credit = 0; for ($i = 0; $i < $team->nusers; $i++) { $user = mysql_fetch_object($result); $total_credit = $total_credit + $user->total_credit; } row("Total Credit: ", $total_credit); $query = sprintf( "select * from user where id = %d", $team->userid ); $result = mysql_query($query); $user = mysql_fetch_object($result); row("Founder: ", $user->name); echo "
"; echo "

"; echo ""; echo "
"; echo "Team Members:
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $query = sprintf( "select * from user where teamid = %d", $team->id ); $result = mysql_query($query); for ($i = 0; $i < $team->nusers; $i++) { $user = mysql_fetch_object($result); $j = $i+1; echo ""; echo ""; echo ""; echo ""; } echo "
NameTotal creditRecent average CPU
time per work unit
Country
$j) $user->name"; echo "$user->total_credit$user->expavg_time$user->country
"; page_tail(); } function print_team_create_form() { page_head("Create Team"); echo "

Create a BOINC Team

"; echo ""; 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 "

"; echo "

"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
Team name (plain-text version):

 
"; echo "
This name will be printed as-is and is the name "; echo "you should use
when searching for your Team."; echo "
Team name (HTML version):

 
"; 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 teams' page."; echo "
If you don't know HTML, just leave this box blank."; echo "
URL of team web page, if any:
(without "http://")
"; echo "
This URL will be linked to from the team's page.
Description of team:
Type of team:"; echo "Club"; echo "
"; echo "Small Company (< 50 employees)"; echo "
"; echo "Medium Company (50-1000 employees)"; echo "
"; echo "Large Company (> 1000 employees)"; echo "
"; echo "Primary School"; echo "
"; echo "Secondary School"; echo "
"; echo "Junior College"; echo "
"; echo "University or Department"; echo "
"; echo "Government Agency"; echo "
"; 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 "

Join $team_name

"; echo ""; echo "
"; echo "

Please note before joining or switching to a new team:"; echo "

    "; echo "
  • If this is the first team you have ever joined "; echo "then all of your current credit will be given to this "; echo "team, in addition to all new credit you receive."; echo "
  • If you are currently a member of a team "; echo "and are switching to another team, the new team will receive "; echo "all of your credits, the old teams total will be decreased by "; echo "your credit amount."; echo "
  • Joining a team does not affect your personal credit "; echo "statistics in any way."; echo "
  • Joining a team gives your team's founder access to your email address."; echo "
"; echo "

"; echo "
"; echo "
"; echo ""; echo ""; echo "
"; echo "
"; page_tail(); } function print_team_quit_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("Quit $team_name"); echo "

Quit $team_name

"; echo ""; echo "
"; echo "

Please note before quitting a team:"; echo "

    "; echo "
  • By quitting a team you remove your name from the team listing. "; echo "Your credit contribution to the team is also removed"; echo "
  • Even if you quit a team, you may rejoin later, "; echo "or join any other team you desire "; echo "
  • Quitting a team does not affect your personal credit "; echo "statistics in any way."; echo "
"; echo "

"; echo "
"; echo "
"; echo ""; echo ""; echo "
"; echo "
"; page_tail(); } function print_team_edit_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; $team_name_html = $team->name_html; $team_url = $team->url; $team_description = $team->description; $team_type = $team->type; page_head("Edit $team_name"); echo "

Edit $team_name

"; echo ""; echo "
"; echo "

Please note before editing a team:"; echo "

    "; echo "
  • Only the founder may edit a team"; echo "
"; echo "

"; echo "
"; echo "
"; echo ""; echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "", ($team->type==9)?" checked":""); echo "
Team name (plain-text version):

 
"; 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 "
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 "
This page will be linked to from the project's team page."; echo "
Description of team:"; 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
"; echo ""; echo ""; page_tail(); } function print_team_remove_inactive_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; $nusers = $team->nusers; page_head("Remove Members from $team_name"); echo "

Remove members from $team_name

"; echo ""; echo "
"; echo "

Please note:"; echo "

    "; echo "
  • Only the founder may remove members from a team"; echo "
  • By removing a member, you will also remove their credit and CPU time "; echo "contributions to the team."; echo "
"; echo "

"; echo "
"; echo "
"; echo ""; echo "
"; echo ""; echo ""; echo ""; $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 ""; echo ""; $ninactive_users++; } echo ""; if ($result) { mysql_free_result($result); } echo "
Remove?NameTotal
Credit
id>"; echo "$user->name$user->total_credit
"; echo ""; echo ""; page_tail(); } function print_team_disband_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("Disband $team_name"); echo "

Disband $team_name

"; echo ""; echo "
"; echo "

Please note:"; echo "

    "; echo "
  • Only the found may disband a team."; echo "
  • Only teams with no members may be disbanded. The founder of a team "; echo "may email the members of a team to inform them of the disbanding of the team."; echo "
  • After a team is disbanded, all members will no longer belong to a team, "; echo "though they may join another team if desired."; echo "
  • Disbanding a team is permanent, make sure you know what you're doing!"; echo "
"; echo "

"; echo "Press "Disband Team" when you're ready."; echo "
"; echo "
"; echo ""; echo ""; echo "
"; echo "
"; page_tail(); } ?>