function page()
{
    $q = new mysql_meta();
    $ID = $_GET["policy-id"];
    $MetaClientNotifFatal = intval($q->GET("MetaClientNotifFatal", $ID));
    $MetaClientNotifWarning = intval($q->GET("MetaClientNotifWarning", $ID));
    $tpl = new templates();
    $page = CurrentPageName();
    $t = time();
    $p = Paragraphe_switch_img("{enable_notifications_on_errors}", "{enable_notifications_metaclient_text}", "MetaClientNotifFatal-{$t}", $MetaClientNotifFatal, null, 600);
    $p1 = Paragraphe_switch_img("{enable_notifications_on_warnings}", "{enable_notifications_metaclient_text}", "MetaClientNotifWarning-{$t}", $MetaClientNotifWarning, null, 600);
    $html = "\n<div style='width:98%' class=form>\n\t{$p}\n\t<br>\n\t{$p1}\n\t<div style='text-align:right;margin-top:20px'>" . button("{apply}", "Save{$t}()", 26) . "</div>\n</div>\n<script>\n\tvar xSave{$t}= function (obj) {\n\tvar tempvalue=obj.responseText;\n\tif(tempvalue.length>3){alert(tempvalue);return;};\n\tRefreshTab('meta-policy-{$ID}');\n}\n\t\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('MetaClientNotifFatal',document.getElementById('MetaClientNotifFatal-{$t}').value);\n\tXHR.appendData('MetaClientNotifWarning',document.getElementById('MetaClientNotifWarning-{$t}').value);\n\tXHR.appendData('policy-id','{$ID}');\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\n</script>\n\t\t\t\t\t";
    echo $tpl->_ENGINE_parse_body($html);
}
function page()
{
    $q = new mysql_meta();
    $ID = $_GET["policy-id"];
    $EnableFreeWeb = intval($q->GET("EnableFreeWeb", $ID));
    $EnableNginx = intval($q->GET("EnableNginx", $ID));
    $tpl = new templates();
    $page = CurrentPageName();
    $t = time();
    $p = Paragraphe_switch_img("{enable_freeweb}", "{enable_freeweb_text}", "EnableFreeWeb-{$t}", $EnableFreeWeb, null, 600);
    $p1 = Paragraphe_switch_img("{enable_reverse_proxy_service}", "{enable_reverse_proxy_service_explain}", "EnableNginx-{$t}", $EnableNginx, null, 600);
    $html = "\n<div style='width:98%' class=form>\n\t{$p}\n\t<br>\n\t{$p1}\n\t<div style='text-align:right;margin-top:20px'>" . button("{apply}", "Save{$t}()", 26) . "</div>\n</div>\n<script>\n\tvar xSave{$t}= function (obj) {\n\tvar tempvalue=obj.responseText;\n\tif(tempvalue.length>3){alert(tempvalue);return;};\n\tRefreshTab('meta-policy-{$ID}');\n}\n\t\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('EnableFreeWeb',document.getElementById('EnableFreeWeb-{$t}').value);\n\tXHR.appendData('EnableNginx',document.getElementById('EnableNginx-{$t}').value);\n\tXHR.appendData('policy-id','{$ID}');\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\n</script>\n\t\t\t\t\t";
    echo $tpl->_ENGINE_parse_body($html);
}