当前位置: 首页>>代码示例>>PHP>>正文


PHP templates::javascript_parse_text方法代码示例

本文整理汇总了PHP中templates::javascript_parse_text方法的典型用法代码示例。如果您正苦于以下问题:PHP templates::javascript_parse_text方法的具体用法?PHP templates::javascript_parse_text怎么用?PHP templates::javascript_parse_text使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在templates的用法示例。


在下文中一共展示了templates::javascript_parse_text方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $description = $tpl->_ENGINE_parse_body("{description}");
    $select = $tpl->javascript_parse_text("{select}");
    $date = $tpl->_ENGINE_parse_body("{date}");
    $empty = $tpl->javascript_parse_text("{empty}");
    $t = time();
    $tablesize = 868;
    $descriptionsize = 705;
    $bts = array();
    if (is_numeric($_GET["tablesize"])) {
        $tablesize = $_GET["tablesize"];
    }
    if (is_numeric($_GET["descriptionsize"])) {
        $descriptionsize = $_GET["descriptionsize"];
    }
    $bts[] = "{name: '{$select}', bclass: 'Search', onpress : SelectFields{$t}},";
    $tablejs = "ufdbguard_admin_events";
    if ($_GET["table"] != null) {
        $tablejs = $_GET["table"];
    }
    if ($_GET["taskid"] > 0) {
        $bts[] = "{name: '{$empty}', bclass: 'Delz', onpress : EmptyTask{$t}},";
    }
    if (count($bts) > 0) {
        $buttons = "buttons : [" . @implode("\n", $bts) . " ],";
    }
    $html = "\n\t<div style='margin-left:5px'>\n\t<table class='ufdbguard-events-{$t}' style='display: none' id='ufdbguard-events-{$t}' style='width:99%'></table>\n\t</div>\n<script>\n\$(document).ready(function(){\n\$('#ufdbguard-events-{$t}').flexigrid({\n\turl: '{$page}?search=yes&filename={$_GET["filename"]}&taskid={$_GET["taskid"]}&category=stats&table={$_GET["table"]}',\n\tdataType: 'json',\n\tcolModel : [\n\t\t{display: '{$date}', name : 'zDate', width : 120, sortable : true, align: 'left'},\n\t\t{display: '{$description}', name : 'description', width : {$descriptionsize}, sortable : false, align: 'left'},\n\t],{$buttons}\n\tsearchitems : [\n\t\t{display: '{$description}', name : 'description'},\n\t\t],\n\tsortname: 'zDate',\n\tsortorder: 'desc',\n\tusepager: true,\n\ttitle: '',\n\tuseRp: true,\n\trp: 25,\n\tshowTableToggleBtn: false,\n\twidth: {$tablesize},\n\theight: 500,\n\tsingleSelect: true\n\t\n\t});   \n});\n\nfunction SelectFields{$t}(){\n\tYahooWin2('550','{$page}?Select-fields=yes&table=ufdbguard_admin_events&t={$t}&taskid={$_GET["taskid"]}','{$select}');\n\n}\n\n\tvar x_EmptyTask{$t}=function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>0){alert(results);return;}\n\t\t\$('#ufdbguard-events-{$t}').flexReload();\t\t\n\t}\n\nfunction EmptyTask{$t}(){\n\tif(confirm('{$empty}::{$_GET["taskid"]}')){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('EmptyTask','{$_GET["taskid"]}');\n\t\tXHR.appendData('Table','{$_GET["table"]}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_EmptyTask{$t});\t\t\t\n    }\n}\n\n</script>\n\n";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:32,代码来源:squid.stats.events.php

示例2: table

function table()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $t = time();
    $dnsmasq_address_text = $tpl->_ENGINE_parse_body("{dnsmasq_address_text}");
    $hosts = $tpl->_ENGINE_parse_body("{hosts}");
    $addr = $tpl->_ENGINE_parse_body("{addr}");
    $new_interface = $tpl->_ENGINE_parse_body("{new_interface}");
    $rulename = $tpl->_ENGINE_parse_body("{rulename}");
    $explain = $tpl->javascript_parse_text("{explain}");
    $title = $tpl->_ENGINE_parse_body("{rules}");
    $category = $tpl->_ENGINE_parse_body("{category}");
    $enabled = $tpl->_ENGINE_parse_body("{enabled}");
    $q = new mysql();
    if (!$q->TABLE_EXISTS("suricata_rules_packages", "artica_backup")) {
        $sql = "CREATE TABLE IF NOT EXISTS `artica_backup`.`suricata_rules_packages` (\n\t\t`rulefile` VARCHAR(128) NOT NULL PRIMARY KEY ,\n\t\t`category` VARCHAR(40) NOT NULL,\n\t\t`enabled` smallint(1) NOT NULL DEFAULT 0,\n\t\tINDEX ( `category`),\n\t\tINDEX ( `enabled`)\n\t\t)";
        $q->QUERY_SQL($sql, 'artica_backup');
        if (!$q->ok) {
            echo $q->mysql_error . "\n";
        }
    }
    if ($q->COUNT_ROWS("suricata_rules_packages", "artica_backup") == 0) {
        $sql = "INSERT IGNORE INTO suricata_rules_packages (rulefile,enabled,category) VALUES \n\t\t\t\t('botcc.rules',0,'DMZ'),('ciarmy.rules',0,'DMZ'),('compromised.rules','0','DMZ'),\n\t\t\t\t('drop.rules',1,'DMZ'),\n\t\t\t\t('dshield.rules',1,'DMZ'),('snort.rules',1,'ALL'),\n\t\t\t\t('emerging-activex.rules',1,'WEB'),\n\t\t\t\t('emerging-attack_response.rules',1,'ALL'),\n\t\t\t\t('emerging-chat.rules',0,'WEB'),\n\t\t\t\t('emerging-current_events.rules',0,'ALL'),\n\t\t\t\t('emerging-dns.rules',0,'DMZ'),\n\t\t\t\t('emerging-dos.rules',0,'DMZ'),\n\t\t\t\t('emerging-exploit.rules',0,'DMZ'),\n\t\t\t\t('emerging-ftp.rules',0,'DMZ'),\n\t\t\t\t('emerging-games.rules',0,'ALL'),\n\t\t\t\t('emerging-icmp_info.rules',0,'ALL'),\n\t\t\t\t('emerging-icmp.rules',0,'ALL'),\n\t\t\t\t('emerging-imap.rules',0,'DMZ'),\n\t\t\t\t('emerging-inappropriate.rules',0,'WEB'),\n\t\t\t\t('emerging-malware.rules',1,'WEB'),\n\t\t\t\t('emerging-mobile_malware.rules',0,'WEB'),\n\t\t\t\t('emerging-netbios.rules',0,'ALL'),\n\t\t\t\t('emerging-p2p.rules',0,'WEB'),\n\t\t\t\t('emerging-policy.rules',1,'WEB'),\n\t\t\t\t('emerging-pop3.rules',0,'DMZ'),\n\t\t\t\t('emerging-rpc.rules',0,'ALL'),\n\t\t\t\t('emerging-scada.rules',0,'ALL'),\n\t\t\t\t('emerging-scan.rules',1,'ALL'),\n\t\t\t\t('emerging-shellcode.rules',1,'ALL'),\n\t\t\t\t('emerging-smtp.rules',0,'DMZ'),\n\t\t\t\t('emerging-snmp.rules',0,'ALL'),\n\t\t\t\t('emerging-sql.rules',0,'ALL'),\n\t\t\t\t('emerging-telnet.rules',0,'ALL'),\n\t\t\t\t('emerging-tftp.rules',0,'ALL'),\n\t\t\t\t('emerging-trojan.rules',1,'ALL'),\n\t\t\t\t('emerging-user_agents.rules',0,'ALL'),\n\t\t\t\t('emerging-voip.rules',0,'ALL'),\n\t\t\t\t('emerging-web_client.rules',1,'HTTP'),\n\t\t\t\t('emerging-web_server.rules',0,'HTTP'),\n\t\t\t\t('emerging-web_specific_apps.rules',0,'HTTP'),\n\t\t\t\t('emerging-worm.rules',1,'ALL'),\n\t\t\t\t('tor.rules',0,'ALL'),\n\t\t\t\t('decoder-events.rules',0,'ALL'),\n\t\t\t\t('stream-events.rules',0,'ALL'),\n\t\t\t\t('http-events.rules',0,'HTTP'),\n\t\t\t\t('smtp-events.rules',0,'DMZ'),\n\t\t\t\t('dns-events.rules',0,'DMZ'),\n\t\t\t\t('tls-events.rules',0,'DMZ')";
        $q->QUERY_SQL($sql, 'artica_backup');
    }
    $apply = $tpl->javascript_parse_text("{apply}");
    $buttons = "\n\tbuttons : [\n\t\n\t{name: '<strong style=font-size:18px>{$apply}</strong>', bclass: 'Apply', onpress : Apply{$t}},\n\t],";
    $html = "\n\t\n\t\n\t<table class='TABLE_SURICATA_MAIN_RULES' style='display: none' id='TABLE_SURICATA_MAIN_RULES'\n\tstyle='width:100%'></table>\n\t<script>\n\t\$(document).ready(function(){\n\tvar md5H='';\n\t\$('#TABLE_SURICATA_MAIN_RULES').flexigrid({\n\turl: '{$page}?list=yes',\n\tdataType: 'json',\n\tcolModel : [\n\t\n\t{display: '<span style=font-size:22px>{$rulename}</span>', name : 'rulefile', width : 300, sortable : true, align: 'left'},\n\t{display: '<span style=font-size:22px>{$category}</span>', name : 'category', width : 156, sortable : true, align: 'center'},\n\t{display: '<span style=font-size:22px>{$explain}</span>', name : 'none', width : 833, sortable : false, align: 'left'},\n\t{display: '<span style=font-size:22px>{$enabled}</span>', name : 'enabled', width : 105, sortable : true, align: 'center'},\n\n\t],\n\t{$buttons}\nsearchitems : [\n\t\t{display: '{$rulename}', name : 'rulefile'},\n\t\t{display: '{$category}', name : 'category'},\n\t\t\n\n\t],\t\n\tsortname: 'rulefile',\n\tsortorder: 'asc',\n\tusepager: true,\n\ttitle: '<span style=font-size:30px>{$title}</span>',\n\tuseRp: true,\n\trp: 50,\n\tshowTableToggleBtn: false,\n\twidth: '99%',\n\theight: 550,\n\tsingleSelect: true,\n\trpOptions: [10, 20, 30, 50,100,200]\n\t\n\t});\n\t});\n\t\n\t\nfunction Add{$t}(){\n\tLoadjs('{$page}?add-interface-js=yes&t={$t}');\n}\nvar xSuricataRuleEnabled= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>0){alert(results);return;}\n\t\$('#TABLE_SURICATA_MAIN_RULES').flexReload();\n}\n\t\nfunction SuricataRuleEnabled(filename){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('filename',filename);\n\tXHR.sendAndLoad('{$page}', 'POST',xSuricataRuleEnabled);\n}\nfunction Apply{$t}(){\n\tLoadjs('suricata.progress.php');\n}\n</script>\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:articatech,项目名称:artica,代码行数:31,代码来源:suricata.rules.php

示例3: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $SquidPerformance = intval($sock->GET_INFO("SquidPerformance"));
    if ($SquidPerformance > 1) {
        echo $tpl->_ENGINE_parse_body(FATAL_ERROR_SHOW_128("{artica_statistics_disabled}"));
        return;
    }
    $q = new mysql_squid_builder();
    $q->CheckTables();
    $type = $tpl->_ENGINE_parse_body("{type}");
    $browsers = $tpl->_ENGINE_parse_body("{browsers}");
    $items = $tpl->_ENGINE_parse_body("{items}");
    $add = $tpl->_ENGINE_parse_body("{add}");
    $delete_group_ask = $tpl->javascript_parse_text("{inputbox delete group}");
    $title = $tpl->javascript_parse_text("{browsers}");
    $t = time();
    $table_width = 630;
    $table_height = 450;
    $buttons = "buttons : [\n\t{name: '{$new_group}', bclass: 'add', onpress : AddGroup},\n\t\t],\t";
    $buttons = null;
    $html = $tpl->_ENGINE_parse_body("") . "\n\t<table class='table-{$t}' style='display: none' id='table-{$t}' style='width:99%'></table>\n<script>\n\$(document).ready(function(){\n\$('#table-{$t}').flexigrid({\n\turl: '{$page}?list=yes',\n\tdataType: 'json',\n\tcolModel : [\n\t\t{display: '{$browsers}', name : 'pattern', width : 904, sortable : true, align: 'left'},\n\t\t{display: '{$add}', name : 'pattern', width : 81, sortable : false, align: 'center'},\n\t\t\n\t\t\n\t],\n\n\tsearchitems : [\n\t\t{display: '{$browsers}', name : 'pattern'},\n\t\t],\n\tsortname: 'pattern',\n\tsortorder: 'asc',\n\tusepager: true,\n\ttitle: '<span style=font-size:18px>{$title}</span>',\n\tuseRp: true,\n\trp: 15,\n\tshowTableToggleBtn: false,\n\twidth: '99%',\n\theight: {$table_height},\n\tsingleSelect: true\n\t\n\t});   \n});\n</script>\n\t";
    echo $html;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:26,代码来源:squid.browsers.php

示例4: page

function page()
{
    $tpl = new templates();
    $ID = $_GET["ID"];
    if (!is_numeric($ID)) {
        $ID = 0;
    }
    $page = CurrentPageName();
    $tpl = new templates();
    $users = new usersMenus();
    $TB_HEIGHT = 515;
    $TB_WIDTH = 875;
    $path = base64_decode($_GET["path"]);
    $md5path = md5($path);
    $veto_files_explain = $tpl->_ENGINE_parse_body("{veto_files_explain}");
    $veto_files_add_explain = $tpl->javascript_parse_text("{veto_files_add_explain}");
    $t = time();
    $event = $tpl->_ENGINE_parse_body("{events}");
    $zDate = $tpl->_ENGINE_parse_body("{zDate}");
    $ask_delete_rule = $tpl->javascript_parse_text("{ask_delete_rule}");
    $help = $tpl->_ENGINE_parse_body("{online_help}");
    $buttons = "\n\tbuttons : [\n\t{name: '{$new_entry}', bclass: 'Add', onpress : NewGItem{$t}},\n\t{name: '{$help}', bclass: 'Help', onpress : ItemHelp{$t}},\n\t],\t";
    $buttons = null;
    $html = "\n\t<table class='flexRT{$t}' style='display: none' id='flexRT{$t}' style='width:99%'></table>\n<script>\nvar mem{$t}='';\n\$(document).ready(function(){\n\$('#flexRT{$t}').flexigrid({\n\turl: '{$page}?items-list=yes&t={$t}&md5path={$md5path}',\n\tdataType: 'json',\n\tcolModel : [\t\n\t\t{display: '{$zDate}', name : 'zDate', width :146, sortable : true, align: 'left'},\n\t\t{display: '{$event}', name : 'description', width :961, sortable : true, align: 'left'},\n\n\t],\n\t{$buttons}\n\n\tsearchitems : [\n\t\t{display: '{$event}', name : 'description'},\n\t],\n\tsortname: 'zDate',\n\tsortorder: 'desc',\n\tusepager: true,\n\ttitle: '{$path}',\n\tuseRp: true,\n\trp: 50,\n\tshowTableToggleBtn: false,\n\twidth: '99%',\n\theight: {$TB_HEIGHT},\n\tsingleSelect: true,\n\trpOptions: [10, 20, 30, 50,100,200,500]\n\t\n\t});   \n});\n</script>\n";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:26,代码来源:dhcpd.events-sql.php

示例5: table

function table()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $purge_catagories_database_explain = $tpl->javascript_parse_text("{purge_catagories_database_explain}");
    $purge_catagories_table_explain = $tpl->javascript_parse_text("{purge_catagories_table_explain}");
    $items = $tpl->_ENGINE_parse_body("{items}");
    $size = $tpl->_ENGINE_parse_body("{size}");
    $SaveToDisk = $tpl->_ENGINE_parse_body("{SaveToDisk}");
    $addCat = $tpl->_ENGINE_parse_body("{add} {category}");
    $description = $tpl->_ENGINE_parse_body("{description}");
    $task = $tpl->_ENGINE_parse_body("{task}");
    $new_schedule = $tpl->_ENGINE_parse_body("{new_schedule}");
    $DisableSquidDefaultSchedule = $sock->GET_INFO("DisableSquidDefaultSchedule");
    if (!is_numeric($DisableSquidDefaultSchedule)) {
        $DisableSquidDefaultSchedule = 0;
    }
    $explain = $tpl->_ENGINE_parse_body("{explain_squid_tasks}");
    $run = $tpl->_ENGINE_parse_body("{run}");
    $events = $tpl->_ENGINE_parse_body("{events}");
    $run_this_task_now = $tpl->javascript_parse_text("{run_this_task_now} ?");
    $zDate = $tpl->_ENGINE_parse_body("{zDate}");
    $task = $tpl->_ENGINE_parse_body("{task}");
    $file = $tpl->_ENGINE_parse_body("{file}");
    $function = $tpl->_ENGINE_parse_body("{function}");
    $t = time();
    $html = "\n\t<div class=explain>{$explain}</div>\n\n\n\t<div style='margin-left:-15px'>\n\t<table class='{$t}' style='display: none' id='{$t}' style='width:99%'></table>\n\t</div>\n<script>\nvar rowSquidTask='';\n\$(document).ready(function(){\n\$('#{$t}').flexigrid({\n\turl: '{$page}?search=yes',\n\tdataType: 'json',\n\tcolModel : [\n\t\t{display: '{$zDate}', name : 'zDate', width : 132, sortable : true, align: 'left'},\n\t\t{display: '{$task}', name : 'TASKID', width : 121, sortable : false, align: 'left'},\n\t\t{display: '{$description}', name : 'description', width : 587, sortable : false, align: 'left'},\n\n\t],\nbuttons : [\n\t{name: '{$task}', bclass: 'Search', onpress : SelectTasks},\n\t{name: '{$file}', bclass: 'Search', onpress : SelectScript},\n\t{name: '{$function}', bclass: 'Search', onpress : SelectFunction},\n\t\n\t\t],\t\n\tsearchitems : [\n\t\t{display: '{$description}', name : 'TimeDescription'},\n\t\t],\n\tsortname: 'zDate',\n\tsortorder: 'desc',\n\tusepager: true,\n\ttitle: '',\n\tuseRp: true,\n\trp: 15,\n\tshowTableToggleBtn: false,\n\twidth: 897,\n\theight: 350,\n\tsingleSelect: true\n\t\n\t});   \n});\t\n\n\tfunction AddNewSchedule(category){\n\t\t\tLoadjs('{$page}?AddNewSchedule-js=yes&ID=0');\n\t}\n\t\n\tfunction SquidCrontaskUpdateTable(){\n\t\t\$('#{$t}').flexReload();\n\t }\n\t\n\tvar x_SquidTaskEnable=function (obj) {\n\t\tvar ID='{$_GET["ID"]}';\n\t\tvar results=obj.responseText;\n\t\tif(results.length>0){alert(results);}\t\t\n\t}\n\n\tvar x_DisableSquidDefaultScheduleCheck=function (obj) {\n\t\tvar ID='{$_GET["ID"]}';\n\t\tvar results=obj.responseText;\n\t\tif(results.length>0){alert(results);}\n\t\t\$('#{$t}').flexReload();\t\t\n\t}\t\t\n\n\n\tfunction SelectTasks(){\n\t\tYahooWin4('500','{$page}?select-tasks=yes&t={$t}','{$task}?');\n\t}\n\t\n\tfunction SelectFunction(){\n\t\tYahooWin4('550','{$page}?select-function=yes&t={$t}','{$task}?');\n\t}\n\t\n\tfunction SelectScript(){\n\t\tYahooWin4('550','{$page}?select-script=yes&t={$t}','{$file}?');\n\t}\t\n\n\tfunction DisableSquidDefaultScheduleCheck(){\n\t  \tvar XHR = new XHRConnection();\n\t  \tif(document.getElementById('DisableSquidDefaultSchedule').checked){XHR.appendData('DisableSquidDefaultSchedule',1);}\n\t  \telse{XHR.appendData('DisableSquidDefaultSchedule',0);}\n\t  \tXHR.sendAndLoad('{$page}', 'POST',x_DisableSquidDefaultScheduleCheck);\t\n\t}\n\t\n\t\n\tfunction SquidTaskRun(ID,explain){\n\t\tif(confirm('{$run_this_task_now} `'+explain+'`')){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('ID',ID);\n\t  \t\tXHR.appendData('schedule-run','yes');\n\t  \t\tXHR.sendAndLoad('{$page}', 'POST',x_SquidTaskEnable);\t\t\n\t\t}\n\t\n\t}\n\t\n\t\n\tvar x_SquidTaskDelete=function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>0){alert(results);return;}\n\t\t\$('#rowSquidTask'+rowSquidTask).remove();\n\t}\t\n\t\n\tfunction SquidTaskDelete(ID){\n\t\trowSquidTask=ID;\n\t  \tvar XHR = new XHRConnection();\n\t\tXHR.appendData('ID',ID);\n\t  \tXHR.appendData('schedule-delete','yes');\n\t  \tXHR.sendAndLoad('{$page}', 'POST',x_SquidTaskDelete);\t\n\t}\n\t\n\t\n\t\n</script>";
    echo $html;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:30,代码来源:squid.tasks.events.php

示例6: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    if ($_GET["prepend"] == null) {
        $_GET["prepend"] = 0;
    }
    if ($_GET["prepend-guid"] == null) {
        $_GET["prepend-guid"] = 0;
    }
    $OnlyGUID = $_GET["OnlyGUID"];
    $OnlyAD = $_GET["OnlyAD"];
    if (!is_numeric($OnlyGUID)) {
        $OnlyGUID = 0;
    }
    if (!is_numeric($OnlyAD)) {
        $OnlyAD = 0;
    }
    if ($_GET["callback"] != null) {
        $callback = "{$_GET["callback"]}(id,prependText,guid);WinORGHide();return;";
    }
    $GroupName = $tpl->_ENGINE_parse_body("{groupname}");
    $Members = $tpl->_ENGINE_parse_body("{members}");
    $item_add = $tpl->javascript_parse_text("{item_added}");
    $Select = $tpl->javascript_parse_text("{select}");
    $title = $tpl->javascript_parse_text("{browse_remote_ldap_server}");
    $t = time();
    $CallBack2 = null;
    if ($_GET["CallBack2"] != null) {
        $CallBack2 = "{$_GET["CallBack2"]}(base64,Name);";
    }
    $html = "\n\t<table class='table{$t}' style='display: none' id='table{$t}' style='width:99%'></table>\n\t<script>\n\t\$(document).ready(function(){\n\t\$('#table{$t}').flexigrid({\n\turl: '{$page}?search-groups=yes&t={$t}&ADID={$_GET["ADID"]}&MainFunction={$_GET["MainFunction"]}&field-user={$_GET["field-user"]}&field-type={$_GET["field-type"]}&function={$_GET["function"]}&t={$t}&CallBack2={$_GET["CallBack2"]}',\n\tdataType: 'json',\n\tcolModel : [\n\t{display: '&nbsp;', name : 'select', width : 42, sortable : false, align: 'center'},\n\t{display: '{$GroupName}', name : 'groupname', width : 372, sortable : true, align: 'left'},\n\t{display: '{$Members}', name : 'none', width : 67, sortable : false, align: 'center'},\n\t{display: '{$Select}', name : 'none', width : 79, sortable : false, align: 'center'},\n\t],\n\n\tsearchitems : [\n\t{display: '{$GroupName}', name : 'groupname'},\n\t],\n\tsortname: 'groupname',\n\tsortorder: 'asc',\n\tusepager: true,\n\ttitle: '<span style=font-size:18px>{$title}</span>',\n\tuseRp: true,\n\trp: 15,\n\tshowTableToggleBtn: false,\n\twidth: '99%',\n\theight: 400,\n\tsingleSelect: true\n\n});\n});\nfunction BrowseFindUserGroupClick(e){\nif(checkEnter(e)){BrowseFindUserGroup();}\n}\n\nvar x_BrowseFindUserGroup=function (obj) {\ntempvalue=obj.responseText;\ndocument.getElementById('finduserandgroupsidBrwse').innerHTML=tempvalue;\n}\n\n\nfunction BrowseFindUserGroup(){\nLoadAjax('finduserandgroupsidBrwse','{$page}?query='+escape(document.getElementById('BrowseUserQuery').value)+'&prepend={$_GET["prepend"]}&field-user={$_GET["field-user"]}&prepend-guid={$_GET["prepend-guid"]}&OnlyUsers={$_GET["OnlyUsers"]}&OnlyGUID={$_GET["OnlyGUID"]}&organization={$_GET["organization"]}&OnlyGroups={$_GET["OnlyGroups"]}&callback={$_GET["callback"]}&NOComputers={$_GET["NOComputers"]}&Zarafa={$_GET["Zarafa"]}&OnlyAD={$OnlyAD}');\n\n}\n\n\nfunction BrowseSelect{$t}(id,prependText,guid){\n{$callback}\n\tvar prepend={$_GET["prepend"]};\n\tvar prepend_gid={$_GET["prepend-guid"]};\n\tvar OnlyGUID={$OnlyGUID};\n\tif(document.getElementById('{$_GET["field-user"]}')){\n\tvar selected=id;\n\tif(OnlyGUID==1){\n\tdocument.getElementById('{$_GET["field-user"]}').value=guid;\n\tWinORGHide();\n\treturn;\n}\n\nif(prepend==1){selected=prependText+id;}\nif(prepend_gid==1){\nif(guid>1){\nselected=prependText+id+':'+guid;\n}\n}\ndocument.getElementById('{$_GET["field-user"]}').value=selected;\nWinORGHide();\n\t}\n}\n\nfunction EditField{$t}(base64,Name){\n\tvar fieldtype='{$_GET["field-type"]}';\n\tvar ADID='{$_GET["ADID"]}';\n\tif(document.getElementById('{$_GET["field-user"]}')){\n\t\tif(fieldtype==2){\n\t\t\tdocument.getElementById('{$_GET["field-user"]}').value='AD:'+ADID+':'+base64;\n\t\t\talert('{$item_add} mode:'+fieldtype+' - '+'`'+Name+'`');\n\t\t\t{$CallBack2}\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(fieldtype==3){\n\t\t\tdocument.getElementById('{$_GET["field-user"]}').value=Name;\n\t\t\talert('{$item_add} `'+Name+' - '+'`'+Name+'`');\n\t\t\t{$CallBack2}\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(fieldtype==4){\n\t\t\tdocument.getElementById('{$_GET["field-user"]}').value='ExtLDAP:'+Name+':'+base64;\n\t\t\tdocument.getElementById('{$_GET["field-user"]}').disabled=true;\n\t\t\talert('{$item_add} `'+Name+' - '+'`'+Name+'`');\n\t\t\t{$CallBack2}\n\t\t\treturn;\n\t\t}\t\t\n\t\t\n\t\tdocument.getElementById('{$_GET["field-user"]}').value=base64;\n\t\talert('{$item_add} mode:'+fieldtype+' - '+'`'+Name+'`');\n\t\t{$CallBack2}\n\t}\n}\n</script>\n";
    echo $html;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:34,代码来源:browse-extldap-groups.php

示例7: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $t = time();
    $explain = $tpl->_ENGINE_parse_body("{MILTERGREYLIST_STATUSDUMP_TEXT}");
    $time = $tpl->_ENGINE_parse_body("{time}");
    $ipaddr = $tpl->_ENGINE_parse_body("{ipaddr}");
    $from = $tpl->_ENGINE_parse_body("{from}");
    $to = $tpl->_ENGINE_parse_body("{to}");
    $whitelisted = $tpl->_ENGINE_parse_body("{whitelisted}");
    if (!isset($_GET["hostname"])) {
        $_GET["hostname"] = "master";
    }
    if ($_GET["hostname"] == null) {
        $_GET["hostname"] = "master";
    }
    $empty = $tpl->javascript_parse_text("{empty}");
    $mgreylist_empty_db_warn = $tpl->javascript_parse_text("{mgreylist_empty_db_warn}");
    $buttons = "buttons : [\n\t{name: '{$empty}', bclass: 'Delz', onpress : EmptyDB{$t}},\n\t{separator: true},\n\t],\t";
    if ($explain != null) {
        $explain = "<div class=explain style='font-size:13px'>{$explain}</div>";
    }
    $html = "\n{$explain}\n<center>\n<table class='flexRT{$t}' style='display: none' id='flexRT{$t}' style='width:100%'></table>\n</center>\t\n<script>\n\$(document).ready(function(){\n\$('#flexRT{$t}').flexigrid({\n\turl: '{$page}?search=yes&hostname={$_GET["hostname"]}',\n\tdataType: 'json',\n\tcolModel : [\n\t\t{display: '{$time}', name : 'stime', width : 122, sortable : false, align: 'left'},\t\n\t\t{display: '{$ipaddr}', name : 'ip_addr', width :108, sortable : true, align: 'left'},\n\t\t{display: '{$from}', name : 'mailfrom', width :225, sortable : true, align: 'left'},\n\t\t{display: '{$to}', name : 'mailto', width : 220, sortable : true, align: 'left'},\n\t\t{display: '{$whitelisted}', name : 'whitelisted', width : 25, sortable : true, align: 'center'},\n\t\t],\n\t{$buttons}\n\tsearchitems : [\n\t\t{display: '{$ipaddr}', name : 'ip_addr'},\n\t\t{display: '{$from}', name : 'mailfrom'},\n\t\t{display: '{$to}', name : 'mailto'},\n\t\t],\n\tsortname: 'stime',\n\tsortorder: 'desc',\n\tusepager: true,\n\ttitle: '',\n\tuseRp: true,\n\trp: 50,\n\tshowTableToggleBtn: false,\n\twidth: 780,\n\theight: 350,\n\tsingleSelect: true,\n\trpOptions: [10, 20, 30, 50,100,200]\n\t\n\t});   \n});\n\n\t\tvar x_EmptyDB{$t}= function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>5){alert(results);}\n\t\t\tRefreshTab('main_config_mgreylist');\n\t\t}\n\nfunction EmptyDB{$t}(){\n\tif(confirm('{$mgreylist_empty_db_warn}')){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('empty-db','yes');\n\t\tXHR.appendData('hostname','{$_GET["hostname"]}');\n\t\tAnimateDiv('flexRT{$t}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_EmptyDB{$t});\t\t\n\t\n\t}\n\n}\n\n</script>\n\n";
    echo $html;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:26,代码来源:milter.greylist.dumpdb.php

示例8: tabs

function tabs()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $ID = $_GET["ID"];
    $t = $_GET["t"];
    $q = new mysql();
    $ligne = mysql_fetch_array($q->QUERY_SQL("SELECT groupname FROM haproxy_acls_groups WHERE ID='{$_GET["gpid"]}'", "artica_backup"));
    $title = $tpl->javascript_parse_text($ligne["groupname"]);
    if ($title == null) {
        $title = $tpl->javascript_parse_text("{group} {$ID}");
    }
    $array["popup"] = $title;
    $array["items"] = "{items}";
    while (list($num, $ligne) = each($array)) {
        if ($num == "popup") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?popup=yes&gpid={$_GET["gpid"]}\" style='font-size:18px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        if ($num == "items") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"haproxy.acls.items.php?gpid={$_GET["gpid"]}\" style='font-size:18px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
    }
    echo build_artica_tabs($html, "haproxy_groups_{$_GET["gpid"]}");
}
开发者ID:articatech,项目名称:artica,代码行数:26,代码来源:haproxy.acls.group.setting.php

示例9: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $users = new usersMenus();
    $TB_HEIGHT = 300;
    $TB_WIDTH = 880;
    $t = time();
    $new_entry = $tpl->_ENGINE_parse_body("{new_rule}");
    $from = $tpl->_ENGINE_parse_body("{sender}");
    $to = $tpl->_ENGINE_parse_body("{recipients}");
    $title = $tpl->_ENGINE_parse_body("&laquo;{attachments}&raquo;");
    $rules = $tpl->_ENGINE_parse_body("{rules}");
    $ask_delete_rule = $tpl->javascript_parse_text("{delete_this_rule}");
    $enable = $tpl->_ENGINE_parse_body("{enable}");
    $compile_rules = $tpl->_ENGINE_parse_body("{compile_rules}");
    $filename = $tpl->_ENGINE_parse_body("{filename}");
    $content_type = $tpl->_ENGINE_parse_body("{content_type}");
    $zdate = $tpl->javascript_parse_text("{date}");
    $size = $tpl->javascript_parse_text("{size}");
    $buttons = "\n\tbuttons : [\n\t{name: '<strong style=font-size:18px>{$new_entry}</strong>', bclass: 'Add', onpress : NewGItem{$t}},\n\t\n\t\n\t],\t";
    $buttons = null;
    $html = "\n\t<table class='flexRT{$t}' style='display: none' id='flexRT{$t}' style='width:99%'></table>\n<script>\nvar mem{$t}='';\n\$(document).ready(function(){\n\$('#flexRT{$t}').flexigrid({\n\turl: '{$page}?items-rules=yes&t={$t}',\n\tdataType: 'json',\n\tcolModel : [\t\n\t\n\t\t{display: '<span style=font-size:18px>{$zdate}</span>', name : 'zdate', width :158, sortable : true, align: 'left'},\n\t\t{display: '<span style=font-size:18px>{$from}</span>', name : 'mailfrom', width :224, sortable : true, align: 'left'},\n\t\t{display: '<span style=font-size:18px>{$to}</span>', name : 'mailto', width :224, sortable : true, align: 'left'},\n\t\t{display: '<span style=font-size:18px>{$filename}</span>', name : 'fname', width :403, sortable : true, align: 'left'},\n\t\t{display: '<span style=font-size:18px>{$content_type}</span>', name : 'contenttype', width :246, sortable : true, align: 'left'},\n\t\t{display: '<span style=font-size:18px>{$size}</span>', name : 'size', width :120, sortable : true, align: 'right'},\n\t\t\n\n\t],\n\t{$buttons}\n\n\tsearchitems : [\n\t\t{display: '{$from}', name : 'mailfrom'},\n\t\t{display: '{$to}', name : 'mailto'},\n\t\t{display: '{$filename}', name : 'fname'},\n\t\t{display: '{$content_type}', name : 'contenttype'},\n\t],\n\tsortname: 'zdate',\n\tsortorder: 'desc',\n\tusepager: true,\n\ttitle: '<span style=font-size:30px>{$title}</span>',\n\tuseRp: true,\n\trp: 50,\n\tshowTableToggleBtn: false,\n\twidth: '99%',\n\theight: 550,\n\tsingleSelect: true,\n\trpOptions: [10, 20, 30, 50,100,200,500]\n\t\n\t});   \n});\n\nfunction ItemHelp{$t}(){\n\ts_PopUpFull('http://www.mail-appliance.org/index.php?cID=305','1024','900');\n}\n\n\nvar x_NewGItem{$t}=function(obj){\n\tvar tempvalue=obj.responseText;\n    if(tempvalue.length>3){alert(tempvalue);}\n    \$('#flexRT{$t}').flexReload();\n}\n\nfunction NewGItem{$t}(){\n\tYahooWin('650','{$page}?rulemd5=&t={$t}','{$new_entry}');\n\t\n}\nfunction GItem{$t}(zmd5,ttile){\n\tYahooWin('650','{$page}?rulemd5='+zmd5+'&t={$t}',ttile);\n\t\n}\n\nvar x_DeleteAutCompress{$t}=function(obj){\n\tvar tempvalue=obj.responseText;\n    if(tempvalue.length>3){alert(tempvalue);return;}\n    \$('#rowC'+mem{$t}).remove();\n}\n\nfunction GroupAmavisExtEnable(id){\n\tvar value=0;\n\tif(document.getElementById('gp'+id).checked){value=1;}\n \tvar XHR = new XHRConnection();\n    XHR.appendData('enable-gp',id);\n    XHR.appendData('value',value);\n    XHR.sendAndLoad('{$page}', 'POST',x_NewGItem{$t});\t\t\n}\n\n\nfunction DeleteAutCompress{$t}(md5){\n\tif(confirm('{$ask_delete_rule}')){\n\t\tmem{$t}=md5;\n \t\tvar XHR = new XHRConnection();\n      \tXHR.appendData('del-zmd5',md5);\n      \tXHR.sendAndLoad('{$page}', 'POST',x_DeleteAutCompress{$t});\t\t\n\t\n\t}\n\n}\n\n</script>";
    echo $html;
}
开发者ID:articatech,项目名称:artica,代码行数:25,代码来源:mimedefang.attachments.php

示例10: master_content

function master_content()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $users = new usersMenus();
    $TB_HEIGHT = 500;
    $TB_WIDTH = 910;
    $uid = $_GET["uid"];
    $t = time();
    $ipaddr = $tpl->javascript_parse_text("{ipaddr}");
    $hostname = $tpl->_ENGINE_parse_body("{hostname}");
    $uid = $tpl->_ENGINE_parse_body("{uid}");
    //	$title=$tpl->_ENGINE_parse_body("$attachments_storage {items}:&nbsp;&laquo;$size&raquo;");
    $MAC = $tpl->_ENGINE_parse_body("{MAC}");
    $QuerySize = $tpl->javascript_parse_text("{QuerySize}");
    $hits = $tpl->_ENGINE_parse_body("{hits}");
    $MAC = $tpl->_ENGINE_parse_body("{MAC}");
    $all = $tpl->_ENGINE_parse_body("{all}");
    $rebuild = $tpl->_ENGINE_parse_body("{rebuild}");
    $error_want_operation = $tpl->javascript_parse_text("{error_want_operation}");
    $buttons = "\n\tbuttons : [\n\t{name: '{$all}', bclass: 'Search', onpress : CompressAll{$t}},\n\t{name: '{$uid}', bclass: 'Search', onpress : CompressUid{$t}},\n\t{name: '{$MAC}', bclass: 'Search', onpress : CompressMAC{$t}},\n\t{name: '{$rebuild}', bclass: 'Reload', onpress : Rebuild{$t}},\n\t\n\t],\t";
    //youtubeid 	 	title 	content 	 	hits 	 	thumbnail
    $html = "\n\t<div class=BodyContent>\n\t<table class='flexRT{$t}' style='display: none' id='flexRT{$t}' style='width:99%'></table>\n\t</div>\n<script>\nvar mem{$t}='';\n\$(document).ready(function(){\n\$('#flexRT{$t}').flexigrid({\n\turl: '{$page}?items=yes&t={$t}&uid={$uid}',\n\tdataType: 'json',\n\tcolModel : [\n\t\t{display: '{$ipaddr}', name : 'ipaddr', width :108, sortable : false, align: 'left'},\n\t\t{display: '{$MAC}', name : 'MAC', width :114, sortable : false, align: 'left'},\n\t\t{display: '{$hostname}', name : 'hostname', width :202, sortable : true, align: 'left'},\n\t\t{display: '{$uid}', name : 'uid', width :180, sortable : true, align: 'left'},\t\n\t\t{display: '{$QuerySize}', name : 'QuerySize', width :107, sortable : true, align: 'left'},\n\t\t{display: '{$hits}', name : 'hits', width :107, sortable : true, align: 'left'},\n\n\t\n\t],\n\t{$buttons}\n\n\tsearchitems : [\n\t\t{display: '{$ipaddr}', name : 'ipaddr'},\n\t\t{display: '{$hostname}', name : 'hostname'},\n\t\t{display: '{$MAC}', name : 'MAC'},\n\t\t{display: '{$uid}', name : 'uid'},\n\n\t],\n\tsortname: 'QuerySize',\n\tsortorder: 'desc',\n\tusepager: true,\n\ttitle: '<span id=\"title-{$t}\"></span>',\n\tuseRp: true,\n\trp: 50,\n\tshowTableToggleBtn: false,\n\twidth: {$TB_WIDTH},\n\theight: {$TB_HEIGHT},\n\tsingleSelect: true,\n\trpOptions: [10, 20, 30, 50,100,200,500]\n\t\n\t});   \n});\n\nfunction ItemHelp{$t}(){\n\ts_PopUpFull('http://www.mail-appliance.org/index.php?cID=339','1024','900');\n}\n\nfunction CompressAll{$t}(){\n\t\$('#flexRT{$t}').flexOptions({url: '{$page}?items=yes'}).flexReload();\t\n}\nfunction CompressUid{$t}(){\n\t\$('#flexRT{$t}').flexOptions({url: '{$page}?items=yes&ByUid=yes'}).flexReload();\t\n}\nfunction CompressMAC{$t}(){\n\t\$('#flexRT{$t}').flexOptions({url: '{$page}?items=yes&ByMAC=yes'}).flexReload();\t\n}\n\nvar x_Enable{$t}=function(obj){\n\tvar tempvalue=obj.responseText;\n    if(tempvalue.length>3){alert(tempvalue);return;}\n    \$('#flexRT{$t}').flexReload();\n}\n\nfunction Rebuild{$t}(){\n\tif(confirm('{$error_want_operation}')){\n \t\tvar XHR = new XHRConnection();\n   \t \tXHR.appendData('rebuild','yes');\n   \t \tXHR.sendAndLoad('{$page}', 'POST',x_Enable{$t});\t\t\n\t}\t\n\n}\n\nvar x_Delete{$t}=function(obj){\n\tvar tempvalue=obj.responseText;\n    if(tempvalue.length>3){alert(tempvalue);return;}\n    \$('#row'+mem{$t}).remove();\n}\n\n\nfunction Enable{$t}(md){\n\tmem{$t}=md;\n\tvar enable=0;\n\tif(document.getElementById('enable_'+md).checked){enable=1;}\n \tvar XHR = new XHRConnection();\n    XHR.appendData('enable-item',md);\n    XHR.appendData('value',enable);\n    XHR.sendAndLoad('{$page}', 'POST',x_Enable{$t});\t\t\n   \n\t}\n\nfunction Delete{$t}(md){\n\tmem{$t}=md;\n\tif(confirm('{$action_delete_rule}')){\n \t\tvar XHR = new XHRConnection();\n   \t \tXHR.appendData('delete-item',md);\n   \t \tXHR.sendAndLoad('{$page}', 'POST',x_Delete{$t});\t\t\n\t}\n}\n\nfunction Run{$t}(md){\n\tmem{$t}=md;\n\tif(confirm('{$error_want_operation}')){\n \t\tvar XHR = new XHRConnection();\n   \t \tXHR.appendData('run-item',md);\n   \t \tXHR.sendAndLoad('{$page}', 'POST',x_Enable{$t});\t\t\n\t}\n\n}\n\nfunction Events{$t}(md){\n\tYahooWin5('505','{$page}?events-table=yes&zmd5='+md+'&t={$t}','{$events}');\n}\n\nfunction NewGItem{$t}(){\n\tYahooWin5('600','{$page}?backup-rule=&uid={$uid}&t={$t}','{$new_entry}');\n\n}\nfunction GItem{$t}(md,title){\n\tYahooWin5('600','{$page}?backup-rule='+md+'&uid={$uid}&t={$t}',title);\n\n}\n\n\n</script>";
    echo $html;
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:25,代码来源:miniadm.webstats.members.php

示例11: popup

function popup()
{
    $tt = $_GET["tt"];
    $page = CurrentPageName();
    $tpl = new templates();
    $webservers = $tpl->_ENGINE_parse_body("{webservers}");
    $hits = $tpl->_ENGINE_parse_body("{hits}");
    $size = $tpl->_ENGINE_parse_body("{size}");
    $time = $tpl->_ENGINE_parse_body("{time}");
    $member = $tpl->_ENGINE_parse_body("{member}");
    $country = $tpl->_ENGINE_parse_body("{country}");
    $url = $tpl->_ENGINE_parse_body("{url}");
    $delete = $tpl->_ENGINE_parse_body("{delete}");
    $new = $tpl->_ENGINE_parse_body("{new}");
    $rule = $tpl->_ENGINE_parse_body("{rule}");
    $title = $tpl->_ENGINE_parse_body(date("{l} d {F}") . " {blocked_requests}");
    $unblock = $tpl->javascript_parse_text("{unblock}");
    $UnBlockWebSiteExplain = $tpl->javascript_parse_text("{UnBlockWebSiteExplain}");
    $title = $tpl->javascript_parse_text("{blacklist}");
    $squid_ask_domain = $tpl->javascript_parse_text("{squid_ask_domain}");
    $apply = $tpl->javascript_parse_text("{apply}");
    $t = time();
    $html = "\n\t\n\t<table class='flexRT{$t}' style='display: none' id='flexRT{$t}' style='width:100%'></table>\n\t\n<script>\nvar mem{$t}='';\n\$(document).ready(function(){\n\$('#flexRT{$t}').flexigrid({\n\turl: '{$page}?events=yes&t={$t}',\n\tdataType: 'json',\n\tcolModel : [\n\t\t{display: '{$webservers}', name : 'items', width : 461, sortable : true, align: 'left'},\n\t\t{display: '{$delete}', name : 'delete', width : 31, sortable : false, align: 'center'},\n\t\t\n\t\t],\nbuttons : [\n\t{name: '{$new}', bclass: 'add', onpress : NewWebServer{$t}},\n\t{name: '{$apply}', bclass: 'Reconf', onpress : Apply{$t}},\n\n\t\t],\t\t\t\n\tsearchitems : [\n\t\t{display: '{$webservers}', name : 'items'},\n\t\t\n\t\t],\t\t\t\n\t\t\n\tsortname: 'items',\n\tsortorder: 'asc',\n\tusepager: true,\n\tuseRp: true,\n\ttitle: '<span style=\"font-size:14px\">{$title}</span>',\n\trp: 50,\n\tshowTableToggleBtn: false,\n\twidth: '99%',\n\theight: 400,\n\tsingleSelect: true,\n\trpOptions: [10, 20, 30, 50,100,200,500,1000,1500]\n\t\n\t});   \n});\n\n\tvar x_Delete{$t}=function(obj){\n\t      var tempvalue=obj.responseText;\n\t      if(tempvalue.length>3){alert(tempvalue);}\n\t      \$('#row'+mem{$t}).remove();\n\t}\t\n\t\n\tvar x_reload{$t}=function(obj){\n\t\tvar tempvalue=obj.responseText;\n\t     if(tempvalue.length>3){alert(tempvalue);return;}\n\t\t \$('#flexRT{$t}').flexReload();\n\t\t \$('#flexRT{$tt}').flexReload();\n\t}\n\nfunction Delete{$t}(domain,id){\n\tmem{$t}=id;\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('delete',domain);\n\tXHR.sendAndLoad('{$page}', 'POST',x_Delete{$t});\n}\n\nfunction Apply{$t}(){\n\tLoadjs('squid.compile.progress.php?onlywhitelist=yes');\n}\n\nfunction NewWebServer{$t}(){\n\tLoadjs('{$page}?add-black-js=yes&t={$t}&tt={$tt}',true);\n}\n\n</script>\n\t\n\t\n\t";
    echo $html;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:25,代码来源:squid.www-blacklist.php

示例12: js

function js(){
	$sock=new sockets();
	$page=CurrentPageName();
	$tpl=new templates();
	$datasUFDB=unserialize(base64_decode($sock->GET_INFO("ufdbguardConfig")));
	if(!is_numeric($datasUFDB["DebugAll"])){$datasUFDB["DebugAll"]=0;}
	$watn=$tpl->javascript_parse_text("{ufdbguard_debug_off}");
	if($datasUFDB["DebugAll"]==0){
		$watn=$tpl->javascript_parse_text("{ufdbguard_debug_on}");
		
		
	}
	$t=time();
	$html="
			
	var xttask$t=function (obj) {
		if(document.getElementById('rules-toolbox-left')){
			RefreshTab('main_dansguardian_mainrules');
		}
	}
	
		function ttask$t(){
			if(!confirm('$watn')){return;}
			var XHR = new XHRConnection();
			XHR.appendData('debug','yes');
			XHR.sendAndLoad('$page', 'POST',xttask$t);
		}
			
ttask$t();	";
	
	echo $html;
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:32,代码来源:ufdbguard.debug.php

示例13: page

function page()
{
    $tpl = new templates();
    $ID = $_GET["ID"];
    if (!is_numeric($ID)) {
        $ID = 0;
    }
    $page = CurrentPageName();
    $tpl = new templates();
    $users = new usersMenus();
    $t = time();
    $path = base64_decode($_GET["path"]);
    $md5path = md5($path);
    $veto_files_explain = $tpl->_ENGINE_parse_body("{veto_files_explain}");
    $veto_files_add_explain = $tpl->javascript_parse_text("{veto_files_add_explain}");
    $t = time();
    $from = $tpl->_ENGINE_parse_body("{from}");
    $zDate = $tpl->_ENGINE_parse_body("{zDate}");
    $mailto = $tpl->javascript_parse_text("{recipient}");
    $subject = $tpl->javascript_parse_text("{subject}");
    $help = $tpl->_ENGINE_parse_body("{online_help}");
    $title = $tpl->_ENGINE_parse_body(date("{l} d {F} Y"));
    $buttons = "\n\tbuttons : [\n\t{name: '{$new_entry}', bclass: 'Add', onpress : NewGItem{$t}},\n\t{name: '{$help}', bclass: 'Help', onpress : ItemHelp{$t}},\n\t],\t";
    $buttons = null;
    $html = "\n\t<table class='flexRT{$t}' style='display: none' id='flexRT{$t}' style='width:99%'></table>\n\t<script>\n\tvar mem{$t}='';\n\t\$(document).ready(function(){\n\t\$('#flexRT{$t}').flexigrid({\n\turl: '{$page}?items-list=yes&t={$t}&md5path={$md5path}',\n\tdataType: 'json',\n\tcolModel : [\n\t{display: '{$zDate}', name : 'zDate', width :146, sortable : true, align: 'left'},\n\t{display: '{$from}', name : 'mailfrom', width :149, sortable : true, align: 'left'},\n\t{display: '{$mailto}', name : 'mailto', width :149, sortable : true, align: 'left'},\n\t{display: '{$subject}', name : 'subject', width :430, sortable : true, align: 'left'},\n\t\n\t\n\t\n\t],\n\t{$buttons}\n\n\tsearchitems : [\n\t{display: '{$from}', name : 'mailfrom'},\n\t{display: '{$mailto}', name : 'mailto'},\n\t{display: '{$subject}', name : 'subject'},\n\t],\n\tsortname: 'zDate',\n\tsortorder: 'desc',\n\tusepager: true,\n\ttitle: '<span style=font-size:18px>{$title}</span>',\n\tuseRp: true,\n\trp: 50,\n\tshowTableToggleBtn: false,\n\twidth: '99%',\n\theight: 550,\n\tsingleSelect: true,\n\trpOptions: [10, 20, 30, 50,100,200,500]\n\n});\n});\n</script>\n";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:27,代码来源:postfix.archiver.database.php

示例14: containers_table

function containers_table()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $users = new usersMenus();
    $TB_HEIGHT = 450;
    $TB_WIDTH = 600;
    $uid = $_GET["uid"];
    $t = time();
    $filename = $tpl->javascript_parse_text("{filename}");
    $date = $tpl->_ENGINE_parse_body("{date}");
    $account = $tpl->_ENGINE_parse_body("{account}");
    //	$title=$tpl->_ENGINE_parse_body("$attachments_storage {items}:&nbsp;&laquo;$size&raquo;");
    $filessize = $tpl->_ENGINE_parse_body("{filesize}");
    $action_delete_rule = $tpl->javascript_parse_text("{action_delete_rule}");
    $enable = $tpl->_ENGINE_parse_body("{enable}");
    $compile_rules = $tpl->_ENGINE_parse_body("{compile_rules}");
    $online_help = $tpl->_ENGINE_parse_body("{online_help}");
    $enabled = $tpl->_ENGINE_parse_body("{enabled}");
    $items = $tpl->_ENGINE_parse_body("{items}");
    $error_want_operation = $tpl->javascript_parse_text("{error_want_operation}");
    $events = $tpl->javascript_parse_text("{events}");
    $category = $tpl->javascript_parse_text("{category}");
    $title = $tpl->javascript_parse_text("{video_title}");
    $size = $tpl->javascript_parse_text("{size}");
    $duration = $tpl->javascript_parse_text("{duration}");
    $hits = $tpl->javascript_parse_text("{hits}");
    $remove = $tpl->javascript_parse_text("{remove}");
    $buttons = "\n\t\n\t// mysqldb_backup_containers (`md5`,`fullpath`,`duration`,`zDate`,`size`)\n\t\n\t\n\tbuttons : [\n\t\n\t{name: '{$online_help}', bclass: 'Help', onpress : ItemHelp{$t}},\n\t\n\t],\t";
    $html = "\n\t\n\t<table class='flexRT{$t}' style='display: none' id='flexRT{$t}' style='width:99%'></table>\n\t\n<script>\nvar mem{$t}='';\n\$(document).ready(function(){\n\$('#flexRT{$t}').flexigrid({\n\turl: '{$page}?containers-items=yes&t={$t}&instance-id={$_GET["instance-id"]}&database={$_GET["database"]}',\n\tdataType: 'json',\n\tcolModel : [\n\t\t{display: '{$date}', name : 'zDate', width :82, sortable : true, align: 'left'},\n\t\t{display: '{$filename}', name : 'fullpath', width :180, sortable : true, align: 'left'},\t\n\t\t{display: '{$duration}', name : 'duration', width :118, sortable : true, align: 'left'},\n\t\t{display: '{$size}', name : 'size', width :93, sortable : true, align: 'left'},\n\t\t{display: '&nbsp;', name : 'delete', width :38, sortable : true, align: 'center'},\n\t\t\n\t\n\t],\n\t{$buttons}\n\n\tsearchitems : [\n\t\t{display: '{$filename}', name : 'fullpath'},\n\t],\n\tsortname: 'zDate',\n\tsortorder: 'desc',\n\tusepager: true,\n\ttitle: '<span id=\"title-{$t}\"></span>',\n\tuseRp: true,\n\trp: 50,\n\tshowTableToggleBtn: false,\n\twidth: {$TB_WIDTH},\n\theight: {$TB_HEIGHT},\n\tsingleSelect: true,\n\trpOptions: [10, 20, 30, 50,100,200,500]\n\t\n\t});   \n});\n\nfunction ItemHelp{$t}(){\n\ts_PopUpFull('http://mail-appliance.org/index.php?cID=371','1024','900');\n}\n\n\tvar x_FileNameMsqlDelete= function (obj) {\n\t \t\ttext=obj.responseText;\n\t \t\tif(text.length>3){alert(text);return;}\n\t \t\t\$('#row'+mem{$t}).remove();\n\t \t\t\n\t\t}\n\nfunction FileNameMsqlDelete(filename,md){\n\tmem{$t}=md;\n\tif(confirm('{$remove}\\n'+filename+' ?')){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('remove-file',filename);\t\n\t\t\tXHR.sendAndLoad('{$page}', 'POST',x_FileNameMsqlDelete);\n\t\t}\n\n}\n\n\n</script>";
    echo $html;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:32,代码来源:mysql.db.backup.php

示例15: page

function page()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $date = $tpl->_ENGINE_parse_body("{zDate}");
    $description = $tpl->_ENGINE_parse_body("{description}");
    $context = $tpl->_ENGINE_parse_body("{context}");
    $events = $tpl->_ENGINE_parse_body("{events}");
    $empty = $tpl->_ENGINE_parse_body("{empty}");
    $empty_events_text_ask = $tpl->javascript_parse_text("{empty_events_text_ask}");
    $service = $tpl->_ENGINE_parse_body("{servicew}");
    $client = $tpl->_ENGINE_parse_body("{client}");
    $sitename = $tpl->javascript_parse_text("{sitename}");
    $file = $tpl->javascript_parse_text("{filename}");
    $uri = $tpl->javascript_parse_text("{event}");
    $t = time();
    $SE_SERV = "{display: '{$service}', name : 'service'},";
    $TB_SERV = "{display: '{$service}', name : 'zDate', width :97, sortable : false, align: 'left'},";
    if ($_GET["force-prefix"] != null) {
        $MasterTitle = $_GET["force-prefix"];
        $TB_SERV = null;
        $SE_SERV = null;
    }
    if ($_GET["prepend"] != null) {
        $MasterTitle = $MasterTitle . "&raquo;{$_GET["prepend"]}";
    }
    $MasterTitle = $tpl->javascript_parse_text("VideoCache {events}");
    $buttons = "\nbuttons : [\n{name: '{$empty}', bclass: 'Delz', onpress : EmptyEvents},\n\n],\t";
    $buttons = null;
    $html = "\n<table class='events-table-{$t}' style='display: none' id='events-table-{$t}' style='width:99%'></table>\n<script>\n\n\$(document).ready(function(){\n\$('#events-table-{$t}').flexigrid({\nurl: '{$page}?search=yes&prepend={$_GET["prepend"]}&force-prefix={$_GET["force-prefix"]}',\n\tdataType: 'json',\n\tcolModel : [\n\t{display: '{$date}', name : 'zDate', width :125, sortable : true, align: 'left'},\n\t{display: 'PID', name : 'zDate', width :40, sortable : false, align: 'left'},\n\t\n\t{display: '{$sitename}', name : 'sitename', width : 85, sortable : false, align: 'left'},\n\t{display: 'HIT', name : 'HIT', width : 131, sortable : false, align: 'left'},\n\t{display: '{$file}', name : 'sitename', width : 128, sortable : false, align: 'left'},\n\t{display: '{$uri}', name : 'uri', width : 532, sortable : false, align: 'left'},\n\t],\n\t{$buttons}\n\n\tsearchitems : [\n\t{display: '{$events}', name : 'events'},\n\t],\n\tsortname: 'zDate',\n\tsortorder: 'desc',\n\tusepager: true,\n\ttitle: '{$MasterTitle}',\nuseRp: true,\nrp: 50,\nshowTableToggleBtn: false,\nwidth: '99%',\nheight:450 ,\nsingleSelect: true,\nrpOptions: [10, 20, 30, 50,100,200,500]\n\n});\n});\n\n</script>";
    echo $html;
    return;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:33,代码来源:squid.videocache.events-retreiver.php


注:本文中的templates::javascript_parse_text方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。