2010-04-15 Miguel de Dios <miguel.dedios@artica.es>
* 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
This commit is contained in:
parent
2143b28a57
commit
0acbd45197
|
@ -1,3 +1,8 @@
|
|||
2010-04-15 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* 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 <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_db.php: fixed bug in the function
|
||||
|
|
|
@ -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 .= '<table width="'.$table->width.'"'.$table->tablealign;
|
||||
$output .= '<table style="' . $styleTable . '" width="'.$table->width.'"'.$table->tablealign;
|
||||
$output .= ' cellpadding="'.$table->cellpadding.'" cellspacing="'.$table->cellspacing.'"';
|
||||
$output .= ' border="'.$table->border.'" class="'.$table->class.'" id="'.$tableid.'">';
|
||||
$countcols = 0;
|
||||
|
|
Loading…
Reference in New Issue