]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/form/Table.class.php
Cosmetic. Whitespace.
[timetracker.git] / WEB-INF / lib / form / Table.class.php
index 807e2c7cd8f3c00769f51ab678380faca3b3a0b3..fa58b78693d511fcf3b5c0c0204f2e1617fdca69 100644 (file)
@@ -41,15 +41,14 @@ class Table extends FormElement {
   var $mBgColor       = '#ffffff';
   var $mBgColorOver   = '#eeeeff';
   var $mWidth         = '';
-  var $class = 'Table';
   var $mTableOptions  = array();
   var $mRowOptions    = array();
   var $mHeaderOptions = array();
   var $mProccessed    = false;
        
-  function __construct($name, $value='') {
+  function __construct($name) {
+    $this->class = 'Table';
     $this->name = $name;
-    $this->value = $value;
   }
   
   function setKeyField($value) {
@@ -89,7 +88,7 @@ class Table extends FormElement {
     return @$this->mData[$rowindex][$this->mColumnFields[$colindex]];
   }
        
-  function getValueAtName($rowindex,$fieldname) {
+  function getValueAtName($rowindex, $fieldname) {
     if (!$this->mProccessed) $this->_process();
     return @$this->mData[$rowindex][$fieldname];
   }
@@ -132,7 +131,7 @@ class Table extends FormElement {
     $html .= ">\n";
     
     // Print headers.
-       if (($this->mInteractive && (count($this->mHeaders) > 1)) || (!$this->mInteractive && (count($this->mHeaders) > 0))) {
+    if (($this->mInteractive && (count($this->mHeaders) > 1)) || (!$this->mInteractive && (count($this->mHeaders) > 0))) {
       $html .= "<tr";
       if (count($this->mRowOptions) > 0) {
         foreach ($this->mRowOptions as $k=>$v) {