var $controlName = "";
var $highlight = "time"; // Determines what type of active days to highlight ("time" or "expenses").
- // var $mAllDays = true;
- var $class = "Calendar";
function __construct($name) {
- $this->controlName = $name;
- $this->mMonthNames = array('January','February','March','April','May','June','July','August','September','October','November','December');
- $this->mWeekDayShortNames = array('Su','Mo','Tu','We','Th','Fr','Sa');
+ $this->class = 'Calendar';
+ $this->controlName = $name; // TODO: why controlName? Other classes have "name".
+ $this->mMonthNames = array('January','February','March','April','May','June','July','August','September','October','November','December');
+ $this->mWeekDayShortNames = array('Su','Mo','Tu','We','Th','Fr','Sa');
}
-
+
function setHighlight($highlight) {
if ($highlight && $highlight != 'time')
$this->highlight = $highlight;
class Checkbox extends FormElement {
var $mChecked = false;
var $mOptions = null;
- var $class = 'Checkbox';
- function __construct($name,$value="")
- {
- $this->name = $name;
- $this->value = $value;
- }
+ function __construct($name, $value = '') {
+ $this->class = 'Checkbox';
+ $this->name = $name;
+ $this->value = $value;
+ }
function setChecked($value) { $this->mChecked = $value; }
function isChecked() { return $this->mChecked; }
var $mOptions = array();
var $mLayout = "V";
var $mGroupIn = 1;
- var $class = 'CheckboxGroup';
var $mDataKeys = array();
var $mDataDeep = 1;
var $lSelAll = "All";
var $lSelNone = "None";
- function __construct($name,$value="")
- {
- $this->name = $name;
- $this->value = $value;
- }
+ function __construct($name, $value = '') {
+ $this->class = 'CheckboxGroup';
+ $this->name = $name;
+ $this->value = $value;
+ }
function setChecked($value) { $this->mChecked = $value; }
function isChecked() { return $this->mChecked; }
var $mCompareOn = "key"; // or "value"
var $mDataDeep = 1;
var $mDataKeys = array();
- var $class = 'Combobox';
- function __construct($name,$value="")
- {
- $this->name = $name;
- $this->value = $value;
- }
+ function __construct($name, $value = '') {
+ $this->class = 'Combobox';
+ $this->name = $name;
+ $this->value = $value;
+ }
function setMultiple($value) { $this->mMultiple = $value; }
function isMultiple() { return $this->mMultiple; }
return $html;
}
}
-?>
\ No newline at end of file
var $mWeekStartDay = 0;
var $mDateFormat = "d/m/Y";
var $lToday = "Today";
-
var $mDateObj;
- var $class = 'DateField';
var $lCalendarButtons = array('today'=>'Today', 'close'=>'Close');
function __construct($name) {
- $this->name = $name;
- $this->mDateObj = new DateAndTime();
+ $this->class = 'DateField';
+ $this->name = $name;
+ $this->mDateObj = new DateAndTime();
if (isset($GLOBALS["I18N"])) {
$this->localize($GLOBALS["I18N"]);
import('form.TextField');
class FloatField extends TextField {
-
var $mDelimiter = '.';
var $mFFormat;
- var $class = 'FloatField';
-
+
function __construct($name) {
+ $this->class = 'FloatField';
$this->name = $name;
}
// +----------------------------------------------------------------------+
class Form {
-
var $name = ''; // Form name.
var $elements = array(); // An array of input controls in form.
// +----------------------------------------------------------------------+
import('form.FormElement');
-
+
class Hidden extends FormElement {
- var $class = 'Hidden';
- function __construct($name,$value="")
- {
- $this->name = $name;
- $this->value = $value;
- }
+ function __construct($name, $value = '') {
+ $this->class = 'Hidden';
+ $this->name = $name;
+ $this->value = $value;
+ }
+
+ function getHtml() {
+ if ($this->id == '') $this->id = $this->name;
- function getHtml() {
-
- if ($this->id=="") $this->id = $this->name;
-
- $html = "\n\t<input";
- $html .= " type=\"hidden\" name=\"$this->name\" id=\"$this->id\"";
-
- $html .= " value=\"".$this->getValue()."\"";
- $html .= ">";
-
- return $html;
- }
+ $html = "\n\t<input type=\"hidden\" id=\"$this->id\" name=\"$this->name\"";
+ $html.= ' value="'.$this->getValue().'">';
+ return $html;
+ }
}
import('form.FormElement');
class Submit extends FormElement {
- var $class = 'Submit';
- function __construct($name,$value="")
- {
- $this->name = $name;
- $this->value = $value;
- }
+ function __construct($name, $value = '')
+ {
+ $this->class = 'Submit';
+ $this->name = $name;
+ $this->value = $value;
+ }
- function getHtml() {
+ function getHtml() {
if ($this->id=="") $this->id = $this->name;
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='') {
+ $this->class = 'Table';
$this->name = $name;
$this->value = $value;
}
class TextArea extends FormElement {
var $mColumns = "";
var $mRows = "";
- var $class = 'TextArea';
var $mOnKeyPress = "";
- function __construct($name,$value="")
- {
- $this->name = $name;
- $this->value = $value;
- }
+ function __construct($name, $value = '')
+ {
+ $this->class = 'TextArea';
+ $this->name = $name;
+ $this->value = $value;
+ }
function setColumns($value) { $this->mColumns = $value; }
function getColumns() { return $this->mColumns; }
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.10.38.3617 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.10.38.3618 | 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>