X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fforms_setup.php;h=a2895ab63c6c6bddc08638c74fc7bb0275d6db68;hb=268a54dcfd08aff7113bc3afe8b784f36db2d0d4;hp=46676617937b8a9e5f85bccb813bb3a8f9a97290;hpb=90a12bf5fd4f6c4426f2ccae7c600a15afd02953;p=fa-stable.git diff --git a/admin/forms_setup.php b/admin/forms_setup.php index 46676617..a2895ab6 100644 --- a/admin/forms_setup.php +++ b/admin/forms_setup.php @@ -9,61 +9,22 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security =10; +$page_security = 'SA_FORMSETUP'; $path_to_root=".."; -include($path_to_root . "/includes/session.inc"); -page(_("Forms Setup")); +include_once($path_to_root . "/includes/session.inc"); +include_once('../includes/ui/class.reflines_crud.inc'); -include($path_to_root . "/includes/ui.inc"); +include_once($path_to_root . "/includes/ui.inc"); -//------------------------------------------------------------------------------------------------- - -if (isset($_POST['setprefs'])) -{ - - $systypes = get_systypes(); - - begin_transaction(); - - while ($type = db_fetch($systypes)) - { - save_next_reference($type["type_id"], $_POST['id' . $type["type_id"]]); - } - - commit_transaction(); - - display_notification_centered(_("Forms settings have been updated.")); -} +page(_($help_context = "Transaction References")); start_form(); -start_outer_table($table_style2); - -$systypes = get_systypes(); -table_section(1); - -$th = array(_("Form"), _("Next Reference")); -table_header($th); -$i = 0; -while ($type = db_fetch($systypes)) -{ - if ($i++ == 11) - { - table_section(2); - table_header($th); - } - ref_row(systypes::name($type["type_id"]), 'id' . $type["type_id"], '', $type["next_reference"]); -} - -end_outer_table(1); - -submit_center('setprefs', _("Update"), true, '', true); - -end_form(2); +$companies = new fa_reflines(); -//------------------------------------------------------------------------------------------------- +$companies->show(); -end_page(); +end_form(); -?> \ No newline at end of file +end_page(); \ No newline at end of file