mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=2311
This commit is contained in:
parent
664287ec97
commit
59ef686848
|
@ -6228,4 +6228,7 @@ Karl 2003/09/07
|
|||
- changed all user-visible cobblestone numbers to use a new
|
||||
format_credit() function which does sprintf %.3f
|
||||
|
||||
- allow sorting top_{team,user,host}s.php by either expavg_credit or
|
||||
total_credit (default expavg_credit)
|
||||
|
||||
html_user/*.php, *.inc
|
||||
|
|
|
@ -115,8 +115,8 @@ function host_table_start($title, $private) {
|
|||
echo "<th>Owner</th>\n";
|
||||
}
|
||||
echo "
|
||||
<th>Recent average credit</th>
|
||||
<th>Total credit</th>
|
||||
<th><a href=top_hosts.php?sort_by=expavg_credit>Recent average credit</a></th>
|
||||
<th><a href=top_hosts.php?sort_by=total_credit>Total credit</a></th>
|
||||
<th>CPU type</th>
|
||||
<th>Operating system</th>
|
||||
<th>Results<br><font size=-2>Click for list</font></th>
|
||||
|
|
|
@ -123,8 +123,8 @@ function team_table_start() {
|
|||
echo "<tr>
|
||||
<th>Name</th>
|
||||
<th>Members</th>
|
||||
<th><a href=$_SERVER['PHP_SELF']?sort_by=expavg_credit>Average credit</a></th>
|
||||
<th><a href=$_SERVER['PHP_SELF']?sort_by=total_credit>Total credit</a></th>
|
||||
<th><a href=top_teams.php?sort_by=expavg_credit>Average credit</a></th>
|
||||
<th><a href=top_teams.php?sort_by=total_credit>Total credit</a></th>
|
||||
<th>Country</th>
|
||||
</tr>
|
||||
";
|
||||
|
|
|
@ -6,7 +6,13 @@
|
|||
$max_hosts_display = 100;
|
||||
db_init();
|
||||
page_head("Top computers");
|
||||
$result = mysql_query("select * from host order by expavg_credit desc limit $max_hosts_display");
|
||||
$sort_by = $_GET["sort_by"];
|
||||
if ($sort_by == "total_credit") {
|
||||
$sort_by = "total_credit desc, total_credit desc";
|
||||
} else {
|
||||
$sort_by = "expavg_credit desc, total_credit desc";
|
||||
}
|
||||
$result = mysql_query("select * from host order by $sort_by limit $max_hosts_display");
|
||||
host_table_start("Top computers", false);
|
||||
$i = 1;
|
||||
while (($host = mysql_fetch_object($result)) && $max_hosts_display > 0) {
|
||||
|
|
|
@ -7,7 +7,13 @@
|
|||
db_init();
|
||||
$numusers = 100;
|
||||
page_head("Top $numusers users");
|
||||
$result = mysql_query("select * from user order by expavg_credit desc,total_credit desc limit $numusers");
|
||||
$sort_by = $_GET["sort_by"];
|
||||
if ($sort_by == "total_credit") {
|
||||
$sort_by = "total_credit desc, total_credit desc";
|
||||
} else {
|
||||
$sort_by = "expavg_credit desc, total_credit desc";
|
||||
}
|
||||
$result = mysql_query("select * from user order by $sort_by limit $numusers");
|
||||
user_table_start();
|
||||
while ($user = mysql_fetch_object($result)) {
|
||||
show_user_row($user);
|
||||
|
|
|
@ -102,8 +102,8 @@ function user_table_start() {
|
|||
echo "
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Recent average credit</th>
|
||||
<th>Total credit</th>
|
||||
<th><a href=top_users.php?sort_by=expavg_credit>Recent average credit</a></th>
|
||||
<th><a href=top_users.php?sort_by=total_credit>Total credit</a></th>
|
||||
<th>Country</th>
|
||||
<th>Participant since</th>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue