X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_controls.inc;h=6e2c664a7a8f9cc01a59ca65fa49fbed8fb4efa1;hb=a4db318fa0c84e099e0970ca82e36215782d661e;hp=d0231002b1e1581ba79141e4048ef7f52c60f01b;hpb=a1a4460e51a0a792f10df5d41eb43abc1f94ff4a;p=fa-stable.git diff --git a/includes/ui/ui_controls.inc b/includes/ui/ui_controls.inc index d0231002..6e2c664a 100644 --- a/includes/ui/ui_controls.inc +++ b/includes/ui/ui_controls.inc @@ -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 "\n"; // outer table } @@ -207,11 +208,11 @@ function table_section_title($msg, $colspan=2) echo "$msg\n"; } -function table_header($labels) +function table_header($labels, $params='') { start_row(); foreach ($labels as $label) - labelheader_cell($label); + labelheader_cell($label, $params); end_row(); } //-----------------------------------------------------------------------------------