} } require $GO_THEME->theme_path . "header.inc"; echo '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '" name="email_client">'; echo '<input type="hidden" name="task" value="" />'; echo '<input type="hidden" name="close" value="false" />'; echo '<input type="hidden" name="return_to" value="' . $return_to . '" />'; echo '<input type="hidden" name="link_back" value="' . $link_back . '" />'; $cfg_tab = new tabtable('configuration', $menu_configuration, '600', '300'); $cfg_tab->print_head(); $disable_accounts_check = $GO_CONFIG->get_setting('em_disable_accounts') == 'true' ? true : false; echo '<br />'; $checkbox = new checkbox('disable_accounts', 'true', $ml_disable_accounts, $disable_accounts_check); echo '<br /><br />'; $button = new button($cmdOk, "javascript:_save('true')"); echo ' '; $button = new button($cmdApply, "javascript:_save('false')"); echo ' '; $button = new button($cmdCancel, "javascript:document.location='" . $return_to . "';"); $cfg_tab->print_foot(); ?> <script type="text/javascript"> function _save(close) { document.forms[0].close.value=close; document.forms[0].task.value='save'; javascript:document.forms[0].submit(); } </script> <?php require $GO_THEME->theme_path . "footer.inc";
" /> <?php switch ($task) { case 'upload': require 'upload_template_file.inc'; break; default: if ($template_id > 0) { $tpl_table->add_tab('template.inc', $strProperties); $tpl_table->add_tab('template_items.inc', $cms_templates); $tpl_table->add_tab('template_files.inc', $cms_files); $tpl_table->add_tab('template_read_permissions.inc', $strReadRights); $tpl_table->add_tab('template_write_permissions.inc', $strWriteRights); if (isset($active_tab)) { $tpl_table->set_active_tab($active_tab); } $tpl_table->print_head(); require $tpl_table->get_active_tab_id(); } else { $tpl_table->print_head(); require 'template.inc'; } $tpl_table->print_foot(); break; } ?> </form> <?php require $GO_THEME->theme_path . "footer.inc";
$db->next_record(); } $tabtable = new tabtable('messages_tab', 'Messages', '100%', '400', '120', '', true); $tabtable->add_tab('properties', 'Properties'); $tabtable->add_tab('permissions', 'Permissions'); $tabtable->print_head(); switch ($tabtable->get_active_tab_id()) { case 'properties': break; case 'permissions': print_acl($db->f('acl_write')); echo '<br /><br /> '; $button = new button($cmdClose, "javascript:document.location='" . $return_to . "';"); break; } $tabtable->print_foot(); break; } echo '</form>'; require $GO_THEME->theme_path . "footer.inc"; ?> <script type="text/javascript" language="javascript"> <!-- mainform = document.forms[0]; function item_click(check_box) { var item = get_object(check_box.value); if (check_box.checked) { item.style.backgroundColor = '#FFFFCC'; }else
function show_html($Ticket_Number, $result) { global $name; $textmenu = menu("Show_Tickets", ''); eval($textmenu); $tabtable = new tabtable('newticket_tabtable', 'modifing ticket', '100%', '400'); $tabtable->print_head(); $statusbar = new statusbar(); $statusbar->info_text = "Modifing ticket {$Ticket_Number}"; $statusbar->turn_red_point = 90; echo "<center><br><br>" . $statusbar->print_bar(95, 100); echo " <script language=\"Javascript\" type=\"text/javascript\">\n <!--\n function gotoThread(){\n window.location.href=\"showline.php?Ticket_Number={$Ticket_Number}\";\n }\n window.setTimeout(\"gotoThread()\", 3000);\n //-->\n </script>\n"; $tabtable->print_foot(); }