function StartPage()
{
    $usersmenus = new usersMenus();
    if ($usersmenus->dnsmasq_installed == true) {
        $dnsmasq = '{infos_dnsmasq}';
    }
    $searchname = RoundedLightGrey("<H5>{nic_dns_search}</H5>\n<p>{nic_dns_search_text}</p>\n<center>\n<input type=button value='{add_search_domains}&nbsp;&raquo;' OnClick=\"javascript:NicAddSearchDomain();\">\n<input type='hidden' id='add_search_domain_text' value='{add_search_domain_text}'>\n<div id='searchTable' style='padding:20px'>\n\t\t" . SearchTable() . "\n\t</div>\n</center>") . ($page = "\n\n<table style='width:100%'>\n<tr>\n<td valign='top'><img align='left' src='img/bg_static-dns.jpg' style='margin:3px'></td>\n<td valign='top'><p>{nic_static_dns_text} <strong>{$dnsmasq}</strong></p>\n</td>\n</tr>\n<tr>\n<td colspan=2>\n<br>" . RoundedLightGrey("\n\n\n\n<H5>{nic_nameserver}</H5>\n<p>{nic_nameserver_text}</p>\n<center>\n<input type=button value='{add_nameserver}&nbsp;&raquo;' OnClick=\"javascript:NicAddNameServer()\";>\n<input type='hidden' id='add_nameserver_text' value='{add_nameserver_text}'>\n<div id='nametable' style='padding:20px'>\n\t" . nameserverTable() . "\n</div>\n\n") . "</td></tr></table>");
    $JS["JS"][] = 'js/system.staticdns.js';
    $tpl = new template_users('{nic_static_dns}', $page, 0, 0, 0, 0, $JS);
    echo $tpl->web_page;
}
function INDEX()
{
    $page = CurrentPageName();
    if (isset($_GET["find"])) {
        $table = SearchTable($_GET["find"]);
    } else {
        $table = DomainsTable($_GET["ou"]);
    }
    $html = "\n\t<input type='hidden' id='SearchString' value='{$_GET["find"]}'>\n\t<center>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td>\n\t\t\t<form name='FFMQ'>\n\t\t\t<input type='hidden' name='ImportArticaDomainsTable' value='{$_GET["ou"]}'>\n\t\t\t<input type='button' value='&laquo;&nbsp;{import_black_domain_table}&nbsp;&raquo;' OnClick=\"javascript:MyHref('{$page}?ou={$_GET["ou"]}&ImportArticaDomainsTable={$_GET["ou"]}');\">\n\t\t\t</form>\n\t\t</td>\n\t\t<td>\n\t\t\n\t\t<table>\n\t\t\t<tr>\n\t\t\t<td align='right' nowrap><strong>{add_b_dom}:</strong></td>\n\t\t\t<input type='hidden' value='{$_GET["ou"]}' id='ou' name='ou' >\n\t\t\t<td>" . Field_text('add_domain', null, null, null, null, null, null, "BTAddBlackDomain(event);") . "</td>\n\t\t\t<td><input type='button' value='{add}&nbsp;&raquo;' OnClick=\"javascript:AddBlackDomain();\"></td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\n\t\t</td>\n\t\t\n\t\t\n\t</tr>\n\t<div style='margin:5px'>\n\t<form name='FFMQ1'>\n\t<input type='hidden' name='ou' id='ou' value='{$_GET["ou"]}'>\n\t<table style='width:100%'>\n\t<tr>\n\t<td align='right'><strong>{search}</strong></td>\n\t<td>" . Field_text('find', $_GET["find"]) . "</td>\n\t<td><input type='submit' value='&laquo;&nbsp;{search}&nbsp;&raquo;'></td>\n\t</tr>\n\t</table>\n\t</form>\n\t{$table}\n\t\n\t\n\t";
    $cfg["JS"][] = "js/quarantine.ou.js";
    $tpl = new template_users('{global_blacklist}', $html, 0, 0, 0, 0, $cfg);
    echo $tpl->web_page;
}