+ $this->show_gl_info = $user["show_gl"];
+ $this->show_codes = $user["show_codes"];
+ $this->date_format = $user["date_format"];
+ $this->date_sep = $user["date_sep"];
+ $this->tho_sep = $user["tho_sep"];
+ $this->dec_sep = $user["dec_sep"];
+ $this->theme = $user["theme"];
+ $this->pagesize = $user["page_size"];
+ $this->show_hints = $user["show_hints"];
+ $this->print_profile = $user["print_profile"];
+ $this->rep_popup = $user["rep_popup"];
+ $this->query_size = $user["query_size"];
+ $this->graphic_links = $user["graphic_links"];
+ if (isset($user["sticky_doc_date"]))
+ {
+ $this->sticky_date = $user["sticky_doc_date"];
+ $this->startup_tab = $user['startup_tab'];
+ }
+ else
+ {
+ $this->sticky_date = 0;
+ $this->startup_tab = "orders";
+ }
+ $this->transaction_days = @$user['transaction_days'];
+ $this->save_report_selections = @$user['save_report_selections'];
+ $this->use_date_picker = @$user['use_date_picker'];
+ $this->def_print_destination = @$user['def_print_destination'];
+ $this->def_print_orientation = @$user['def_print_orientation'];
+
+ if (!file_exists("$path_to_root/themes/$this->theme"))
+ $this->theme = "default";
+ }
+ }
+
+ function get_all()
+ {
+ return array(
+ 'language' => $this->language,
+ 'qty_dec' => $this->qty_dec,
+ 'prices_dec' => $this->price_dec,
+ 'rates_dec' => $this->exrate_dec,
+ 'percent_dec' => $this->percent_dec,
+ 'show_gl' => $this->show_gl_info,
+ 'show_codes' => $this->show_codes,
+ 'date_format' =>$this->date_format,
+ 'date_sep' => $this->date_sep,
+ 'tho_sep' => $this->tho_sep,
+ 'dec_sep' => $this->dec_sep,
+ 'theme' => $this->theme,
+ 'page_size' => $this->pagesize,
+ 'show_hints' => $this->show_hints,
+ 'print_profile' => $this->print_profile,
+ 'rep_popup' => $this->rep_popup,
+ 'query_size' => $this->query_size,
+ 'graphic_links' => $this->graphic_links,
+ 'sticky_doc_date' => $this->sticky_date,
+ 'startup_tab' => $this->startup_tab,
+ 'save_report_selections' => $this->save_report_selections,
+ 'use_date_picker' => $this->use_date_picker,
+ 'def_print_destination' => $this->def_print_destination,
+ 'def_print_orientation' => $this->def_print_orientation);
+ }
+