function GeneralOptions() { switch ($_GET["tab"]) { case 1: return moderators(); break; case 2: return moderators2(); break; case 3: return notifications(); break; default: break; } $mailman = new mailman($_GET["id"]); $ldap = new clladp(); $ous = $ldap->hash_get_ou(true); $ous[null] = "{select}"; $ous["undefined"] = "{select}"; $affected_ou = Field_array_Hash($ous, 'affectedou', $mailman->mailmanouowner, null, null, 0, "width:150px"); $form = "<H5>{affectedou} - {$mailman->mailmanouowner}</h5>\n\t\t\t<table style='width:100%'>\n\t\t\t\t<tr>\n\t\t\t\t\t<td align='right'><strong>{organization}:</strong></td>\n\t\t\t\t\t<td>{$affected_ou}</td>\n\t\t\t\t</tr>\t\n\t\t\t\t<tr>\n\t\t\t\t<td align='right'> </td>\n\t\t\t\t<td align='right'><input type='button' value='{apply} »' OnClick=\"javascript:affect_org();\"></td>\n\t\t\t\t</tr>\n\t\t\t\t</table>"; $form = RoundedLightGreen($form); $user = new usersMenus(); if ($user->AsPostfixAdministrator == false) { $form = null; } $hash_reply_goes_to_list = array(0 => "{poster}", 1 => "{thislist}", 2 => "{explicit_address}"); if ($mailman->main_array["subject_prefix"] == null) { $mailman->main_array["subject_prefix"] = "[{$id}]"; } $id = $_GET["id"]; $html = "\n<form name='ffm1'>\n<input type='hidden' name='id' id='id' value='{$id}'>\n<H3>{general_options} «{$_GET["id"]}»</h3>\n<br>" . GeneralOptions_tabs() . "</br>\n{$form}\n<H5>{generallistpersonality}</H5>\n<br>" . RoundedLightGrey("\n<table style='width:100%'>\n<tr>\n<td align='right'><strong>{real_name}:</strong></td>\n<td>" . Field_text('real_name', $mailman->main_array["real_name"], 'width:80%', null, null, '{real_name_text}', false) . "</td>\n</tr>\n<tr>\n<td align='right'><strong>{description}:</strong></td>\n<td>" . Field_text('description', $mailman->main_array["description"], 'width:80%', null, null, '{description_text}', false) . "</td>\n</tr>\n<tr>\n<td align='right'><strong>{host_name}:</strong></td>\n<td>" . Field_text('host_name', $mailman->main_array["host_name"], 'width:80%', null, null, '{host_name_text}', false) . "</td>\n</tr>\n\n\n<tr>\n<td align='right'><strong>{info}:</strong></td>\n<td>" . Field_text('info', $mailman->main_array["info"], 'width:80%', null, null, '{info_text}', false) . "</td>\n</tr>\n<tr>\n<td align='right'><strong>{subject_prefix}:</strong></td>\n<td>" . Field_text('subject_prefix', $mailman->main_array["subject_prefix"], 'width:80%', null, null, '{subject_prefix_text}', false) . "</td>\n</tr>\n<tr>\n<td align='right'><strong>{anonymous_list}:</strong></td>\n<td>" . Field_numeric_checkbox_img('anonymous_list', $mailman->main_array["anonymous_list"], '{anonymous_list_text}') . "</td>\n</tr>\n<tr>\n<td align='right'><strong>{first_strip_reply_to}:</strong></td>\n<td>" . Field_numeric_checkbox_img('first_strip_reply_to', $mailman->main_array["first_strip_reply_to"], '{first_strip_reply_to_text}') . "</td>\n</tr>\n<tr>\n<td align='right'><strong>{reply_goes_to_list}:</strong></td>\n<td><table><tr><td>" . Field_array_Hash($hash_reply_goes_to_list, $mailman->main_array["reply_goes_to_list"]) . "</td><td>" . help_icon('{reply_goes_to_list_text}', true) . "</td></tr></table></td>\n</tr>\n<tr>\n<td align='right'><strong>{reply_to_address}:</strong></td>\n<td>" . Field_text('reply_to_address', $mailman->main_array["reply_to_address"], 'width:80%', null, null, '{reply_to_address_text}', false) . "</td>\n</tr>\n\n<tr>\n<td align='right'><strong>{emergency}:</strong></td>\n<td>" . Field_numeric_checkbox_img('emergency', $mailman->main_array["emergency"], '{emergency_text}') . "</td>\n</tr>\n<tr>\n<td align='right'><strong>{administrivia}:</strong></td>\n<td>" . Field_numeric_checkbox_img('administrivia', $mailman->main_array["administrivia"], '{administrivia_text}') . "</td>\n</tr>\n\n\n<tr>\n<td align='right'> </td>\n<td align='right'><input type='button' value='{apply} »' OnClick=\"javascript:ParseForm('ffm1','" . CurrentPageName() . "',true)\"></td>\n</tr>\n\n\n\n</table></form>"); $tpl = new templates(); return $tpl->_ENGINE_parse_body($html); }
function moderators_action($mysqli) { $data = moderators($mysqli); require "templates/moderators.php"; }