function item_popup() { $tpl = new templates(); $page = CurrentPageName(); $id = $_GET["item-id"]; if (!is_numeric($id)) { $id = 0; } if ($id == 0) { item_config(); return; } $t = $_GET["t"]; $page = CurrentPageName(); $tpl = new templates(); $t = time(); $boot = new boostrap_form(); $array["{item}"] = "{$page}?item-config=yes&item-id={$id}"; $array["{aliases}"] = "pdns.mysql.php?item-cname=yes&item-id={$id}"; echo $boot->build_tab($array); }
include_once dirname(__FILE__) . "/ressources/class.pdns.inc"; if (posix_getuid() != 0) { $user = new usersMenus(); if (!GetRights()) { $tpl = new templates(); echo $tpl->_ENGINE_parse_body("alert('{ERROR_NO_PRIVS}');"); die; exit; } } if (isset($_GET["items"])) { items(); exit; } if (isset($_GET["item-config"])) { item_config(); exit; } if (isset($_GET["item-id"])) { item_popup(); exit; } if (isset($_GET["item-id-js"])) { item_js(); exit; } if (isset($_POST["addr"])) { item_add(); exit; } if (isset($_POST["delete-item"])) {
function item_popup() { $tpl = new templates(); $page = CurrentPageName(); $id = $_GET["item-id"]; if (!is_numeric($id)) { $id = 0; } if ($id == 0) { item_config(); return; } $t = $_GET["t"]; $styleText = "font-size:14px"; $arr["item-config"] = "{item}"; $arr["item-cname"] = "{aliases}"; while (list($num, $ligne) = each($arr)) { $ligne = $tpl->_ENGINE_parse_body($ligne); $toolbox[] = "<li><a href=\"{$page}?{$num}=yes&item-id={$id}&t={$t}\"><span style='{$styleText}'>{$ligne}</span></a></li>"; } $html = "<div id='pdnsmysql-item-tabs' style='width:99%;margin:0px;background-color:white'>\n\t\t\t<ul>\n\t\t\t\t" . implode("\n\t", $toolbox) . "\n\t\t\t</ul>\n\t\t</div>\n\t\t<script>\n\t\t \$(document).ready(function() {\n\t\t\t\$(\"#pdnsmysql-item-tabs\").tabs();});\n\t\t</script>"; echo $html; }