query (" SELECT hlstats_Games.name FROM hlstats_Games WHERE hlstats_Games.code = '$game' "); if ($db->num_rows() < 1) error("No such game '$game'."); list($gamename) = $db->fetch_row(); $db->free_result(); pageHeader ( array ($gamename, 'Action Statistics'), array ($gamename=>"%s?game=$game", 'Action Statistics'=>'') ); $tblPlayerActions = new Table ( array ( new TableColumn ( 'description', 'Action', 'width=45&link=' . urlencode('mode=actioninfo&action=%k&game='.$game) ), new TableColumn ( 'obj_count', 'Earned', 'width=25&align=right&append=+times' ), new TableColumn ( 'obj_bonus', 'Reward', 'width=25&align=right' ) ), 'code', 'obj_count', 'description', true, 9999, 'obj_page', 'obj_sort', 'obj_sortorder' ); $result = $db->query (" SELECT hlstats_Actions.code, hlstats_Actions.description, hlstats_Actions.count AS obj_count, hlstats_Actions.reward_player AS obj_bonus FROM hlstats_Actions WHERE hlstats_Actions.game = '$game' AND hlstats_Actions.count > 0 GROUP BY hlstats_Actions.id ORDER BY $tblPlayerActions->sort $tblPlayerActions->sortorder, $tblPlayerActions->sort2 $tblPlayerActions->sortorder "); ?>