5 include($path_to_root . "/includes/session.inc");
7 page(_("Forms Setup"));
9 include($path_to_root . "/includes/ui.inc");
11 //-------------------------------------------------------------------------------------------------
13 if (isset($_POST['setprefs']))
16 $systypes = get_systypes();
20 while ($type = db_fetch($systypes))
22 save_next_reference($type["type_id"], $_POST['id' . $type["type_id"]]);
27 display_notification_centered(_("Forms settings have been updated."));
31 start_table("class='tablestyle'");
33 $systypes = get_systypes();
35 $th = array(_("Form"), _("Next Reference"));
38 while ($type = db_fetch($systypes))
40 ref_row(systypes::name($type["type_id"]), 'id' . $type["type_id"], $type["next_reference"]);
45 submit_center('setprefs', _("Update"));
49 //-------------------------------------------------------------------------------------------------