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


PHP imgtootltip函数代码示例

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


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

示例1: popup_list

function popup_list()
{
    $search = trim($_GET["search"]);
    if ($search != null) {
        $sqladd = " AND `uri` LIKE '{$search}%' ";
    }
    $sql = "SELECT * FROM squid_adzapper WHERE `uri_type`='{$_GET["selected"]}' {$sqladd} ORDER BY ID DESC LIMIT 0,100";
    $q = new mysql();
    $tpl = new templates();
    $results = $q->QUERY_SQL($sql, "artica_backup");
    if (!$q->ok) {
        echo "<H2>{$q->mysql_error}</H2>";
    }
    $html = "<table cellspacing='0' cellpadding='0' border='0' class='tableView'>\n<thead class='thead'>\n\t<tr>\n\t<th colspan=4>{ZAP_{$_GET["selected"]}}: {ZAP_{$_GET["selected"]}_explain}</th>\n\t</tr>\n</thead>\n<tbody class='tbody'>";
    while ($ligne = @mysql_fetch_array($results, MYSQL_ASSOC)) {
        if ($classtr == "oddRow") {
            $classtr = null;
        } else {
            $classtr = "oddRow";
        }
        $html = $html . "\n\t\t<tr class={$classtr}>\n\t\t<td width=1%><img src='img/fw_bold.gif'></td>\n\t\t<td><code style='font-size:13px'>{$ligne["uri"]}</code></td>\n\t\t<td width=1%>" . Field_checkbox("addzapp_{$ligne["ID"]}", 1, $ligne["enabled"], "AddZapEnable('{$ligne["ID"]}')") . "</td>\n\t\t<td width=1%>" . imgtootltip("delete-32.png", "{delete}", "AddZapDelete('{$ligne["ID"]}')") . "</td>\n\t\t</tr>";
    }
    $html = $html . "</tbody></table>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:25,代码来源:squid.adzapper.php

示例2: main_disks_discover

function main_disks_discover()
{
    $users = new usersMenus();
    $Disks = $users->disks_size;
    $sock = new sockets();
    $sock->getFrameWork("cmd.php?usb-scan-write=yes");
    if (!file_exists('ressources/usb.scan.inc')) {
        return $tpl->_ENGINE_parse_body("<H1>{error_no_socks}</H1>");
    }
    include_once "ressources/usb.scan.inc";
    if ($Disks != null) {
        $tbl = explode(";", $Disks);
        while (list($num, $val) = each($tbl)) {
            if (trim($val) != null) {
                $values = explode(",", $val);
                if (is_array($values)) {
                    $dc = $dc + 1;
                    $disk = $values[0];
                    $size = $values[1];
                    $occ = $values[2];
                    $disp = $values[3];
                    $pourc = $values[4];
                    $path = Get_mounted_path($disk, $_GLOBAL["usb_list"]);
                    $html = $html . "\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t<table style='width:220px;margin:3px'>\n\t\t\t\t\t<tr>\n\t\t\t\t\t<td width=1%>\n\t\t\t\t\t\t" . imgtootltip('scan-disk-48.png', $disk, "Loadjs('TreeBrowse.php?jdisk={$disk}&mounted={$path}&t={$_GET["t"]}');Loadjs('Tree.js');") . "</td>\n\t\t\t\t\t<td style='font-size:11px' valign='top'>\n\t\t\t\t\t\t{$disk} ({$pourc}% {used}).\n\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\t\n\t\t\t\t\t\n\t\t\t\t\t";
                }
            }
        }
    }
    $html = "<H5>{select_disk}</H5><br>" . RoundedLightGrey("\n\t<table style='width:100%'>\n\t{$html}\n\t</table>\n\t");
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:32,代码来源:TreeBrowse.php

示例3: page

function page()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $ldap = new clladp();
    $t = time();
    $Green = "#005447";
    $ForceDefaultGreenColor = $sock->GET_INFO("ForceDefaultGreenColor");
    if ($ForceDefaultGreenColor != null) {
        $Green = $ForceDefaultGreenColor;
    }
    $skinf = dirname(__FILE__) . "/ressources/templates/{$_COOKIE["artica-template"]}/top-bar-color.conf";
    if (is_file($skinf)) {
        $Green = @file_get_contents($skinf);
    }
    $IsKerbAuth = $ldap->IsKerbAuth();
    $default_search = "*";
    if (isset($_SESSION["SEARCH_GROUPS_MEMORY"])) {
        $default_search = $_SESSION["SEARCH_GROUPS_MEMORY"];
    }
    $field_search = Field_autocomplete("search-users-{$t}", "shadow:" . $tpl->_ENGINE_parse_body("{search_groups}"), "font-size:28px;width:99%", "{$page}", "SearchEnter{$t}(event)", "Search{$t}");
    $add_icon = "\n\t<div style='float:right;margin-top:3px;margin-right:5px;'>\n\t<table>\n\t<tr><td style='vertical-align:middle;font-size:18px;color:white;'>\n\t&laquo;&nbsp;<a href=\"javascript:blur();\"\n\tOnClick=\"javascript:GotoMembersSearch();\"\n\tstyle='font-size:18px;text-decoration:underline;color:white'>{search_members}</a>&nbsp;&raquo;</td>";
    $ldap = new clladp();
    if ($IsKerbAuth == 0) {
        $add_icon = $add_icon . "<td style='vertical-align:middle'>" . imgtootltip("add-42-white.png", "{new_group}", "Loadjs('domains.edit.group.php?popup-add-group=yes&CallBackFunction=Search{$t}')") . "</td>";
    }
    $html = "\n\t<div style='width:100%;padding:5px;'>{$field_search}</div>\n\t<div style='height:50px;background-color:{$Green};color:white;padding-left:15px;\n\tfont-size:38px;\n\t  -webkit-border-radius: 5px 5px 0 0;\n  -moz-border-radius: 5px 5px 0 0;\n  border-radius: 5px 5px 0 0;vertical-align:middle\n\t'>\n\t\t{$add_icon}</td></table></div>\n\t\t{groups2}&nbsp;&nbsp;<span id='title-{$t}'></span>\n\t</div>\n\t<div id='search-{$t}' style='width:99.8%;margin-top:2px;border:1px solid #CCCCCC;-webkit-border-radius: 5px 5px 0 0;\n  -moz-border-radius: 5px 5px 0 0;\n  border-radius: 5px 5px 0 0;'></div>\n  \n  \n  \n  <script>\n  \tfunction SearchEnter{$t}(e){\n  \t\tif(!checkEnter(e)){return;}\n  \t\tSearch{$t}();\n  \t}\n  \t\n  \tfunction Search{$t}(query){\n  \t\tif(!query){\n  \t\t\tquery=document.getElementById('search-users-{$t}').value\n  \t\t}\n  \t\t\n  \t\tLoadAjaxSilent('search-{$t}','{$page}?search='+encodeURIComponent(query)+'&t={$t}');\n  \t\n  \t}\n  \t\n  \tSearch{$t}('{$default_search}');\n  \t\n </script> \n  \n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:articatech,项目名称:artica,代码行数:30,代码来源:system.groups.search.php

示例4: ruleslist

function ruleslist()
{
    $user = new user($_SESSION["uid"]);
    $html = "<table class=table_inside>\n\t<tr>\n\t\t<th>{server}</th>\n\t\t<th colspan=2>{protocol}</th>\n\t</tr>\n\t";
    $f = new Fetchmail_settings();
    $fetchmail_rules = $f->LoadUsersRules($_SESSION["uid"]);
    $users = new usersMenus();
    $AllowFetchMails = $users->AllowFetchMails;
    while (list($num, $line) = each($fetchmail_rules)) {
        $server = $line["poll"];
        $proto = $line["proto"];
        $user = $line["user"];
        $delete = imgtootltip("ed_delete.gif", "{delete}", "DeleteFetchmail({$num})");
        $edit = "EditRuleFetchmail({$num})";
        if (!$AllowFetchMails) {
            $delete = "&nbsp;";
            $edit = null;
        }
        $edit = CellRollOver($edit);
        $html = $html . "<tr>\n\t\t<td nowrap {$edit}>{$server}<hr style='margin:0px'><i style='font-size:10px;font-weight:normal'>{$user}</i></td>\n\t\t<td {$edit}>{$proto}</td>\n\t\t<td >{$delete}</td>\n\t\t</tr>\n\n\t\t";
    }
    $html = $html . "</table>";
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html);
}
开发者ID:brucewu16899,项目名称:artica,代码行数:25,代码来源:user.fetchmail.php

示例5: dstat_index

function dstat_index()
{
    $img = img();
    $html = "<H1>{APP_POSTFIX} {statistics}</H1><br>\n<div style='text-align:right;float:right'>" . imgtootltip("refresh-24.png", "{refresh}", "postfix_refresh_services()") . "</div>\n<div id='dstat_postfix_div'>\n{$img}\n</div>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:dstat.postfix.php

示例6: page

function page()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $t = time();
    echo $tpl->_ENGINE_parse_body("<input type='hidden' id='ZRTRQUESTS_COMPTER' value='0'>\n\t<div style='text-align:left;font-size:30px;margin-right:20px'>{realtime_requests}</div>\n\t<div style='float:right;margin-top:-30px'>" . imgtootltip("refresh-32.png", "{refresh}", "LoadAjaxRound('proxy-follower-table','{$page}?follow=yes&t={$t}');") . "</div>\n\t<div style='height:1000px;width:100%;overflow:auto;margin-top:15px' id='proxy-follower-table'></div>\n\t<script>\n\t\tLoadAjaxRound('proxy-follower-table','{$page}?follow=yes&t={$t}');\n\t</script>\n\t\n\t");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:admin.dashboard.proxy.follower.php

示例7: updev

function updev()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $statusFileContent = "ressources/logs/sa-update-status.txt";
    if (!is_file($statusFileContent)) {
        $content[] = "{$statusFileContent} no such file";
    } else {
        $content = explode("\n", @file_get_contents($statusFileContent));
    }
    $html = "\t\n<table cellspacing='0' cellpadding='0' border='0' class='tableView' style='width:99%'>\n<thead class='thead'>\n\t<tr>\n\t\t<th >{events}</th>\n\t\t<th width=1%>" . imgtootltip("refresh-24.png", "{refresh}", "RefreshSaupdEv()") . "</td>\n\t</tr>\n</thead>\n<tbody class='tbody'>";
    while (list($index, $line) = each($content)) {
        if (trim($line) == null) {
            continue;
        }
        if ($classtr == "oddRow") {
            $classtr = null;
        } else {
            $classtr = "oddRow";
        }
        $html = $html . "<tr class={$classtr}><td style='font-size:13px' colspan=2><code>{$line}</code></td></tr>";
    }
    $html = $html . "</table>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:25,代码来源:sa.update.php

示例8: email_list

function email_list()
{
    $user = new user($_SESSION["uid"]);
    $white = $user->amavisWhitelistSender;
    $black = $user->amavisBlacklistSender;
    while (list($num, $val) = each($white)) {
        $arr[$val] = 0;
    }
    while (list($num, $val) = each($black)) {
        $arr[$val] = 1;
    }
    if (is_array($arr)) {
        ksort($arr);
    }
    if (!is_array($arr)) {
        $arr = array();
    }
    while (list($num, $val) = each($arr)) {
        if ($val == 1) {
            $color = "black";
        } else {
            $color = "white";
        }
        $row = $row . "<tr>\n\t\t<td valign='top' width=1% style='background-color:{$color};border:1px dotted #CCCCCC;'>&nbsp;</td>\n\t\t<td valign='top' width=99% style='border-bottom:1px solid #CCCCCC'><code><strong style='font-size:13px'>{$num}</td>\n\t\t<td valign='top' width=1% style='border-bottom:1px solid #CCCCCC'>" . imgtootltip('ed_delete.gif', "{delete}:{$num}", "delete_aswbl('{$num}',{$val});") . "</td>\n\t</tr>\n\t\t";
    }
    $button = Paragraphe("member-add-64.png", '{add_email}', '{add_backlistwhitelist_email}', "javascript:wbladd()", "{add_email}", 220, 70);
    $html = "\n\t\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>\n\t\t<div style='width:455px;height:400px;overflow:auto'>\n\t\t\t<table style='width:445px;padding:5px;border:1px solid #CCCCCC;padding-bottom:10px'>\n\t\t\t<tr>\n\t\t\t\t<th width=1% nowrap>{email_type}</th>\n\t\t\t\t<th width=99%>{email}</th>\n\t\t\t\t<th width=1% nowrap>&nbsp;</th>\n\t\t\t</tr>\n\t\t\t{$row}\n\t\t\t</table>\n\t\t\t</div>\n\t\t\n\t\t</td>\n\t\t<td valign='top'>{$button}</td>\n\t</tr>\n\t</table>\n\t\n\t\n\t";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:30,代码来源:users.aswb.php

示例9: popup

function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $t = time();
    $SquidEnableParentNTLM = intval($sock->GET_INFO("SquidEnableParentNTLM"));
    $SquidParentNTLMPort = intval($sock->GET_INFO("SquidParentNTLMPort"));
    $SquidParentNTLMProxy = $sock->GET_INFO("SquidParentNTLMProxy");
    $SquidParentNTLMProxyPort = intval($sock->GET_INFO("SquidParentNTLMProxyPort"));
    $SquidParentNTLMUsername = intval($sock->GET_INFO("SquidParentNTLMUsername"));
    $SquidParentNTLMPassword = intval($sock->GET_INFO("SquidParentNTLMPassword"));
    $SquidParentSayHostname = $sock->GET_INFO("SquidParentSayHostname");
    if ($SquidParentNTLMProxyPort == 0) {
        $SquidParentNTLMProxyPort = 8080;
    }
    if ($SquidParentNTLMPort == 0) {
        $SquidParentNTLMPort = rand(8080, 9090);
    }
    if ($SquidParentSayHostname == null) {
        $SquidParentSayHostname = $sock->getFrameWork("cmd.php?full-hostname=yes");
    }
    $p = Paragraphe_switch_img("{SquidEnableParentNTLM}", "{SquidEnableParentNTLM_text}", "SquidEnableParentNTLM-{$t}", $SquidEnableParentNTLM, null, 750);
    $html = "<table style='width:100%' class=form>\n<tr>\n\t<td valign='top' style=width:240px'><div id='parent-ntlm-status'></div>\n\t" . imgtootltip("refresh-32.png", null, "RefreshServ{$t}()", null) . "\n\t\n\t</td>\n\t<td valign='top' style='width:90%'>\n\t{$p}\n\t<table style='width:100%'>\n\t" . Field_text_table("SquidParentNTLMPort", "{local_listen_port}", $SquidParentNTLMPort, 22, null, 150) . Field_text_table("SquidParentSayHostname", "{hostname}", $SquidParentSayHostname, 22, null, 450) . Field_text_table("SquidParentNTLMProxy", "{remote_proxy}", $SquidParentNTLMProxy, 22, null, 450) . Field_text_table("SquidParentNTLMProxyPort", "{remote_port}", $SquidParentNTLMProxyPort, 22, null, 150) . Field_button_table_autonome("{apply}", "Save{$t}()", 36) . "</table>\n\t</td>\n</tr>\n</table>\n<script>\n\nfunction RefreshServ{$t}(){\n\tLoadAjax('parent-ntlm-status','{$page}?parent-ntlm-status=yes');\n}\n\nvar xSave{$t}= function (obj) {\n\tLoadjs('squid.restart.php?onlySquid=yes&onlyreload=yes&ApplyConfToo=yes&ask=yes',true);\n\tRefreshTab('main_squid_prents_tabs');\n}\t\t\t\n\t\t\t\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('SquidEnableParentNTLM',document.getElementById('SquidEnableParentNTLM-{$t}').value);\n\tXHR.appendData('SquidParentNTLMPort',document.getElementById('SquidParentNTLMPort').value);\n\tXHR.appendData('SquidParentNTLMProxy',document.getElementById('SquidParentNTLMProxy').value);\n\tXHR.appendData('SquidParentNTLMProxyPort',document.getElementById('SquidParentNTLMProxyPort').value);\n\tXHR.appendData('SquidParentSayHostname',document.getElementById('SquidParentSayHostname').value);\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\t\n}\nRefreshServ{$t}();\n</script>\t   \t\t\n";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:26,代码来源:squid.master-ntlm.php

示例10: page

function page()
{
    //dashboard_user_day
    $page = CurrentPageName();
    $tpl = new templates();
    $q = new mysql_squid_builder();
    $html = "<div style='width:1490'>\n\t<div style='float:right'>" . imgtootltip("refresh-32.png", "{refresh}", "LoadAjaxRound('squid-top-stats','squid.statistics.top.php');") . "</div>\n\t<div style='font-size:30px'>{top_web}: " . DATE_START() . "</div>\n\t";
    if ($q->COUNT_ROWS("dashboard_countwebsite_day") > 1) {
        $tr[] = "\n\t\t<tr>\n\t\t\t<td style='width:100%'>\n\t\t\t\t<div style='width:745;height:700px' id='top-web-site-size'></div>\n\t\t\t</td>\t\t\n\t\t\t<td style='width:100%'>\n\t\t\t\t<div style='width:745;height:700px' id='top-web-site-hits'></div>\n\t\t\t</td>\t\n\t\t</tr>\n\t\t";
        $js[] = "Loadjs('{$page}?top-web-site-size=yes');";
        $js[] = "Loadjs('{$page}?top-web-site-hits=yes');";
    }
    if ($q->COUNT_ROWS("dashboard_user_day") > 1) {
        $tr[] = "\n\t\t<tr>\n\t\t\t<td colspan=2><hr></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style='width:100%'>\n\t\t\t\t<div style='width:745;height:700px' id='top-web-user-size'></div>\n\t\t\t</td>\n\t\t\t<td style='width:100%'>\n\t\t\t\t<div style='width:745;height:700px' id='top-web-user-hits'></div>\n\t\t\t</td>\n\t\t</tr>\n\t\t";
        $js[] = "Loadjs('{$page}?top-web-user-size=yes');";
        $js[] = "Loadjs('{$page}?top-web-user-hits=yes');";
    }
    if ($q->COUNT_ROWS("dashboard_blocked_day") > 1) {
        $tr[] = "\n\t\t<tr>\n\t\t\t<td colspan=2><hr></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td style='width:100%'>\n\t\t\t\t<div style='width:745;height:700px' id='top-web-blocked-site'></div>\n\t\t\t</td>\n\t\t\t<td style='width:100%'>\n\t\t\t\t<div style='width:745;height:700px' id='top-web-blocked-category'></div>\n\t\t\t</td>\n\t\t</tr>\n\t\t";
        $js[] = "Loadjs('{$page}?top-web-blocked-site=yes');";
        $js[] = "Loadjs('{$page}?top-web-blocked-category=yes');";
    }
    $html = $html . "<table style='width:100%'>" . @implode("\n", $tr) . "</table></div>\n\t<script>\t\t\n\t\t\t\n\t" . @implode("\n", $js) . "</script>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:25,代码来源:squid.statistics.top.php

示例11: status

function status()
{
    $dd = null;
    $tpl = new templates();
    if (!is_file("/usr/share/artica-postfix/ressources/logs/web/sensors.array")) {
        return;
    }
    $TEMPA = unserialize(@file_get_contents("/usr/share/artica-postfix/ressources/logs/web/sensors.array"));
    while (list($DEVICE, $TEMPB) = each($TEMPA)) {
        while (list($KEY, $TEMP) = each($TEMPB)) {
            // temperature-30-green.png
            $icon = "temperature-30-green.png";
            $pourc = $TEMP["PERC"];
            $tempS = $TEMP["TEMP"];
            $CritS = $TEMP["CRIT"];
            $color = "#5DD13D";
            if ($pourc > 70) {
                $color = "#F59C44";
                $icon = "temperature-30-F59C44.png";
            }
            if ($pourc > 90) {
                $color = "#D32D2D";
                $icon = "temperature-30-D32D2D.png";
            }
            $dd = $dd . "\n\t\t\t\t<tr>\n\t\t\t\t\t<td nowrap align=right width=90px valign='middle'>\n\t\t\t\t\t\t<table style='width:100%'>\n\t\t\t\t\t\t\t<tbody>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td width=1%>" . imgtootltip($icon, "{$DEVICE} {$KEY}", "") . "</td>\n\t\t\t\t\t\t\t\t\t<td width=99% align='right'>\n\t\t\t\t\t\t\t\t\t<a href=\"javascript:blur();\"\n\t\t\t\t\t\t\t\t\tOnClick=\"javascript:{$jsview}\"\n\t\t\t\t\t\t\t\t\tstyle='font-weight:bold;text-decoration:underline'>\n\t\t\t\t\t\t\t\t\t{$KEY}:\n\t\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\t</tbody>\n\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t\t<div style='width:100px;background-color:white;padding-left:0px;border:1px solid {$color}'>\n\t\t\t\t\t\t\t\t\t<div style='width:{$pourc}px;text-align:center;color:white;padding-top:3px;padding-bottom:3px;background-color:{$color}'>\n\t\t\t\t\t\t\t\t\t<strong>{$pourc}%</strong>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t<td width=1% nowrap style='font-weight:bold'>\n\t\t\t\t\t\t\t\t\t<div style='margin-top:10px;font-weight:bold'>{$tempS}°C/{$CritS}°C&nbsp;({$DEVICE})</div></strong>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t</tr>";
        }
    }
    echo $tpl->_ENGINE_parse_body("<table style='width:100%'>{$dd}</table>");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:29,代码来源:system.sensors.php

示例12: main_rules_exceptionsitelist_list

function main_rules_exceptionsitelist_list($rule_main, $noecho = 0)
{
    $dans = new dansguardian_rules($_GET["hostname"], $rule_main);
    $sql = "SELECT * FROM dansguardian_files WHERE filename='exceptionsitelist' AND RuleID={$rule_main} ORDER BY ID DESC";
    $q = new mysql();
    $results = $q->QUERY_SQL($sql, "artica_backup");
    $style = CellRollOver();
    $categ = "\n\t<table cellspacing='0' cellpadding='0' border='0' class='tableView' style='width:100%'>\n\t<thead class='thead'>\n\t\t<tr>\n\t\t<th width=99% colspan=2>&nbsp;</th>\n\t\t</tr>\n\t</thead>\n\t<tbody class='tbody'>";
    while ($ligne = @mysql_fetch_array($results, MYSQL_ASSOC)) {
        if ($classtr == "oddRow") {
            $classtr = null;
        } else {
            $classtr = "oddRow";
        }
        $num = $ligne["ID"];
        $pattern = $ligne["pattern"];
        $categ = $categ . "<tr class={$classtr}>\n\t\t<td width=99%><strong style='font-size:16px'>{$pattern}</strong></td>\n\t\t<td width=1%>" . imgtootltip('delete-32.png', '{delete}', "exceptionsitelist_del('{$hostname}','{$rule_main}','{$num}')") . "</td>\n\t\t</tr>\n\t\t";
    }
    $categ = $categ . "</table>";
    $tpl = new templates();
    if ($noecho == 1) {
        return $tpl->_ENGINE_parse_body("{$categ}");
    }
    echo $tpl->_ENGINE_parse_body("{$categ}");
    $tpl = new templates();
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:26,代码来源:dansguardian.exception.sites.php

示例13: routes_listes

function routes_listes()
{
    $tpl = new templates();
    $html = "<p class=text-error>{routes_goto_miniadm}</p>";
    echo $tpl->_ENGINE_parse_body($html);
    return;
    $page = CurrentPageName();
    $types[1] = "{network_nic}";
    $types[2] = "{host}";
    $ERROR_NO_PRIVS = $tpl->javascript_parse_text("{ERROR_NO_PRIVS}");
    $users = new usersMenus();
    if ($users->AsSystemAdministrator) {
        $AsNetworksAdministrator = 1;
    } else {
        $AsNetworksAdministrator = 0;
    }
    $html = "\n<table cellspacing='0' cellpadding='0' border='0' class='tableView' style='width:100%'>\n<thead class='thead'>\n\t<tr>\n\t\t<th>{type}</th>\n\t\t<th>{nic}</th>\n\t\t<th>{pattern}</th>\n\t\t<th>{gateway}</th>\n\t\t<th>&nbsp;</th>\n\t</tr>\n</thead>\n<tbody class='tbody'>";
    $sql = "SELECT * FROM nic_routes ORDER BY `nic`";
    writelogs($sql, __FUNCTION__, __FILE__, __LINE__);
    $q = new mysql();
    $results = $q->QUERY_SQL($sql, "artica_backup");
    if (!$q->ok) {
        echo "<H2>{$q->mysql_error}</H2>";
    }
    while ($ligne = @mysql_fetch_array($results, MYSQL_ASSOC)) {
        if ($classtr == "oddRow") {
            $classtr = null;
        } else {
            $classtr = "oddRow";
        }
        $html = $html . "\n\t\t<tr class={$classtr}>\n\t\t<td style='font-size:14px' nowrap>&nbsp;{$types[$ligne["type"]]}</td>\n\t\t<td style='font-size:14px' nowrap>&nbsp;{$ligne["nic"]}</td>\n\t\t<td style='font-size:14px' nowrap>&nbsp;{$ligne["pattern"]}</td>\n\t\t<td style='font-size:14px' nowrap>&nbsp;{$ligne["gateway"]}</td>\n\t\t<td>" . imgtootltip("delete-32.png", "{delete}", "DeleteRouteNicsList('{$ligne["zmd5"]}')") . "</td>\n\t\t</tr>\n\t\t";
    }
    echo $tpl->_ENGINE_parse_body($html . "</table>\n\t<script>\n\t\tvar x_DeleteRouteNicsList= function (obj) {\n\t\t\t\tvar results=obj.responseText;\n\t\t\t\tif(results.length>0){alert(results);return;}\n\t\t\t\tRefreshRoutes();\n\t\t\t}\t\t\n\t\n\t\n\t\tfunction DeleteRouteNicsList(md){\n\t\t\tvar AsNetworksAdministrator='{$AsNetworksAdministrator}';\n\t\t\tif(AsNetworksAdministrator!=='1'){alert('{$ERROR_NO_PRIVS}');return;}\t\t\t\t\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('del-route',md);\n\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_DeleteRouteNicsList);\t\t\n\t\t\n\t\t}\n\t</script>\t\n\t");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:34,代码来源:system.nic.routes.php

示例14: page

function page()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $html = "\n\t<div class=explain style='font-size:14px'>{ligghtpd_perf_howto}</div>\n\t<table style='width:99%' class=form>\n\t<tr>\n\t\t<td style='width:50%' valign='top'>\n\t\t\n\t\t<div id='lighttpd-form'></div></td>\n\t\t<td style='width:50%' valign='top'>\n\t\t<div style='width:100%;text-align:right'>" . imgtootltip("refresh-24.png", "{refresh}", "LoadAjax('lighttpd-status','{$page}?lighttpd-status=yes');") . "</div>\n\t\t<div id='lighttpd-status'></div></td>\n\t</tr>\n\t</table>\n\t<script>\n\t\tLoadAjax('lighttpd-status','{$page}?lighttpd-status=yes');\n\t\tLoadAjax('lighttpd-form','{$page}?lighttpd-form=yes');\n\t</script>\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:lighttpd.php

示例15: top_ressources_mem

function top_ressources_mem()
{
    $images = top_ressources_mem_generate();
    $html = "<H1>{top_ressources} {memory}</H1><br>\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'>" . RoundedLightWhite(imgtootltip("refresh-32.png", "{refresh}", "mem_refresh_topmem()")) . "<br></td>\n\t<td valign='top'>\n\t\t<div style='width:99%;height:450px;overflow:auto' id='topmemdiv'>{$images}</div>\n\t</td>\n\t</tr>\n\t</table>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:7,代码来源:dstat.memory.php


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