projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Work in progress on project attachments.
[timetracker.git]
/
WEB-INF
/
lib
/
form
/
Table.class.php
diff --git
a/WEB-INF/lib/form/Table.class.php
b/WEB-INF/lib/form/Table.class.php
index
1e692c3
..
7bcd78b
100644
(file)
--- a/
WEB-INF/lib/form/Table.class.php
+++ b/
WEB-INF/lib/form/Table.class.php
@@
-47,9
+47,10
@@
class Table extends FormElement {
var $mHeaderOptions = array();
var $mProccessed = false;
var $mHeaderOptions = array();
var $mProccessed = false;
- function __construct($name) {
+ function __construct($name
, $cssClass = null
) {
$this->class = 'Table';
$this->name = $name;
$this->class = 'Table';
$this->name = $name;
+ $this->cssClass = $cssClass;
}
function setKeyField($value) {
}
function setKeyField($value) {
@@
-122,6
+123,9
@@
class Table extends FormElement {
if ($this->mInteractive) $html .= $this->_addJavaScript();
$html .= "<table";
if ($this->mInteractive) $html .= $this->_addJavaScript();
$html .= "<table";
+ if ($this->cssClass) {
+ $html .= " class=\"".$this->cssClass."\"";
+ }
if (count($this->mTableOptions) > 0) {
foreach ($this->mTableOptions as $k=>$v) {
$html .= " $k=\"$v\"";
if (count($this->mTableOptions) > 0) {
foreach ($this->mTableOptions as $k=>$v) {
$html .= " $k=\"$v\"";