query(" SELECT awardType, code, name, verb FROM hlstats_Awards WHERE hlstats_Awards.awardid=$award "); $awarddata = $db->fetch_array(); $db->free_result(); $awardname = $awarddata['name']; $awardverb = $awarddata['verb']; $awardtype = $awarddata['awardType']; $awardcode = $awarddata['code']; $db->query("SELECT name FROM hlstats_Games WHERE code='$game'"); if ($db->num_rows() < 1) { error("No such game '$game'."); } list($gamename) = $db->fetch_row(); $db->free_result(); pageHeader( array($gamename, 'Award Details', $awardname), array( $gamename=>$g_options['scripturl'] . "?game=$game", 'Awards Statistics' => $g_options['scripturl'] . "?mode=awards&game=$game", 'Awards Details' => '' ), $awardname ); $table = new Table( array( new TableColumn( 'awardTime', 'Day', 'width=20&align=left' ), new TableColumn( 'lastName', 'Player', 'width=40&align=left&flag=1&link=' . urlencode('mode=playerinfo&player=%k') ), new TableColumn( 'count', 'Count for the Day', 'width=35&align=right&append=' . urlencode(" $awardverb") ) ), 'playerId', 'awardTime', 'lastName', true, 30 ); $result = $db->query(" SELECT hlstats_Players_Awards.playerId, awardTime, lastName, flag, count FROM hlstats_Players_Awards LEFT JOIN hlstats_Players ON hlstats_Players_Awards.playerId = hlstats_Players.playerId WHERE awardid=$award ORDER BY $table->sort $table->sortorder, $table->sort2 $table->sortorder LIMIT $table->startitem,$table->numperpage "); $resultCount = $db->query(" SELECT awardTime FROM hlstats_Players_Awards WHERE awardid=$award "); $numitems = mysql_num_rows($resultCount); ?>
Back to ">Daily Awards


$awardname"; $table->draw($result, $numitems, 95, 'center'); ?>