possible separators can be added by modifying the array definition by editing that file */ if (!isset($_POST['language'])) { $_POST['language'] = $_SESSION['language']->code; } table_section_title(_("Language")); languages_list_row(_("Language:"), 'language', $_POST['language']); table_section(2); table_section_title(_("Miscellaneous")); check_row(_("Show hints for new users:"), 'show_hints', user_hints()); check_row(_("Show GL Information:"), 'show_gl', user_show_gl_info()); check_row(_("Show Item Codes:"), 'show_codes', user_show_codes()); themes_list_row(_("Theme:"), "theme", user_theme()); /* The array $themes is set up in config.php for modifications possible separators can be added by modifying the array definition by editing that file */ pagesizes_list_row(_("Page Size:"), "page_size", user_pagesize()); tab_list_row(_("Start-up Tab"), 'startup_tab', user_startup_tab()); /* The array $pagesizes is set up in config.php for modifications possible separators can be added by modifying the array definition by editing that file */ if (!isset($_POST['print_profile'])) { $_POST['print_profile'] = user_print_profile(); } print_profiles_list_row(_("Printing profile") . ':', 'print_profile', null, _('Browser printing support')); check_row(_("Use popup window to display reports:"), 'rep_popup', user_rep_popup(), false, _('Set this option to on if your browser directly supports pdf files')); check_row(_("Use icons instead of text links:"), 'graphic_links', user_graphic_links(), false, _('Set this option to on for using icons instead of text links')); text_row_ex(_("Query page size:"), 'query_size', 5, 5, '', user_query_size()); check_row(_("Remember last document date:"), 'sticky_doc_date', sticky_doc_date(), false, _('If set document date is remembered on subsequent documents, otherwise default is current date')); end_outer_table(1); submit_center('setprefs', _("Update"), true, '', 'default'); end_form(2); //------------------------------------------------------------------------------------------------- end_page();
function display_module_edit($selected_id) { global $installed_modules, $table_style2; if ($selected_id != -1) { $n = $selected_id; } else { $n = count($installed_modules); } start_form(true, true); echo "\n\t\t<script language='javascript'>\n\t\tfunction updateModule() {\n\t\t\tdocument.forms[0].action='inst_module.php?c=u&id=" . $n . "'\n\t\t\tdocument.forms[0].submit()\n\t\t}\n\t\t</script>"; start_table($table_style2); if ($selected_id != -1) { $mod = $installed_modules[$selected_id]; $_POST['tab'] = $mod['tab']; $_POST['name'] = $mod['name']; $_POST['path'] = $mod['path']; $_POST['filename'] = $mod['filename']; hidden('selected_id', $selected_id); hidden('filename', $_POST['filename']); } tab_list_row(tr("Menu Tab"), 'tab', null); text_row_ex(tr("Name"), 'name', 30); text_row_ex(tr("Folder"), 'path', 20); label_row(tr("Module File"), "<input name='uploadfile' type='file'>"); label_row(tr("SQL File"), "<input name='uploadfile2' type='file'>"); end_table(0); display_note(tr("Select your module PHP file from your local harddisk."), 0, 1); echo "<center><input onclick='javascript:updateModule()' type='button' style='width:150' value='" . tr("Save") . "'>"; end_form(); }