X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fforms_setup.php;h=9a6be87a3e81e90a0aa4cf0b455abac015a5790d;hb=07a0b37ca7360c5dbb058f5a0ba4c5752671dda7;hp=dd14046b8dfeea82ae722441e4c20ca3b638c80c;hpb=a5242af68e65661edb7175412444dce536a7f311;p=fa-stable.git diff --git a/admin/forms_setup.php b/admin/forms_setup.php index dd14046b..9a6be87a 100644 --- a/admin/forms_setup.php +++ b/admin/forms_setup.php @@ -9,8 +9,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security =10; -$path_to_root=".."; +$page_security = 'SA_FORMSETUP'; +$path_to_root = ".."; include($path_to_root . "/includes/session.inc"); page(_("Forms Setup")); @@ -38,7 +38,7 @@ if (isset($_POST['setprefs'])) start_form(); -start_outer_table("class='tablestyle'"); +start_outer_table($table_style2); $systypes = get_systypes(); table_section(1); @@ -48,17 +48,17 @@ table_header($th); $i = 0; while ($type = db_fetch($systypes)) { - if ($i++ == 11) + if ($i++ == ST_CUSTCREDIT) { table_section(2); table_header($th); } - ref_row(systypes::name($type["type_id"]), 'id' . $type["type_id"], '', $type["next_reference"]); + ref_row($systypes_array[$type["type_id"]], 'id' . $type["type_id"], '', $type["next_reference"]); } end_outer_table(1); -submit_center('setprefs', _("Update"), true, '', true); +submit_center('setprefs', _("Update"), true, '', 'default'); end_form(2);