X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Flib%2Fform%2FTable.class.php;h=7bcd78be89e717c60c932e7020eed4e0d04e4d32;hb=a84f7509ea5462f08ca01c5435e0217045391a45;hp=e5aed81dc67b894bbc77bc1820099579a498c6c3;hpb=f4647b2cf4e71f6427d6a0c2886fe747d5aed098;p=timetracker.git diff --git a/WEB-INF/lib/form/Table.class.php b/WEB-INF/lib/form/Table.class.php index e5aed81d..7bcd78be 100644 --- a/WEB-INF/lib/form/Table.class.php +++ b/WEB-INF/lib/form/Table.class.php @@ -47,17 +47,18 @@ class Table extends FormElement { var $mHeaderOptions = array(); var $mProccessed = false; - function __construct($name) { + function __construct($name, $cssClass = null) { $this->class = 'Table'; $this->name = $name; + $this->cssClass = $cssClass; } function setKeyField($value) { - $this->mKeyField = $value; + $this->mKeyField = $value; } function setData($data) { - if (is_array($data) && isset($data[0]) && is_array($data[0])) + if (is_array($data) && isset($data[0]) && is_array($data[0])) $this->mData = &$data; } @@ -122,6 +123,9 @@ class Table extends FormElement { if ($this->mInteractive) $html .= $this->_addJavaScript(); $html .= "