var $checked = false;
var $mOptions = null;
- function __construct($name, $value = '') {
+ function __construct($name) {
$this->class = 'Checkbox';
$this->name = $name;
- $this->value = $value;
}
function setChecked($value) { $this->checked = $value; }
var $lSelAll = "All";
var $lSelNone = "None";
- function __construct($name, $value = '') {
+ function __construct($name) {
$this->class = 'CheckboxGroup';
$this->name = $name;
- $this->value = $value;
}
function setChecked($value) { $this->mChecked = $value; }
var $mDataDeep = 1;
var $mDataKeys = array();
- function __construct($name, $value = '') {
+ function __construct($name) {
$this->class = 'Combobox';
$this->name = $name;
- $this->value = $value;
}
function setMultiple($value) { $this->mMultiple = $value; }
case 'checkbox':
import('form.Checkbox');
$el = new Checkbox($params['name']);
- if (isset($params['checked'])) $el->setChecked(true);
+ if (isset($params['checked'])) $el->setChecked($params['checked']);
// TODO: refactoring ongoing down from here.
$el->setData(@$params["data"]);
class Hidden extends FormElement {
- function __construct($name, $value = '') {
+ function __construct($name) {
$this->class = 'Hidden';
$this->name = $name;
- $this->value = $value;
}
function getHtml() {
class PasswordField extends FormElement {
- function __construct($name, $value='')
+ function __construct($name)
{
$this->class = 'PasswordField';
$this->name = $name;
- $this->value = $value;
}
function getHtml() {
class Submit extends FormElement {
- function __construct($name, $value = '')
+ function __construct($name)
{
$this->class = 'Submit';
$this->name = $name;
- $this->value = $value;
}
function getHtml() {
var $mHeaderOptions = array();
var $mProccessed = false;
- function __construct($name, $value='') {
+ function __construct($name) {
$this->class = 'Table';
$this->name = $name;
- $this->value = $value;
}
function setKeyField($value) {
var $mRows = "";
var $mOnKeyPress = "";
- function __construct($name, $value = '')
+ function __construct($name)
{
$this->class = 'TextArea';
$this->name = $name;
- $this->value = $value;
}
-
+
function setColumns($value) { $this->mColumns = $value; }
function getColumns() { return $this->mColumns; }
class TextField extends FormElement {
- function __construct($name, $value = '')
+ function __construct($name)
{
$this->class = 'TextField';
$this->name = $name;
- $this->value = $value;
}
// TODO: refactoring ongoing down from here.
class UploadFile extends FormElement {
var $mMaxSize = 100000; // 100kb // TODO: refactor this.
- function __construct($name, $value = '')
+ function __construct($name)
{
$this->class = 'UploadFile';
$this->name = $name;
- $this->value = $value;
}
// TODO: refactoring ongoing down from here.
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.10.38.3619 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.10.38.3620 | 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>
$form->addInput(array('type'=>'checkbox','name'=>'chfinish','data'=>1));
}
$form->addInput(array('type'=>'checkbox','name'=>'chduration','data'=>1));
-$form->addInput(array('type'=>'checkbox','name'=>'chnote','data'=>1));
+$form->addInput(array('type'=>'checkbox','name'=>'chnote','checked'=>true, 'data'=>1));
if (defined('COST_ON_REPORTS') && isTrue(COST_ON_REPORTS))
$form->addInput(array('type'=>'checkbox','name'=>'chcost','data'=>1));
// If we have a custom field - add a checkbox for it.