name"); if ($team->name_html != null) { echo "
"; echo "$team->name_html"; } echo "
[id>Join]
[id>Quit]
[id>Edit*]
[id>Remove Inactive Members*]
[id>Disband Team*]
[id>View Team Emails*]
* Team founder only
"; start_table(); row1("Team info"); if (strlen($team->description)) { row2("Description", sanitize_html($team->description)); } if (strlen($team->url)) {; row2("Web site", "url>http://$team->url"); } row2("Members", $team->nusers); $result = mysql_query("select * from user where teamid=$team->id"); $total_credit = 0; for ($i = 0; $i < $team->nusers; $i++) { $user = mysql_fetch_object($result); $total_credit = $total_credit + $user->total_credit; } row2("Total credit", $total_credit); $result = mysql_query("select * from user where id=$team->userid"); $user = mysql_fetch_object($result); row2("Founder", "id>$user->name"); row2("Country", $team->country); echo ""; echo "
"; start_table(); row1("Team members", 4); echo "