• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP help_icon函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中help_icon函数的典型用法代码示例。如果您正苦于以下问题:PHP help_icon函数的具体用法?PHP help_icon怎么用?PHP help_icon使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: popup

function popup()
{
    $hostname = $_GET["hostname"];
    $page = CurrentPageName();
    $users = new usersMenus();
    $tpl = new templates();
    $t = time();
    $main = new maincf_multi($_GET["hostname"], $_GET["ou"]);
    $detect_8bit_encoding_header = $main->GET("detect_8bit_encoding_header");
    $disable_mime_input_processing = $main->GET("disable_mime_input_processing");
    $disable_mime_output_conversion = $main->GET("disable_mime_output_conversion");
    $mime_nesting_limit = $main->GET("mime_nesting_limit");
    if (!is_numeric($detect_8bit_encoding_header)) {
        $detect_8bit_encoding_header = 1;
    }
    if (!is_numeric($disable_mime_input_processing)) {
        $disable_mime_input_processing = 0;
    }
    if (!is_numeric($disable_mime_output_conversion)) {
        $disable_mime_output_conversion = 0;
    }
    if (!is_numeric($mime_nesting_limit)) {
        $mime_nesting_limit = 100;
    }
    $html = "\n\t<div id='{$t}'></div>\n\t\n\t<div style='width:98%' class=form>\n\t<table>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{detect_8bit_encoding_header}:</td>\n\t\t<td class=legend style='font-size:16px'>" . Field_checkbox("detect_8bit_encoding_header-{$t}", 1, $detect_8bit_encoding_header) . "</td>\n\t\t<td width=1%>" . help_icon("{detect_8bit_encoding_header_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{disable_mime_output_conversion}:</td>\n\t\t<td class=legend style='font-size:16px'>" . Field_checkbox("disable_mime_output_conversion-{$t}", 1, $disable_mime_output_conversion) . "</td>\n\t\t<td width=1%>" . help_icon("{disable_mime_output_conversion_text}") . "</td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{disable_mime_input_processing}:</td>\n\t\t<td class=legend style='font-size:16px'>" . Field_checkbox("disable_mime_input_processing-{$t}", 1, $disable_mime_input_processing) . "</td>\n\t\t<td width=1%>" . help_icon("{disable_mime_input_processing_text}") . "</td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td nowrap class=legend style='font-size:16px'>{mime_nesting_limit}</strong>:</td>\n\t\t<td>" . Field_text("mime_nesting_limit-{$t}", $mime_nesting_limit, 'width:70px;font-size:16px;padding:3px;text-align:right') . " </td>\n\t\t<td>" . help_icon('{mime_nesting_limit_text}') . "</td>\n\t</tr>\t\t\t\t\n\t<tr>\n\t\t<td align='right' colspan=2><hr>" . button("{apply}", "Save{$t}()", "18px") . "</td>\n\t</tr>\n\t</table>\n\t</div>\n\t<script>\n\t\n\tvar X_Save{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>0){alert(results);}\n\t\tdocument.getElementById('{$t}').innerHTML='';\n\t\t}\t\t\n\t\n\tfunction Save{$t}(){\n\t\tdetect_8bit_encoding_header=0;\n\t\tdisable_mime_output_conversion=0;\n\t\tdisable_mime_input_processing=0;\n\t\t\n\t\tif(document.getElementById('detect_8bit_encoding_header-{$t}').checked){detect_8bit_encoding_header=1;}\n\t\tif(document.getElementById('disable_mime_output_conversion-{$t}').checked){disable_mime_output_conversion=1;}\n\t\tif(document.getElementById('disable_mime_input_processing-{$t}').checked){disable_mime_input_processing=1;}\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('hostname','{$hostname}');\n\t\tXHR.appendData('ou','{$_GET["ou"]}');\n\t\tXHR.appendData('detect_8bit_encoding_header',detect_8bit_encoding_header);\n\t\tXHR.appendData('disable_mime_output_conversion',disable_mime_output_conversion);\n\t\tXHR.appendData('disable_mime_input_processing',disable_mime_input_processing);\n\t\tXHR.appendData('mime_nesting_limit',document.getElementById('mime_nesting_limit-{$t}').value);\n\t\tAnimateDiv('{$t}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',X_Save{$t});\n\t}\n\t\n\t\n\t\n\t</script>\t\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:27,代码来源:postfix.mime.php


示例2: popup_new_free

function popup_new_free()
{
    $tpl = new templates();
    $t = $_GET["t"];
    $html = "\n\t<div id='div{$t}{$t}'>\n\t<table style='width:99%' class=form>\n\t\t<tr>\n\t\t\t<td class=legend style='font-size:14px'>{pattern}:</td>\n\t\t\t<td>" . Field_text("FREE_FIELD-{$t}", null, "font-size:14px;padding:3px", null, null, null, false, "SquidnetaddSingleCheck{$t}(event)") . "</td>\n\t\t\t<td width=1%>" . help_icon("{SQUID_NETWORK_HELP}") . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=3 align='right'><hr>" . button("{add}", "SquidnetaddSingle{$t}()", 16) . "\n\t\t</tr>\n\t</table>\t\n\t<script>\n\t\tfunction SquidnetaddSingleCheck{$t}(e){\n\t\t\tif(checkEnter(e)){SquidnetaddSingle{$t}();}\n\t\t}\n\t\t\n\t\tfunction SquidnetaddSingle{$t}(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('add-ip-single',document.getElementById('FREE_FIELD-{$t}').value);\n\t\t\tAnimateDiv('div{$t}{$t}');\n\t\t\tXHR.sendAndLoad('squid.popups.php', 'GET',x_netadd{$t});\t\n\t\t}\n\t</script>\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:squid.network.php


示例3: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $Param = unserialize(base64_decode($sock->GET_INFO("MimeDefangServiceOptions")));
    $t = time();
    if (!is_numeric($Param["DEBUG"])) {
        $Param["DEBUG"] = 0;
    }
    if (!is_numeric($Param["MX_REQUESTS"])) {
        $Param["MX_REQUESTS"] = 200;
    }
    if (!is_numeric($Param["MX_MINIMUM"])) {
        $Param["MX_MINIMUM"] = 2;
    }
    if (!is_numeric($Param["MX_MAXIMUM"])) {
        $Param["MX_MAXIMUM"] = 10;
    }
    if (!is_numeric($Param["MX_MAX_RSS"])) {
        $Param["MX_MAX_RSS"] = 30000;
    }
    if (!is_numeric($Param["MX_MAX_AS"])) {
        $Param["MX_MAX_AS"] = 90000;
    }
    if (!is_numeric($Param["MX_TMPFS"])) {
        $Param["MX_TMPFS"] = 0;
    }
    $html = "\n\t<div id='{$t}-adddis'></div>\n\t<table style='width:100%' class=form>\n\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{debug}:</td>\n\t\t<td>" . Field_checkbox("DEBUG-{$t}", 1, $Param["DEBUG"]) . "</td>\n\t\t<td>&nbsp;</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{workingdir_in_memory}:</td>\n\t\t<td style='font-size:16px'>" . Field_text("MX_TMPFS-{$t}", $Param["MX_TMPFS"], "font-size:16px;width:90px") . "&nbsp;M</td>\n\t\t<td>" . help_icon("{workingdir_in_memory_text}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{max_requests}:</td>\n\t\t<td>" . Field_text("MX_REQUESTS-{$t}", $Param["MX_REQUESTS"], "font-size:16px;width:90px") . "</td>\n\t\t<td>" . help_icon("{MX_REQUESTS_TEXT}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{MX_MINIMUM}:</td>\n\t\t<td>" . Field_text("MX_MINIMUM-{$t}", $Param["MX_MINIMUM"], "font-size:16px;width:90px") . "</td>\n\t\t<td>" . help_icon("{MX_MINIMUM_TEXT}") . "</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{MX_MAXIMUM}:</td>\n\t\t<td>" . Field_text("MX_MAXIMUM-{$t}", $Param["MX_MAXIMUM"], "font-size:16px;width:90px") . "</td>\n\t\t<td>" . help_icon("{MX_MAXIMUM_TEXT}") . "</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{MX_MAX_RSS}:</td>\n\t\t<td style='font-size:16px'>" . Field_text("MX_MAX_RSS-{$t}", $Param["MX_MAX_RSS"], "font-size:16px;width:110px") . "&nbsp;KB</td>\n\t\t<td>" . help_icon("{MX_MAX_RSS_TEXT}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{MX_MAX_AS}:</td>\n\t\t<td style='font-size:16px'>" . Field_text("MX_MAX_AS-{$t}", $Param["MX_MAX_AS"], "font-size:16px;width:110px") . "&nbsp;KB</td>\n\t\t<td>" . help_icon("{MX_MAX_AS_TEXT}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=3 align='right'><hr>" . button("{apply}", "SaveMimeService{$t}()", "18px") . "</td>\n\t</tr>\t\n\t</table>\n\n\t<script>\n\t\tvar x_SaveMimeService{$t}= function (obj) {\n\t\t\tvar tempvalue=obj.responseText;\n\t\t\tif(tempvalue.length>3){alert(tempvalue)};\n\t\t\tdocument.getElementById('{$t}-adddis').innerHTML='';\n\t\t\tYahooWin2Hide();\n\t\t}\t\t\n\t\n\t\tfunction SaveMimeService{$t}(){\n\t\tvar XHR = new XHRConnection();  \n\t\t  var DEBUG=0;\n\t\t  if(document.getElementById('DEBUG-{$t}').checked){DEBUG=1;}\n\t      XHR.appendData('MX_MAX_AS',document.getElementById('MX_MAX_AS-{$t}').value);\n\t      XHR.appendData('MX_MAX_RSS',document.getElementById('MX_MAX_RSS-{$t}').value);\n\t      XHR.appendData('MX_MAXIMUM',document.getElementById('MX_MAXIMUM-{$t}').value);\n\t      XHR.appendData('MX_MINIMUM',document.getElementById('MX_MINIMUM-{$t}').value);\n\t      XHR.appendData('MX_REQUESTS',document.getElementById('MX_REQUESTS-{$t}').value);\n\t      XHR.appendData('MX_TMPFS',document.getElementById('MX_TMPFS-{$t}').value);\n\t      XHR.appendData('DEBUG',DEBUG);\n\t      \n\t      \n\t\t  AnimateDiv('{$t}-adddis');\n\t\t  XHR.sendAndLoad('{$page}', 'POST',x_SaveMimeService{$t});\n\t\t}\n\t</script>\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:31,代码来源:mimedefang.service.php


示例4: popup

function popup()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $sock = new sockets();
    $squid = new squidbee();
    $RedirectorsArray = unserialize(base64_decode($sock->GET_INFO("SquidRedirectorsOptions")));
    if (!is_numeric($RedirectorsArray["url_rewrite_children"])) {
        $RedirectorsArray["url_rewrite_children"] = 20;
    }
    if (!is_numeric($RedirectorsArray["url_rewrite_startup"])) {
        $RedirectorsArray["url_rewrite_startup"] = 5;
    }
    if (!is_numeric($RedirectorsArray["url_rewrite_idle"])) {
        $RedirectorsArray["url_rewrite_idle"] = 1;
    }
    if (!is_numeric($RedirectorsArray["url_rewrite_concurrency"])) {
        $RedirectorsArray["url_rewrite_concurrency"] = 0;
    }
    $t = time();
    $enable_UfdbGuard = 0;
    if ($squid->enable_UfdbGuard == 1) {
        $enable_UfdbGuard = 1;
    }
    $html = "\n\t<div class=explain style='font-size:18px'>{squid_redirectors_howto}</div>\n\t<div id='{$t}' style='width:98%' class=form>\n\t<table style='width:100%' >\n\t<tbody>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{url_rewrite_children}:</td>\n\t\t<td>" . Field_text("url_rewrite_children", $RedirectorsArray["url_rewrite_children"], "font-size:22px;width:60px") . "</td>\n\t\t<td width=1%>" . help_icon("{url_rewrite_children_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{url_rewrite_startup}:</td>\n\t\t<td>" . Field_text("url_rewrite_startup", $RedirectorsArray["url_rewrite_startup"], "font-size:22px;width:110px") . "</td>\n\t\t<td width=1%>" . help_icon("{url_rewrite_startup_text}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{url_rewrite_idle}:</td>\n\t\t<td>" . Field_text("url_rewrite_idle", $RedirectorsArray["url_rewrite_idle"], "font-size:22px;width:110px") . "</td>\n\t\t<td width=1%>" . help_icon("{url_rewrite_idle_text}") . "</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:22px'>{url_rewrite_concurrency}:</td>\n\t\t<td>" . Field_text("url_rewrite_concurrency", $RedirectorsArray["url_rewrite_concurrency"], "font-size:22px;width:110px") . "</td>\n\t\t<td width=1%>" . help_icon("{url_rewrite_concurrency_text}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=3 align='right'><hr>" . button("{apply}", "UrlReWriteSave()", 32) . "</td>\n\t</tr>\n\t\n\t</table>\n\t</div>\n\t<script>\n\tvar x_UrlReWriteSave= function (obj) {\n\t\tvar tempvalue=obj.responseText;\n\t\tif(tempvalue.length>3){alert(tempvalue)};\n\t\tRefreshTab('main_config_redirectors');\n\t\t\n\t}\t\t\n\n\tfunction UrlReWriteSave(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('url_rewrite_children',document.getElementById('url_rewrite_children').value);\n\t\tXHR.appendData('url_rewrite_startup',document.getElementById('url_rewrite_startup').value);\n\t\tXHR.appendData('url_rewrite_idle',document.getElementById('url_rewrite_idle').value);\n\t\tXHR.appendData('url_rewrite_concurrency',document.getElementById('url_rewrite_concurrency').value);\n\t\tAnimateDiv('{$t}');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_UrlReWriteSave);\t\t\n\t\t}\n\t\t\n\tfunction CheckConcurrency(){\n\t\tvar enable_UfdbGuard={$enable_UfdbGuard};\n\t\tif(enable_UfdbGuard==1){\n\t\t\tdocument.getElementById('url_rewrite_concurrency').value=0;\n\t\t\tdocument.getElementById('url_rewrite_concurrency').disabled=true;\n\t\t}\n\t\n\t}\n\t\n\tCheckConcurrency();\n\t</script>\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:27,代码来源:squid.redirectors.php


示例5: page

function page()
{
    $t = time();
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $SquidSimpleConfig = $sock->GET_INFO("SquidSimpleConfig");
    if (!is_numeric($SquidSimpleConfig)) {
        $SquidSimpleConfig = 1;
    }
    $meminfo = unserialize(base64_decode($sock->getFrameWork("system.php?meminfo=yes")));
    $kernel_shmmax = $sock->getFrameWork("cmd.php?sysctl-value=yes&key=" . base64_encode("kernel.shmmax"));
    $MEMTOTAL = intval($meminfo["MEMTOTAL"]);
    $squid = new squidbee();
    $cache_mem = $squid->global_conf_array["cache_mem"];
    if (preg_match("#([0-9]+)\\s+#", $cache_mem, $re)) {
        $cache_mem = $re[1];
    }
    $SquidMemoryPools = intval($sock->GET_INFO("SquidMemoryPools"));
    $memory_pools_limit_suffix = null;
    $SquidMemoryPoolsLimit = intval($sock->GET_INFO("SquidMemoryPoolsLimit"));
    $FF = 1500;
    $FF = $FF * 1024;
    $FF = $FF * 1024;
    $proposal = $meminfo["MEMTOTAL"] - $FF;
    $proposal = $proposal / 2;
    $proposal = $proposal / 1024;
    $proposal = round($proposal / 1024);
    $html = "\n\t\n\t<div class=explain style='font-size:16px'>{squid_cache_memory_explain}</div>\n\t<div style='margin:10px;padding:10px;width:98%' class=form>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td colspan=3 style='font-size:32px;margin-bottom:20px'>{central_memory}</div>\n\t\t\t<div class=explain style='font-size:18px'>{cache_mem_explain2}</div>\n\t\t</td>\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:26px'>{central_memory}:</td>\n\t\t<td style='font-size:26px'>" . Field_text("cache_mem-{$t}", $cache_mem, "font-size:26px;width:150px;font-weight:bold") . "&nbsp;MB</td>\n\t\t<td style='font-size:26px' width=1% nowrap>" . help_icon('{cache_mem_text}', true) . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:26px'>{current}:</td>\n\t\t<td style='font-size:26px'><span id='squid-cache-mem-current' style='font-size:26px;font-weight:bold'></span></td>\n\t\t<td style='font-size:26px' width=1% nowrap>&nbsp;</td>\n\t</tr>\t\t\t\t\t\n\t<tr>\n\t<td colspan=3 style='font-size:20px;margin-bottom:20px;color:#8E8E8E;text-align:right'>{server_memory}: " . FormatBytes($meminfo["MEMTOTAL"] / 1024) . " ({proposal}: {$proposal}MB)</div>\n\t</table>\n\t</div>\t\t\n\t<div style='margin:10px;padding:10px;width:98%' class=form>\t\n\t<table style='width:100%'>\n\n\t<tr>\n\t\t<td style='font-size:26px' class=legend>{memory_pools}:</td>\n\t\t<td align='left' style='font-size:26px'>" . Field_checkbox_design("SquidMemoryPools-{$t}", 1, $SquidMemoryPools, "SquidMemoryPools{$t}()") . "</td>\n\t\t<td width=1%>" . help_icon('{memory_pools_explain}', true) . "</td>\n\t</tr>\n\t<tr>\n\t\t<td style='font-size:26px' class=legend>{memory_pools_limit}:</td>\n\t\t<td align='left' style='font-size:26px'>" . Field_text("SquidMemoryPoolsLimit-{$t}", $SquidMemoryPoolsLimit, "font-size:26px;width:150px") . "&nbsp;MB</td>\n\t\t<td width=1%>" . help_icon('{memory_pools_limit_explain}', true) . "</td>\n\t</tr>\t\t\t\t\t\t\t\t\t\n</tr>\t\n\t<tr><td colspan=3 style='text-align:right;pdding-top:50px'><hr>" . button("{apply}", "Save{$t}()", 36) . "</td>\n\t</tr>\n</table>\t\n<script>\nvar xSave{$t}= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>3){alert(results);}\n\tLoadjs('squid.compile.progress.php?ask=yes');\n}\n\t\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('cache_mem',document.getElementById('cache_mem-{$t}').value);\n\t\n\tif(document.getElementById('SquidMemoryPools-{$t}').checked){XHR.appendData('SquidMemoryPools',1);}else{\n\tXHR.appendData('SquidMemoryPools',0);}\n\tXHR.appendData('SquidMemoryPoolsLimit',document.getElementById('SquidMemoryPoolsLimit-{$t}').value);\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\n\t\nfunction SquidMemoryPools{$t}(){\n\tvar SquidSimpleConfig={$SquidSimpleConfig};\n\tif(SquidSimpleConfig==1){\n\t\tdocument.getElementById('SquidMemoryPools-{$t}').disabled=true;\n\t\tdocument.getElementById('SquidMemoryPoolsLimit-{$t}').disabled=true;\n\t\treturn;\n\t}\n\n\tdocument.getElementById('SquidMemoryPoolsLimit-{$t}').disabled=true;\n\tif(document.getElementById('SquidMemoryPools-{$t}').checked){\n\t\tdocument.getElementById('SquidMemoryPoolsLimit-{$t}').disabled=false;\n\t}\n\t\n\tLoadAjax('squid-cache-mem-current','{$page}?squid-cache-mem-current=yes');\n\t\n}\nSquidMemoryPools{$t}();\n</script>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:31,代码来源:squid.memory.php


示例6: page

function page()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $freeweb = new freeweb($_GET["servername"]);
    if (!is_numeric($freeweb->Params["MOD_FCGID"]["enabled"])) {
        $freeweb->Params["MOD_FCGID"]["enabled"] = 0;
    }
    if (!is_numeric($freeweb->Params["MOD_FCGID"]["PHP_FCGI_MAX_REQUESTS"])) {
        $freeweb->Params["MOD_FCGID"]["PHP_FCGI_MAX_REQUESTS"] = 5000;
    }
    if (!is_numeric($freeweb->Params["MOD_FCGID"]["PHP_FCGI_CHILDREN"])) {
        $freeweb->Params["MOD_FCGID"]["PHP_FCGI_CHILDREN"] = 8;
    }
    if (!is_numeric($freeweb->Params["MOD_FCGID"]["FcgidBusyTimeout"])) {
        $freeweb->Params["MOD_FCGID"]["FcgidBusyTimeout"] = 300;
    }
    if (!is_numeric($freeweb->Params["MOD_FCGID"]["FcgidIdleTimeout"])) {
        $freeweb->Params["MOD_FCGID"]["FcgidIdleTimeout"] = 300;
    }
    if (!is_numeric($freeweb->Params["MOD_FCGID"]["FcgidMaxRequestInMem"])) {
        $freeweb->Params["MOD_FCGID"]["FcgidMaxRequestInMem"] = 65536;
    }
    if (!is_numeric($freeweb->Params["MOD_FCGID"]["FcgidMaxProcessesPerClass"])) {
        $freeweb->Params["MOD_FCGID"]["FcgidMaxProcessesPerClass"] = 100;
    }
    if (!is_numeric($freeweb->Params["MOD_FCGID"]["FcgidMaxRequestLen"])) {
        $freeweb->Params["MOD_FCGID"]["FcgidMaxRequestLen"] = 131072;
    }
    if (!is_numeric($freeweb->Params["MOD_FCGID"]["FcgidOutputBufferSize"])) {
        $freeweb->Params["MOD_FCGID"]["FcgidOutputBufferSize"] = 65536;
    }
    $html = "\n\t<div id='mod_fcgi_div'>\n\t<div class=explain>{apache_mod_fcgid_explain}</div>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend>{enable}:<td>\n\t\t<td>" . Field_checkbox("Modfcgid_enabled", 1, $freeweb->Params["MOD_FCGID"]["enabled"], "MOD_FCGIDEnableCheck()") . "</td>\n\t\t<td>&nbsp;</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{php_values}:<td>\n\t\t<td><a href=\"javascript:blur();\" OnClick=\"javascript:Loadjs('freeweb.edit.fcgid.php.php?servername={$_GET["servername"]}');\"\n\t\tstyle='font-size:13px;font-weight:bold;text-decoration:underline'>{apply}</a>\n\t\t</td>\n\t\t<td>&nbsp;</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend>{PHP_FCGI_MAX_REQUESTS}:<td>\n\t\t<td>" . Field_text("PHP_FCGI_MAX_REQUESTS", $freeweb->Params["MOD_FCGID"]["PHP_FCGI_MAX_REQUESTS"], "font-size:13px;padding:3px;width:90px") . "&nbsp;</td>\n\t\t<td>&nbsp;</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend>{PHP_FCGI_CHILDREN}:<td>\n\t\t<td>" . Field_text("PHP_FCGI_CHILDREN", $freeweb->Params["MOD_FCGID"]["PHP_FCGI_CHILDREN"], "font-size:13px;padding:3px;width:90px") . "&nbsp;</td>\n\t\t<td>&nbsp;</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{FcgidMaxProcessesPerClass}:<td>\n\t\t<td>" . Field_text("FcgidMaxProcessesPerClass", $freeweb->Params["MOD_FCGID"]["FcgidMaxProcessesPerClass"], "font-size:13px;padding:3px;width:90px") . "&nbsp;</td>\n\t\t<td>" . help_icon("{FcgidMaxProcessesPerClass_explain}") . "</td>\n\t</tr>\n\t\n\t<tr>\n\t\t<td class=legend>{FcgidBusyTimeout}:<td>\n\t\t<td>" . Field_text("FcgidBusyTimeout", $freeweb->Params["MOD_FCGID"]["FcgidBusyTimeout"], "font-size:13px;padding:3px;width:90px") . "&nbsp;{seconds}</td>\n\t\t<td>" . help_icon("{FcgidBusyTimeout_explain}") . "</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td class=legend>{FcgidIdleTimeout}:<td>\n\t\t<td>" . Field_text("FcgidIdleTimeout", $freeweb->Params["MOD_FCGID"]["FcgidIdleTimeout"], "font-size:13px;padding:3px;width:90px") . "&nbsp;{seconds}</td>\n\t\t<td>" . help_icon("{FcgidIdleTimeout_explain}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{FcgidMaxRequestInMem}:<td>\n\t\t<td>" . Field_text("FcgidMaxRequestInMem", $freeweb->Params["MOD_FCGID"]["FcgidMaxRequestInMem"], "font-size:13px;padding:3px;width:90px") . "&nbsp;bytes</td>\n\t\t<td>" . help_icon("{FcgidMaxRequestInMem_explain}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend>{FcgidMaxRequestLen}:<td>\n\t\t<td>" . Field_text("FcgidMaxRequestLen", $freeweb->Params["MOD_FCGID"]["FcgidMaxRequestLen"], "font-size:13px;padding:3px;width:90px") . "&nbsp;bytes</td>\n\t\t<td>" . help_icon("{FcgidMaxRequestLen_explain}") . "</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td class=legend>{FcgidOutputBufferSize}:<td>\n\t\t<td>" . Field_text("FcgidOutputBufferSize", $freeweb->Params["MOD_FCGID"]["FcgidOutputBufferSize"], "font-size:13px;padding:3px;width:90px") . "&nbsp;bytes</td>\n\t\t<td>" . help_icon("{FcgidOutputBufferSize_explain}") . "</td>\n\t</tr>\t\n\t\n\t\n\t<tr>\n\t\t<td colspan=3 align='right'><hr>" . button("{apply}", "SaveModFCGID()") . "</td>\n\t</tr>\n\t</tbody>\n\t</table>\t\n\t</div>\n\n\t\n\t\n\t\n\t<script>\n\t\tvar x_SaveModFCGID=function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>0){alert(results);}\t\n\t\t\tRefreshTab('main_config_freewebedit');\t\n\t\t}\t\t\n\t\n\t\tfunction SaveModFCGID(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tif(document.getElementById('Modfcgid_enabled').checked){XHR.appendData('enabled',1);}else{XHR.appendData('enabled',0);}\t\t\n\t\t\tXHR.appendData('PHP_FCGI_MAX_REQUESTS',document.getElementById('PHP_FCGI_MAX_REQUESTS').value);\n\t\t\tXHR.appendData('PHP_FCGI_CHILDREN',document.getElementById('PHP_FCGI_CHILDREN').value);\n\t\t\tXHR.appendData('FcgidMaxProcessesPerClass',document.getElementById('FcgidMaxProcessesPerClass').value);\n\t\t\tXHR.appendData('FcgidBusyTimeout',document.getElementById('FcgidBusyTimeout').value);\n\t\t\t\n\t\t\tXHR.appendData('FcgidBusyTimeout',document.getElementById('FcgidBusyTimeout').value);\n\t\t\tXHR.appendData('FcgidIdleTimeout',document.getElementById('FcgidIdleTimeout').value);\n\t\t\tXHR.appendData('FcgidMaxRequestInMem',document.getElementById('FcgidMaxRequestInMem').value);\n\t\t\tXHR.appendData('FcgidMaxRequestLen',document.getElementById('FcgidMaxRequestLen').value);\n\t\t\tXHR.appendData('FcgidOutputBufferSize',document.getElementById('FcgidOutputBufferSize').value);\n\t\t\t\n\t\t\tXHR.appendData('servername','{$_GET["servername"]}');\n\t\t\tAnimateDiv('mod_fcgi_div');\n    \t\tXHR.sendAndLoad('{$page}', 'POST',x_SaveModFCGID);\n\t\t}\t\n\t\t\n\t\tfunction MOD_FCGIDEnableCheck(){\n\t\t\tdocument.getElementById('PHP_FCGI_MAX_REQUESTS').disabled=true;\n\t\t\tdocument.getElementById('PHP_FCGI_CHILDREN').disabled=true;\n\t\t\tdocument.getElementById('FcgidMaxProcessesPerClass').disabled=true;\n\t\t\tdocument.getElementById('FcgidBusyTimeout').disabled=true;\n\t\t\tdocument.getElementById('FcgidIdleTimeout').disabled=true;\n\t\t\tdocument.getElementById('FcgidMaxRequestInMem').disabled=true;\n\t\t\tdocument.getElementById('FcgidMaxRequestLen').disabled=true;\n\t\t\tdocument.getElementById('FcgidOutputBufferSize').disabled=true;\n\t\t\t\n\t\t\tif(document.getElementById('Modfcgid_enabled').checked){\n\t\t\t\tdocument.getElementById('PHP_FCGI_MAX_REQUESTS').disabled=false;\n\t\t\t\tdocument.getElementById('PHP_FCGI_CHILDREN').disabled=false;\n\t\t\t\tdocument.getElementById('FcgidMaxProcessesPerClass').disabled=false;\n\t\t\t\tdocument.getElementById('FcgidBusyTimeout').disabled=false;\n\t\t\t\tdocument.getElementById('FcgidIdleTimeout').disabled=false;\n\t\t\t\tdocument.getElementById('FcgidMaxRequestInMem').disabled=false;\n\t\t\t\tdocument.getElementById('FcgidMaxRequestLen').disabled=false;\n\t\t\t\tdocument.getElementById('FcgidOutputBufferSize').disabled=false;\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\tMOD_FCGIDEnableCheck();\n\t\n\t</script>\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:35,代码来源:freeweb.edit.fcgid.php


示例7: popup

function popup()
{
    $smb = new samba();
    $html = "\n\t<div class=explain>{ACLS_SUPPORT_EXPLAIN}</div>\n\t<hr>\n\t<div id='aclgeneral'>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend style='font-size:12px'>{nt_acl_support}</td>\n\t\t<td>" . Field_checkbox("nt acl support", "yes", $smb->main_array["global"]["nt acl support"]) . "</td>\n\t\t<td>" . help_icon("{nt_acl_support_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:12px'>{acl_group_control}</td>\n\t\t<td>" . Field_checkbox("acl group control", "yes", $smb->main_array["global"]["acl group control"]) . "</td>\n\t\t<td>" . help_icon("{acl_group_control_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:12px'>{dos_filemode}</td>\n\t\t<td>" . Field_checkbox("dos filemode", "yes", $smb->main_array["global"]["dos filemode"]) . "</td>\n\t\t<td>" . help_icon("{dos_filemode_text}") . "</td>\n\t</tr>\t\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:12px'>{map_acl_inherit}</td>\n\t\t<td>" . Field_checkbox("map acl inherit", "yes", $smb->main_array["global"]["map acl inherit"]) . "</td>\n\t\t<td>" . help_icon("{map_acl_inherit_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:12px'>{acl_check_permissions}</td>\n\t\t<td>" . Field_checkbox("acl check permissions", "yes", $smb->main_array["global"]["acl check permissions"]) . "</td>\n\t\t<td>" . help_icon("{acl_check_permissions_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:12px'>{inherit_acls}</td>\n\t\t<td>" . Field_checkbox("inherit acls", "yes", $smb->main_array["global"]["inherit acls"]) . "</td>\n\t\t<td>" . help_icon("{inherit_acls_text}") . "</td>\n\t</tr>\t\n\n\t<tr>\n\t\t<td class=legend style='font-size:12px'>{inherit_permissions}</td>\n\t\t<td>" . Field_checkbox("inherit permissions", "yes", $smb->main_array["global"]["inherit permissions"]) . "</td>\n\t\t<td>" . help_icon("{inherit_permissions_text}") . "</td>\n\t</tr>\n\t\n\t<tr>\n\t\t<td colspan=3 align='right'>\n\t\t<hr>\n\t\t\t" . button("{apply}", "acls_global_save()") . "\n\t\t</td>\n\t</tr>\n\t</table>\n\t</div>\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:samba.acls.settings.php


示例8: popup

function popup()
{
    $squid = new squidbee();
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $WCCP = 1;
    $arrayParams = unserialize(base64_decode($sock->getFrameWork("squid.php?compile-list=yes")));
    $t = time();
    $ip = new networking();
    $ipsH = $ip->ALL_IPS_GET_ARRAY();
    $SquidWCCPEnabled = $sock->GET_INFO("SquidWCCPEnabled");
    if (!is_numeric($SquidWCCPEnabled)) {
        $SquidWCCPEnabled = 0;
    }
    if (!isset($arrayParams["--enable-wccpv2"])) {
        $WCCP = 0;
    }
    $WCCPHash = unserialize(base64_decode($sock->GET_INFO("WCCPHash")));
    $wccp2_forwarding_method_hash = array(1 => "{wccp2_forwarding_method_hash_1}", 2 => "{wccp2_forwarding_method_hash_2}");
    $wccp2_return_method_hash = array("gre" => "GRE encapsulation");
    $wccp2_assignment_method_hash = array("hash" => "Hash assignment", "mask" => "Mask assignment");
    $html = "\n<div style='font-size:22px'>{WCCP_NAME}</div>\n<div class=explain style='font-size:14px'>{WCCP_HOWTO}</div>\n<div id='SquidAVParamWCCP' style='width:98%' class=form>\n<table style='width:100%'>\n\t<tr>\n\t<td style='font-size:16px;' class=legend>{wccp2_enabled}:</td>\n\t<td>" . Field_checkbox("wccp2_enabled", 1, $squid->wccp2_enabled, "wccp2_enabled()") . "</td>\n\t<td>&nbsp;</td>\n\t</tr>\n\n\n\t<tr>\n\t\t<td style='font-size:16px' class=legend nowrap>{wccp2_routers}:</td>\n\t\t<td>" . Field_text("wccp2_router", $WCCPHash["wccp2_router"], "font-size:16px;padding:3px;width:320px") . "</td>\n\t\t<td>" . help_icon("{wccp2_routers_explain}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td style='font-size:16px' class=legend nowrap>{listen_address}:</td>\n\t\t<td>" . Field_array_Hash($ipsH, "listen_address-{$t}", $WCCPHash["listen_address"], "style:font-size:16px") . "</td>\n\t\t<td></td>\n\t</tr>\n\t<tr>\n\t\t<td style='font-size:16px' class=legend nowrap>{wccp2_forwarding_method}:</td>\n\t\t<td>" . Field_array_Hash($wccp2_forwarding_method_hash, "wccp2_forwarding_method", $WCCPHash["wccp2_forwarding_method"], "style:font-size:16px") . "</td>\n\t\t<td>&nbsp;</td>\n\t</tr>\n\n\t<tr>\n\t\t<td style='font-size:16px' class=legend nowrap>{wccp2_return_method}:</td>\n\t\t<td>" . Field_array_Hash($wccp2_return_method_hash, "wccp2_return_method", $WCCPHash["wccp2_return_method"], "style:font-size:16px") . "</td>\n\t\t<td>&nbsp;</td>\n\t</tr>\n\t<tr>\n\t\t<td style='font-size:16px' class=legend nowrap>{wccp2_assignment_method}:</td>\n\t\t<td>" . Field_array_Hash($wccp2_assignment_method_hash, "wccp2_assignment_method", $WCCPHash["wccp2_assignment_method"], "style:font-size:16px") . "</td>\n\t\t<td>&nbsp;</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=3 align='right'>\n\t\t\t<hr>\n\t\t\t\t" . button("{apply}", "SquidWccp2ParamSave()", 18) . "\n\t\t</td>\n\t</tr>\n\t</table>\n</div>\n<script>\nvar X_SquidWccp2ParamSave= function (obj) {\n\tvar results=obj.responseText;\n\tif(results.length>3){alert(results);}\n\tLoadjs('squid.restart.php?prepare-js=yes');\n\t\n}\n\nfunction SquidWccp2ParamSave(){\n\tvar XHR = new XHRConnection();\n\tif(document.getElementById('wccp2_enabled').checked){\n\t\tXHR.appendData('wccp2_enabled',1);\n\t}else{\n\t\tXHR.appendData('wccp2_enabled',0);\n\t}\n\tXHR.appendData('wccp2_router',\n\tdocument.getElementById('wccp2_router').value);\n\n\tXHR.appendData('wccp2_forwarding_method',\n\tdocument.getElementById('wccp2_forwarding_method').value);\n\n\tXHR.appendData('wccp2_return_method',\n\tdocument.getElementById('wccp2_return_method').value);\n\n\tXHR.appendData('wccp2_assignment_method',\n\tdocument.getElementById('wccp2_assignment_method').value);\n\t\n\tXHR.appendData('listen_address',\n\tdocument.getElementById('listen_address-{$t}').value);\n\n\tXHR.sendAndLoad('{$page}', 'POST',X_SquidWccp2ParamSave);\n}\n\n\nfunction wccp2_disable_all(){\n\tdocument.getElementById('wccp2_forwarding_method').disabled=true;\n\tdocument.getElementById('wccp2_router').disabled=true;\n\tdocument.getElementById('wccp2_forwarding_method').disabled=true;\n\tdocument.getElementById('wccp2_return_method').disabled=true;\n\tdocument.getElementById('wccp2_assignment_method').disabled=true;\n\tdocument.getElementById('listen_address-{$t}').disabled=true;\n\t\n}\nfunction wccp2_enable_all(){\n\tdocument.getElementById('wccp2_forwarding_method').disabled=false;\n\tdocument.getElementById('wccp2_router').disabled=false;\n\tdocument.getElementById('wccp2_forwarding_method').disabled=false;\n\tdocument.getElementById('wccp2_return_method').disabled=false;\n\tdocument.getElementById('wccp2_assignment_method').disabled=false;\n\tdocument.getElementById('listen_address-{$t}').disabled=false;\n}\n\nfunction wccp2_enabled(){\n\twccp2_disable_all();\n\tvar wccp2={$WCCP};\n\tif(wccp2==0){\n\t\tdocument.getElementById('wccp2_enabled').disabled=true;\n\t\tdocument.getElementById('wccp2_enabled').checked=false;\n\t}\n\tif(document.getElementById('wccp2_enabled').checked){wccp2_enable_all();}\n}\n\nwccp2_enabled();\n</script>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:25,代码来源:squid.wccpv2.php


示例9: popup

function popup()
{
    $sock = new sockets();
    $EnableCyrusMasterCluster = $sock->GET_INFO("EnableCyrusMasterCluster");
    $CyrusClusterID = $sock->GET_INFO("CyrusClusterID");
    $EnableCyrusReplicaCluster = $sock->GET_INFO("EnableCyrusReplicaCluster");
    $CyrusClusterPort = $sock->GET_INFO("CyrusClusterPort");
    if ($CyrusClusterPort == null) {
        $CyrusClusterPort = 2005;
    }
    if ($CyrusClusterID == null) {
        $CyrusClusterID = 1;
    }
    if ($EnableCyrusReplicaCluster == 1) {
        echo popup_as_replica();
        exit;
    }
    if ($EnableCyrusMasterCluster) {
        $addreplica = Paragraphe("64-net-server-add.png", "{SET_REPLICA_SERVER}", "{SET_REPLICA_SERVER_TEXT}", "javascript:AddCyrusReplica()");
        $sync = Paragraphe("64-syncmbx.png", "{REPLICATE_YOUR_MAILBOXES}", "{REPLICATE_YOUR_MAILBOXES_TEXT}", "javascript:Loadjs('cyrus.sync.client.php')");
    }
    $rebuild = Buildicon64("DEF_ICO_CYR_REBUILD");
    $help_me = Paragraphe("wizard-mail-64.png", "{HELP_ME_RETRANSLATOR}", "{CYRUS_REPLICA_WIZARD_HELP}", "javascript:Loadjs('wizard.cyrus.cluster.php')");
    $enable = Paragraphe_switch_img('{ENABLE_CYRUS_CLUSTER_MASTER}', '{ENABLE_CYRUS_CLUSTER_MASTER_TEXT}', 'EnableCyrusMasterCluster', $EnableCyrusMasterCluster, "ENABLE_CYRUS_CLUSTER_MASTER_TEXT", 300);
    $form1 = "<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' class=legend>{listen_cluster_port}:</td>\n\t\t<td valign='top'>" . Field_text('CyrusClusterPort', $CyrusClusterPort, 'width:60px') . "</td>\n\t\t<td>&nbsp;</td>\n\t</tr>\n\t<tr>\n\t\t<td valign='top' class=legend>{uid}:</td>\n\t\t<td valign='top'>" . Field_text('CyrusClusterID', $CyrusClusterID, 'width:20px') . "</td>\n\t\t<td valign='top'>" . help_icon('{CyrusClusterID_TEXT}') . "</td>\n\t</tr>\t\n\t</table>";
    $form = "<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>{$enable}</td>\n\t</tr>\n\t<tr>\n\t<td valign='top'>{$form1}</td>\n\t</tr>\n\t<tr>\n\t\t<td valign='top' align='right'><hr>\n\t\t" . button("{edit}", "EnableCyrusMasterCluster()") . "\n\t\t\t\n\t\t</td>\n\t</tr>\n\t</table>\n\t\n\t";
    $html = "<H1>{CYRUS_CLUSTER}</H1>\n\t<div id='wizard_zone'>\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'><img src='img/128-cluster.png'></td>\n\t<td valign='top'>\n\t<p class=caption>{CYRUS_CLUSTER_EXPLAIN}</p>\n\t{$form}\n\t</td>\n\t<td valign='top'>{$addreplica}<br>{$rebuild}<br>{$sync}<br>{$help_me}</td>\n\t</tr>\n\t</table>\n\t</div>\n\t<br>\n\t\n\t\n\t\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
    //http://madole.net/pushmail/
}
开发者ID:brucewu16899,项目名称:artica,代码行数:31,代码来源:cyrus.clusters.php


示例10: main_settings

function main_settings()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $hostname = $_GET["hostname"];
    $smb = new samba_aliases($hostname);
    $html = "\n\t<div id='smboptions2div'>\n\t<div class=explain style='font-size:14px'>{smb_perf_explain}</div>\n\t<table style='width:99%' class=form>\n\t<tr>\t\n\t\t<td align='right' nowrap valign='top' class=legend style='font-size:14px'>{samba_strict_allocate}:</td>\n\t\t<td valign='top'>" . Field_checkbox('strict_allocate', 1, $smb->main_array["global"]["strict_allocate"]) . "</td>\n\t\t<td valign='top'>" . help_icon("{samba_strict_allocate_text}") . "</td>\n\t</tr>\n\t<tr>\t\n\t\t<td align='right' nowrap valign='top' class=legend style='font-size:14px'>{samba_strict_locking}:</td>\n\t\t<td valign='top'>" . Field_checkbox('strict_locking', 1, $smb->main_array["global"]["strict_locking"]) . "</td>\n\t\t<td valign='top'>" . help_icon("{samba_strict_locking_text}") . "</td>\n\t</tr>\n\t<tr>\t\n\t\t<td align='right' nowrap valign='top' class=legend style='font-size:14px'>{samba_sync_always}:</td>\n\t\t<td valign='top'>" . Field_checkbox('sync_always', 1, $smb->main_array["global"]["sync_always"]) . "</td>\n\t\t<td valign='top'>" . help_icon("{samba_sync_always_text}") . "</td>\n\t</tr>\t\n\t<tr>\t\n\t\t<td align='right' nowrap valign='top' class=legend style='font-size:14px'>{samba_getwd_cache}:</td>\n\t\t<td valign='top'>" . Field_checkbox('getwd_cache', 1, $smb->main_array["global"]["getwd_cache"]) . "</td>\n\t\t<td valign='top'>" . help_icon("{samba_getwd_cache_text}") . "</td>\n\t</tr>\t\n\t\n\t<tr>\t\n\t\t<td align='right' nowrap valign='top' class=legend style='font-size:14px'>{smb2_protocol}:</td>\n\t\t<td valign='top'>" . Field_checkbox('smb2_protocol', '1', $smb->main_array["global"]["smb2_protocol"]) . "</td>\n\t\t<td valign='top'>" . help_icon("{smb2_protocol_text}") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=3 align=right><hr>" . button("{apply}", "SaveSambaOptions2()", "16px") . "</td>\n\t</tr>\n\t</table>\n\t</div>\n\t<script>\n\t\n\tfunction CheckSMBOPT2Form(){\n\t\tvar smbver='{$smb->SAMBA_VERSION}';\n\t\tvar upTo357={$smb->upTo357};\n\t\tvar upTo36={$smb->upTo36};\n\t\tdocument.getElementById('smb2_protocol').disabled=true;\n\t\t\n\t\tdocument.getElementById('strict_allocate').disabled=true;\n\t\tif(upTo357==1){document.getElementById('strict_allocate').disabled=false;}\n\t\tif(upTo36==1){\n\t\t\tdocument.getElementById('smb2_protocol').disabled=false;\n\t\t}\t\n\t\n\t}\n\t\n\t\tvar x_SaveSambaOptions2=function (obj) {\n\t\t    var hostname='{$hostname}';\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>2){alert(results);}\t\t\t\n\t\t\tRefreshTab('main_config_smboptions');\n\t\t}\t\n\t\n\tfunction SaveSambaOptions2(){\n\t\tvar upTo357={$smb->upTo357};\n\t\tvar upTo36={$smb->upTo36};\t\n\t\tif(upTo36==0){document.getElementById('smb2_protocol').checked=false;}\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('hostname','{$hostname}');\n\t\tif(document.getElementById('strict_allocate').checked){XHR.appendData('strict_allocate','1');}else{XHR.appendData('strict_allocate','no');}\n\t\tif(document.getElementById('strict_locking').checked){XHR.appendData('strict_locking','1');}else{XHR.appendData('strict_locking','no');}\n\t\tif(document.getElementById('sync_always').checked){XHR.appendData('sync_always','1');}else{XHR.appendData('sync_always','no');}\n\t\tif(document.getElementById('getwd_cache').checked){XHR.appendData('getwd_cache','1');}else{XHR.appendData('getwd_cache','no');}\n\t\tif(document.getElementById('smb2_protocol').checked){XHR.appendData('smb2_protocol','1');}else{XHR.appendData('smb2_protocol','no');}\n\t\tAnimateDiv('smboptions2div');\n\t\tXHR.sendAndLoad('{$page}', 'POST',x_SaveSambaOptions2);\n\t\n\t}\n\t\n\tCheckSMBOPT2Form();\n</script>\t\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:9,代码来源:samba.options.php


示例11: roundcube_form1

function roundcube_form1($ou)
{
    $ldap = new clladp();
    $roundcube = new roundcube();
    $html = "<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend>{roundcubeservername}:</td>\n\t\t<td>" . Field_text('roundcubeservername', $roundcube->roundcubeWebsites[$ou]["servername"], 'width:99%') . "</td>\n\t\t<td>" . help_icon('{joomlaservername_help}', false, "domains.joomla.php") . "</td>\n\t</tr>\t\t\n\t<tr><td colspan=3><hr></tr>\n\t<tr><td colspan=3 align='right'><input type='button' value='{apply}&nbsp;&raquo;' OnClick=\"javascript:SaveRoundcubeForm();\"></td></tr>\n\t</table>";
    $html = RoundedLightWhite($html);
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html, "domains.joomla.php");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:9,代码来源:domains.roundcube.php


示例12: page

function page()
{
    $cf = new dnsmasq();
    $page = CurrentPageName();
    $tpl = new templates();
    $time = time();
    $html = "\n<div style='font-size:16px'>{others_options}</div>\n<form name='fmm1'>\n<input type='hidden' name='othersoptions' value='yes'>\n<center>\n\t<table style='width:99%' class=form>\n\t<tr>\n\t\t<td class=legend>{localmx}:</td>\n\t\t<td width=1%>" . Field_key_checkbox_img('localmx', $cf->main_array["localmx"], '{enable_disable}') . "</td>\n\t\t<td width=1%>" . help_icon("{localmx_text}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{selfmx}:</td>\n\t\t<td width=1% >" . Field_key_checkbox_img('selfmx', $cf->main_array["selfmx"], '{enable_disable}') . "</td>\n\t\t<td width 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP help_link函数代码示例发布时间:2022-05-15
下一篇:
PHP help_header函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap