From ceae3b248e8a2d1b84cf6439346ddc54714ee2af Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Sun, 7 Sep 2003 23:23:23 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=2305 --- html/user/team.inc | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/html/user/team.inc b/html/user/team.inc index be1ab68e0b..ebd3ea772e 100644 --- a/html/user/team.inc +++ b/html/user/team.inc @@ -53,7 +53,7 @@ function display_team_page($team, $user) { $total_credit = $total_credit + $user->total_credit; } - row2("Total credit", $total_credit); + row2("Total credit", credit_format($total_credit)); $result = mysql_query("select * from user where id=$team->userid"); $user = mysql_fetch_object($result); row2("Founder", "id>$user->name"); @@ -76,10 +76,12 @@ function display_team_page($team, $user) { while (true) { $user = mysql_fetch_object($result); if (!$user) break; + $user_total_credit = format_credit($user->total_credit); + $user_expavg_credit = format_credit($user->expavg_credit); echo " $j) id>$user->name - $user->total_credit - $user->expavg_credit + $user_total_credit + $user_expavg_credit $user->country "; @@ -124,14 +126,15 @@ function team_table_start() { } function show_team_row($team, $i) { - printf( " - %d) %s - %d - %.4f - %.4f - %s - \n", $i, $team->id, $team->name, $team->nusers, $team->expavg_credit, - $team->total_credit, $team->country ); + $team_expavg_credit = format_credit($team->expavg_credit); + $team_total_credit = format_credit($team->total_credit); + echo" + $i) id>$team->name + $team->nusers + $team_expavg_credit + $team_total_credit + $team->country + \n"; } function user_join_team($team, $user) {