diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index a184e9cd1a..6c46359bdc 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-04-15 Miguel de Dios + + * include/functions_html.php: added check new attribute "styleTable" to + object table, this is for pass the style table. + 2010-04-14 Miguel de Dios * include/functions_db.php: fixed bug in the function diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index e6b3015cac..794014e217 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -626,6 +626,7 @@ function print_textarea ($name, $rows, $columns, $value = '', $attributes = '', * $table->title - Title of the table is a single string that will be on top of the table in the head spanning the whole table * $table->titlestyle - Title style * $table->titleclass - Title class + * $table->styleTable - Table style * @param bool Whether to return an output string or echo now * * @return string HTML code if return parameter is true. @@ -671,6 +672,10 @@ function print_table (&$table, $return = false) { } } } + $styleTable = ''; + if (isset ($table->styleTable)) { + $styleTable = $table->styleTable; + } if (isset ($table->rowstyle)) { foreach ($table->rowstyle as $key => $st) { $rowstyle[$key] = ' '. $st .';'; @@ -730,7 +735,7 @@ function print_table (&$table, $return = false) { $tableid = empty ($table->id) ? 'table'.$table_count : $table->id; - $output .= 'tablealign; + $output .= '
tablealign; $output .= ' cellpadding="'.$table->cellpadding.'" cellspacing="'.$table->cellspacing.'"'; $output .= ' border="'.$table->border.'" class="'.$table->class.'" id="'.$tableid.'">'; $countcols = 0;