X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fprint_profiles.php;h=bf3d698f7cc0f0c7911dea339e53b7b4f0b71431;hb=a771b6cb35770f7b8b5087caf923aeec8fbefe96;hp=f9972980fc7b0800650181c84b4ddf06f6950e01;hpb=d23b97ed26bc0608c9ba1037b66058c709e83765;p=fa-stable.git diff --git a/admin/print_profiles.php b/admin/print_profiles.php index f9972980..bf3d698f 100644 --- a/admin/print_profiles.php +++ b/admin/print_profiles.php @@ -23,9 +23,9 @@ $selected_id = get_post('profile_id',''); // Returns array of defined reports // function get_reports() { - global $path_to_root, $go_debug; + global $path_to_root, $SysPrefs; -if ($go_debug || !isset($_SESSION['reports'])) { +if ($SysPrefs->go_debug || !isset($_SESSION['reports'])) { // to save time, store in session. $paths = array ( $path_to_root.'/reporting/', @@ -105,7 +105,7 @@ if ( get_post('submit')) update_printer_profile($_POST['profile_id'], $prof); if ($selected_id == '') { display_notification_centered(_('New printing profile has been created')); - clear_form(); + clear_form($selected_id); } else { display_notification_centered(_('Printing profile has been updated')); } @@ -144,7 +144,7 @@ while ($myrow = db_fetch($result)) { $prints[$myrow['report']] = $myrow['printer']; } -start_table($table_style); +start_table(TABLESTYLE); $th = array(_("Report Id"), _("Description"), _("Printer")); table_header($th); @@ -184,4 +184,3 @@ div_end(); end_form(); end_page(); -?>