From 0acbd4519726d1a972bc6838a1185760bf230c66 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 15 Apr 2010 16:50:09 +0000 Subject: [PATCH] 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. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2568 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_html.php | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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;