$html = "\n\t<input type=\"checkbox\"";
$html .= " name=\"$this->name\" id=\"$this->id\"";
- if ($this->mOnChange!="")
- $html .= " onchange=\"$this->mOnChange\"";
+ if ($this->on_change!="")
+ $html .= " onchange=\"$this->on_change\"";
if ($this->mStyle!="")
$html .= " style=\"$this->mStyle\"";
if ($this->mMultiple)
$html .= " multiple";
- if ($this->mOnChange!="")
- $html .= " onchange=\"$this->mOnChange\"";
+ if ($this->on_change!="")
+ $html .= " onchange=\"$this->on_change\"";
if ($this->mStyle!="")
$html .= " style=\"$this->mStyle\"";
$html .= " maxlength=\"50\"";
- if ($this->mOnChange!="")
- $html .= " onchange=\"$this->mOnChange\"";
+ if ($this->on_change!="")
+ $html .= " onchange=\"$this->on_change\"";
if ($this->mOnClick!="")
$html .= " onclick=\"$this->mOnClick\"";
// FromElement is the base class for controls on forms.
class FormElement {
- var $id = '';
- var $name;
- var $form_name = '';
- var $value = '';
- var $size = '';
- var $max_length = '';
+ var $id = ''; // Control id.
+ var $name; // Control name.
+ var $form_name = ''; // Form name the control is in.
+ var $value = ''; // Value of the control.
+ var $size = ''; // Control size.
+ var $max_length = ''; // Max lenght of text in control.
+ var $on_change = ''; // What happens when value of control changes.
// TODO: refactoring ongoing down from here.
- var $mOnSelect = "";
- var $mOnChange = "";
var $mOnClick = "";
var $mOnKeyPress = "";
var $mOnFocus = "";
function setEnable($flag) { $this->mEnabled = $flag; }
function isEnable() { return $this->mEnabled; }
- function setOnChange($str) { $this->mOnChange = $str; }
+ function setOnChange($str) { $this->on_change = $str; }
function setOnClick($str) { $this->mOnClick = $str; }
- function setOnSelect($str) { $this->mOnSelect = $str; }
function setLocalization($i18n) {
$this->mI18n = $i18n;
if ($this->max_length!="")
$html .= " maxlength=\"$this->max_length\"";
- if ($this->mOnChange!="")
- $html .= " onchange=\"$this->mOnChange\"";
+ if ($this->on_change!="")
+ $html .= " onchange=\"$this->on_change\"";
$html .= " value=\"".htmlspecialchars($this->getValue())."\"";
$html .= ">";
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.10.38.3598 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.10.38.3599 | 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>