userdata["acclevel"] < 80) die ("Access denied!"); $edlist = new EditList("awardId", "hlstats_Awards", "award", false); $edlist->columns[] = new EditListColumn("game", "Game", 0, true, "hidden", $gamecode); $edlist->columns[] = new EditListColumn("awardType", "Type", 0, true, "hidden", "W"); $edlist->columns[] = new EditListColumn("code", "Weapon", 0, true, "select", "hlstats_Weapons.name/code/game='$gamecode';latency/*Latency;mostkills/*Most Kills;bonuspoints/*Bonus Points;suicide/*Suicides;teamkills/*Team Kills;connectiontime/*Connection Time;killstreak/*Kill Streak;deathstreak/*Death Streak;allsentrykills/*All Sentry Kills (TF2)"); $edlist->columns[] = new EditListColumn("name", "Award Name", 20, true, "text", "", 128); $edlist->columns[] = new EditListColumn("verb", "Verb Plural", 20, true, "text", "", 64); if ($_POST) { if ($edlist->update()) message("success", "Operation successful."); else message("warning", $edlist->error()); } $result = $db->query(" SELECT awardId, code, name, verb FROM hlstats_Awards WHERE game='$gamecode' AND awardType='W' ORDER BY code ASC "); $edlist->draw($result); ?>