Better layout in Form setup
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 2 Feb 2009 21:25:39 +0000 (21:25 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 2 Feb 2009 21:25:39 +0000 (21:25 +0000)
CHANGELOG.txt
admin/forms_setup.php
sales/inquiry/customer_inquiry.php

index 2b998bff012bdb63b3548a370a7caa82b84be12c..015eb510405930972856afbbf9a113f61084f3e9 100644 (file)
@@ -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
index 23de52ef9f646baade54faf9fc142e1496b6c787..5ca44040ad69ac87d315e1fe2296597845ff42f7 100644 (file)
@@ -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);
 
index 1e13680b93e3b817ac0206fa0a36d92850ce894b..6db43593a18d1ed2ee156b97f0a2588d6a22381f 100644 (file)
@@ -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)