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", "O"); $edlist->columns[] = new EditListColumn("code", "Action", 0, true, "select", "hlstats_Actions.description/code/game='$gamecode' AND for_PlayerActions='1'"); $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='O' ORDER BY code ASC "); $edlist->draw($result); ?>