function ExternalIPList() { include "global.php"; $sql = "SELECT id, ip, location, description, date_create " . "FROM external_ip ORDER by ip"; $colums = array("ip" => new Column_IP("IP адрес"), "location" => new Column_List($db, "SELECT id, name FROM locations ORDER by name", "Локация"), "description" => new Column("Описание"), "date_create" => new Column("Время присвоения"), "ping_ajax" => new Column_Custom("Пинг (быстрый)", "<div id='ping_[[id]]'> </div><script language='javascript'>sndReq('id=[[id]]&action=ping&ip=[[ip]]', '" . $inc_path . "ajax.php');</script>", 0), "ping" => new Column_UserFunc("Пинг (долгий)", "Ping", array("ip"), 0)); $colums["ip"]->SetLink("external_ip_edit.php", "id"); $colums["description"]->SetLink("external_ip_edit.php", "id"); $badlines = array("ping" => new Row('=', 'Нет')); $table = new Table($db, "external_ip_list", $sql, $colums, $badlines); $table->Show_PageSwitch(true); $table->Show_AllCols(true); $table->Show_Search("description"); $table->SetWidth("95%"); $table->Show(); }