'ID', 'login' => 'Логин', 'admin_level' => 'Админ', 'level' => 'Уровень', 'exp' => 'Опыт', 'money' => 'Деньги', 'room' => 'Комната', 'city' => 'Город' ); $sort = (array_key_exists($sort, $sort_c)) ?$sort :'guid'; ?>
Сортировать по:
$val) echo ""; ?> select("SELECT `guid`, `login`, `level`, `exp`, `admin_level`, `money`, `city`, `room` FROM `characters` ORDER BY ?#", $sort); foreach ($characters as $character) { $bg = ($adb->selectCell("SELECT `guid` FROM `online` WHERE `guid` = ?d", $character['guid'])) ?"#00FFAA" :"#FFAAAA"; $admin = ($character['admin_level']) ?"unlock.gif" :"del.gif"; echo "" . "" . "" . "" . "" . "" . "" . "" . "" . "" . ""; } ?>
$val
$character[guid]$character[login]$character[admin_level] Уровень$character[level]$character[exp]".getMoney($character['money'])." кр.".$char->city->getRoom($character['room'], $character['city'], 'name')."".$char->city->getCity($character['city'], 'name')."Удалить персонажа