function toString($date="") {
global $i18n;
- $indate = $this->mValue;
+ $indate = $this->value;
if (!$indate) $indate = strftime(DB_DATEFORMAT);
if (!$this->isRenderable()) return "";
function __construct($name,$value="")
{
- $this->name = $name;
- $this->mValue = $value;
+ $this->name = $name;
+ $this->value = $value;
}
function setChecked($value) { $this->mChecked = $value; }
if ($this->mStyle!="")
$html .= " style=\"$this->mStyle\"";
- if ($this->mChecked || (($this->mValue == $this->mOptions) && ($this->mValue != null)))
+ if ($this->mChecked || (($this->value == $this->mOptions) && ($this->value != null)))
$html .= " checked=\"true\"";
if (!$this->isEnable())
function __construct($name,$value="")
{
- $this->name = $name;
- $this->mValue = $value;
+ $this->name = $name;
+ $this->value = $value;
}
function setChecked($value) { $this->mChecked = $value; }
$optval = $optval[$this->mDataKeys[1]];
}
$html = "<input type=\"checkbox\" name=\"$this->name[]\" id=\"$this->id"."_".$i."\"";
- if (is_array($this->mValue)) {
- foreach ($this->mValue as $value) {
- if (($value == $optkey) && ($value != null))
+ if (is_array($this->value)) {
+ foreach ($this->value as $element) {
+ if (($element == $optkey) && ($element != null))
$html .= " checked=\"true\"";
}
}
$optval = $optval[$this->mDataKeys[1]];
}
$html = "<input type=\"checkbox\" name=\"$this->name[]\" id=\"$this->id"."_".$i."\"";
- if (is_array($this->mValue)) {
- foreach ($this->mValue as $value) {
- if (($value == $optkey) && ($value != null))
+ if (is_array($this->value)) {
+ foreach ($this->value as $element) {
+ if (($element == $optkey) && ($element != null))
$html .= " checked=\"true\"";
}
}
function __construct($name,$value="")
{
- $this->name = $name;
- $this->mValue = $value;
+ $this->name = $name;
+ $this->value = $value;
}
function setMultiple($value) { $this->mMultiple = $value; }
if (is_array($this->mOptionsEmpty) && (count($this->mOptionsEmpty) > 0))
foreach ($this->mOptionsEmpty as $key=>$value) {
$html .= "<option value=\"".$key."\"";
- if (($this->mValue == $value) && ($this->mValue != '')) $html .= " selected";
+ if (($this->value == $value) && ($this->value != '')) $html .= " selected";
$html .= ">".$value."</option>\n";
}
if (is_array($this->mOptions) && (count($this->mOptions) > 0))
$value = $value[$this->mDataKeys[1]];
}
$html .= "<option value=\"".$key."\"";
- if (($this->mValue == $key) && ($this->mValue != '')) $html .= " selected";
+ if (($this->value == $key) && ($this->value != '')) $html .= " selected";
$html .= ">".htmlspecialchars($value)."</option>\n";
}
function setValueSafe($value) {
if (isset($value) && (strlen($value) > 0)) {
$this->mDateObj->parseVal($value, DB_DATEFORMAT);
- $this->mValue = $this->mDateObj->toString($this->mDateFormat); //?
+ $this->value = $this->mDateObj->toString($this->mDateFormat); //?
}
}
// get value for storing in session or database
function getValueSafe() {
- if (strlen($this->mValue)>0) {
- $this->mDateObj->parseVal($this->mValue, $this->mDateFormat); //?
+ if (strlen($this->value)>0) {
+ $this->mDateObj->parseVal($this->value, $this->mDateFormat); //?
return $this->mDateObj->toString(DB_DATEFORMAT);
} else {
return null;
$value = sprintf('%'.$this->mFFormat.'f', $value);
$value = str_replace('.', $this->mDelimiter, $value);
}
- $this->mValue = $value;
+ $this->value = $value;
}
function setValueSafe($value) {
// '.' to ',' , apply delimiter
if (strlen($value) > 0)
- $this->mValue = str_replace('.', $this->mDelimiter, $value);
+ $this->value = str_replace('.', $this->mDelimiter, $value);
}
function getValueSafe() {
// ',' to '.'
- if (strlen($this->mValue) > 0)
- return str_replace($this->mDelimiter, '.', $this->mValue);
+ if (strlen($this->value) > 0)
+ return str_replace($this->mDelimiter, '.', $this->value);
return null;
}
}
// FromElement is the base class for controls on forms.
class FormElement {
- var $id = "";
+ var $id = '';
var $name;
- var $form_name = "";
- var $mValue = "";
+ var $form_name = '';
+ var $value = '';
+ // TODO: refactoring ongoing down from here.
var $mSize = "";
var $mMaxLength = "";
var $mTabindex = "";
function getClass() { return $this->cClassName; }
- function setName($name) { $this->name = $name; }
+ function setName($name) { $this->name = $name; }
function getName() { return $this->name; }
function setFormName($name) { $this->form_name = $name; }
function getFormName() { return $this->form_name; }
- function setValue($value) { $this->mValue = $value;}
- function getValue() { return $this->mValue; }
+ function setValue($value) { $this->value = $value;}
+ function getValue() { return $this->value; }
- function setValueSafe($value) { $this->mValue = $value;}
- function getValueSafe() { return $this->mValue; }
+ function setValueSafe($value) { $this->value = $value;}
+ function getValueSafe() { return $this->value; }
function setId($id) { $this->id = $id; }
function getId() { return $this->id; }
import('form.FormElement');
class Hidden extends FormElement {
- var $mValue;
var $cClassName = "Hidden";
function __construct($name,$value="")
{
- $this->name = $name;
- $this->mValue = $value;
+ $this->name = $name;
+ $this->value = $value;
}
function toStringControl() {
function __construct($name,$value="")
{
- $this->name = $name;
- $this->mValue = $value;
+ $this->name = $name;
+ $this->value = $value;
}
function toStringControl() {
$html .= " disabled=\"true\"";
}
- $html .= " value=\"$this->mValue\"";
+ $html .= " value=\"$this->value\"";
if ($this->mOnClick) {
$html .= " onclick=\"".$this->mOnClick."\"";
function __construct($name, $value='') {
$this->name = $name;
- $this->mValue = $value;
+ $this->value = $value;
}
function setKeyField($value) {
if (0 == $col && strtolower(get_class($this->mColumns[$col]->getRenderer())) == 'checkboxcellrenderer') {
// Checkbox for the row. Determine if selected.
$selected = false;
- if (is_array($this->mValue)) {
- foreach ($this->mValue as $p) {
+ if (is_array($this->value)) {
+ foreach ($this->value as $p) {
if ($p == $this->mData[$row][$this->mKeyField]) {
$selected = true;
break;
import('form.FormElement');
class TextArea extends FormElement {
- var $mValue;
var $mPassword = false;
var $mColumns = "";
var $mRows = "";
function __construct($name,$value="")
{
- $this->name = $name;
- $this->mValue = $value;
+ $this->name = $name;
+ $this->value = $value;
}
function setColumns($value) { $this->mColumns = $value; }
import('form.FormElement');
class TextField extends FormElement {
- var $mValue;
var $mPassword = false;
var $cClassName = "TextField";
function __construct($name,$value="")
{
- $this->name = $name;
- $this->mValue = $value;
+ $this->name = $name;
+ $this->value = $value;
}
function setAsPassword($name) { $this->mPassword = $name; }
import('form.FormElement');
class UploadFile extends FormElement {
- var $mValue;
var $cClassName = "UploadFile";
var $mMaxSize = 100000; // 100kb
function __construct($name,$value="")
{
- $this->name = $name;
- $this->mValue = $value;
+ $this->name = $name;
+ $this->value = $value;
}
function setMaxSize($value) { $this->mMaxSize = $value; }
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.10.38.3594 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.10.38.3595 | 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>