本文整理汇总了PHP中RoundedLightGreen函数的典型用法代码示例。如果您正苦于以下问题:PHP RoundedLightGreen函数的具体用法?PHP RoundedLightGreen怎么用?PHP RoundedLightGreen使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了RoundedLightGreen函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: INDEX
function INDEX()
{
$ldap = new clladp();
$ou = $_GET["ou"];
$Hash_datas = $ldap->OUDatas($ou);
$h_type = array("spam" => "spam", "ham" => "ham");
$domains1 = $ldap->hash_get_domains_ou($ou);
$domainsF1 = Field_array_Hash($domains1, 'bogo_spam_domain', null, null, null, 0, 'width:150px');
$type = Field_array_Hash($h_type, 'bogo_type', null, null, null, 0, 'width:100px');
$hash_action = array("delete" => "{bogo_delete}", "quarantine" => "{bogo_quarantine}", "prepend" => "{bogo_prepend}");
$form_email = "\n\t<input type='hidden' id='ou' value='{$ou}'>\n\t<H5>{bogo_robots}</H5>\n\t<table style='width:100%'>\n\t<tr>\n\t<td align='right' nowrap><strong>{add_bogo_spam}:</strong></td>\n\t<td>" . Field_text('bogo_spam') . "</td>\n\t<td>{$domainsF1}</td>\n\t<td>{$type}</td>\n\t<td><input type='button' value='{add} »' OnClick=\"javascript:bogoAddSpamUser();\"></td>\n\t</tr>\n\t</table>\n\t\n\t";
for ($i = 1; $i < 10; $i++) {
$h_level[$i . '0'] = $i . '0 %';
}
$actions_datas = explode(';', $Hash_datas["BogoFilterAction"]);
$action = "\n\t<H5>{spam_action}</H5>\n\t{spam_action_text} " . Field_array_Hash($h_level, 'exceed', $actions_datas[0], null, null, 0, 'width:60px') . " {then} " . Field_array_Hash($hash_action, 'action', $actions_datas[1], null, null, 0, 'width:160px') . "<br><br>\n\t{if_bogo_prepend} " . Field_text('bogo_prepend', $actions_datas[2], 'width:150px') . "\n\t<div style='width:100%;text-align:right'><input type='button' value='{edit} »»' OnClick=\"javascript:BogoFilterAction();\"></div>\n\t\n\t";
$area_robots = "<div id='robots'></div><script>LoadAjax('robots','{$page}?GetRobots={$ou}')</script>";
$area_robots = RoundedLightGrey($area_robots);
$action = RoundedLightGrey($action);
$form_email = RoundedLightGrey($form_email);
$page = CurrentPageName();
$html = "\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top' width=1%><img src='img/bg_bogofilter.jpg'></td>\n\t<td valign='top' width=99%>" . RoundedLightGreen("{bogo_intro}") . "</td>\n\t</tr>\n\t</table>\n\t{$form_email}\n\t<br>\n\t{$action}\n\t<br>\n\t{$area_robots}\n\t";
$cfg["JS"][] = "js/bogofilter.js";
$tpl = new template_users('{APP_BOGOFILTER}', $html, 0, 0, 0, 0, $cfg);
echo $tpl->web_page;
}
示例2: page
function page()
{
$page = CurrentPageName();
$tpl = new templates();
$title1 = $tpl->_ENGINE_parse_body('{add_email}');
$html = "\n<br><br>\n<table style='width:100%'>\n<tr>\n<td width=1% valign='top'><img src='img/bg_chess.jpg'></td>\n<td valign='top'>" . RoundedLightGreen("\n\t<H3 style='margin-bottom:0px'>{white list}</H2>\n\t<p>{white_list_text}</p>\n\t<H3 style='margin-bottom:0px'>{black list}</H2>\n\t<p>{black_list_text}</p>") . "\n</td>\n</tr>\n<td colspan=2 width=100% valign='top'>\n<div id='mailist'></div>\n</td>\n</tr>\n</table>\n<script>\nLoadAjax('mailist','{$page}?list=yes');\n\nfunction wbladd(){YahooWin(400,'{$page}?Addwbl=yes','{$title1}');}\n\nvar X_ActionWbladdForm= function (obj) {\n\tvar results=trim(obj.responseText);\n\tif(results.length>0){alert(results);}\n\tLoadAjax('mailist','{$page}?list=yes');\n\t}\n\nfunction ActionWbladdForm(){\n\tvar blw_email=document.getElementById('blw_email').value;\n\tvar blw_type=document.getElementById('blw_type').value;\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('blw_email',blw_email);\t\n\tXHR.appendData('blw_type',blw_type);\t\t\n\tXHR.sendAndLoad('{$page}', 'GET',X_ActionWbladdForm);\t\n\t}\n\t\n\t\nfunction delete_aswbl(email,type){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('delete_email',email);\t\n\tXHR.appendData('blw_type',type);\t\t\n\tXHR.sendAndLoad('{$page}', 'GET',X_ActionWbladdForm);\t\n\t}\n\n</script>\n";
$tpl = new template_users("{white list} & {black list}", $html);
echo $tpl->web_page;
}
示例3: Page
function Page()
{
$main = new main_cf();
$page = CurrentPageName();
$intro = RoundedLightGreen('<img src="img/infowarn-64.png" align=left style="margin:3px">{send_isp_relay_text3}');
$form = "" . RoundedLightGrey("\n\t<table style='width:100%'>\n\t<tr>\n\t<td>\n\t\t<H5>{servername}</H5>\n\t\t<br>\n\t\t{send_isp_relay_text2}\n\t</td>\n\t</tr>\n\t<tr>\n\t\t\t<td colspan=2>" . Field_text('isp_server_ip', $main->main_array["relayhost"]) . "</td>\n\t\t</tr>\t\n\t<tr>\n\t\t<td align='right' colspan=2><input type='button' OnClick=\"javascript:EditRelayhost();\" value='{edit} »'></td>\n\t</tr>\n\t</table>") . "\n\t<br>";
$html = "\n\t\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top' style='width:50%'>\n\n\t{$form}</td>\n\t<td valign='top'>\n\t\t" . RoundedLightGreen("<table style='width:100%'>\n\t<tr><td width=1%>" . imgtootltip('restore-on.png', '{go_back}', "MyHref('artica.wizard.php')") . "</td>\n\t<td><H5>{return_to} {artica_wizard}</H5></td>\n\t</tr></table>") . "<br>" . applysettings("postfix") . "<br>{$intro}</td>\n\t</tr>\n\t</table>";
$cfg["LANG_FILE"] = "artica.wizard.php";
$cfg["JS"][] = "js/postfix-sasl.js";
$tpl = new template_users('{send_isp_relay}', $html, 0, 0, 0, 0, $cfg);
echo $tpl->web_page;
}
示例4: postfix_sasl
function postfix_sasl()
{
$conf = new main_cf();
$enable_sasl = Field_yesno_checkbox_img('smtpd_sasl_auth_enable', $conf->main_array["smtpd_sasl_auth_enable"], '{enable_disable}');
$smtpd_sasl_authenticated_header = Field_yesno_checkbox_img('smtpd_sasl_authenticated_header', $conf->main_array["smtpd_sasl_authenticated_header"], '{enable_disable}');
$smtp_sender_dependent_authentication = Field_yesno_checkbox_img('smtp_sender_dependent_authentication', $conf->main_array["smtp_sender_dependent_authentication"], '{enable_disable}');
$html = "\n\t\t<form name='sasl'>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td width=40% valign='top'>" . RoundedLightBlue("\n\t\t<div style='padding:5px;font-size:11px;'>\n\t\t<img src=\"img/infowarn-64.png\" align=left style=\"margin:3px\">{sasl_intro}</div>") . "\n\t\t</td>\n\t\t<td width='60%' valign='top'>\n\t" . RoundedLightGreen("\n\t\t<table style='width:100%;padding:5px'>\n\t\t\t<tr>\n\t\t\t<td width=1% align='center'>{$enable_sasl}</td>\n\t\t\t<td><strong>{smtpd_sasl_auth_enable}</strong>\n\t\t\t</tr>\n\t\t\t<td width=1% align='center'>{$smtpd_sasl_authenticated_header}</td>\n\t\t\t<td><strong>{smtpd_sasl_authenticated_header}</strong>\n\t\t\t</tr>\n\t\t\t</tr>\n\t\t\t<td width=1% align='center' valign='top'>{$smtp_sender_dependent_authentication}</td>\n\t\t\t<td><strong>{smtp_sender_dependent_authentication}</strong><div class=caption>{smtp_sender_dependent_authentication_text}</div>\n\t\t\t</tr>\t\t\t\n\t\t\t<tr>\n\t\t\t<td colspan=2 align='right'><input type='button' value='{apply} »' OnClick=\"javascript:SaveEnableSasl();\"></td>\n\t\t\t</tr>\n\t\t</table>\n\t\t\t<br><br><br>") . "</td></tr></table></form>";
$page = otherinfo();
$js["JS"][] = 'js/postfix-sasl.js';
$tplusr = new template_users('{sasl_title}', "{$html}<br><div id='infos'>{$page}</div>", 0, 0, 0, 0, $js);
echo $tplusr->web_page;
}
示例5: Page
function Page()
{
$main = new main_cf();
$smtp_sasl_auth_enable = $main->main_array["smtp_sasl_auth_enable"];
$page = CurrentPageName();
$intro = applysettings("postfix") . RoundedLightBlue('<p style="text-align:justify;"><img src="img/infowarn-64.png" align=left style="margin:3px">{smtp_sasl_auth_enable_text}</p>');
$intro = $intro . "<br>" . "" . "<script>LoadAjax('sasllist','{$page}?loadsaslList=yes');</script>";
$form = "" . RoundedLightGrey("\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'>" . Field_yesno_checkbox_img('smtp_sasl_auth_enable', $smtp_sasl_auth_enable, '{enable_disable}') . "</td>\n\t<td>\n\t\t<H5>{smtp_sasl_auth_enable}</H5>\n\t\t<br>\n\t\t{smtp_sasl_auth_enable_text2}\n\t</td>\n\t</tr>\n\t<tr>\n\t\t<td align='right' colspan=2><input type='button' OnClick=\"javascript:EditSasl();\" value='{apply} »'></td>\n\t</tr>\n\t</table>") . "\n\t<br>\n\t" . RoundedLightGrey("\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'><img src='img/klakcon_285.png'></td>\n\t<td>\n\t\t<H5>{add_credentials}</H5>\n\t<br>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td colspan=2><strong>{isp_server_name}:</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=2>" . Field_text('isp_server_name', null) . "</td>\n\t\t</tr>\t\t\n\t\t<tr>\n\t\t\t<td width=1% nowrap align='right'><strong>{username}:</strong></td>\n\t\t\t<td>" . Field_text('username', null) . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td align='right'><strong>{password}:</strong></td>\n\t\t\t<td>" . Field_text('password', null) . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td colspan=2 align='right'><input type='button' value='{add} »' OnClick=\"javascript:sasl_add_isp_relay();\">\n\t\t</tr>\t\t\t\n\t\t</table>\n\t</td>\n\t</tr>\n\t</table>") . "<br>" . RoundedLightGrey("<H5>{table}</H5><div id='sasllist'></div>");
$html = "\n\t\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top' width=50%>\t\n\t{$form}</td>\n\t<td valign='top' width=50%>" . RoundedLightGreen("<table style='width:100%'>\n\t<tr><td width=1%>" . imgtootltip('restore-on.png', '{go_back}', "MyHref('artica.wizard.php')") . "</td>\n\t<td><H5>{return_to} {artica_wizard}</H5></td>\n\t</tr></table>") . "<br>{$intro}</td>\n\t</tr>\n\t</table>";
$cfg["LANG_FILE"] = "artica.wizard.php";
$cfg["JS"][] = "js/postfix-sasl.js";
$tpl = new template_users('{send_to_isp}', $html, 0, 0, 0, 0, $cfg);
echo $tpl->web_page;
}
示例6: Status
function Status()
{
$kav = new kav4mailservers();
$linkPattern = texttooltip($kav->pattern_date, '{time_date_com_text_moscow}', 'http://www.timeanddate.com/worldclock/city.html?n=166');
$page = CurrentPageName();
if ($kav->pid == null) {
$img1 = "status_critical.gif";
} else {
$img1 = "status_ok.gif";
}
$status = RoundedLightGreen("\n<H4>Status</H4>\n<table style='width:100%'>\n<tr>\n\t<td valign='top'align='center'><img src='img/{$img1}'></td>\n\t<td align=right valign='top' ><strong>{use_pid}:</strong></td>\n\t<td valign='top'>{$kav->pid}</td>\n</tr>\n<tr>\n\t<td valign='top' align='center'><img src='img/{$img1}'></td>\n\t<td align=right valign='top'><strong>{memory}:</strong></td>\n\t<td valign='top'>{$kav->memory} mb</td>\n</tr>\n\n<tr>\n\t<td valign='top' align='center'><img src='img/icon_info.gif'></td>\n\t<td align=right valign='top'><strong>{version}:</strong></td>\n\t<td valign='top'>{$kav->version}</td>\n</tr>\n<tr>\n<td valign='top' align='center'><img src='img/icon_info.gif'></td>\n<td nowrap align=right valign='top'><strong>{pattern_ver}:</strong></td>\n<td><strong>{$linkPattern}</strong></td>\n\n</tr>\n<tr><td colspan=3 align='right'>" . imgtootltip('icon_refresh-20.gif', '{refresh}', "LoadAjax('servinfos','{$page}?Status=yes');") . "</td></tr>\n</table>");
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($status);
}
示例7: PageAveServerUpdateConfig
function PageAveServerUpdateConfig()
{
$yum = new usersMenus();
$tpl = new templates();
if ($yum->AsPostfixAdministrator == false) {
return $tpl->_ENGINE_parse_body("<h3>{not allowed}</H3>");
}
include_once dirname(__FILE__) . '/ressources/kav4mailservers.inc';
$kav = new kav4mailservers(1);
$array_conf = $kav->array_conf["updater.options"];
$cron = $kav->CronTask();
$UseUpdateServerUrl = Field_yesno_checkbox_img('UseUpdateServerUrl', $array_conf["UseUpdateServerUrl"]);
$UseUpdateServerUrlOnly = Field_yesno_checkbox_img('UseUpdateServerUrlOnly', $array_conf["UseUpdateServerUrlOnly"]);
$PassiveFtp = Field_yesno_checkbox_img('PassiveFtp', $array_conf["PassiveFtp"]);
$html = "\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td valign='top'><img src='img/bg_download.jpg'></td>\n\t\t<td valign='top'>\n\t\t" . RoundedLightGreen("<strong>{schedule}:« {$cron} »</strong>") . "<br>" . RoundedLightGrey("<form name=ffmupdate>\n\t\t<input type='hidden' value='{$array_conf["PostUpdateCmd"]}' name='PostUpdateCmd'>\n\t\t<H4>{keepup2date settings}</H4>\n\t\t<table>\n\t\t<tr>\n\t\t<td>{$UseUpdateServerUrl}</td>\n\t\t<td align='left' nowrap>{UseUpdateServerUrl}</td>\n\t\t\n\t\t</tr>\n\t\t<tr>\n\t\t<td>{$UseUpdateServerUrlOnly}</td>\n\t\t<td align='left'>{UseUpdateServerUrlOnly}</td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td>{$PassiveFtp}</td>\n\t\t<td align='left'>{PassiveFtp}</td>\n\t\t</tr>\t\t\t\n\t\t</table>\n\t\t<table>\n\t\t<tr>\n\t\t<td align='right' nowrap>{UpdateServerUrl}:</td>\n\t\t<td align='left'>" . Field_text('UpdateServerUrl', $array_conf["UpdateServerUrl"]) . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t<td align='right'>{ProxyAddress}:</td>\n\t\t<td align='left'>" . Field_text('ProxyAddress', $array_conf["ProxyAddress"]) . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t<td align='right'>{ConnectTimeout}:</td>\n\t\t<td align='left'>" . Field_text('ConnectTimeout', $array_conf["ConnectTimeout"], '') . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t<td colspan=2 align='right'><input type='button' OnClick=\"javascript:ParseForm('ffmupdate','users.kav.php',true);\" value='{submit} »'></td>\n\t\t</tr>\n\t\t</table>\n\t\t</form>") . "<br>\n\n\t\t\n\t\t\t\n\t\t<br>\n\t\t</td>\n\t\t</tr>\n\t\t<tr><td align='center' colspan=2><input type='button' OnClick=\"javascript:KavUpdates()\" value='« {update_now} »'></td></tr>\n\t\t<tr><td colspan=2>" . UpdatesError() . UpdatesSuccess() . "</td>\n\t\t</tr>\n\t\t</table>\n\t\t";
return $tpl->_ENGINE_parse_body($html);
}
示例8: squid_booster_smp
function squid_booster_smp($encoded)
{
$sock = new sockets();
$array = unserialize(base64_decode($encoded));
if (!is_array($array)) {
return;
}
if (count($array) == 0) {
return;
}
$html[] = "\n\t\t\t<div style='min-height:115px'>\n\t\t\t<table>\n\t\t\t<tr><td colspan=2 style='font-size:14px;font-weight:bold'>Cache(s) Booster</td></tr>\n\t\t\t";
while (list($proc, $pourc) = each($array)) {
$html[] = "<tr>\n\t\t<td width=1% nowrap style='font-size:13px;font-weight:bold'>Proc #{$proc}</td><td width=1% nowrap>" . pourcentage($pourc) . "</td></tr>";
}
$html[] = "</table></div>";
return RoundedLightGreen(@implode("\n", $html));
}
示例9: INDEX
function INDEX()
{
if (!isset($_GET["ou"])) {
header('location:domains.index.php');
exit;
}
$page = CurrentPageName();
$ou = $_GET["ou"];
$ldap = new clladp();
$country = CountriesList();
$array = array("delete" => "{delete_mail}", "quarantine" => "{quarantine}");
$action = Field_array_Hash($array, 'action', null);
$form = "<table style='width:60%'>\n\t\n\t<tr>\n\t<td align='right'><strong>{countries}:</strong></td>\n\t<td>{$country}</td>\n\t</tr>\n\t<td align='right'><strong>{action}:</strong>\n\t<td>{$action}</td>\n\t</tr>\n\t<tr>\n\t<td colspan=2 align='right'><input type='button' value='{add} »' OnClick=\"javascript:AddDenyCountry();\"></td>\n\t</tr>\n\t</table>\n\t\n\t";
$form = RoundedLightGreen($form);
$html = "\n\t<input type='hidden' name='ou' value='{$ou}' id='ou'>\n\t<table style='width:100%'>\n\t<tr>\n\t<td width=1%><img src='img/bg_deny-country.jpg'></td>\n\t<td width=99% valign='top'><p class='caption'>{deny_country_explain}</caption></td>\n\t</tr>\n\t</table>\n{$form}\n\t<div id='CountryList'></div>\n\t\n\t\n\t<script>LoadAjax('CountryList','{$page}?LoadDenyCountries={$ou}');</script>\n\t";
$cfg["JS"][] = "js/denycountries.ou.js";
$tpl = new template_users('{deny_countries}', $html, 0, 0, 0, 0, $cfg);
echo $tpl->web_page;
}
示例10: PageSystem_interfaces
function PageSystem_interfaces()
{
$tpl = new templates();
$sys = new systeminfos();
if (!is_array($sys->array_ip)) {
return $tpl->_ENGINE_parse_body('{system error} line' . __LINE__);
}
while (list($num, $val) = each($sys->array_ip)) {
$ip = $ip . "<tr>\n\t\t<td width=1%><img src='img/nic-table.jpg'></td>\n\t\t<td width=1%>{$num}</td>\n\t\t<td>{$val["MAC"]}</td>\n\t\t<td >{$val["IP"]}</td>\n\t\t</tr>";
}
if (is_array($sys->array_dns_servers)) {
while (list($num, $val) = each($sys->array_dns_servers)) {
$count = $count + 1;
$dns = $dns . "<tr>\n\t\t<td width=1%><img src='img/nic-table.jpg'></td>\n\t\t<td width=50%>{dns_server} {$count}</td>\n\t\t<td width=49%>{$val}</td>\n\t\t</tr>";
}
}
$html = "<table style='width:600px' align=center>\n<tr>\n<td valign='top'>\n\t<img src='img/150-nic.jpg'>\n\t<table style='width:100%;margin-top:5px'>\n\t<tr>\n\t<td valign='top' >" . Paragraphe('folder-equerre-64.jpg', '{nic_static_dns}', '{nic_static_dns_text}', 'system.nic.staticdns.php') . "</td>\n\t</tr>\n\t<tr>\n\t<td valign='top' >" . Paragraphe('64-ip-settings.png', '{net_settings}', '{net_settings_text}', 'system.nic.config.php') . "</td>\n\t</tr>\t\n\t\n\t\n\t\n\t</table>\n\t\n</td>\n<td valign='top'>\t\n" . RoundedLightGrey("\n\t<h5>{nic_interfaces}</H5>\n\t\t<table style='width:70%' align='center'>\n\t\t{$ip}\n\t\t</table>\n\t") . "<br>" . RoundedLightGreen("\n\t<h5>{dns_servers}</H5>\n\t\t<table style='width:70%' align='center'>\n\t\t{$dns}\n\t\t</table>\t\t\n\t\t") . "\n\t</td>\n\t</tr>\n\t</table>";
return $tpl->_ENGINE_parse_body($html);
}
示例11: INDEX
function INDEX()
{
if (!isset($_GET["ou"])) {
header('location:domains.index.php');
exit;
}
$page = CurrentPageName();
$ou = $_GET["ou"];
$ldap = new clladp();
$hash = $ldap->OUDatas($_GET["ou"]);
$rbl = RblForm();
$array = array("delete" => "{delete_mail}", "quarantine" => "{quarantine}", "pass" => "{pass}");
$action = Field_array_Hash($array, 'action', $hash["SURBLServersAction"]);
$form = "<table style='width:60%'>\n\t<td align='right' nowrap><strong>{action_100_pourc}:</strong>\n\t<td>{$action}</td>\n\t<td align='right'><input type='button' value='{apply} »' OnClick=\"javascript:EditActionSURbl();\"></td>\n\t</tr>\n\t<tr>\n\t<td align='right'><strong>{rbl_servers}:</strong></td>\n\t<td>{$rbl}</td>\n\t<td align='right'><input type='button' value='{add} »' OnClick=\"javascript:AddSurblServer();\"></td>\n\t</tr>\n\t</table>\n\t\n\t";
$form = RoundedLightGreen($form);
$html = "\n\t<input type='hidden' name='ou' value='{$ou}' id='ou'>\n\t<p class='caption'>{surbl_explain}</p>\n\t{$form}\n\t<div id='rbl-list'></div>\n\t\n\t\n\t<script>LoadAjax('rbl-list','{$page}?rbl-list={$ou}');</script>\n\t";
$cfg["JS"][] = "js/denycountries.ou.js";
$tpl = new template_users('{surbl_rules}', $html, 0, 0, 0, 0, $cfg);
echo $tpl->web_page;
}
示例12: main_status
function main_status()
{
$users = new usersMenus();
$tpl = new templates();
$ini = new Bs_IniHandler();
$sock = new sockets();
$key_service = "DKIM_FILTER";
$ini->loadString($sock->getfile('dkimstatus', $_GET["hostname"]));
if ($ini->_params["{$key_service}"]["running"] == 0) {
$img = "okdanger32.png";
$rouage = 'rouage_on.png';
$status = "{stopped}";
} else {
$img = "ok32.png";
$status = "running";
}
$status1 = "<table style='width:100%'>\n\t<tr>\n\t<td valign='top'>\n\t\t<img src='img/{$img}'>\n\t</td>\n\t<td valign='top'>\n\t\t<table style='width:100%'>\n\t\t<tr>\n\t\t<td align='right' nowrap><strong>{{$ini->_params["{$key_service}"]["service_name"]}}:</strong></td>\n\t\t<td><strong>{$status}</strong></td>\n\t\t</tr>\t\t\n\t\t<tr>\n\t\t<td align='right'><strong>{pid}:</strong></td>\n\t\t<td><strong>{$ini->_params["{$key_service}"]["master_pid"]}</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td align='right'><strong>{memory}:</strong></td>\n\t\t<td nowrap><strong>{$ini->_params["{$key_service}"]["master_memory"]} kb</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t<td align='right'><strong>{version}:</strong></td>\n\t\t<td><strong>{$ini->_params["{$key_service}"]["master_version"]}</strong></td>\n\t\t</tr>\t\t\t\t\n\t\t<tr><td colspan=2>{$error}</td></tr>\t\n\t\t<tr><td colspan=2> </td></tr>\t\n\t\t\n\t\t</table>\t\t\n\t</td>\n\t</tr>\n\t</table>";
$status1 = RoundedLightGreen($status1);
return $tpl->_ENGINE_parse_body($status1);
}
示例13: INDEX
function INDEX()
{
if (!isset($_GET["ou"])) {
header('location:domains.index.php');
exit;
}
$page = CurrentPageName();
$ou = $_GET["ou"];
$ldap = new clladp();
$hash = $ldap->OUDatas($ou);
$ArticaFakedMailFrom_table = array("pass" => '{pass}', "quarantine" => "{quarantine}", "delete" => "{delete}");
$ArticaFakedMailFrom_field = Field_array_Hash($ArticaFakedMailFrom_table, "ArticaFakedMailFrom", $hash["ArticaFakedMailFrom"], null, null, null, 'width:100px');
$ArticaDenyNoMXRecords_table = array('pass' => '{pass}', "reject" => "{reject}");
$ArticaDenyNoMXRecords_field = Field_array_Hash($ArticaDenyNoMXRecords_table, "ArticaDenyNoMXRecords", $hash["ArticaDenyNoMXRecords"], null, null, null, 'width:100px');
$ArticaOuTrustMyUSers_field = Field_yesno_checkbox_img('OuTrustMyUSers', $hash["OuTrustMyUSers"], '{enable_disable}');
$ArticaOuTrustMyUSers = "<H5>{trust_users}</H5>\n\t<div class=caption>{trust_users_text}</div>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td align='right' valign='top' nowrap><strong>{trust_users}</strong></td>\n\t\t<td align='left' valign='top'>{$ArticaOuTrustMyUSers_field}</td>\n\t\t\n\t</tr>\t\n\t</table>\n\t\n\t";
$ArticaOuTrustMyUSers = RoundedLightGreen($ArticaOuTrustMyUSers);
$html = "\n\t<form name='FFMQ'>\n\t<table style='width:100%;'>\n\t<tr>\n\t\t<td width=50% valign='top' style='margin:4px;padding:4px'>\n\t<input type='hidden' name='ou' value='{$ou}'>\n\t" . RoundedLightGrey("<H5>{ArticaFakedMailFrom}</H5>\n\t<div class=caption>{ArticaFakedMailFrom_text}</div>\n\t<table style='width:90%;border:1px solid #CCCCCC;padding:5px;margin:5px'>\n\t<tr>\n\t\t<td align='right' valign='top' nowrap><strong>{ArticaFakedMailFrom}</strong></td>\n\t\t<td align='left' valign='top'>{$ArticaFakedMailFrom_field}</td>\n\t\t\n\t</tr>\n\t</table>") . "</td>\n\t\n\t\n\t<td width=50% valign='top' style='margin:4px;padding:4px'>" . RoundedLightGrey("\n\t<H5>{ArticaDenyNoMXRecords}</H5>\n\t<div class=caption>{ArticaDenyNoMXRecords_text}</div>\n\t<table style='width:90%;border:1px solid #CCCCCC;padding:5px;margin:5px'>\n\t<tr>\n\t\t<td align='right' valign='top' nowrap><strong>{ArticaDenyNoMXRecords}</strong></td>\n\t\t<td align='left' valign='top'>{$ArticaDenyNoMXRecords_field}</td>\n\t\t\n\t</tr>\t\n\t</table>\n\t") . "\n\t<br>\n\t{$ArticaOuTrustMyUSers}\n\t</td>\n\t</tr>\n\t<tr>\n\t<td colspan=2 align='right' style='border-top:1px solid #CCCCCC'><input type='submit' value='{apply} »' style='width:150px'></td>\n\t</tr>\n\t</table>\n\t</form>";
$cfg["JS"][] = "js/quarantine.ou.js";
$tpl = new template_users('{artica_filters_rules}', $html, 0, 0, 0, 0, $cfg);
echo $tpl->web_page;
}
示例14: FillSenderForm_table
function FillSenderForm_table(){
$sasl=new smtp_sasl_password_maps();
$html="<table style='width:100%'>";
while (list ($num, $val) = each ($sasl->smtp_sasl_password_hash) ){
preg_match('#(.+?):(.+)#',$val,$ath);
$html=$html .
"<tr>
<td width=1%><img src='img/fw_bold.gif'></td>
<td><strong>$num</strong></td>
<td><strong>{$ath[1]}</td>
</tr>
";
}
$html=$html . "</table>";
return RoundedLightGreen($html);
}
示例15: postfix_relay_clientcerts
function postfix_relay_clientcerts()
{
$page = CurrentPageName();
$table2 = postfix_relay_clientcerts_table();
$table1 = "\n\t<form name='postfixrelayclientcerts'>\n\t<table style='width:100%'>\n\t<tr>\n\t<td align='right'><strong style='font-size:12px'>{fingerprint}:</strong></td>\n\t<td>" . Field_text('fingerprint', null, 'width:100%') . "</td>\n\t</tr>\n\t<tr>\n\t<td align='right'><strong style='font-size:12px'>{host}</strong>:</td>\n\t<td>" . Field_text('host', null, 'width:100%') . "</td>\n\t</tr>\n\t<tr>\n\t<td colspan=2 align='right'><input type='button' value='{add} »' OnClick=\"postfix_relay_clientcerts_add();\"></td>\n\t</table>\n\t</form>";
$table1 = RoundedLightGreen($table1);
$html = "\n\t<H5>{client_certificate_fingerprints}</H5>\n\t<div style='float:right;width:290px;'>{$table1}</div><p class=caption>{client_certificate_fingerprints_text}</p>\n\t<div id='postfix_relay_clientcerts'>" . postfix_relay_clientcerts_table() . "</div>\n\t";
$tpl = new templates();
return $tpl->_ENGINE_parse_body($html);
}