Better layout in big forms
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 20 Dec 2008 23:10:11 +0000 (23:10 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 20 Dec 2008 23:10:11 +0000 (23:10 +0000)
CHANGELOG.txt
includes/ui/ui_controls.inc

index a0f6baf4c4343052ffda5f01719f4345f65fab28..ba3483214c47b8b87816e53440d57057612523a9 100644 (file)
@@ -22,6 +22,8 @@ $ -> Affected files
 20-Dec-2008 Joe Hunt
 ! Replaced the ajax paging in stock movements with the old file.
 $ /inventory/inquiry/stock_movements.php
+! Better layout in big forms
+$ /includes/ui/ui_controls.inc
 
 18-Dec-2008 Joe Hunt
 + Added quick entries in supplier invoice/credit note as well. Based on bank payments
index d0231002b1e1581ba79141e4048ef7f52c60f01b..40bfc9a8030904c95747a99faa55fe0c33be8b5a 100644 (file)
@@ -56,9 +56,10 @@ function end_table($breaks=0)
                br($breaks);
 }
 
-function start_outer_table($extra="", $padding='2', $spacing='0')
+function start_outer_table($extra="", $padding='2', $spacing='0', $br=false)
 {
-       br();
+       if ($br)
+               br();
        start_table($extra, $padding, $spacing);
        echo "<tr valign=top><td>\n"; // outer table
 }