Merged bugfixes since 2.0.6
[fa-stable.git] / includes / ui / ui_controls.inc
index d0231002b1e1581ba79141e4048ef7f52c60f01b..6e2c664a7a8f9cc01a59ca65fa49fbed8fb4efa1 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
 }
@@ -207,11 +208,11 @@ function table_section_title($msg, $colspan=2)
        echo "<tr><td colspan=$colspan class='tableheader'>$msg</td></tr>\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();
 }
 //-----------------------------------------------------------------------------------