本文整理汇总了PHP中Field_yesno_checkbox_img函数的典型用法代码示例。如果您正苦于以下问题:PHP Field_yesno_checkbox_img函数的具体用法?PHP Field_yesno_checkbox_img怎么用?PHP Field_yesno_checkbox_img使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Field_yesno_checkbox_img函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: popup_index
function popup_index()
{
$main = new main_cf();
$html = "<H1>{address_verify_map_minitext}</H1>" . RoundedLightWhite("<p class=caption>{address_verify_map_text}</p>") . "<br>\n\n\n<form name='FFMDBCache'>\n\n<table style='width:600px' align=center>\n<tr>\n<td valign='top'>\n\t\t" . RoundedLightWhite("\n\t\t<table style='width:100%;margin:10px'>\n\t\t\t<tr>\n\t\t\t\t<td nowrap class=legend>{address_verify_map_field}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_map', str_replace('btree:', '', $main->main_array["address_verify_map"])) . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td nowrap class=legend>{address_verify_negative_cache}:</strong></td>\n\t\t\t\t<td>" . Field_yesno_checkbox_img('address_verify_negative_cache', $main->main_array["address_verify_negative_cache"], '{address_verify_negative_cache_text}') . "</td>\n\t\t\t</tr>\t\n\t\t\t<tr>\n\t\t\t\t<td nowrap class=legend>{address_verify_poll_count}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_poll_count', $main->main_array["address_verify_poll_count"], 'width:30%', null, null, '{address_verify_poll_count_text}') . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td nowrap class=legend>{address_verify_poll_delay}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_poll_delay', $main->main_array["address_verify_poll_delay"], 'width:30%', null, null, '{address_verify_poll_delay_text}') . "</td>\n\t\t\t</tr>\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td nowrap class=legend>{address_verify_sender}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_sender', $main->main_array["address_verify_sender"], 'width:30%', null, null, '{address_verify_sender_text}') . "</td>\n\t\t\t</tr>\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td align='right' nowrap class=legend>{address_verify_negative_expire_time}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_negative_expire_time', $main->main_array["address_verify_negative_expire_time"], 'width:30%', null, null, '{address_verify_negative_expire_time_text}') . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td align='right' nowrap class=legend>{address_verify_negative_refresh_time}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_negative_refresh_time', $main->main_array["address_verify_negative_refresh_time"], 'width:30%', null, null, '{address_verify_negative_refresh_time_text}') . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td align='right' nowrap class=legend>{address_verify_positive_expire_time}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_positive_expire_time', $main->main_array["address_verify_positive_expire_time"], 'width:30%', null, null, '{address_verify_positive_expire_time_text}') . "</td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td align='right' nowrap class=legend>{address_verify_positive_refresh_time}:</strong></td>\n\t\t\t\t<td>" . Field_text('address_verify_positive_refresh_time', $main->main_array["address_verify_positive_refresh_time"], 'width:30%', null, null, '{address_verify_positive_refresh_time_text}') . "</td>\n\t\t\t</tr>\t\t\t\t\t\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\t\n\n\t\t\t\n\t\t\t\t\t\n\t\t\t<tr>\n\t\t\t\t<td align='right' colspan=2><input type='button' value='{delete} »' OnClick=\"PostFixVerifyDatabaseDeleteSave();\"> <input type='button' value='{edit} »' OnClick=\"PostFixVerifyDatabaseSave();\"></td>\n\t\t\t</tr>\t\t\t\t\n\t\t</table>") . "\n</td>\n</tr>\n</table></form>";
$tpl = new Templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例2: PostFixAddServerCache
function PostFixAddServerCache()
{
$page = CurrentPageName();
$html = "<div style='padding:20px'>\n\t<H3>{add_server_domain}</H3>\n\t<p> </p>\n\t<form name='FFM3Cache'>\n\t<input type='hidden' name='PostFixAddServerCacheSave' value='yes'>\n\t<table style='width:100%'>\n\t<tr>\n\t<td class=legend nowrap><strong>{domain}:</strong></td>\n\t<td>" . Field_text('domain', $domainName) . "</td>\n\t</tr>\n\t<td class=legend nowrap nowrap><strong>{or} {relay_address}:</strong></td>\n\t<td>" . Field_text('relay_address', $relay_address) . "</td>\t\n\t</tr>\n\t</tr>\n\t<td class=legend nowrap nowrap><strong>{smtp_port}:</strong></td>\n\t<td>" . Field_text('relay_port', $smtp_port) . "</td>\t\n\t</tr>\t\n\t<tr>\n\t<td class=legend nowrap nowrap>" . Field_yesno_checkbox_img('MX_lookups', 'yes', '{enable_disable}') . "</td>\n\t<td>{MX_lookups}</td>\t\n\t</tr>\n\t{$sasl}\n\t<tr>\n\t<td colspan=2 align='right'><input type='button' value='{add} »' OnClick=\"PostFixSaveServerCache();\"></td>\n\t</tr>\t\t\n\t<tr>\n\t<td align='left' class=caption colspan=2><strong>{MX_lookups}</strong><br>{MX_lookups_text}</td>\n\t</tr>\t\t\t\n\t\t\n\t</table>\n\t</FORM>";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例3: PostfixAddFallBackServer
function PostfixAddFallBackServer()
{
$ldap = new clladp();
if ($_GET["domainName"] != null) {
$main = new main_cf();
$tool = new DomainsTools();
$arr = explode(',', $main->main_array["smtp_fallback_relay"]);
if (is_array($arr)) {
$array = $tool->transport_maps_explode($arr[$_GET["domainName"]]);
$relay_address = $array[1];
$smtp_port = $array[2];
$MX_lookup = $array[3];
$hidden = "<input type='hidden' name='TableIndex' value='{$_GET["domainName"]}'>";
}
}
if ($smtp_port == null) {
$smtp_port = 25;
}
if ($MX_lookup == null) {
$MX_lookup = 'yes';
}
$html = "<div style='padding:20px'>\n\t<H3>{add_server}</H3>\n\t<p> </p>\n\t<form name='FFM3'>\n\t{$hidden}\n\t<input type='hidden' name='PostfixAddFallBackerserverSave' value='yes'>\n\t<table style='width:100%'>\n\t<td align='right' nowrap><strong>{relay_address}:</strong></td>\n\t<td>" . Field_text('relay_address', $relay_address) . "</td>\t\n\t</tr>\n\t</tr>\n\t<td align='right' nowrap><strong>{smtp_port}:</strong></td>\n\t<td>" . Field_text('relay_port', $smtp_port) . "</td>\t\n\t</tr>\t\n\t<tr>\n\t<td align='right' nowrap>" . Field_yesno_checkbox_img('MX_lookups', $MX_lookup, '{enable_disable}') . "</td>\n\t<td>{MX_lookups}</td>\t\n\t</tr>\n\n\t<tr>\n\t<td align='right' class=caption colspan=2><input type='button' value='{edit} »' OnClick=\"javascript:XHRPostfixAddFallBackerserverSave();\"></td>\n\t</tr>\t\t\n\t<tr>\n\t<td align='left' class=caption colspan=2><strong>{MX_lookups}</strong><br>{MX_lookups_text}</td>\n\t</tr>\t\t\t\n\t\t\n\t</table>\n\t</FORM>\n\t\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例4: GeneralSettings
function GeneralSettings()
{
$ave = new kav4mailservers(1, null, 1);
$page = CurrentPageName();
$tpl = new Templates(null, null, null, 1);
$html = Tabs() . "\n\t<fieldset>\n\t\t<legend>{general_settings}</legend>\n\t<form name='ffm1'>\t\t\n\t<table style='width:100%'>\n\t<input type='hidden' name='KEY' value='smtpscan.general'>\n\t\t<tr>\n\t\t\t<td align='right' nowrap><strong>{NotifyFromAddress}:</strong></td>\n\t\t\t<td>" . Field_text('NotifyFromAddress', $ave->array_conf["smtpscan.general"]["NotifyFromAddress"]) . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t<tr><td colspan=2> </td></tr>\n\t\t<tr>\n\t\t\t<td align='right' valign='top'>" . Field_yesno_checkbox_img('EHLOsupport8BITMIME', $ave->array_conf["smtpscan.general"]["EHLOsupport8BITMIME"], '{enable_disable}') . "</td>\n\t\t\t<td align='left' class='caption'><strong>:{EHLOsupport8BITMIME}</strong>{EHLOsupport8BITMIME_text}</td>\n\t\t</tr>\n\t\t\n\t\t<tr>\n\t\t<tr><td colspan=2> </td></tr>\n\t\t\n\t\t<tr>\n\t\t\t<td align='right' valign='top'>" . Field_yesno_checkbox_img('EHLOsupportDSN', $ave->array_conf["smtpscan.general"]["EHLOsupportDSN"], '{enable_disable}') . "</td>\n\t\t\t<td align='left' class=caption><strong>:{EHLOsupportDSN}</strong>{EHLOsupportDSN_text}</td>\n\t\t</tr>\n\t\t\n\t\t<tr><td colspan=2> </td></tr>\n\t\t<tr>\n\t\t\t<td align='right' valign='top'>" . Field_yesno_checkbox_img('EHLOsupportXFORWARD', $ave->array_conf["smtpscan.general"]["EHLOsupportXFORWARD"], '{enable_disable}') . "</td>\n\t\t\t<td align='left'><strong>:{EHLOsupportXFORWARD}</strong></td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td align='right'><strong>{EHLOattrsXFORWARD}:</strong></td>\n\t\t\t<td align='right' valign='top'>" . Field_text('EHLOattrsXFORWARD', $ave->array_conf["smtpscan.general"]["EHLOattrsXFORWARD"]) . "</td>\n\t\t</tr>\t\t\n\t\t<tr>\n\t\t<td> </td>\n\t\t<td class='caption'>{EHLOsupportXFORWARD_text}<br><b>protocol:</b>{$ave->array_conf["smtpscan.general"]["Protocol"]} « {$ave->array_conf["smtpscan.general"]["ForwardMailer"]} »</td>\n\t\t</tr>\n\t\t<tr><td colspan=2 style='text-align:right;padding-right:10px'><input type='button' value='{submit} »' OnClick=\"javascript:ParseForm('ffm1','{$page}',true);\"></td></tr>\n\t</table>\n\t</form>\n\t</fieldset>";
return $tpl->_ENGINE_parse_body($html);
}
示例5: PagePostFixQueue_1
function PagePostFixQueue_1()
{
$main = new main_cf();
$save = "<input type='button' value='{submit}»' OnClick=\"javascript:ParseForm('ffmStorageQueue','tree.listener.postfix.php',true);\">";
$html = "\n\t\t<div id=tablist>\n\t\t<li><a href=\"javascript:PagePostFixQueueTab(1)\" id=tab_current>{bounce_messages_rules}</a></li>\n\t\t<li><a href=\"javascript:PagePostFixQueueTab(2)\">{queue_settings}</a></li>\n\t\t</div>\n\t\t\n\t\t<H5 style='margin:0px;margin-bottom:4px;font-size:14px;'>{bounce_messages_rules}</H5>\n\t\t\t<p class=caption >{bounce_messages_rules_text}</p>\n\t\t" . RoundedLightWhite("<div style='width:100%;height:400px;overflow:auto'>\n\t\t<form name='ffmStorageQueue'>\n\t\t<input type='hidden' name='save_bounce_maincf' value='yes'>\n\t\t<table>\n\t\t<tr><td colspan=2 align='rigth' style='padding-right:10px;text-align:right'>{$save}</td></tr>\n\t\t<tr>\n\t\t\t <td nowrap align='right' class=legend>{soft_bounce}</strong>:</td>\n\t\t\t <td>" . Field_yesno_checkbox_img('soft_bounce', $main->main_array["soft_bounce"], '{enable_disable}') . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td></td>\n\t\t\t<td><i>{soft_bounce_text}</td>\n\t\t</tr>\n\t\t<!-- -- --- --->\n\t\t<tr><td colspan=2> </td></tr>\n\t\t<tr>\n\t\t\t <td nowrap align='right' class=legend>{bounce_queue_lifetime}</strong>:</td>\n\t\t\t <td>" . Field_text('bounce_queue_lifetime', $main->main_array["bounce_queue_lifetime"], 'width:20%') . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td></td>\n\t\t\t<td><i>{bounce_queue_lifetime_text}</td>\n\t\t</tr>\t\t\n<!-- -- --- --->\n\t\t<tr><td colspan=2> </td></tr>\n\t\t<tr>\n\t\t\t <td nowrap align='right' class=legend>{bounce_service_name}</strong>:</td>\n\t\t\t <td>" . Field_array_Hash($main->services_lists, 'bounce_service_name', $main->main_array["bounce_service_name"]) . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td></td>\n\t\t\t<td><i>{bounce_service_name_text}</td>\n\t\t</tr>\n<!-- -- --- --->\n\t\t<tr><td colspan=2> </td></tr>\n\t\t<tr>\n\t\t\t <td nowrap align='right' class=legend>{bounce_size_limit}</strong>:</td>\n\t\t\t <td>" . Field_text('bounce_size_limit', $main->main_array["bounce_size_limit"], 'width:20%') . " (bytes)</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td></td>\n\t\t\t<td><i>{bounce_size_limit_text}</td>\n\t\t</tr>\t\t\t\t\t\t\t\n<!-- -- --- --->\n\t\t<tr><td colspan=2> </td></tr>\n\t\t<tr>\n\t\t\t <td nowrap align='right' valign='top'><strong>{bounce_template_file}</strong>:</td>\n\t\t\t <td><table>\n\t\t\t \t<tr>\n\t\t\t \t\t<td width='1%'>" . ($link = imgtootltip('edit.jpg', '{apply}', "PostFixBounceTemplate('failure_template')") . "</td>\n\t\t\t \t\t<td><a href=\"javascript:PostFixBounceTemplate('failure_template');\"><strong>{failure_template}</strong></a>\n\t\t\t \t</tr>\n\t\t\t \t<tr>\n\t\t\t \t\t<td width='1%'>" . ($link = imgtootltip('edit.jpg', '{apply}', "PostFixBounceTemplate('delay_template')") . "</td>\n\t\t\t \t\t<td><a href=\"javascript:PostFixBounceTemplate('delay_template');\"><strong>{delay_template}</strong></a>\n\t\t\t \t</tr>\n\t\t\t \t<tr>\n\t\t\t \t\t<td width='1%'>" . ($link = imgtootltip('edit.jpg', '{apply}', "PostFixBounceTemplate('success_template')") . "</td>\n\t\t\t \t\t<td><a href=\"javascript:PostFixBounceTemplate('success_template');\"><strong>{success_template}</strong></a>\n\t\t\t \t</tr>\n\t\t\t \t<tr>\n\t\t\t \t\t<td width='1%'>" . ($link = imgtootltip('edit.jpg', '{apply}', "PostFixBounceTemplate('verify_template')") . "</td>\n\t\t\t \t\t<td><a href=\"javascript:PostFixBounceTemplate('verify_template');\"><strong>{verify_template}</strong></a>\n\t\t\t \t</tr>\t\n\t\t\t\t</table>\n\t\t\t </td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td></td>\n\t\t\t<td><i>{bounce_template_file_text}</td>\n\t\t</tr>\t\t\t\n<!-- -- --- --->\n\t\t<tr><td colspan=2> </td></tr>\n\t\t<tr>\n\t\t\t <td nowrap align='right' class=legend>{bounce_notice_recipient}</strong>:</td>\n\t\t\t <td>" . Field_text('bounce_notice_recipient', $main->main_array["bounce_notice_recipient"], 'width:40%') . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td></td>\n\t\t\t<td><i>{bounce_notice_recipient_text}</td>\n\t\t</tr>\t\t\t\t\t\t\t\n<!-- -- --- --->\t\n\t\t<tr><td colspan=2> </td></tr>\n\t\t<tr>\n\t\t\t <td nowrap align='right' class=legend>{double_bounce_sender}</strong>:</td>\n\t\t\t <td>" . Field_text('double_bounce_sender', $main->main_array["double_bounce_sender"], 'width:40%') . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td></td>\n\t\t\t<td><i>{double_bounce_sender_text}</td>\n\t\t</tr>\t\t\t\t\t\t\t\n<!-- -- --- --->\t\t\t\n\t\t<tr><td colspan=2 align='rigth' style='padding-right:10px;text-align:right'>{$save}</td></tr>\n\t</table>\n\t\t</form></div>")))));
$tpl = new templates();
return $tpl->_ENGINE_parse_body($html);
}
示例6: 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;
}
示例7: 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;
}
示例8: 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);
}
示例9: FetchPage
function FetchPage()
{
$mny = new usersMenus();
if ($mny->AllowFetchMails == false) {
users_page();
exit;
}
$option[""] = "{default}";
$option["pop3"] = "POP3";
$option["pop2"] = "POP2";
$option["imap"] = "IMAP";
$option["imap-k4"] = "IMAP-K4";
$option["imap-gss"] = "IMAP-GSS";
$option["apop"] = "APOP";
$option["kpop"] = "KPOP";
$auth[""] = "Default";
$auth["password"] = "PASSWORD";
$auth["kerberos_v5"] = "KERBEROS_V5";
$auth["kerberos_v4"] = "KERBEROS_V4";
$auth["gssapi"] = "GSSAPI";
$auth["cram-md5"] = "CRAM-MD5";
$auth["otp"] = "OTP";
$auth["ntlm"] = "NTLM";
$auth["ssh"] = "SSH";
$status = '{add mode}';
if (isset($_GET["Fetchedit"])) {
$ldap = new clladp();
$hashusr = $ldap->UserDatas($_SESSION["uid"]);
$datas = $hashusr["fetchmail"][$_GET["Fetchedit"]];
$id = "<input type='hidden' name='array_num' id='array_num' value='{$_GET["Fetchedit"]}'>";
$status = '{edit mode}';
}
$protocol = Field_array_Hash($option, 'proto', $datas["proto"]);
$authent = Field_array_Hash($auth, 'auth', $datas["auth"]);
$livemess = Field_yesno_checkbox_img('keep', $datas["keep"]);
$ssl = Field_yesno_checkbox_img('ssl', $datas["ssl"]);
$page = CurrentPageName();
$html = TabsPage() . "\n\t\t<legend>{remote-mail retrieval}</legend>\n\t\t\n\t\t<table>\n\t\t<tr>\n\t\t<td valign='top' width=1%'><img src='img/updaterX-192.gif'></td>\n\t\t<td valign='top'>\n\t\t<fieldset style='width:90%'><legend>{$status}</legend>\n\t\t<form name=ffmFetch>{$id}\n\t\t<table style='width:99%'>\n\t\t<tr>\n\t\t\t<td valing='top' align='right' colspan=2 style='padding-right:20px'><input type='button' OnClick=\"javascript:document.location.href='{$page}?tab=1'\" value='{add} {new} {rule} »' ></td>\n\t\t</tr>\t\t\t\n\t\t<tr>\n\t\t\t<td valing='top' align='right'><strong>{remote server mailbox}:</td>\n\t\t\t<td valing='top' align='left'>" . Field_text('pool', $datas["pool"], 'width:50%') . " {$protocol}</td>\n\t\t</tr>\t\t\t\n\t\t<tr>\n\t\t\t<td valing='top' align='right'><strong>{remote username}:</td>\n\t\t\t<td valing='top' align='left'>" . Field_text('user', $datas["user"]) . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td valing='top' align='right'><strong>{remote password}:</td>\n\t\t\t<td valing='top' align='left'><input type='password' name='pass' id='pass' style='width:50%' value='{$datas["pass"]}'> {$authent}</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td valing='top' align='right'><strong>{Leave messages on server}:</td>\n\t\t\t<td valing='top' align='left'>{$livemess}</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td valing='top' align='right'><strong>{Connect in SSL mode}:</td>\n\t\t\t<td valing='top' align='left'>{$ssl}</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td valing='top' align='right' colspan=2><input type='button' value='{submit} »' OnClick=\"javascript:SaveFetchForm();\"></td>\n\t\t</tr>\t\n\t\t</table>\t\n\t</form>\n\t</fieldset>\n\t<fieldset style='width:90%'><legend>{list}</legend>" . fetchmail_datas() . "</fieldset>\t\t\t\n\t</td>\n\t</tr>\n\t</table>\n\t\t\t\t\t\t\t\t\t\t\n\t\t</FIELDSET>\n\t\t\n\t\t";
$tpl = new template_users("{remote-mail retrieval}", $html);
echo $tpl->web_page;
}
示例10: 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;
}
示例11: popup
function popup()
{
$ou = $_GET["ou"];
$hostname = $_GET["hostname"];
$main = new maincf_multi($hostname, $ou);
$relayhost = $main->GET("relayhost");
if (preg_match("#(.+?):(.+)#", $main->GET("relayhost_authentication"), $re)) {
$username = $re[1];
$password = $re[2];
}
$page = CurrentPageName();
if ($relayhost != null) {
$tools = new DomainsTools();
$relayhost = "smtp:{$relayhost}";
$relayT = $tools->transport_maps_explode($relayhost);
}
if ($relayT[1] != null) {
$delete = imgtootltip("delete-48.png", "{delete}", "RelayHostDelete()");
}
$form = "\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>\n\t\t</td>\n\t\t<td valign='top'>\n\t\t\t<div class=explain>{relayhost_text}</div>\n\t\t\t<div id='relayhostdiv'>\n\t\t\t\t\t<table style='width:100%'>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td valign='top'>\n\t\t\t\t\t\t<table style='width:100%'>\n\t\t\t\t\t\t<td align='right' nowrap class=legend style='font-size:14px'>{relay_address}:</strong></td>\n\t\t\t\t\t\t<td style='font-size:12px'>" . Field_text('relay_address', $relayT[1], "font-size:14px;padding:3px") . "</td>\t\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<td align='right' nowrap class=legend style='font-size:14px'>{smtp_port}:</strong></td>\n\t\t\t\t\t\t\t<td style='font-size:12px'>" . Field_text('relay_port', $relayT[2], ";font-size:14px;padding:3px;width:90px") . "</td>\t\n\t\t\t\t\t\t</tr>\t\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td align='right' nowrap style='font-size:14px'>" . Field_yesno_checkbox_img('MX_lookups', $relayT[3], '{enable_disable}') . "</td>\n\t\t\t\t\t\t\t<td style='font-size:12px'>{MX_lookups}</td>\t\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<td align='right' nowrap class=legend style='font-size:14px'>{username}:</strong></td>\n\t\t\t\t\t\t\t<td style='font-size:12px'>" . Field_text('username', $username, "font-size:14px;padding:3px") . "</td>\t\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<td align='right' nowrap class=legend style='font-size:14px'>{password}:</strong></td>\n\t\t\t\t\t\t\t<td style='font-size:12px'>" . Field_password('password', $password, "font-size:14px;padding:3px") . "</td>\t\n\t\t\t\t\t\t</tr>\t\t\t\t\t\t\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td align='right' colspan=2 align='right'>" . button("{apply}", "PostfixSaveRelayHost()") . "</td>\n\t\t\t\t\t\t</tr>\t\t\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td align='left' colspan=2><hr><div class=explain>{MX_lookups}<br>{MX_lookups_text}</div></td>\n\t\t\t\t\t\t</tr>\t\t\t\t\t\n\t\t\t\t\t\t</form>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t</td>\n\t\t\t\t\t\t<td valign='top'>{$delete}</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t</div>\n\t\t</td>\n\t</tr>\n</table>";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body("{$form}");
}
示例12: FORBIDDEN_ATTACHMENTS_GROUPS
function FORBIDDEN_ATTACHMENTS_GROUPS($gid)
{
$ldap = new clladp();
$hashG = $ldap->GroupDatas($gid);
$ou = $hashG["ou"];
if ($ou == null) {
$ou = $_GET["ou"];
}
$page = CurrentPageName();
$path = "cn=forbidden_attachments,ou={$ou},dc=organizations,{$ldap->suffix}";
$hash = $ldap->Ldap_search($path, '(&(ObjectClass=FilterExtensionsGroup)(cn=*))', array('cn'));
$html = "\n\t<center><input type='button' value='« {add_attach_rule} »' OnClick=\"javascript:group_add_attach_rule('{$gid}');\"></center>\n\t<form name='FFM1'>\n\t\n\t<input type='hidden' name='SaveAttachmentGroup' value='{$gid}'>\n\t<table style='width:100%;padding:1px;border:1px solid #CCCCCC;margin:20px'>\n\t\t<tr style='background-color:#CCCCCC'>\n\t\t<th> </th>\n\t\t<th><strong>{artica_filtersext_rules} {group}</th>\n\t\t<th><strong>{enabled}</th>\n\t\t</tr>";
if (is_array($hash)) {
for ($i = 0; $i < $hash["count"]; $i++) {
$group_name = $hash[$i]["cn"][0];
if (trim($group_name) != null) {
if ($hashG["FiltersExtensionsGroupName"][$group_name] == "yes") {
$value = 'yes';
} else {
$value = "no";
}
$html = $html . "\n\t\t\t\t<tr style='background-color:#F3F3DF'>\n\t\t\t\t<td width='1%'><img src='img/red-pushpin-24.png'></td>\n\t\t\t\t<td><strong style='font-size:13px'>{$group_name}</strong></td>\n\t\t\t\t<td width=1% align='center'>" . Field_yesno_checkbox_img($group_name, $value, '{enable_disable}') . "</td>\n\t\t\t\t</tr>";
}
}
}
return $html . "\n\t\t<tr>\n\t\t<td width=1% valign='top' align='right' style='background-color:#F6F5E7' colspan=3>\n\t\t<input type='button' value='{apply} »' OnClick=\"javascript:ParseForm('FFM1','{$page}',true);\">\n\t\t</td>\n\t\t</FORM>\n\t\t</table>";
}
示例13: remote_domain_form
function remote_domain_form()
{
$_GET["index"] = base64_decode($_GET["index"]);
$ou = $_GET["ou"];
if (is_base64_encoded($ou)) {
$ou = base64_decode($ou);
}
$ldap = new clladp();
$HashDomains = $ldap->Hash_relay_domains($_GET["ou"]);
$tools = new DomainsTools();
$arr = $tools->transport_maps_explode($HashDomains[$_GET["index"]]);
$page = CurrentPageName();
$autoalias = new AutoAliases($_GET["ou"]);
$users = new usersMenus();
$users->LoadModulesEnabled();
$num = $_GET["index"];
if (strlen($autoalias->DomainsArray[$num]) > 0) {
$alias = "yes";
}
$button_as_settings = Paragraphe('64-buldo.png', '{Anti-spam}', '{antispam_text}', "javascript:Loadjs('domains.amavis.php?domain={$num}');");
if (!$users->AMAVIS_INSTALLED) {
$button_as_settings = null;
}
if ($users->EnableAmavisDaemon != 1) {
$button_as_settings = null;
}
if (!$users->AllowChangeAntiSpamSettings) {
$button_as_settings = null;
}
if ($_GET["index"] != "new domain") {
$dn = "cn=@{$num},cn=relay_recipient_maps,ou={$_GET["ou"]},dc=organizations,{$ldap->suffix}";
$trusted_smtp_domain = 0;
if ($ldap->ExistsDN($dn)) {
$trusted_smtp_domain = 1;
}
$edit_button = "<hr>" . button("{apply}", "EditRelayDomain('{$num}')", "30px");
$trusted = Paragraphe_switch_img("{trusted_smtp_domain}", "{trusted_smtp_domain_text}", "trusted_smtp_domain", $trusted_smtp_domain, "{enable_disable}", 810);
$roundrobin = Paragraphe('64-computer-alias.png', '{roundrobin}', '{roundrobin_text}', "javascript:Loadjs('{$page}?round-robin=yes&ou={$_GET["ou"]}&domain={$num}');");
$form = "\n\t<div style='width:98%' class=form>\n\t<div style='font-size:30px'>{organization}:{$ou}</div>\n\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td><strong style='font-size:18px;color:black'>{domain_name}:</strong></td>\n\t\t\t<td align='right'><strong style='font-size:18px;color:black'>{$_GET["index"]}</strong></td>\n\t\t</tr>\n\t\t<tr>\t\t\t\t\t\t\t\n\t\t\t<td nowrap><strong style='font-size:18px;color:black'>{target_computer_name}: </strong></td>\n\t\t\t<td align='right'>" . Field_text("{$num}_IP", $arr[1], 'width:99%;padding:10px;font-size:18px') . "</td>\n\t\t</tr>\n\t\t\t<td align='right' colspan=2><strong style='font-size:18px;color:black'>{port}: " . Field_text("{$num}_PORT", $arr[2], 'width:110px;padding:3px;font-size:18px') . " " . Field_yesno_checkbox_img("{$num}_MX", $arr[3], '{mx_look}') . " " . Field_yesno_checkbox_img("{$num}_autoaliases", $alias, '<b>{autoaliases}</b><br>{autoaliases_text}') . "\n\t\t\t</td>\n\t\t</tr>\n\t\t\n\t\t<tr>\n\t\t\t<td align='right' colspan=2>{$edit_button}</td>\n\t\t</tr>\n\t</table>\n\t</div>";
} else {
$button_as_settings = null;
$form = "\n\t<div style='width:98%' class=form>\n\t\t\t<div style='font-size:30px'>{organization}:{$ou}</div>\n\t<table style='width:100%'>\n\t\t<tr>\n\t\t\t<td class=legend><strong style='font-size:18px;color:black'>{domain_name}:</strong></td>\n\t\t\t<td align='right'>" . Field_text('AddNewRelayDomainName', null, 'width:98%;padding:10px;font-size:18px') . "</td>\n\t\t</tr>\n\t\t<tr>\t\t\t\t\t\n\t\t\t<td nowrap class=legend><strong style='font-size:18px;color:black'>{target_computer_name}: </strong></td>\n\t\t\t<td align='right'>" . Field_text('AddNewRelayDomainIP', null, 'width:98%;padding:10px;font-size:18px') . "</td>\n\t\t</tr>\n\t\t\t<td align='right' colspan=2><strong style='font-size:18px;color:black'>{port}: " . Field_text('AddNewRelayDomainPort', '25', 'width:120px;padding:3px;font-size:18px') . " " . Field_yesno_checkbox_img('MX', 'no', '{mx_look}') . "\n\t\t\t</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td colspan=2 align='right'><div style='float:right'>" . Paragraphe_switch_img("{trusted_smtp_domain}", "{trusted_smtp_domain_text}", "trusted_smtp_domain", 1, "{enable_disable}", 810) . "</div></td>\n\t\t</tr>\t\t\n\t\t<tr>\n\t\t\t<td align='right' colspan=2>\n\t\t\t<hr>" . button("{add}", "AddRelayDomain()", "22px") . "</td>\n\t\t</tr>\n\t</table></div>";
}
$html = "\n\n<table style='width:100%'>\n<tr>\n\t<td valign='top'>{$form}</td>\n\t<td valign='top' style='padding-left:5px'>{$button_as_settings}{$roundrobin}{$trusted}</td>\n</tr>\n<tr>\n\t<td colspan=2 align='right'>{$edit_button}</td>\n</tr>\n</table>\n\n";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例14: SenderTable
function SenderTable(){
$page=CurrentPageName();
$ldap=new clladp();
if($_GET["domainName"]<>null){
if(strpos($_GET["domainName"],'@')==0){
$domain_f="@".$_GET["domainName"];
$domain=$_GET["domainName"];
}else{
$domain_f=$_GET["domainName"];
$email=$domain_f;
}
$domaintools=new DomainsTools();
$h=$ldap->hash_Sender_Dependent_Relay_host();
$table=$domaintools->transport_maps_explode($h[$domain_f]);
$relay_address=$table[1];
$MX_lookups=$table[3];
}
$main=new main_cf();
if($main->main_array["smtp_sasl_auth_enable"]=="yes"){
$tls_table=$ldap->hash_Smtp_Tls_Policy_Maps();
$tls_value=$tls_table[$relay_address];
writelogs("server \"{$Table[$domainName]}\"=>$smtp_server_line=>".$tls_table[$smtp_server_line] ."($tls_value)",__FUNCTION__,__FILE__);
$field=Field_array_Hash($main->array_field_relay_tls,'smtp_tls_policy_maps',$tls_value);
$sasl="
</tr>
<td align='right' nowrap valign='top'><strong>{tls_level}:</strong></td>
<td style='font-size:12px'>$field<div class='caption'>{use_tls_relay_explain}</div></td>
</tr>";
}
$html="
<H1>{sender_dependent_relayhost_maps_title}</H1>
<p class=caption>{sender_dependent_relayhost_maps_text}</p>
" . RoundedLightWhite("
<form name='FFMSenderTable'>
<input type='hidden' name='SenderTableSave' value='yes'>
<table style='width:100%'>
<tr>
<td align='right' nowrap class=legend>{email}:</strong></td>
<td style='font-size:12px'>" . Field_text('email',$email) . "</td>
</tr>
<tr>
<td align='right' nowrap class=legend>{domain}:</strong></td>
<td style='font-size:12px'>{or} " . Field_text('domain',$domain) . "</td>
</tr>
<tr>
<td align='right' nowrap class=legend>{relay_address}:</strong></td>
<td style='font-size:12px'>" . Field_text('relay_address',$relay_address) . "</td>
</tr>
<tr>
<td align='right' nowrap>" . Field_yesno_checkbox_img('MX_lookups',$MX_lookups,'{enable_disable}')."</td>
<td style='font-size:12px'>{MX_lookups}</td>
</tr>
$sasl
<tr>
<td align='right' colspan=2>". button("{apply}","PostfixAddNewSenderTable()")."</td>
</tr>
</table>
</FORM>
");
$tpl=new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例15: PageKas3ProcessServer
function PageKas3ProcessServer()
{
$page = "kas.engine.settings.php";
$yum = new usersMenus();
$tpl = new templates();
if ($yum->AsPostfixAdministrator == false) {
return $this->tplClass->_ENGINE_parse_body("<h3>{not allowed}</H3>");
}
$kas = new kas_filter();
$arrayyesno = array("yes" => "yes", "no" => "no");
$FilterParseMSOffice = Field_yesno_checkbox_img('FilterParseMSOffice', $kas->array_datas["FilterParseMSOffice"]);
$FilterUDSEnabled = Field_yesno_checkbox_img('FilterUDSEnabled', $kas->array_datas["FilterParseMSOffice"]);
if (isset($_GET["nodiv"])) {
$tabs = ajaxtabs();
} else {
$tabs = PageTabs();
}
$html = "\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'>\n\t\t\t{$tabs}\n\t\t<form name='kas3S'>\n\t\t\t<input type='hidden' name='TreeKas3SaveSettings' value='yes'>\n\t\t\t\n\t\t\t\t<H5>{Process Server Settings}</H5>\n\t\t\t\n\t\t\t\t<table style='width:99%' class=form>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align='right'>{Max. number of filtration processes}:</td>\n\t\t\t\t\t<td><input type='text' id='ServerMaxFilters' name=ServerMaxFilters value='{$kas->array_datas["ServerMaxFilters"]}' style='width:100px'></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align='right'>{Number of filtration processes at server start-up}:</td>\n\t\t\t\t\t<td><input type='text' id='ServerStartFilters' name=ServerStartFilters value='{$kas->array_datas["ServerStartFilters"]}' style='width:100px'></td>\n\t\t\t\t</tr>\t\n\t\t\t\t<tr>\n\t\t\t\t\t<td align='right'>{Number of spare filtration processes}:</td>\n\t\t\t\t\t<td><input type='text' id='ServerSpareFilters' name=ServerSpareFilters value='{$kas->array_datas["ServerSpareFilters"]}' style='width:100px'></td>\n\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\n\t\t\t\t\t<h5>{Check Options}</h5>\n\t\t\t\t<table style='width:99%' class=form>\n\t\t\t\t<tr >\n\t\t\t\t\t<td align='right'>{Number of Received headers to be parsed while retrieving ip address}:</td>\n\t\t\t\t\t<td><input type='text' id='FilterReceivedHeadersLimit' name=FilterReceivedHeadersLimit value='{$kas->array_datas["FilterReceivedHeadersLimit"]}' style='width:100px'></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align='right'>{Overall timeout of all DNS requests}:</td>\n\t\t\t\t\t<td><input type='text' id='FilterDNSTimeout' name=FilterDNSTimeout value='{$kas->array_datas["FilterDNSTimeout"]}' style='width:100px'></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align='right'>{Check MS Word and RTF files}:</td>\n\t\t\t\t\t<td>{$FilterParseMSOffice}</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align='right'>{UDS_enabled}:</td>\n\t\t\t\t\t<td>{$FilterUDSEnabled}</td>\n\t\t\t\t</tr>\n\t\t\t\t<tr >\n\t\t\t\t\t<td align='right'>{Timeout for receiving response from UDS server}:</td>\n\t\t\t\t\t<td><input type='text' id='FilterUDSTimeout' name=FilterUDSTimeout value='{$kas->array_datas["FilterUDSTimeout"]}' style='width:100px'></td>\n\t\t\t\t</tr>\t\t\t\n\t\t\t\t</table>\n\t\t\t\t\t\n\t\t\n\t\t<h5>{Filtration Process}</h5>\n\t\t\t\t<table style='width:99%' class=form>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td align='right'>{Max. number of mail messages to be processed}:</td>\n\t\t\t\t\t\t<td><input type='text' id='FilterMaxMessages' name=FilterMaxMessages value='{$kas->array_datas["FilterMaxMessages"]}' style='width:100px'></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\t\n\t\t\t\t\t\t<td align='right'>{Max. number of mail messages randomization}:</td>\n\t\t\t\t\t\t<td><input type='text' id='FilterRandMessages' name=FilterRandMessages value='{$kas->array_datas["FilterRandMessages"]}' style='width:100px'></td>\n\t\t\t\t\t</tr>\t\n\t\t\t\t\t<tr>\t\n\t\t\t\t\t\t<td align='right'>{Max_idle_time_in_seconds}:</td>\n\t\t\t\t\t\t<td><input type='text' id='FilterMaxIdle' name=FilterMaxIdle value='{$kas->array_datas["FilterMaxIdle"]}' style='width:100px'></td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\t\n\t\t\t\t\t\t<td align='right'>{Exit_delay_in_seconds}:</td>\n\t\t\t\t\t\t<td><input type='text' id='FilterDelayedExit' name=FilterDelayedExit value='{$kas->array_datas["FilterDelayedExit"]}' style='width:100px'></td>\n\t\t\t\t\t</tr>\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t</table>\n\t\t\t\t</form>\n\t\t\t<div align='rigth' style='width:100%;text-align:right'><input type='button' OnClick=\"javascript:ParseForm('kas3S','{$page}',true);\" value='{save parameters} »'></div><br>\n\t\t\t</td>\n\t\t\t</tr>\n\t\t\t</table>";
return $tpl->_ENGINE_parse_body($html);
}