X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fdisplay_prefs.php;h=243ddea965f849cf847a69930e8c4d6572f0bd19;hb=2bcdab793e406bb5a44d2c4e079ec7cc2a1aa857;hp=85406a8c3b7aeaee4c4fcfc62714f49de21444d6;hpb=0c1ab57c09d87eed2bd248892dbfe3f256767a82;p=fa-stable.git diff --git a/admin/display_prefs.php b/admin/display_prefs.php index 85406a8c..243ddea9 100644 --- a/admin/display_prefs.php +++ b/admin/display_prefs.php @@ -40,10 +40,12 @@ if (isset($_POST['setprefs'])) array('prices_dec', 'qty_dec', 'rates_dec', 'percent_dec', 'date_format', 'date_sep', 'tho_sep', 'dec_sep', 'print_profile', 'theme', 'page_size', 'language', 'startup_tab', - 'show_gl' => 0, 'show_codes'=> 0, 'show_hints' => 0, - 'rep_popup' => 0, 'graphic_links' => 0, 'sticky_doc_date' => 0, 'query_size' => 10.0, 'transaction_days' => 30, 'save_report_selections' => 0, - 'use_date_picker' => 0, 'def_print_destination' => 0, 'def_print_orientation' => 0))); + 'def_print_destination' => 0, 'def_print_orientation' => 0))); + + set_user_prefs(check_value( + array( 'show_gl', 'show_codes', 'show_hints', 'rep_popup', + 'graphic_links', 'sticky_doc_date', 'use_date_picker'))); if ($chg_lang) $_SESSION['language']->set_language($_POST['language']); @@ -51,13 +53,13 @@ if (isset($_POST['setprefs'])) flush_dir(company_path().'/js_cache'); - if ($chg_theme && $allow_demo_mode) + if ($chg_theme && $SysPrefs->allow_demo_mode) $_SESSION["wa_current_user"]->prefs->theme = $_POST['theme']; if ($chg_theme || $chg_lang || $chg_date_format || $chg_date_sep) meta_forward($_SERVER['PHP_SELF']); - if ($allow_demo_mode) + if ($SysPrefs->allow_demo_mode) display_warning(_("Display settings have been updated. Keep in mind that changed settings are restored on every login in demo mode.")); else display_notification_centered(_("Display settings have been updated.")); @@ -76,9 +78,9 @@ number_list_row(_("Quantities:"), 'qty_dec', user_qty_dec(), 0, 10); number_list_row(_("Exchange Rates:"), 'rates_dec', user_exrate_dec(), 0, 10); number_list_row(_("Percentages:"), 'percent_dec', user_percent_dec(), 0, 10); -table_section_title(_("Dateformat and Separators")); +table_section_title(_("Date Format and Separators")); -dateformats_list_row(_("Dateformat:"), "date_format", user_date_format()); +dateformats_list_row(_("Date Format:"), "date_format", user_date_format()); dateseps_list_row(_("Date Separator:"), "date_sep", user_date_sep()); @@ -165,4 +167,3 @@ end_form(2); end_page(); -?> \ No newline at end of file