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


PHP button函数代码示例

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


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

示例1: Page

function Page()
{
    $ruleid = $_GET["ID"];
    $t = time();
    $page = CurrentPageName();
    $tpl = new templates();
    $this_feature_is_disabled_corp_license = $tpl->javascript_parse_text("{this_feature_is_disabled_corp_license}");
    $CORP = 0;
    if ($users->CORP_LICENSE) {
        $CORP = 1;
    }
    $sock = new wifidog_settings($ruleid);
    $wifidog_templates = new wifidog_templates($ruleid);
    $users = new usersMenus();
    $CORP = 0;
    if ($users->CORP_LICENSE) {
        $CORP = 1;
    }
    $BACK_REPEAT["no-repeat"] = "no-repeat";
    $BACK_REPEAT["repeat-y"] = "repeat-y";
    $BACK_REPEAT["repeat-x"] = "repeat-x";
    $BACK_REPEAT["repeat"] = "repeat";
    $html = "<div style='width:98%' class=form>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td style='width:500px;'>\n\t\t<div style='width:500px;height:500px;border-radius:5px 5px 5px 5px;\n-moz-border-radius:5px;\n\t\t-webkit-border-radius:5px;background-repeat: {$wifidog_templates->BackgroundRepeat};background-position: {$wifidog_templates->BackgroundTOP}% {$wifidog_templates->BackgroundBottom}%;\n\t\tbackground-image:url(\"{$wifidog_templates->BackgroundPicturePath}\");background-color:#{$wifidog_templates->backgroundColor}'>&nbsp;</div>\n\t\t</td>\n\t\t<td valign='top'>\n\t\t\t<table style='width:100%'>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=legend style='font-size:22px'>{picture}:</td>\n\t\t\t\t\t<td style='font-size:16px'>" . button("{upload}", "Loadjs('webauth.rules.picture.upload.php?ruleid={$ruleid}')", 26) . "</td>\n\t\t\t\t</tr>\t\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=legend style='font-size:22px'>{top_position}:</td>\n\t\t\t\t\t<td style='font-size:22px'>" . Field_text("BackgroundTOP-{$t}", $wifidog_templates->BackgroundTOP, "font-size:22px;width:100px") . "%</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=legend style='font-size:22px'>{bottom_position}:</td>\n\t\t\t\t\t<td style='font-size:22px'>" . Field_text("BackgroundBottom-{$t}", $wifidog_templates->BackgroundBottom, "font-size:22px;width:100px") . "%</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=legend style='font-size:22px;text-transform:capitalize'>" . texttooltip("{repeat}", null) . ":</td>\n\t\t\t\t\t<td style='font-size:22px'>" . Field_array_Hash($BACK_REPEAT, "BackgroundRepeat-{$t}", $wifidog_templates->BackgroundRepeat, null, null, 0, "font-size:22px") . "</td>\n\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "Save{$t}()", "42px") . "</td>\n\t\t\t\t\t</tr>\t\t\t\t\t\t\t\n\t\t\t</table>\n\t\t</td>\n\t</tr>\n\t</table>\n\t</td>\n\t</table>\n\t</div>\n\t<script>\n\t\n\tvar xSave{$t}= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);}\n\t\t\$('#HOSTPOT_RULES').flexReload();\n\t\tRefreshTab('HOTSPOT_TAB');\n\t}\t\n\t\n\tfunction Save{$t}(){\n\t\tvar CORP={$CORP};\n\t\tif(CORP==0){alert('{$this_feature_is_disabled_corp_license}');return;}\t\t\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('ruleid',{$ruleid});\n\t\tXHR.appendData('BackgroundTOP',encodeURIComponent(document.getElementById('BackgroundTOP-{$t}').value));\n\t\tXHR.appendData('BackgroundBottom',encodeURIComponent(document.getElementById('BackgroundBottom-{$t}').value));\n\t\tXHR.appendData('BackgroundRepeat',encodeURIComponent(document.getElementById('BackgroundRepeat-{$t}').value));\t\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n\t\t\n\t}\n</script>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:25,代码来源:webauth.rules.picture.php

示例2: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $users = new usersMenus();
    $q = new mysql();
    $sql = "SELECT * FROM officials_domains ORDER BY domain";
    writelogs("{$sql}", __FUNCTION__, __FILE__, __LINE__);
    $results = $q->QUERY_SQL($sql, "artica_backup");
    if (!$q->ok) {
        echo "<H2>{$q->mysql_error}</H2>";
    }
    while ($ligne = mysql_fetch_array($results, MYSQL_ASSOC)) {
        $domains[$ligne["domain"]] = $ligne["domain"];
    }
    $OverWriteRestrictedDomains = 0;
    if ($users->OverWriteRestrictedDomains) {
        $OverWriteRestrictedDomains = 1;
    }
    if ($OverWriteRestrictedDomains == 1) {
        $over = "\n\t\t<hr>\n\t\t<div class=explain>{OverWriteRestrictedDomains_allow_text}</div>\n\t\t<table style='width:99%' class=form>\n\t<tr>\n\t\t<td class=legend>{domain}:</td>\n\t\t<td width=100%>" . Field_text("overwrite-domain", null, "font-size:16px;padding:3px;width:320px") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>" . button("{add}", "AddSubdomainOUOver()") . "</td>\n\t</tr>\n\t</table>\n\t\t";
    }
    $_GET["ou"] = urlencode($_GET["ou"]);
    $domains[null] = "{select}";
    $html = "\n\t<div id='add_subdomain_explain'></div>\n\t<div class=explain >{add_subdomain_explain}</div>\n\t\n\t<table style='width:99%' class=form>\n\t<tr>\n\t\t<td class=legend>{subdomain}:</td>\n\t\t<td width=50%>" . Field_text("subdomain", null, "font-size:16px;padding:3px;width:220px") . "</td>\n\t\t<td style='font-size:16px;padding:3px' width=1%><strong>.</strong></td>\n\t\t<td width=50%>" . Field_array_Hash($domains, "maindomain", null, "style:font-size:16px;padding:3px;") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=4 align='right'><hr>" . button("{add}", "AddSubdomainOU()") . "</td>\n\t</tr>\n\t</table>\n\t{$over}\n\t<script>\n\tvar x_AddSubdomainOU= function (obj) {\n\t\tvar results=obj.responseText;\n\t\tdocument.getElementById('subdomain').innerHTML='';\n\t\tif(results.length>3){alert(results);return;}\n\t\tYahooWin4Hide();\n\t\tLoadAjax('LocalDomainsList','domains.edit.domains.php?LocalDomainList=yes&ou={$_GET["ou"]}');\n\t}\t\t\n\t\t\n\t\tfunction AddSubdomainOU(){\n\t\t\tvar maindomain=document.getElementById('maindomain').value;\n\t\t\tvar subdomain=document.getElementById('subdomain').value;\n\t\t\tif(maindomain.length<3){return;}\n\t\t\tif(subdomain.length<3){return;}\n\t\t\tvar domain=subdomain+'.'+maindomain;\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('AddNewInternetDomain','{$_GET["ou"]}');\n\t\t\tXHR.appendData('AddNewInternetDomainDomainName',domain);\t\n\t\t\tAnimateDiv('add_subdomain_explain');\n\t\t\tXHR.sendAndLoad('domains.edit.domains.php', 'GET',x_AddSubdomainOU);\n\t\t\t\n\t\t}\n\t\t\n\t\tfunction AddSubdomainOUOver(){\n\t\t\tvar maindomain=document.getElementById('overwrite-domain').value;\n\t\t\tif(maindomain.length<3){return;}\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('AddNewInternetDomain','{$_GET["ou"]}');\n\t\t\tXHR.appendData('AddNewInternetDomainDomainName',maindomain);\t\n\t\t\tAnimateDiv('add_subdomain_explain');\n\t\t\tXHR.sendAndLoad('domains.edit.domains.php', 'GET',x_AddSubdomainOU);\t\t\t\n\t\t}\n\n\t</script>\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:27,代码来源:domains.add.localdomain.restricted.php

示例3: page

function page()
{
    $sock = new sockets();
    $ArticaTechNetSquidRepo = unserialize(base64_decode($sock->GET_INFO("ArticaTechNetSquidRepo")));
    $tpl = new templates();
    $realsquidversion = $sock->getFrameWork("squid.php?full-version=yes");
    $many = texttooltip("{manual_update}", "position:left:{manual_update_proxy_explain}", "Loadjs('squid.compilation.status.php')", null, 0, "font-size:30px;");
    $html = "\n\t\t\t\n\t<div style='font-size:30px;margin-bottom:30px'>{available_versions} &nbsp;|&nbsp; {current}:&nbsp;{$realsquidversion} &nbsp;|&nbsp; {$many}</div>\n\t<table style='width:100%'>\n\t<tr>\n\t<th style='font-size:22px'>{version}</th>\t\t\n\t<th style='font-size:22px'>{filename}</th>\n\t<th style='font-size:22px'>{filesize}</th>\n\t<th style='font-size:22px'>&nbsp;</tf>\n\t</tr>\t\t\t\t\n\t";
    while (list($key, $array) = each($ArticaTechNetSquidRepo)) {
        $URL = $array["URL"];
        $VERSION = $array["VERSION"];
        $FILESIZE = $array["FILESIZE"];
        $FILENAME = $array["FILENAME"];
        $FILESIZE = FormatBytes($FILESIZE / 1024);
        $button = button("{update2}", "Loadjs('squid.update.progress.php?key={$key}&filename={$FILENAME}');", 22);
        if ($realsquidversion == $VERSION) {
            $button = "{current}";
        }
        if ($color == null) {
            $color = "#F2F0F1";
        } else {
            $color = null;
        }
        $html = $html . "\n\t\t<tr style='background-color:{$color};height:80px'>\n\t\t\t<td style='font-size:22px;padding-left:10px'>{$VERSION}</td>\n\t\t\t<td style='font-size:22px;padding-left:10px'><a href=\"{$URL}\" target=_new style='text-decoration:underline'>{$FILENAME}</a></td>\t\n\t\t\t<td style='font-size:22px;padding-left:10px'>{$FILESIZE}</td>\t\n\t\t\t<td style='font-size:22px;padding-left:10px'><center>{$button}</center></td>\t\n\t\t</tr>\n\t\t";
    }
    $html = $html . "</table>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:28,代码来源:squid.update.php

示例4: popup

function popup()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $sock = new sockets();
    $ArticaHotSpotEmergency = intval($sock->GET_INFO("ArticaHotSpotEmergency"));
    $ArticaHotSpotPort = $sock->GET_INFO("ArticaHotSpotPort");
    $ArticaSSLHotSpotPort = $sock->GET_INFO("ArticaSSLHotSpotPort");
    $ArticaSplashHotSpotPort = $sock->GET_INFO("ArticaSplashHotSpotPort");
    $ArticaSplashHotSpotPortSSL = $sock->GET_INFO("ArticaSplashHotSpotPortSSL");
    if (!is_numeric($ArticaHotSpotPort)) {
        $ArticaHotSpotPort = 0;
    }
    if (!is_numeric($ArticaSplashHotSpotPort)) {
        $ArticaSplashHotSpotPort = 16080;
    }
    if (!is_numeric($ArticaSplashHotSpotPortSSL)) {
        $ArticaSplashHotSpotPortSSL = 16443;
    }
    $HotSpotGatewayAddr = $sock->GET_INFO("HotSpotGatewayAddr");
    $HotSpotGatewayAddr_org = $HotSpotGatewayAddr;
    $HotSpotGatewayAddrZ = explode(".", $HotSpotGatewayAddr);
    $HotSpotGatewayAddrz[3] = rand(1, 254);
    $HotSpotGatewayAddr = @implode(".", $HotSpotGatewayAddrz);
    $t = time();
    $ipaddr = $tpl->javascript_parse_text("{ipaddr}");
    $emergency_bt = "<center style='margin:30px'>" . button("{global_urgency_mode}", "Loadjs('squid.hostspot.emergency.enable.progress.php')", 40) . "</center>";
    if ($ArticaHotSpotEmergency == 1) {
        $emergency_bt = "<center style='margin:30px'>" . button("{disable_emergency_mode}", "Loadjs('squid.hostspot.emergency.disable.progress.php')", 40) . "</center>";
        $error = FATAL_ERROR_SHOW_128("{hotspot_in_emergency_mode_explain}");
    }
    $html = "\n\t<inpuyt type='hidden' id='layer-hotspot-maintenance' value='1'>\n\t{$error}\n\t<div style='width:98%' class=form>\n\t<center style='margin:30px'>" . button("{restart_web_service}", "Loadjs('squid.hostspot.restart.web.progress.php')", 40) . "</center>\n\t{$emergency_bt}\n\t\n\t\t\t\n\t\t\t\n\t</div>\n\t<script>\n\n\t</script>\t\t\t\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:articatech,项目名称:artica,代码行数:34,代码来源:squid.webauth.maintenance.php

示例5: page

function page()
{
    $q = new mysql_squid_builder();
    $timekey = date('Ymd');
    $timekeyMonth = date("Ym");
    $time = time();
    $page = CurrentPageName();
    $tpl = new templates();
    $q = new mysql_squid_builder();
    $tpl = new templates();
    $t = time();
    $per["1m"] = "{minute}";
    $per["5m"] = "5 {minutes}";
    $per["10m"] = "10 {minutes}";
    $per["1h"] = "{hour}";
    $per["1d"] = "{day}";
    $members["MAC"] = "{MAC}";
    $members["USERID"] = "{uid}";
    $members["IPADDR"] = "{ipaddr}";
    if (!isset($_SESSION["SQUID_STATS_MEM_DATE1"])) {
        $_SESSION["SQUID_STATS_MEM_DATE1"] = date("Y-m-d");
    }
    if (!isset($_SESSION["SQUID_STATS_MEM_TIME1"])) {
        $_SESSION["SQUID_STATS_MEM_TIME1"] = "00:00";
    }
    if (!isset($_SESSION["SQUID_STATS_MEM_DATE2"])) {
        $_SESSION["SQUID_STATS_MEM_DATE2"] = date("Y-m-d");
    }
    if (!isset($_SESSION["SQUID_STATS_MEM_TIME2"])) {
        $_SESSION["SQUID_STATS_MEM_TIME2"] = "23:00";
    }
    $html = "\n\t<div style='width:98%;margin-bottom:20px' class=form>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td style='vertical-align:top;font-size:18px' class=legend>{interval}:</td>\n\t\t<td style='vertical-align:top;font-size:18px;'>" . Field_array_Hash($per, "interval-{$t}", "10m", "blur()", null, 0, "font-size:18px;") . "</td>\n\t\t<td style='vertical-align:top;font-size:18px' class=legend nowrap>{from_date}:</td>\n\t\t<td style='vertical-align:top;font-size:18px'>" . field_date("from-date-{$t}", $_SESSION["SQUID_STATS_MEM_DATE1"], ";font-size:18px;width:160px") . "</td>\n\t\t<td style='vertical-align:top;font-size:18px'>" . Field_text("from-time-{$t}", $_SESSION["SQUID_STATS_MEM_TIME1"], ";font-size:18px;width:82px") . "</td>\n\t\t<td style='vertical-align:top;font-size:18px' class=legend nowrap>{to_date}:</td>\n\t\t<td style='vertical-align:top;font-size:18px'>" . field_date("to-date-{$t}", $_SESSION["SQUID_STATS_MEM_DATE2"], ";font-size:18px;width:160px") . "</td>\n\t\t<td style='vertical-align:top;font-size:18px'>" . Field_text("to-time-{$t}", $_SESSION["SQUID_STATS_MEM_TIME2"], ";font-size:18px;width:82px") . "</td>\n\t\t<td style='vertical-align:top;font-size:18px;;width:400px'>" . button("Go", "Run{$t}()", 18) . "</td>\n\t\t</tr>\n\t\t</table>\n\t</div>\n\t<div style='font-size:32px'>{proxy_memory_service_status}</div>\n\t<div style='width:1280px;height:550px;margin-bottom:10px' id='graph-{$t}'></div>\n\t<div style='font-size:32px'>{server_memory_consumption}</div>\n\t<div style='width:1280px;height:550px;margin-bottom:10px' id='memstats-{$t}'></div>\n\t\n\t\n\t\n\t\n\t\n\t\n<script>\n\nfunction Run{$t}(){\n\tvar date1=document.getElementById('from-date-{$t}').value;\n\tvar time1=document.getElementById('from-time-{$t}').value;\n\tvar date2=document.getElementById('to-date-{$t}').value\n\tvar time2=document.getElementById('to-time-{$t}').value;\n\tvar interval=document.getElementById('interval-{$t}').value;\n\tLoadjs('{$page}?query=yes&container=graph-{$t}&date1='+date1+'&time1='+time1+'&date2='+date2+'&time2='+time2+'&interval='+interval);\n\tLoadjs('{$page}?memstats=yes&container=memstats-{$t}&date1='+date1+'&time1='+time1+'&date2='+date2+'&time2='+time2+'&interval='+interval);\n\n}\nRun{$t}();\n</script>\t\n";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:34,代码来源:squid.memory.status.php

示例6: page

function page()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $html = "<div class=explain>{webalyzer_howto}</div>\n\t<table class=form>\n\t<tbody>\n\t<tr>\n\t\t<td class=legend>{url}:</td>\n\t\t<td>" . Field_text("webalizer-uri", null, "font-size:16px;width:100%") . "</td>\n\t\t<td width=1%>" . button("{analyze}", "WebalyzerPerform()") . "</td>\n\t</tr>\n\t</table>\n\t<div id='webalyzer-results' style='width:100%;height:350px;overlow:auto'></div>\n\t\n\t<script>\t\n\t\tfunction WebalyzerPerform(){\n\t\t\t\tvar uri=escape(document.getElementById('webalizer-uri').value);\n\t\t\t\tLoadAjax('webalyzer-results','{$page}?analyze=yes&uri='+uri);\n\t\t}\t\n\t\n\t</script>\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:squid.webalyzer.php

示例7: page

function page()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $t = time();
    $EnableMilterGreylistExternalDB = intval($sock->GET_INFO("EnableMilterGreylistExternalDB"));
    $MilterGreylistExternalDBSchedule = intval($sock->GET_INFO("MilterGreylistExternalDBSchedule"));
    if ($MilterGreylistExternalDBSchedule == 0) {
        $MilterGreylistExternalDBSchedule = 4;
    }
    $MilterGreyListPatternTime = intval($sock->GET_INFO("MilterGreyListPatternTime"));
    $MilterGreyListPatternCount = intval($sock->GET_INFO("MilterGreyListPatternCount"));
    $EnableArticaTechSpamAssassin = intval($sock->GET_INFO("EnableArticaTechSpamAssassin"));
    $schedules[1] = "1 {hour}";
    $schedules[2] = "2 {hours}";
    $schedules[4] = "4 {hours}";
    $schedules[8] = "8 {hours}";
    $schedules[24] = "1 {day}";
    $p = Paragraphe_switch_img("{EnableMilterGreylistExternalDB}", "{EnableMilterGreylistExternalDB_explain}", "EnableMilterGreylistExternalDB-{$t}", $EnableMilterGreylistExternalDB, null, 960);
    $p1 = Paragraphe_switch_img("{EnableArticaTechSpamAssassin}", "{EnableArticaTechSpamAssassin_explain}", "EnableArticaTechSpamAssassin-{$t}", $EnableArticaTechSpamAssassin, null, 960);
    $field = Field_array_Hash($schedules, "MilterGreylistExternalDBSchedule-{$t}", $MilterGreylistExternalDBSchedule, "blur()", null, 0, "font-size:26px");
    $html = "\n\t<div style='font-size:30px;margin-bottom:20px'>{rules_update}, {current}: v{$MilterGreyListPatternTime} {$MilterGreyListPatternCount} {rules}</div>\t\t\n\t\n\t<div style='width:98%' class=form>\n\t{$p}\n\t{$p1}\n\t\n\t<table style='width:100%'>\n\t<tbody>\n\t<tr>\n\t<td class=legend style='font-size:26px'>{schedule}:</td>\n\t<td style='font-size:16px'>{$field}</td>\n\t</tr>\n\t<tr>\n\t<td colspan=2 align='right'><hr>" . button("{apply}", "Save{$t}()", 45) . "</td>\n\t\t\t</tr>\n\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t</div>\n\t\t\t<script>\n\t\n\t\t\tvar xSave{$t}= function (obj) {\n\t\t\tvar res=obj.responseText;\n\t\t\tif (res.length>3){alert(res);}\n\t}\n\t\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('EnableArticaTechSpamAssassin', document.getElementById('EnableArticaTechSpamAssassin-{$t}').value);\n\tXHR.appendData('MilterGreylistExternalDBSchedule', document.getElementById('MilterGreylistExternalDBSchedule-{$t}').value);\n\tXHR.appendData('EnableMilterGreylistExternalDB', document.getElementById('EnableMilterGreylistExternalDB-{$t}').value);\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\n}\n</script>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:articatech,项目名称:artica,代码行数:27,代码来源:milter.greylist.update.php

示例8: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $html = "\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td width=1%><img src='img/databases-search-net-128.png' id='databases-search-net-128'></td>\n\t\t<td valign='top'>\n\t\t\t<div class=text-info>{adSearchPopupHowto}</div>\n\t\t\t<table style='width:100%'>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=legend>{server_host}:</td>\n\t\t\t\t\t<td>" . Field_text("ServerQueryADHost", "", "width:220px;font-size:13px", "script:QueryLDAPDBBrowseCheck(event)") . "</td>\n\t\t\t\t\t<td>" . button("{browse}", "QueryLDAPDBBrowse()") . "</td>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t</td>\n\t\t</tr>\n\t</table>\n\t\t\n\t<div id='QueryLDAPDBBrowseResults' style='widht:100%;height:240px;overflow:auto'></div>\n\t\n\t\n\t<script>\nvar X_QueryLDAPDBBrowse= function (obj) {\n\t\tvar results=trim(obj.responseText);\n\t\tdocument.getElementById('databases-search-net-128').src='img/databases-search-net-128.png';   \n\t\tdocument.getElementById('QueryLDAPDBBrowseResults').innerHTML=results;\n\t}\t\t\nfunction QueryLDAPDBBrowse(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('QueryLDAPDBBrowse',document.getElementById('ServerQueryADHost').value);\n\t\tdocument.getElementById('databases-search-net-128').src='img/wait_verybig.gif';   \n\t\tXHR.sendAndLoad('{$page}', 'GET',X_QueryLDAPDBBrowse);\n\t\t\n\t}\nfunction QueryLDAPDBBrowseCheck(e){\n\tif(checkEnter(e)){QueryLDAPDBBrowse();}\n}\n\t</script>\n\t\t\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:7,代码来源:ad.query.database.php

示例9: popup2

function popup2()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $t = time();
    $html = "<div style='font-size:16px' class=text-info>{amavis_wizard_rule_per_user_expain2}</div>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend style='font-size:16px'>{build_mysql_service}:</td>\n\t\t<td style='valign='top'><div id='BuildAndStartMysql{$t}'><img src=img/ok32-grey.png></div>\n\t</tr>\n\t</table>\n\t\n\t\n\t\t<div style='margin-top:10px;text-align:right'><hr>\n\t\t\t" . button("{build_feature}", "SaveTime{$t}()", 18) . "</div>\n\t<script>\n\tvar xBuildAndStartMysql{$t}= function (obj) {\n\t\t\tvar response=obj.responseText;\n\t\t\tif(response){\n\t\t\t\tdocument.getElementById('BuildAndStartMysql{$t}').innerHTML=response;\n\t\t\t}\n \n\t}\t\n\t\n\tfunction SaveTime{$t}(){\n\t\tvar XHR = new XHRConnection();\n\t\tXHR.appendData('BuildAndStartMysql','yes');\n\t\tdocument.getElementById('BuildAndStartMysql{$t}').innerHTML='<img src=\"img/wait_verybig.gif\">';\n\t\tXHR.sendAndLoad('{$page}', 'POST',xBuildAndStartMysql{$t});\t\n\t}\t\n\t\t\t\t\t\n\t</script>\n\t";
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:7,代码来源:amavis.wizard.users.php

示例10: 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

示例11: infos

function infos()
{
    $q = new mysql();
    $page = CurrentPageName();
    $tpl = new templates();
    $q = new mysql();
    $sql = "SELECT *  FROM kav4proxy_license ORDER BY expiredate DESC LIMIT 0,1";
    $ligne = mysql_fetch_array($q->QUERY_SQL($sql, "artica_backup"));
    $expiredate_color = "black";
    $expiredate = $ligne["expiredate"];
    $expiredate = strtotime($expiredate);
    $button = "<hr><div style='width:100%;text-align:right'>" . button("{license_manager}", "YahooWin5Hide();Loadjs('Kav4Proxy.license-manager.php')", 18) . "</div>";
    if ($expiredate - time() < 0) {
        $expiredate_color = "#B60000";
        $button = "<hr><div style='width:100%;text-align:right'>" . button("{renew}", "YahooWin5Hide();Loadjs('Kav4Proxy.license-manager.php')", 18) . "</div>";
    }
    if ($tpl->language == "fr") {
        $expiredate = date("Y l F d", $expiredate);
    } else {
        $expiredate = date("{l} d {F} Y", $expiredate);
    }
    $t = time();
    $html = "\n\t<div style='width:97%'  id='div-{$t}' class=form>\t\t\n\t<table style='width:100%'>\n\t<tr>\n\t\t\n\t\t<td style='font-weight:bold;font-size:16px;color:{$expiredate_color}' colspan=2>{$ligne["productname"]}<hr></td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px;color:{$expiredate_color}'>{key_file}:</td>\n\t\t<td style='font-weight:bold;font-size:16px;color:{$expiredate_color}'>{$ligne["keyfile"]}</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:16px;color:{$expiredate_color}'>{serial}:</td>\n\t\t<td style='font-weight:bold;font-size:16px;color:{$expiredate_color}'>{$ligne["serial"]}</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:16px;color:{$expiredate_color}'>{creationdate}:</td>\n\t\t<td style='font-weight:bold;font-size:16px;color:{$expiredate_color}'>{$ligne["creationdate"]}</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td class=legend style='font-size:16px;color:{$expiredate_color}'>{expiredate}:</td>\n\t\t<td style='font-weight:bold;font-size:16px;color:{$expiredate_color}'>{$expiredate}</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:16px;color:{$expiredate_color}'>{lifespan}:</td>\n\t\t<td style='font-weight:bold;font-size:16px;color:{$expiredate_color}'>{$ligne["lifespan"]}&nbsp;{days}</td>\n\t</tr>\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>" . button("{rescan}", "Rescan{$t}()", 14) . "</td>\n\t</tr>\t\t\t\t\n\t</table>\n\t</div>\n\t{$button}\n\t\n<script>\nvar xRescan{$t} = function (obj) {\n\tdocument.getElementById('div-{$t}').innerHTML='';\n\tYahooWin5Hide();\n\tLoadjs('{$page}');\n}\t\n\t\nfunction Rescan{$t}(){\nvar XHR = new XHRConnection();\n\tXHR.appendData('xrescan',1);\n\tdocument.getElementById('div-{$t}').innerHTML='<center><img src=\"img/wait_verybig.gif\"></center>';\n\tXHR.sendAndLoad('{$page}', 'POST',xRescan{$t});\t\n}\n</script>\t\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:25,代码来源:Kav4Proxy.License-infos.php

示例12: auth_popup

function auth_popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $html = "\n\t<span id='postresults'></span>\n\t<form id='authform'>\n\t<table style='width:100%' >\n\t<tr>\n\t\t<td class=legend>{username}:</td>\n\t\t<td>" . Field_text("username-logon", null, "font-size:16px;padding:5px", "script:SuBmitAuthCheck(event)") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{password}:</td>\n\t\t<td>" . Field_password("username-password", null, "font-size:16px;padding:5px", "script:SuBmitAuthCheck(event)") . "</td>\n\t</tr>\t\n\t<tr>\n\t<td colspan=2 align='right' style='font-size:16px;padding:5px'>" . button("{submit}", "SuBmitAuth()") . "</td>\n\t</tr>\n\t</table>\n\t</form>\n\t\n\t<script>\n\t\tfunction SuBmitAuthCheck(e){\n\t\t\tif(checkEnter(e)){SuBmitAuth();}\n\t\t}\n\t\n\t\n\t\tvar x_DeleteAllArticaEvents= function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>0){alert(results);}\n\t\t\tLoadAjax('articaevents','{$page}?events-table=yes&LockBycontext={$_GET["LockBycontext"]}');\n\t\t\t\t\n\t\t}\t\t\t\n\t\t\n\t\tfunction SuBmitAuth(){\n\t\t\tAnimateDiv('postresults');\n\t\t\t\$.post('{$page}',  \$('#authform').serialize(),\n\t\t\t\tfunction(data) {\n  \t\t\t\t\t\$('#postresults').html(data);\n\t\t\t\t}\n\t\t\t);\n\t\t\n\t\t}\t\n\tdocument.title='Artica {$_SERVER["SERVER_NAME"]}'; \n\t\n\t</script>\n\t\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:7,代码来源:miniadm.php

示例13: page

function page(){
	$sock=new sockets();
	$tpl=new templates();
	
	$IsInstalled=trim($sock->getFrameWork("system.php?phpmyadmin-installed=yes"));
	
	if($IsInstalled<>"TRUE"){
		$button=button("{reinstall_software}","Loadjs('system.mysql.phpmyadmin.install.php')",36);
		echo FATAL_WARNING_SHOW_128("<span style='font-size:26px'>{ERROR_SERVICE_NOT_INSTALLED}</span><center style='margin:20px'>$button</center>");
		
	}
	
	
	
	$version=trim($sock->getFrameWork("system.php?phpmyadpmin-version=yes"));
	
	$html="
	<div style='width:100%;text-align:center'>
	<center>
	<center style='width:70%;margin:30px' class=form>
	<div style='font-size:26px'>PHPMyAdmin v.$version</div>
	<p>&nbsp;</p>
	". button("PHPMyAdmin Front-end","document.location.href='/mysql';",40)."<p>&nbsp;</p></center></center></div>";
		
			
			
	echo $tpl->_ENGINE_parse_body($html);
	
	
	
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:31,代码来源:system.mysql.phpmyadmin.php

示例14: page

function page()
{
    $sock = new sockets();
    $ArticaTechNetInfluxRepo = unserialize(base64_decode($sock->GET_INFO("ArticaTechNetProFTPDRepo")));
    $tpl = new templates();
    $version = $sock->GET_INFO("ProFTPDVersion");
    $manual_update = $tpl->javascript_parse_text("{manual_update}");
    $html = "\n\t\t\t\n\t<div style='font-size:30px;margin-bottom:30px'>{available_versions} &nbsp;|&nbsp; {current}:&nbsp;{$version}\n\t&nbsp;|&nbsp;<a href=\"javascript:blur();\" OnClick=\"javascript:Loadjs('update.upload.php')\"\n\tstyle='text-decoration:underline'>{$manual_update}</a>\n\t&nbsp;|&nbsp;<a href=\"javascript:blur();\" OnClick=\"javascript:Loadjs('influx.refresh.update.php')\"\n\tstyle='text-decoration:underline'>{refresh}</a>\n\t\n\t\n\t</div>\n\t<table style='width:100%'>\n\t<tr>\n\t<th style='font-size:22px'>{version}</th>\n\t<th style='font-size:22px'>{OS}</th>\n\t<th style='font-size:22px'>{filename}</th>\n\t<th style='font-size:22px'>{filesize}</th>\n\t<th style='font-size:22px'>&nbsp;</tf>\n\t</tr>\t\t\t\t\n\t";
    $color = null;
    while (list($key, $array) = each($ArticaTechNetInfluxRepo)) {
        while (list($OS, $MAIN) = each($array)) {
            $URL = $MAIN["URL"];
            $VERSION = $MAIN["VERSION"];
            $FILESIZE = $MAIN["FILESIZE"];
            $FILENAME = $MAIN["FILENAME"];
            $FILESIZE = FormatBytes($FILESIZE / 1024);
            $button = button("{update2}", "Loadjs('proftpd.update.progress.php?key={$key}&OS={$OS}&filename={$FILENAME}');", 32);
            if ($color == null) {
                $color = "#F2F0F1";
            } else {
                $color = null;
            }
            $html = $html . "\n\t\t<tr style='background-color:{$color};height:80px'>\n\t\t\t<td style='font-size:28px;padding-left:10px'><center>{$VERSION}</center></td>\n\t\t\t<td style='font-size:28px;padding-left:10px'><center>{$OS}</center></td>\n\t\t\t<td style='font-size:28px;padding-left:10px;text-align:right'><a href=\"{$URL}\" target=_new style='text-decoration:underline'>{$FILENAME}</a></td>\t\n\t\t\t<td style='font-size:28px;padding-left:10px;text-align:right'>{$FILESIZE}</td>\t\n\t\t\t<td style='font-size:28px;padding-left:10px'><center>{$button}</center></td>\t\n\t\t</tr>\n\t\t";
        }
    }
    $html = $html . "</table>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:articatech,项目名称:artica,代码行数:28,代码来源:proftpd.update.php

示例15: tabs

function tabs()
{
    $sock = new sockets();
    $compilefile = "ressources/logs/squid.compilation.params";
    if (!is_file($compilefile)) {
        $sock->getFrameWork("squid.php?compil-params=yes");
    }
    $COMPILATION_PARAMS = unserialize(base64_decode(file_get_contents($compilefile)));
    if (!isset($COMPILATION_PARAMS["enable-ident-lookups"])) {
        echo "<div id='squid-identd-upd-error'></div>" . FATAL_ERROR_SHOW_128("{error_squid_ident_not_compiled}<center>\n\t\t\t\t" . button("{update2}", "Loadjs('squid.compilation.status.php');", 32) . "</center>");
        return;
    }
    $page = CurrentPageName();
    $users = new usersMenus();
    $array["status"] = '{status}';
    $array["networks"] = '{networks}';
    $sock = new sockets();
    $tpl = new templates();
    while (list($num, $ligne) = each($array)) {
        if ($num == "networks") {
            $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"squid.identd.network.php\" style='font-size:20px'><span>{$ligne}</span></a></li>\n");
            continue;
        }
        $html[] = $tpl->_ENGINE_parse_body("<li><a href=\"{$page}?{$num}=yes\" style='font-size:20px'><span>{$ligne}</span></a></li>\n");
        //$html=$html . "<li><a href=\"javascript:LoadAjax('squid_main_config','$page?main=$num&hostname={$_GET["hostname"]}')\" $class>$ligne</a></li>\n";
    }
    echo build_artica_tabs($html, "debug_identd_config", 1024) . "<script>LeftDesign('users-white-256.png');</script>";
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:28,代码来源:squid.identd.php


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