X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fforms_setup.php;h=a2895ab63c6c6bddc08638c74fc7bb0275d6db68;hb=13fae1ba1d78cff66e326a006be2f538dd404248;hp=bdd1b219ca0103e7f7aeb311855cba664825fb95;hpb=d67d5295b9342c011697ce4df325197e29898588;p=fa-stable.git diff --git a/admin/forms_setup.php b/admin/forms_setup.php index bdd1b219..a2895ab6 100644 --- a/admin/forms_setup.php +++ b/admin/forms_setup.php @@ -1,53 +1,30 @@ . +***********************************************************************/ +$page_security = 'SA_FORMSETUP'; $path_to_root=".."; -include($path_to_root . "/includes/session.inc"); - -page(_("Forms Setup")); - -include($path_to_root . "/includes/ui.inc"); - -//------------------------------------------------------------------------------------------------- - -if (isset($_POST['setprefs'])) -{ - - $systypes = get_systypes(); - begin_transaction(); +include_once($path_to_root . "/includes/session.inc"); +include_once('../includes/ui/class.reflines_crud.inc'); - while ($type = db_fetch($systypes)) - { - save_next_reference($type["type_id"], $_POST['id' . $type["type_id"]]); - } +include_once($path_to_root . "/includes/ui.inc"); - 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")); -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