From 74dc7287df122a02d0e5ef3b8bda58e60057a5a1 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Mon, 2 Feb 2009 21:25:39 +0000 Subject: [PATCH] Better layout in Form setup --- CHANGELOG.txt | 6 ++++++ admin/forms_setup.php | 12 +++++++++--- sales/inquiry/customer_inquiry.php | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 2b998bff..015eb510 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,12 @@ Legend: ! -> Note $ -> Affected files +02-Feb-2009 Joe Hunt +! Better layout in Form setup +$ /admin/forms_setup.php +# sql2date around row[date] in due date. +$ /sales/inquiry/customer_inquiry.php + 02-Feb-2009 Janusz Dobrowolski # Fixed initial sort order in pagers $ /dimensions/inquiry/search_dimensions.php diff --git a/admin/forms_setup.php b/admin/forms_setup.php index 23de52ef..5ca44040 100644 --- a/admin/forms_setup.php +++ b/admin/forms_setup.php @@ -38,19 +38,25 @@ if (isset($_POST['setprefs'])) start_form(); -start_table("class='tablestyle'"); +start_outer_table("class='tablestyle'"); $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_table(1); +end_outer_table(1); submit_center('setprefs', _("Update"), true, '', true); diff --git a/sales/inquiry/customer_inquiry.php b/sales/inquiry/customer_inquiry.php index 1e13680b..6db43593 100644 --- a/sales/inquiry/customer_inquiry.php +++ b/sales/inquiry/customer_inquiry.php @@ -127,7 +127,7 @@ function trans_view($trans) function due_date($row) { - return $row["type"] == 10 ? $row["due_date"] : ''; + return $row["type"] == 10 ? sql2date($row["due_date"]) : ''; } function gl_view($row) -- 2.30.2