| | |
| | | if ($index === null) |
| | | $index = $this->rowindex; |
| | | |
| | | if ($this->rows[$index]) |
| | | $this->rows[$index]->attrib = $attr; |
| | | $this->rows[$index]->attrib = $attr; |
| | | } |
| | | |
| | | /** |
| | |
| | | foreach ($this->header as $c => $col) { |
| | | $rowcontent .= self::tag('td', $col->attrib, $col->content); |
| | | } |
| | | $thead = self::tag('thead', null, self::tag('tr', null, $rowcontent)); |
| | | $thead = self::tag('thead', null, self::tag('tr', null, $rowcontent, parent::$common_attrib)); |
| | | } |
| | | |
| | | foreach ($this->rows as $r => $row) { |
| | |
| | | } |
| | | |
| | | if ($r < $this->rowindex || count($row->cells)) { |
| | | $tbody .= self::tag('tr', $row->attrib, $rowcontent); |
| | | $tbody .= self::tag('tr', $row->attrib, $rowcontent, parent::$common_attrib); |
| | | } |
| | | } |
| | | |