Merge in from pre_0.1 branch
git-svn-id: file:///svn-source/pmgr/trunk/site@847 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -52,8 +52,8 @@ if (isset($rows) && is_array($rows) && count($rows)) {
|
||||
|
||||
foreach ($rows AS $r => &$row) {
|
||||
foreach ($row AS $c => $col) {
|
||||
$cell_class = implode(" ", array_merge(isset( $row_class[$r]) ? $row_class[$r] : array(),
|
||||
isset($column_class[$c]) ? $column_class[$c] : array()));
|
||||
$cell_class = implode(" ", array_merge(empty( $row_class[$r]) ? array() : $row_class[$r],
|
||||
empty($column_class[$c]) ? array() : $column_class[$c]));
|
||||
if ($cell_class)
|
||||
$row[$c] = array($col, array('class' => $cell_class));
|
||||
}
|
||||
@@ -65,11 +65,11 @@ if (isset($rows) && is_array($rows) && count($rows)) {
|
||||
|
||||
// OK, output the table HTML
|
||||
echo('<TABLE' .
|
||||
(isset($id) ? ' ID="'.$id.'"' : '') .
|
||||
(isset($class) ? ' CLASS="'.$class.'"' : '') .
|
||||
(empty($id) ? '' : ' ID="'.$id.'"') .
|
||||
(empty($class) ? '' : ' CLASS="'.$class.'"') .
|
||||
'>' . "\n");
|
||||
|
||||
if (isset($caption))
|
||||
if (!empty($caption))
|
||||
echo(' <CAPTION>' . $caption . '</CAPTION>' . "\n");
|
||||
|
||||
if (isset($headers) && is_array($headers)) {
|
||||
|
||||
Reference in New Issue
Block a user