本文整理汇总了PHP中Field_numeric_checkbox_img函数的典型用法代码示例。如果您正苦于以下问题:PHP Field_numeric_checkbox_img函数的具体用法?PHP Field_numeric_checkbox_img怎么用?PHP Field_numeric_checkbox_img使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Field_numeric_checkbox_img函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ADD_PAGE
function ADD_PAGE()
{
if (isset($_GET["EDIT_PAGE"])) {
$ldap = new clladp();
$hash = $ldap->UserDatas($_SESSION["uid"]);
if (preg_match('#<header>(.+?)</header><pattern>(.+?)</pattern><regex>(.+?)</regex><action>(.+?)</action>#', $hash["RegexRules"][$_GET["EDIT_PAGE"]], $reg)) {
$header_field = $reg[1];
$action_value = $reg[4];
$regex_value = $reg[3];
$pattern_value = $reg[2];
$button_name = '{edit}';
$title = '{edit_a_rule}';
$hidden = "<input type='hidden' id='edit' value='{$_GET["EDIT_PAGE"]}'>";
}
} else {
$button_name = "{add}";
$title = "{add_a_rule}";
}
$fields = Field_array_Hash(ARRAY_HEADERS_FIELD(), 'header_field', $header_field);
$array_action = array("quarantine" => "{user_quarantine}", "delete" => "{user_delete}", "pass" => "{user_skip_antispam}");
$action = Field_array_Hash($array_action, 'action', $action_value);
$html = "\n\t<div style='padding:20px'>\n\t{$hidden}\n\t<H3>{$title}</H3>\n\t<p> </p>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td align='right'><strong>{select_header_field}</strong>:</td>\n\t\t<td>{$fields}</td>\n\t<tr>\n\t\t<td align='right'><strong>{match_pattern}</strong></td>\n\t\t<td>" . Field_text('pattern', $pattern_value) . ":</td>\n\t</tr>\t\n\t<tr>\n\t\t<td nowrap align='right'><strong>{use_regex}</strong>:</td>\n\t\t<td>" . Field_numeric_checkbox_img('regex', $regex_value, '{enable_disable}') . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td nowrap align='right'><strong>{then}</strong>:</td>\n\t\t<td>{$action}</td>\n\t</tr>\t\t\t\n\t<tr>\n\t<td colspan=2 class='caption'>{star_explain} {only_regex_off}</td>\t\n\t</tr>\n\t<tr>\n\t<td colspan=2 align='right'><input type='button' value='{$button_name} »' OnClick=\"javascript:AddFilterRule();\"</td>\t\n\t</tr>\t\n\t\n\t\n\t\n\t</table>\n\t\n\t";
//ArticaUserFilterRule
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例2: INDEX
function INDEX()
{
$ave = new kav4mailservers_single($_GET["ou"]);
$html = "\n<table style='width:100%'>\n<tr>\n<td width=1%><img src='img/tank.jpg'></td>\n<td>\n<form name='ffm1' method=get>\n<input type='hidden' name='ou' value='{$_GET["ou"]}'>\n<div class='caption'>{aveserver_intro_global}</div>\n<table style='width:100%'>\n\n\t\t<tr><td colspan=2><h4>{when_found_virus}</H4></td></tr>\n\t\t<tr>\n\t\t\t<td align='right' nowrap><strong>{delete_mail}:</strong></td>\n\t\t\t<td>" . Field_numeric_checkbox_img('DeleteDetectedVirus', $ave->main_array["DeleteDetectedVirus"], '{enable_disable}') . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td align='right' nowrap><strong>{ArchiveMail}:</strong></td>\n\t\t\t<td>" . Field_numeric_checkbox_img('ArchiveMail', $ave->main_array["ArchiveMail"], '{enable_disable}') . "</td>\n\t\t</tr>\t\t\t\n\t\t<tr>\n\t\t\t<td align='right' nowrap><strong>{NotifyFrom}:</strong></td>\n\t\t\t<td>" . Field_numeric_checkbox_img('NotifyFrom', $ave->main_array["NotifyFrom"], '{enable_disable}') . "</td>\n\t\t</tr>\t\n\t\t<tr>\n\t\t\t<td align='right' nowrap><strong>{NotifyTo}:</strong></td>\n\t\t\t<td>" . Field_numeric_checkbox_img('NotifyTo', $ave->main_array["NotifyTo"], '{enable_disable}') . "</td>\n\t\t</tr>\n\t\t\t\n</table>\n\n\n</td>\n</tr>\n<tr>\n<td colspan=2>\n<table style='width:100%'>\n<tr><td colspan=2><h4>{NotifyMessage}</H4></td></tr>\t\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->main_array["NotifyFromAddress"]) . "</td>\n\t\t</tr>\n\t\t<tr>\n\t\t\t<td align='right' nowrap><strong>{NotifyMessageSubject}:</strong></td>\n\t\t\t<td>" . Field_text('NotifyMessageSubject', $ave->main_array["NotifyMessageSubject"]) . "</td>\n\t\t</tr>\t\t\n\t\t<tr><td colspan=2>" . TinyMce('NotifyMessageTemplate', $ave->main_array["NotifyMessageTemplate"]) . "</td></tr>\t\t\t\t\t\n\t\t<tr><td colspan=2 align='right'><input type='submit' value='{apply} »'></td></tr>\n</table>\n</td>\n</tr>\n</table></form>";
$tpl = new template_users('{antivirus_engine}', $html);
echo $tpl->web_page;
}
示例3: popup_addwbl
function popup_addwbl()
{
$page = CurrentPageName();
$html = "<h1>{add_email}</H1>\n\t<p class=caption>{add_backlistwhitelist_email}</p>\n\t<p class=caption>{add_wbl_text}</p>\n\t<form name='ffm1blw'>\n\t<table style='width:100%;background-color:#FFFFFF;padding:5px;border:1px solid #CCCCCC'>\n\t<tr>\n\t\t<td class=legend>{email}:</td>\n\t\t<td>" . Field_text('blw_email', '', 'width:190px') . "</td>\n\t</tr>\n\t<tr>\n\t<td class=legend>{email_type}:</td>\n\t<td>" . Field_numeric_checkbox_img('blw_type', 0, '{email_type_help}') . "</TD>\n\t</tr>\n\t<tr>\n\t<td colspan=2 style='padding-top:4px;border-top:1px solid #CCCCCC' align='right'><input type='button' OnClick=\"javascript:ActionWbladdForm();\" value='{add}'></td>\n\t</tr>\n\t</table>\n\t</form>\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例4: INDEX
function INDEX()
{
$priv = new usersMenus();
if (isset($_GET["ou"])) {
if ($priv->AllowChangeKas == false) {
header('location:users.index.php');
exit;
}
$ou = $_GET["ou"];
$kas = new kas_user(null, $_GET["ou"]);
$hidden = "<input type='hidden' name='ou' value='{$ou}'>";
$title = "{$ou}: {org_antispam_rules}";
} else {
if ($priv->AllowChangeAntiSpamSettings == false) {
header('location:users.index.php');
exit;
}
$kas = new kas_user($_SESSION["uid"]);
$title = "{antispam_user_rules}";
}
for ($i = 1; $i < 101; $i++) {
$array[$i] = "{$i} %";
}
$second_rate = Field_array_Hash($array, "detection_rate1", $kas->mail_array["second_rate"]);
$detection_rate = Field_array_Hash($array, "detection_rate", $kas->mail_array["detection_rate"]);
$page = CurrentPageName();
$html = "\n\n<form name='FFM1'>\n{$hidden}\n<table style='width:600px' align=center>\n<tr>\n\t<td width=1% valign='top'><img src='img/caterpillarkas.jpg'></td>\n\t<td valign='top'>\n\t\t<div class='caption'>{antispam_user_rules_text}</div>\n\t\t<div style='font-size:12px'>{spam_rules_intro}</div>\n\t\t\n\t</td>\n</tr>\n<td colspan=2>\n<strong>{prepend_text}:</strong>" . Field_text('prepend_text', $kas->mail_array["prepend_text"]) . "<hr>\n<table style='width:100%'>\n<tr>\n<td>\n<tr style='background-color:#27573F;color:white'>\n\t<td >{spam_detection_rate}</td>\n\t<td valign='top' nowrap><strong>{action_quarantine}</strong></td>\n\t<td valign='top' nowrap><strong>{action_prepend}</strong></td>\n\t<td valign='top' nowrap><strong>{action_killmail}</strong></td>\n</tr>\n<tr>\n\t<td class='bottom' align='right'>{$detection_rate}</td>\n\t<td valign='top' align='center' width=1% class=bottom>" . Field_numeric_checkbox_img('action_quarantine', $kas->mail_array["action_quarantine"], '{enable_disable}') . " </td>\n\t<td valign='top' align='center' width=1% class=bottom>" . Field_numeric_checkbox_img('action_prepend', $kas->mail_array["action_prepend"], '{enable_disable}') . " </td>\n\t<td valign='top' align='center' width=1% class=bottom>" . Field_numeric_checkbox_img('action_killmail', $kas->mail_array["action_killmail"], '{enable_disable}') . " </td>\n</tr>\n<tr>\n\t<td class='bottom' align='right'>{$second_rate}</td>\n\t<td valign='top' align='center' width=1% class=bottom>" . Field_numeric_checkbox_img('second_quarantine', $kas->mail_array["second_quarantine"], '{enable_disable}') . " </td>\n\t<td valign='top' align='center' width=1% class=bottom>" . Field_numeric_checkbox_img('second_prepend', $kas->mail_array["second_prepend"], '{enable_disable}') . " </td>\n\t<td valign='top' align='center' width=1% class=bottom>" . Field_numeric_checkbox_img('second_killmail', $kas->mail_array["second_killmail"], '{enable_disable}') . " </td>\n</tr>\n<tr><td colspan=4 align='right'><input type='button' OnClick=\"javascript:ParseForm('FFM1','{$page}',true);\" value='{edit} »'></td></tr>\n</table>\n</td>\n</tr>\n</table>";
$tpl = new template_users($title, $html);
echo $tpl->web_page;
}
示例5: settings
function settings()
{
$dotclear = new dotclear();
$page = CurrentPageName();
$html = "\n\t<center>\n\t<form name=FF1>\n\t<table style='width:90%;border:1px dotted #CCCCCC'>\n\t<tr>\n\t\t<td class=legend>{EnableDotClearHTTPService}:</td>\n\t\t<td>" . Field_numeric_checkbox_img('EnableDotClearHTTPService', $dotclear->EnableDotClearHTTPService, '{EnableDotClearHTTPService}') . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend>{DotClearHttpListenPort}:</td>\n\t\t<td>" . Field_text("DotClearHttpListenPort", $dotclear->DotClearHttpListenPort, "width:40px") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{DotClearExternalWebUri}:</td>\n\t\t<td>" . Field_text("DotClearExternalWebUri", $dotclear->DotClearExternalWebUri, "width:190px") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{DotClearExternalAdminUri}:</td>\n\t\t<td>" . Field_text("DotClearExternalAdminUri", $dotclear->DotClearExternalAdminUri, "width:190px") . "</td>\n\t</tr>\n\t\n\t\n\t\n\t<tr>\n\t\t<td colspan=2 align='right' style='margin-bottom:5px'><input type='button' OnClick=\"javascript:ParseForm('FF1','{$page}',true);\" value='{edit} »'></td>\n\t</tr>\n\t\n\t\n\t</table>\n\t</form>\n\t</center>\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例6: main_settings
function main_settings()
{
$nmap = new nmap();
$artica = new artica_general();
$html = "\n\t<table style='width:100%'>\n\t<tr>\n\t<td valign='top'>\n\t<H5>{APP_NMAP} {settings}</H5>\n\t<p class=caption>{about}</p>\n\t" . RoundedLightGrey("\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top' nowrap align='right'><strong>{NmapScanEnabled}:</strong></td>\n\t\t<td valign='top' nowrap align='left'>" . Field_numeric_checkbox_img('NmapScanEnabled', $artica->NmapScanEnabled, '{enable_disable}') . "</td>\n\t</tr>\n\t<tr>\n\t\t<td valign='top' nowrap align='right'><strong>{NmapRotateMinutes}:</strong></td>\n\t\t<td valign='top' nowrap align='left'>" . Field_text('NmapRotateMinutes', $nmap->NmapRotateMinutes, 'width:90px') . "</td>\n\t</tr>\t\n\t<tr>\n\t<td colspan=2 align='right'><input type='button' OnClick=\"javascript:SaveNmapSettings();\" value='{edit} »'></td>\n\t</tr>\n\t</table>") . "\n\t<br><div id='nmap_list'>" . main_network_list() . "</div>\n\t</td>\n\t<td valign='top'>\n\t" . RoundedLightGrey(Paragraphe("acl-add-64.png", '{add_network}', '{add_network_text}', "javascript:nmap_add_network()")) . "<br>\n\t" . RoundedLightGrey(Paragraphe("folder-logs-64.png", '{nmap_logs}', '{nmap_logs_text}', "javascript:nmap_logs()")) . "<br>\n\t" . RoundedLightGrey(Paragraphe("global-settings.png", '{perform_scan}', '{perform_scan_text}', "javascript:nmap_scan()")) . "<br>\n\t\n\t\n\t\n\t\n\t</td>\n\t</tr>\n\t</table>\n\t\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例7: popup_start
function popup_start()
{
$page = CurrentPageName();
$autocompress = new autocompress();
$html = "\n\t<input type='hidden' id='addextension_help' name='addextension_help' value='{addextension_help}'>\n\t<H1>{auto-compress}</h1>\n\t<p class=caption>{Auto-compress_explain}</p>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td width=1% valign='top'><img src='img/90-winzip.png'></td>\n\t\t<td valign='top'>\n\t\t\t<form name='FFMCOMPRESSS'>\n\t\t\t\t<table class=table_form>\n\t\t\t\t<tr>\n\t\t\t\t\t<td class=legend>{enable_autocompress}</td>\n\t\t\t\t\t<td>" . Field_numeric_checkbox_img('autcompress_enabled', $autocompress->autcompress_enabled, '{enable_disable}') . "</td>\n\t\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td colspan=2 align='right'><input type='button' OnClick=\"javascript:ParseForm('FFMCOMPRESSS','{$page}',true);\" value='{edit} »'></td>\n\t\t\t</tr>\n\t\t\t\t\n\t\t\t\n\t\t</table>\n\t\t</form>\n\t\t\t<div id='extlist'>\n\t\t\t\t" . autcompress_list() . "\t\t\n\t\t\t</div>\n\t\t</td>\n\t</tr>\n\t</table>";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html, 'postfix.index.php');
}
示例8: liveForm
function liveForm()
{
$uid = $_SESSION["uid"];
$get = new getlive($uid);
$array = $get->ParseConfig($uid);
$page = CurrentPageName();
$html = "<div style='background-image:url(img/bg_form-1.png);padding:10px;width:550px;border:1px solid #CCCCCC;margin-left:100px;'>\n\t<form name='ffm1'>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend nowrap>{enable}:</td>\n\t\t<td>" . Field_numeric_checkbox_img('enabled', $array["enabled"], '{enable_disable}') . "</td>\n\t\t<td> </td>\n\t</tr\t\n\t<tr>\n\t\t<td class=legend nowrap>{username}:</td>\n\t\t<td>" . Field_text('UserName', $array["UserName"], 'width:100px') . "</td>\n\t\t<td>{username_text}</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{password}:</td>\n\t\t<td>" . Field_text('Password', $array["Password"], 'width:100px') . "</td>\n\t\t<td>{password_text}</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend valign='top'>{Domain}:</td>\n\t\t<td valign='top'>" . Field_text('Domain', $array["Domain"], 'width:100px') . "</td>\n\t\t<td valign='top'>{Domain_text}</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{Delete_messages}:</td>\n\t\t<td valign='top'>" . Field_yesno_checkbox('Delete', $array["Delete"]) . "</td>\n\t\t<td valign='top'>{Delete_messages_text}</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend valign='top' nowrap>{MarkRead}:</td>\n\t\t<td valign='top'>" . Field_yesno_checkbox('MarkRead', $array["MarkRead"]) . "</td>\n\t\t<td valign='top'>{MarkRead_text}</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td colspan=3 align='right'><input type='button' OnClick=\"javascript:ParseForm('ffm1','{$page}',true);\" value='{submit} »'>\n\t\t</td>\n\t</tr>\t\n\t</table>\n\t</div>\n\t\n\t";
$tpl = new templates();
return $tpl->_ENGINE_parse_body($html);
}
示例9: popup
function popup()
{
$users = new usersMenus();
if ($users->cyrus_imapd_installed) {
$cyrus = "\n\t\t\t<tr>\n\t\t\t\t<td class=legend>{delete_mailboxes}</td>\n\t\t\t\t<td>" . Field_numeric_checkbox_img('delete_mailboxes', 0, '{delete_mailboxes}') . "</td>\n\t\t\t</tr>\n\t\t\n\t\t";
} else {
$cyrus = "<input type='hidden' id='delete_mailboxes' value='0'>";
}
$html = "\n<h1>{$_GET["ou"]}</H1>\n<div id='confirmdeleteou'>\n<table style='width:100%'>\n\t<tr>\n\t\t<td width=1%><img src='img/org-128.png'></td>\n\t\t<td valign='top'>\n\t\t\t<p class=caption>{delete_ou_text}</p>\n\t\t\t<table style='width:100%'>\n\t\t\t\t{$cyrus}\n\t\t\t</table>\t\t\t\n\t\t</td>\n\t\t<tr>\n\t\t<td colspan=2 align='right'><hr></td></tr>\n\t\t<tr>\n\t\t\t<td>\n\t\t\t" . button("{cancel}", "Loadjs('domains.manage.org.index.php?js=yes&ou={$_GET["ou"]}')") . "\n\t\t\t</td>\n\t\t\t\n\t\t<td align='right'>" . button("{confirm}", "ConFirmDelete()") . "\n\t\t</td>\n\t\t</tr>\n\t</tr>\n</table>\n</div>\n";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html, 'domain.manage.org.index.php');
}
示例10: popup
function popup()
{
$uid = $_GET["uid"];
$user = new user($uid);
$usersmenus = new usersMenus();
$delete_mailbox = "\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\t<table style='width:100%'>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend nowrap>{delete_mailbox}:</td>\n\t\t\t\t\t\t<td>" . Field_numeric_checkbox_img('DeleteMailBox', 0, "{delete_mailbox}") . "</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t</td>\n\t\t\t</tr>";
if (!$usersmenus->cyrus_imapd_installed) {
$delete_mailbox = null;
}
$picture = "<img src='{$user->img_identity}' style='border:1px dotted #CCCCCC'>";
$user_infos = "<table style='width:100%'>\n<tr>\n\t<td valign='top' width=1%>{$picture}</td>\n\t<td valign='top' width=99%>\n\t\t<table style='width:100%'>\n\t\t\t<tr>\n\t\t\t\t<td style='border-bottom:1px solid #CCCCCC'><strong style='font-size:16px;'>{$user->uid}</strong></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td align='right'><strong style='font-size:11px' >{$user->DisplayName}</strong></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td><strong style='font-size:12px'>{$user->mail}</strong></td>\n\t\t\t</tr>\n\t\t\t{$delete_mailbox}\n\t\t\t<tr>\n\t\t\t\t<td align='right'>\n\t\t\t\t\t<hr>\n\t\t\t\t\t<input type='button' OnClick=\"javascript:ConfirmDeletionOfUser();\" value='{confirm_deletion_of}:{$user->uid} »' style='padding:10px'>\n\t\t\t\t</td>\n\t\t\t</tr>\t\t\t\n\t\t</table>\n\t</td>\n</tr>\n</table>";
$user_infos = RoundedLightWhite($user_infos);
$html = "<H1>{$user->uid}</H1>\n<div id='deletion'>\n{$user_infos}\n</div>\n";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html, "domains.edit.user.php");
}
示例11: index
function index()
{
$ct = new user($_GET["uid"]);
$sock = new sockets();
$RsyncStoragePath = $sock->GET_INFO("RsyncStoragePath");
if ($RsyncStoragePath == null) {
$RsyncStoragePath = "/var/spool/rsync";
}
if ($ct->RsyncBackupTargetPath == null) {
$ct->RsyncBackupTargetPath = $RsyncStoragePath;
}
$RsyncBackupTargetPath = Field_text("RsyncBackupTargetPath", $ct->RsyncBackupTargetPath, "width:220px") . button_browse("RsyncBackupTargetPath");
$EnableBackupAccount = Field_numeric_checkbox_img("EnableBackupAccount", $ct->EnableBackupAccount);
$html = "<H1>{backup_parameters}</H1>\n<div id='{$ct->uid}_divid'>\n" . RoundedLightWhite("\n<table style='width:100%'>\n<tr>\n<td valign='top'>\n\t<center><img src='img/bg_backup-org.png'></center><br>\n\t<table style='width:100%' class=table_form>\n\t<tr>\n\t<td class=legend nowrap valign='top'>{ENABLE_RSYNC_ACCOUNT}:</td>\n\t<td>{$EnableBackupAccount}<p class=caption>{ENABLE_RSYNC_ACCOUNT_TEXT}</p></td>\n\t</tr>\n\t<tr>\n\t<td class=legend>{storage_path}:</td>\n\t<td>{$RsyncBackupTargetPath}</td>\n\t</tr>\t\n\t<tr>\n\t\t<td valign='top' align='right' colspan=2><hr>\n\t\t\t<input type='button' OnClick=\"javascript:SaveBackupUserInfos();\" value=' {edit} » '>\n\t\t</td>\n\t</tr>\n</table>\n");
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例12: scan_parameters
function scan_parameters()
{
$uid = $_GET["scan-parameters"];
$computer = new computers($uid . '$');
$ini = new Bs_IniHandler();
$ini->loadString($computer->KasperkyAVScanningDatas);
if ($ini->_params["scanner.options"]["cure"] == null) {
$ini->_params["scanner.options"]["cure"] = 0;
}
for ($i = 0; $i < 5; $i++) {
$hash[$i] = "{f{$i}}";
}
$cure = Field_array_Hash($hash, "cure", $ini->_params["scanner.options"]["cure"], "ChangeCureExplain()");
$form = "\n\t<div style='font-size:12px' id='curexpl'>{i{$ini->_params["scanner.options"]["cure"]}}</div>\n\t<hr>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend>{SCAN_PACKED}:</td>\n\t\t<td valign='top'>" . Field_numeric_checkbox_img('Packed', $ini->_params["scanner.options"]["Packed"]) . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{SCAN_ARCHIVES}:</td>\n\t\t<td valign='top'>" . Field_numeric_checkbox_img('Archives', $ini->_params["scanner.options"]["Archives"]) . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend>{SelfExtArchives}:</td>\n\t\t<td valign='top'>" . Field_numeric_checkbox_img('SelfExtArchives', $ini->_params["scanner.options"]["SelfExtArchives"]) . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{MailBases}:</td>\n\t\t<td valign='top'>" . Field_numeric_checkbox_img('MailBases', $ini->_params["scanner.options"]["MailBases"]) . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend>{MailPlain}:</td>\n\t\t<td valign='top'>" . Field_numeric_checkbox_img('MailPlain', $ini->_params["scanner.options"]["MailPlain"]) . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{Heuristic}:</td>\n\t\t<td valign='top'>" . Field_numeric_checkbox_img('Heuristic', $ini->_params["scanner.options"]["Heuristic"]) . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{Recursion}:</td>\n\t\t<td valign='top'>" . Field_numeric_checkbox_img('Recursion', $ini->_params["scanner.options"]["Recursion"]) . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{cure}:</td>\n\t\t<td valign='top'>{$cure}</td>\n\t</tr>\t\t\t\n\t<tr>\n\t\n\t\n\t<td colspan=2 align='right'>\n\t<hr>\n\t<input type='button' OnClick=\"javascript:SaveComputerScannerOptions();\" value='{apply} »'></td>\n\t</tr>\n\t</table>\n\t\n";
$form = RoundedLightWhite($form);
$html = "<H1>{AV_SCAN_PARAMETERS}</H1>\n<br>\n<div id='AV_SCAN_PARAMETERS'>\n{$form}\n</div>\n\n";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}
示例13: popup
function popup()
{
$uid = $_GET["uid"];
$user = new user($uid);
$usersmenus = new usersMenus();
$delete_mailbox = "\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\t<table style='width:100%'>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=legend nowrap>{delete_mailbox}:</td>\n\t\t\t\t\t\t<td>" . Field_numeric_checkbox_img('DeleteMailBox', 0, "{delete_mailbox}") . "</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t</td>\n\t\t\t</tr>";
$delete_mailbox_zarafa = "\n\t\t\t<tr>\n\t\t\t\t<td>\n\t\t\t\t\t<table style='width:100%'>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class=legend nowrap style='font-size:14px'>{unhook_mailbox}:</td>\n\t\t\t\t\t\t\t<td>" . Field_checkbox('unhookZarafaStore', 1, 0, "unhookZarafaStoreCheck()") . "</td>\n\t\t\t\t\t\t\t<td> </td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t<td class=legend nowrap style='font-size:14px'>{hook_mailboxto}:</td>\n\t\t\t\t\t\t\t<td>" . Field_text('ZarafaCopyToPublic', null, "width:140px;font-size:14px") . "</td>\n\t\t\t\t\t\t\t<td width=1%>" . button("{browse}", "Loadjs('MembersBrowse.php?OnlyUsers=1&NOComputers=0&Zarafa=1&callback=ZarafaDCopyToPublicCallBack')") . "</td>\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 colspan=3><div class=explain>{ZarafaCopyToPublic}</div></td>\n\t\t\t\t\t\t<tr>\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t</table>\n\t\t\t\t</td>\n\t\t\t</tr>";
if (!$usersmenus->cyrus_imapd_installed) {
$delete_mailbox = null;
}
if (!$usersmenus->ZARAFA_INSTALLED) {
$delete_mailbox_zarafa = null;
}
$picture = "<img src='img/user-server-64-delete.png'>";
$user_infos = "<table style='width:99%' class=form>\n<tr>\n\t<td valign='top' width=1%>{$picture}</td>\n\t<td valign='top' width=99%>\n\t\t<table style='width:100%'>\n\t\t<tbody>\n\t\t\t<tr>\n\t\t\t\t<td style='border-bottom:1px solid #CCCCCC'><strong style='font-size:16px;'>{$user->uid}</strong></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td align='right'><strong style='font-size:11px' >{$user->DisplayName}</strong></td>\n\t\t\t</tr>\n\t\t\t<tr>\n\t\t\t\t<td><strong style='font-size:12px'>{$user->mail}</strong></td>\n\t\t\t</tr>\n\t\t\t{$delete_mailbox}\n\t\t\t{$delete_mailbox_zarafa}\n\t\t\t</tbody>\n\t\t</table>\n\t</td>\n</tr>\n<tr>\n\t<td colspan=2 align='right'><div style='margin-top:15px;text-align:right'><hr>" . button("{confirm_deletion_of}:{$user->uid}", "ConfirmDeletionOfUser();", 16) . "</div>\n</table>";
$html = "\n<div id='deletion'>\n\t{$user_infos}\n</div>\n<script>\nfunction unhookZarafaStoreCheck(){\n\tif(!document.getElementById('unhookZarafaStore')){return;}\n\tif(!document.getElementById('unhookZarafaStore').checked){\n\t\tdocument.getElementById('ZarafaCopyToPublic').disabled=true;\n\t}else{\n\t\tdocument.getElementById('ZarafaCopyToPublic').disabled=false;\n\t}\n}\nunhookZarafaStoreCheck();\n</script>\n\n";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html, "domains.edit.user.php");
}
示例14: sieve_vacation
function sieve_vacation()
{
$sieve = new clSieve($_GET["uid"]);
$sieve->GetRuleVacation();
$sieve_rule_name = $sieve->sieve_rulename;
if ($sieve_rule_name != null) {
$rules = $sieve->GetRules($sieve_rule_name);
$vacation_rule = $rules[$sieve->sieve_ruleindex];
}
$message = $vacation_rule["actions"][0]["message"];
$message = stripslashes($message);
for ($i = 1; $i < 90; $i++) {
$days[$i] = $i;
}
$day = Field_array_Hash($days, 'days', $vacation_rule["actions"][0]["days"]);
switch ($vacation_rule["status"]) {
case "DISABLED":
$status = 0;
break;
case "ENABLED":
$status = 1;
break;
default:
$status = 1;
break;
}
$enable = Field_numeric_checkbox_img('vacation_enabled', $status, "{enable_disable}");
$addresses = "<table style='width:100%'>\n\t<tr>\n\t\t<th> </td>\n\t\t<th>{email}</th>\n\t</tr>\t\n\t";
if (is_array($vacation_rule["actions"][0]["addresses"])) {
while (list($num, $email) = each($vacation_rule["actions"][0]["addresses"])) {
$addresses = $addresses . "<tr>\n\t\t\t\t<td width=1%><img src='img/fw_bold.gif'></td>\n\t\t\t\t<td><code>{$email}</code>\n\t\t\t</tr>";
}
}
$addresses = $addresses . "</table>";
$addresses = "<div id='email_drr' style='width:99%;height:55px;overflow;auto'>{$addresses}</div>";
$addresses = RoundedLightWhite($addresses) . "<br>";
$form = "\n\t<table style='width:100%'>\n\t\n\t\n\t<tr>\n\t\t<td class=legend valign='top'>{enable}:</td>\n\t\t<td valign='top' width=80%>\n\t\t\t{$enable}\n\t\t</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend valign='top'>{vacation_message}:</td>\n\t\t<td valign='top' width=80%>\n\t\t\t<textarea name='message' id='message' style='width:100%;height:100px;overflow;auto'>{$message}</textarea>\n\t\t</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend valign='top'>{days}:</td>\n\t\t<td valign='top'>\n\t\t\t{$day}\n\t\t</td>\n\t</tr>\t\n\t</table>";
$form = RoundedLightWhite($form);
$html = "<H1>{rule}::{$sieve_rule_name}::{OUT_OF_OFFICE}</H1>\n\t<p class=caption>{OUT_OF_OFFICE_TEXT}</p>\n\t<div id='mform'>\n\t{$addresses}\n\t{$form}\n\t<hr>\n\t<div style='width:100%;text-align:right'><input type='button' OnClick=\"javascript:SieveVacantionSave();\" value='{save} »'></div>\n\t</div>\n\t\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html, 'users.out-of-office.php');
}
示例15: popup
function popup()
{
$sock = new sockets();
$DisclaimerOutbound = $sock->GET_INFO("DisclaimerOutbound");
$DisclaimerInbound = $sock->GET_INFO("DisclaimerInbound");
$DisclaimerOrgOverwrite = $sock->GET_INFO("DisclaimerOrgOverwrite");
if ($DisclaimerOrgOverwrite == null) {
$DisclaimerOrgOverwrite = 0;
}
if ($DisclaimerOutbound == null) {
$DisclaimerOutbound = 1;
}
if ($DisclaimerInbound == null) {
$DisclaimerInbound = 0;
}
$form = "<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend>{enable_outbound}:</td>\n\t\t<td>" . Field_numeric_checkbox_img("DisclaimerOutbound", $DisclaimerOutbound, "{enable_disable}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{enable_inbound}:</td>\n\t\t<td>" . Field_numeric_checkbox_img("DisclaimerInbound", $DisclaimerInbound, "{enable_disable}") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend>{overwritten_by_org}:</td>\n\t\t<td>" . Field_numeric_checkbox_img("DisclaimerOrgOverwrite", $DisclaimerOrgOverwrite, "{enable_disable}") . "</td>\n\t</tr>\t\t\n\t<tr>\n\t\t<td colspan=2 align='right'><hr><input type='button' OnClick=\"javascript:DisclaimerGlobalConfSave();\" value='{apply} »'></td>\n\t</tr>\n\t</table>";
$form = RoundedLightWhite($form);
$html = "<H1>{disclaimer} {parameters}</H1>\n\t<div id='disclaimerGlobalDiv'>{$form}</div>\n\t\n\t\n\t\n\t";
$tpl = new templates();
echo $tpl->_ENGINE_parse_body($html);
}