userdata["acclevel"] < 80) die ("Access denied!");
$edlist = new EditList("rankId", "hlstats_Ranks", "", false);
$edlist->columns[] = new EditListColumn("game", "Game", 0, true, "hidden", $gamecode);
$edlist->columns[] = new EditListColumn("image", "Image file", 45, true, "text", "", 64);
$edlist->columns[] = new EditListColumn("minKills", "Minimum kills", 15, true, "text", "", 64);
$edlist->columns[] = new EditListColumn("maxKills", "Maximum kills", 15, true, "text", "", 64);
$edlist->columns[] = new EditListColumn("rankName", "Rank Name", 45, true, "text", "", 64);
if ($_POST)
{
if ($edlist->update())
message("success", "Operation successful.");
else
message("warning", $edlist->error());
}
?>
Note: be sure to set the minKills/maxKills values correctly (no gap).
Images have to be given without ".gif" and "_small" extension!
query(" SELECT rankId, game, image, minKills, maxKills, rankName FROM hlstats_Ranks WHERE game='$gamecode' ORDER BY minKills ASC "); $edlist->draw($result); ?>