X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fforms_setup.php;h=a2895ab63c6c6bddc08638c74fc7bb0275d6db68;hb=df660a601cabb0afe7f3246884f16207b9a0c314;hp=23de52ef9f646baade54faf9fc142e1496b6c787;hpb=b61fe995e432d77ff3ff0b5850bb921920f3befb;p=fa-stable.git diff --git a/admin/forms_setup.php b/admin/forms_setup.php index 23de52ef..a2895ab6 100644 --- a/admin/forms_setup.php +++ b/admin/forms_setup.php @@ -1,63 +1,30 @@ . + 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_table("class='tablestyle'"); - -$systypes = get_systypes(); - -$th = array(_("Form"), _("Next Reference")); -table_header($th); - -while ($type = db_fetch($systypes)) -{ - ref_row(systypes::name($type["type_id"]), 'id' . $type["type_id"], '', $type["next_reference"]); -} - -end_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