mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
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
95dbd4df53
commit
d6e9404c4c
@ -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>
|
2010-04-14 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/functions_db.php: fixed bug in the function
|
* 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->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->titlestyle - Title style
|
||||||
* $table->titleclass - Title class
|
* $table->titleclass - Title class
|
||||||
|
* $table->styleTable - Table style
|
||||||
* @param bool Whether to return an output string or echo now
|
* @param bool Whether to return an output string or echo now
|
||||||
*
|
*
|
||||||
* @return string HTML code if return parameter is true.
|
* @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)) {
|
if (isset ($table->rowstyle)) {
|
||||||
foreach ($table->rowstyle as $key => $st) {
|
foreach ($table->rowstyle as $key => $st) {
|
||||||
$rowstyle[$key] = ' '. $st .';';
|
$rowstyle[$key] = ' '. $st .';';
|
||||||
@ -730,7 +735,7 @@ function print_table (&$table, $return = false) {
|
|||||||
|
|
||||||
$tableid = empty ($table->id) ? 'table'.$table_count : $table->id;
|
$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 .= ' cellpadding="'.$table->cellpadding.'" cellspacing="'.$table->cellspacing.'"';
|
||||||
$output .= ' border="'.$table->border.'" class="'.$table->class.'" id="'.$tableid.'">';
|
$output .= ' border="'.$table->border.'" class="'.$table->class.'" id="'.$tableid.'">';
|
||||||
$countcols = 0;
|
$countcols = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user