summaryrefslogtreecommitdiff
path: root/program/include/html.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-09-29 07:38:16 +0000
committeralecpl <alec@alec.pl>2008-09-29 07:38:16 +0000
commitffae15e5fcde50cf8c1b168fa313f4ec3454a693 (patch)
tree88f81d19eb5ebc41710fb9a161b054881ba5e3bd /program/include/html.php
parent29e697b24a68d7fca600f88ebc913b3ba5240f50 (diff)
- Added 'mime_param_folding' option with possibility to choose
long/non-ascii attachment names encoding eg. to be readable in MS Outlook/OE (#1485320) - Added "advanced options" feature in User Preferences
Diffstat (limited to 'program/include/html.php')
-rw-r--r--program/include/html.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/program/include/html.php b/program/include/html.php
index 2d0d90b5f..9268acacc 100644
--- a/program/include/html.php
+++ b/program/include/html.php
@@ -591,7 +591,7 @@ class html_table extends html
public function add_header($attr, $cont)
{
if (is_string($attr))
- $attr = array('class' => $attr);
+ $attr = array('class' => $attr);
$cell = new stdClass;
$cell->attrib = $attr;
@@ -613,6 +613,18 @@ class html_table extends html
$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