diff --git a/html/user/download.php b/html/user/download.php index ff524b8df1..d98cfade7e 100644 --- a/html/user/download.php +++ b/html/user/download.php @@ -16,9 +16,9 @@ function platform_downloads($platform, $core_app) { $filename = parse_element($app_version->xml_doc, ""); if (!$filename) { echo "CAN'T FIND FILENAMEn $app_version->xml_doc\n";} $version = sprintf( - "BOINC core client, version %s.", + "BOINC core client, version %s %.2f", $platform->name, - $app_version->version_num + $app_version->version_num/100 ); echo "$version\n"; //$app_version->md5_cksum"; diff --git a/html/user/team_edit_form.php b/html/user/team_edit_form.php index c901fc7cf5..92c5d28e3b 100644 --- a/html/user/team_edit_form.php +++ b/html/user/team_edit_form.php @@ -6,6 +6,7 @@ require_once("team.inc"); $authenticator = init_session(); db_init(); + $id = $HTTP_GET_VARS["id"]; $query = "select * from team where id = $id"; $result = mysql_query($query); if ($result) { @@ -19,31 +20,31 @@ db_init(); $team_description = $team->description; $team_type = $team->type; page_head("Edit $team_name"); - 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 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:"; + echo " +
+ + +
+ + + + + + + + + + ", ($team->type==9)?" checked":""); - echo "
Team name (plain-text version):

 
+
This name will be print as-is +
and is the name you should use when searching for your team. +
Team name (HTML version):

 
+
This name will be printed as HTML source, so you may include any HTML +
code that you want. This will only be displayed in your team's page. +
If you don't know HTML, just leave this box blank. +
URL of team web page, if any:
(without "http://")
+
This page will be linked to from the project's team page. +
Description of team: +
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":""); @@ -53,8 +54,9 @@ db_init(); printf("Junior College
", ($team->type==8)?" checked":""); printf("University or Department
", ($team->type==7)?" checked":""); printf("Government Agency
"; - echo ""; - echo ""; + echo "
+ + +

"; page_tail(); ?> diff --git a/html/user/top_teams.php b/html/user/top_teams.php index de5aaedb40..65b9834f27 100644 --- a/html/user/top_teams.php +++ b/html/user/top_teams.php @@ -4,13 +4,14 @@ function team_table_start() { echo VISTABLE." - NameAverage creditTotal credit + NameMembersAverage creditTotal credit Founded"; } function show_team_row($team) { echo " id>$team->name + $team->nusers $team->expavg_credit $team->total_credit ".time_str($team->create_time)." @@ -38,13 +39,13 @@ function show_team_row($team) { $total_credit = $total_credit_sum/$nmembers; $expavg_credit = $expavg_credit_sum/$nmembers; - $query = "update team set total_credit=$total_credit, expavg_credit=$expavg_credit where id=$team->id"; + $query = "update team set nusers=$nmembers, total_credit=$total_credit, expavg_credit=$expavg_credit where id=$team->id"; $result2 = mysql_query($query); } mysql_free_result($result); page_head("Top teams"); - $result = mysql_query("select * from team"); + $result = mysql_query("select * from team order by expavg_credit desc, total_credit desc"); team_table_start(); while ($team = mysql_fetch_object($result)) { show_team_row($team); diff --git a/html/user/top_users.php b/html/user/top_users.php index bc4828e10e..33853f3c0d 100644 --- a/html/user/top_users.php +++ b/html/user/top_users.php @@ -5,7 +5,7 @@ $authenticator = init_session(); db_init(); page_head("Top users"); - $result = mysql_query("select * from user order by expavg_credit desc"); + $result = mysql_query("select * from user order by expavg_credit desc,total_credit desc"); user_table_start(); while ($user = mysql_fetch_object($result)) { show_user_row($user);