2002-08-07 18:56:55 +00:00
|
|
|
<?php
|
|
|
|
|
2004-02-02 23:34:39 +00:00
|
|
|
require_once("../inc/db.inc");
|
|
|
|
require_once("../inc/util.inc");
|
|
|
|
require_once("../inc/team.inc");
|
2002-08-07 18:56:55 +00:00
|
|
|
|
2004-06-07 03:34:07 +00:00
|
|
|
$sort_by = $_GET["sort_by"];
|
|
|
|
if (!$sort_by) $sort_by = "expavg_credit";
|
|
|
|
$offset = $_GET["offset"];
|
|
|
|
if (!$offset) $offset=0;
|
|
|
|
|
2002-08-07 18:56:55 +00:00
|
|
|
db_init();
|
2003-03-21 04:38:55 +00:00
|
|
|
$user = get_logged_in_user(false);
|
2002-08-07 18:56:55 +00:00
|
|
|
|
2003-03-21 04:38:55 +00:00
|
|
|
$teamid = $_GET["teamid"];
|
|
|
|
$result = mysql_query("select * from team where id=$teamid");
|
2002-08-07 18:56:55 +00:00
|
|
|
if ($result) {
|
|
|
|
$team = mysql_fetch_object($result);
|
|
|
|
}
|
|
|
|
if (!$team) {
|
2003-03-21 04:38:55 +00:00
|
|
|
echo ("Can't find team in database");
|
|
|
|
exit();
|
2002-08-07 18:56:55 +00:00
|
|
|
}
|
|
|
|
|
2004-06-07 03:34:07 +00:00
|
|
|
display_team_page($team, $offset, $sort_by);
|
2003-03-21 04:38:55 +00:00
|
|
|
|
2002-08-07 18:56:55 +00:00
|
|
|
?>
|