X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Flib%2Fform%2FTable.class.php;h=ea0d28e85202b7f5fe75a9f08cbb0381fff91ead;hb=3a5964df63eb410b66e02326ebc7f7c90e8d606e;hp=e0930095bc6e2637a5453aca16fedc5c46a42bab;hpb=5532fe6cfc2125063ff8040cfa80e20089ac64b0;p=timetracker.git
diff --git a/WEB-INF/lib/form/Table.class.php b/WEB-INF/lib/form/Table.class.php
index e0930095..ea0d28e8 100644
--- a/WEB-INF/lib/form/Table.class.php
+++ b/WEB-INF/lib/form/Table.class.php
@@ -41,7 +41,7 @@ class Table extends FormElement {
var $mBgColor = '#ffffff';
var $mBgColorOver = '#eeeeff';
var $mWidth = '';
- var $cClassName = 'Table';
+ var $class = 'Table';
var $mTableOptions = array();
var $mRowOptions = array();
var $mHeaderOptions = array();
@@ -99,7 +99,7 @@ class Table extends FormElement {
if ($this->mInteractive) {
// Add a column of clickable checkboxes.
- $column = new TableColumn("","getName()."_all\" onclick=\"setAll(this.checked)\">");
+ $column = new TableColumn("","name."_all\" onclick=\"setAll(this.checked)\">");
import('form.CheckboxCellRenderer');
$cb = new CheckboxCellRenderer();
if ($this->getIAScript()) $cb->setOnChangeAdd($this->getIAScript()."(this)");
@@ -190,7 +190,7 @@ class Table extends FormElement {
// setAll - checks / unchecks all checkboxes in the table.
$html .= "function setAll(value) {\n";
$html .= "\tfor (var i = 0; i < ".$this->getFormName().".elements.length; i++) {\n";
- $html .= "\t\tif ((".$this->getFormName().".elements[i].type=='checkbox') && (".$this->getFormName().".elements[i].name=='".$this->getName()."[]')) {\n";
+ $html .= "\t\tif ((".$this->getFormName().".elements[i].type=='checkbox') && (".$this->getFormName().".elements[i].name=='".$this->name."[]')) {\n";
$html .= "\t\t\t".$this->getFormName().".elements[i].checked=value;\n";
if ($this->getIAScript()) {
$html .= "\t\t\t".$this->getIAScript()."(".$this->getFormName().".elements[i]);\n";