function render(&$table, $value, $row, $column, $selected = false) {
$html = '<td';
$html .= ($this->mWidth!='' ? ' width="'.$this->mWidth.'"' : '');
- $html .= "><input name=\"".$table->getName()."[]\" id=\"".$table->getName()."_".$row."\" type=\"checkbox\" value=\"".$value."\"";
+ $html .= "><input name=\"".$table->name."[]\" id=\"".$table->name."_".$row."\" type=\"checkbox\" value=\"".$value."\"";
if($this->getOnChangeAdd()) {
$html .= " onclick=\"".$this->getOnChangeAdd()."\"";
}
$html = "\n\t<table style=\"".$this->style."\"><tr><td align=\"center\" bgcolor=\"eeeeee\">\n";
- $html .= '<a href="#" onclick="setAll'.$this->getName().'(true);return false;">'.$this->lSelAll.'</a> / <a href="#" onclick="setAll'.$this->getName().'(false);return false;">'.$this->lSelNone.'</a>';
+ $html .= '<a href="#" onclick="setAll'.$this->name.'(true);return false;">'.$this->lSelAll.'</a> / <a href="#" onclick="setAll'.$this->name.'(false);return false;">'.$this->lSelNone.'</a>';
$html .= "</td></tr>\n";
$html .= "<tr><td>";
$html .= "\n\t<table width=\"100%\">\n";
$html .= "</td></tr></table>\n";
$str = "<script>\n";
- $str .= "function setAll".$this->getName()."(value) {\n";
+ $str .= "function setAll".$this->name."(value) {\n";
$str .= "\tvar formInputs = document.getElementsByTagName(\"input\");\n";
$str .= "\tfor (var i = 0; i < formInputs.length; i++) {\n";
- $str .= "\t\tif ((formInputs.item(i).type=='checkbox') && (formInputs.item(i).name=='".$this->getName()."[]')) {\n";
+ $str .= "\t\tif ((formInputs.item(i).type=='checkbox') && (formInputs.item(i).name=='".$this->name."[]')) {\n";
$str .= "\t\tformInputs.item(i).checked=value;\n";
$str .= "\t}\n}\n";
$str .= "}\n";
if (isset($GLOBALS["I18N"])) $el->setLocalization($GLOBALS["I18N"]);
$el->setFormName($this->name);
- $this->elements[$el->getName()] = &$el;
+ $this->elements[$el->name] = &$el;
}
}
function __construct() {
}
+ function getName() { return $this->name; }
function getClass() { return $this->class; }
-
+
// TODO: refactoring ongoing down from here.
- function setName($name) { $this->name = $name; }
- function getName() { return $this->name; }
-
function setFormName($name) { $this->form_name = $name; }
function getFormName() { return $this->form_name; }
if ($this->mInteractive) {
// Add a column of clickable checkboxes.
- $column = new TableColumn("","<input type=\"checkbox\" name=\"".$this->getName()."_all\" onclick=\"setAll(this.checked)\">");
+ $column = new TableColumn("","<input type=\"checkbox\" name=\"".$this->name."_all\" onclick=\"setAll(this.checked)\">");
import('form.CheckboxCellRenderer');
$cb = new CheckboxCellRenderer();
if ($this->getIAScript()) $cb->setOnChangeAdd($this->getIAScript()."(this)");
// 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";
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.10.38.3609 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.10.38.3610 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
class NameCellRenderer extends DefaultCellRenderer {
function render(&$table, $value, $row, $column, $selected = false) {
$this->setOptions(array('width'=>200,'valign'=>'top'));
- $this->setValue('<label for = "'.$table->getName().'_'.$row.'">'.htmlspecialchars($value).'</label>');
+ $this->setValue('<label for = "'.$table->name.'_'.$row.'">'.htmlspecialchars($value).'</label>');
return $this->toString();
}
}
class NameCellRenderer extends DefaultCellRenderer {
function render(&$table, $value, $row, $column, $selected = false) {
$this->setOptions(array('width'=>200,'valign'=>'top'));
- $this->setValue('<label for = "'.$table->getName().'_'.$row.'">'.htmlspecialchars($value).'</label>');
+ $this->setValue('<label for = "'.$table->name.'_'.$row.'">'.htmlspecialchars($value).'</label>');
return $this->toString();
}
}