2002-11-08 22:30:13 +00:00
|
|
|
<?php
|
|
|
|
require_once("util.inc");
|
|
|
|
require_once("user.inc");
|
2003-03-17 22:37:49 +00:00
|
|
|
require_once("team.inc");
|
2002-11-11 19:40:22 +00:00
|
|
|
|
2002-11-08 22:30:13 +00:00
|
|
|
db_init();
|
2002-11-11 19:40:22 +00:00
|
|
|
|
2002-11-08 22:30:13 +00:00
|
|
|
page_head("Top teams");
|
2002-12-13 00:12:44 +00:00
|
|
|
$result = mysql_query("select * from team order by expavg_credit desc, total_credit desc");
|
2003-03-17 22:37:49 +00:00
|
|
|
start_table();
|
|
|
|
row1("Teams", 5);
|
2002-11-08 22:30:13 +00:00
|
|
|
team_table_start();
|
2003-03-17 22:37:49 +00:00
|
|
|
$i = 1;
|
2002-11-08 22:30:13 +00:00
|
|
|
while ($team = mysql_fetch_object($result)) {
|
2003-03-17 22:37:49 +00:00
|
|
|
show_team_row($team, $i);
|
|
|
|
$i++;
|
2002-11-08 22:30:13 +00:00
|
|
|
}
|
2002-11-11 19:40:22 +00:00
|
|
|
mysql_free_result($result);
|
2002-12-06 21:37:30 +00:00
|
|
|
echo "</table>\n<p>\n";
|
2002-11-08 22:30:13 +00:00
|
|
|
page_tail();
|
|
|
|
?>
|