Optional params in table_header() added.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 9 Jan 2009 16:38:26 +0000 (16:38 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 9 Jan 2009 16:38:26 +0000 (16:38 +0000)
includes/ui/ui_controls.inc

index 40bfc9a8030904c95747a99faa55fe0c33be8b5a..6e2c664a7a8f9cc01a59ca65fa49fbed8fb4efa1 100644 (file)
@@ -208,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();
 }
 //-----------------------------------------------------------------------------------