| | |
| | | | program/include/html.php | |
| | | | | |
| | | | This file is part of the RoundCube Webmail client | |
| | | | Copyright (C) 2005-2008, RoundCube Dev, - Switzerland | |
| | | | Copyright (C) 2005-2009, RoundCube Dev, - Switzerland | |
| | | | Licensed under the GNU GPL | |
| | | | | |
| | | | PURPOSE: | |
| | |
| | | public function add_header($attr, $cont) |
| | | { |
| | | if (is_string($attr)) |
| | | $attr = array('class' => $attr); |
| | | $attr = array('class' => $attr); |
| | | |
| | | $cell = new stdClass; |
| | | $cell->attrib = $attr; |
| | |
| | | $this->rows[$this->rowindex]->cells = array(); |
| | | } |
| | | |
| | | /** |
| | | * Set current row attrib |
| | | * |
| | | * @param array Row attributes |
| | | */ |
| | | public function set_row_attribs($attr = array()) |
| | | { |
| | | if (is_string($attr)) |
| | | $attr = array('class' => $attr); |
| | | |
| | | $this->rows[$this->rowindex]->attrib = $attr; |
| | | } |
| | | |
| | | /** |
| | | * Build HTML output of the table data |
| | |
| | | unset($this->attrib['cols'], $this->attrib['rowsonly']); |
| | | return parent::show(); |
| | | } |
| | | |
| | | /** |
| | | * Count number of rows |
| | | * |
| | | * @return The number of rows |
| | | */ |
| | | public function size() |
| | | { |
| | | return count($this->rows); |
| | | } |
| | | } |
| | | |
| | | ?> |