}
function setName($name) {
- $this->mName = $name;
- $this->mSessionCell = "formbean_".$this->mName;
+ $this->name = $name;
+ $this->mSessionCell = "formbean_".$this->name;
}
/**
function __construct($name,$value="")
{
- $this->mName = $name;
+ $this->name = $name;
$this->mValue = $value;
}
function toStringControl() {
if (!$this->isRenderable()) return "";
- if ($this->mId=="") $this->mId = $this->mName;
+ if ($this->id=="") $this->id = $this->name;
$html = "\n\t<input type=\"checkbox\"";
- $html .= " name=\"$this->mName\" id=\"$this->mId\"";
+ $html .= " name=\"$this->name\" id=\"$this->id\"";
if ($this->mTabindex!="")
$html .= " tabindex=\"$this->mTabindex\"";
function __construct($name,$value="")
{
- $this->mName = $name;
+ $this->name = $name;
$this->mValue = $value;
}
function toStringControl() {
if (!$this->isRenderable()) return "";
- if ($this->mId=="") $this->mId = $this->mName;
+ if ($this->id=="") $this->id = $this->name;
$renderArray = array();
$renderCols = 0;
$optkey = $optval[$this->mDataKeys[0]];
$optval = $optval[$this->mDataKeys[1]];
}
- $html = "<input type=\"checkbox\" name=\"$this->mName[]\" id=\"$this->mId"."_".$i."\"";
+ $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))
$html .= " checked=\"true\"";
}
}
- $html .= " value=\"".htmlspecialchars($optkey)."\"> <label for=\"$this->mId"."_".$i."\">".htmlspecialchars($optval)."</label>";
+ $html .= " value=\"".htmlspecialchars($optkey)."\"> <label for=\"$this->id"."_".$i."\">".htmlspecialchars($optval)."</label>";
$renderArray[$col][$row] = $html;
$col++;
$optkey = $optval[$this->mDataKeys[0]];
$optval = $optval[$this->mDataKeys[1]];
}
- $html = "<input type=\"checkbox\" name=\"$this->mName[]\" id=\"$this->mId"."_".$i."\"";
+ $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))
$html .= " checked=\"true\"";
}
}
- $html .= " value=\"".htmlspecialchars($optkey)."\"> <label for=\"$this->mId"."_".$i."\">".htmlspecialchars($optval)."</label>";
+ $html .= " value=\"".htmlspecialchars($optkey)."\"> <label for=\"$this->id"."_".$i."\">".htmlspecialchars($optval)."</label>";
$renderArray[$col][$row] = $html;
$row++;
function __construct($name,$value="")
{
- $this->mName = $name;
+ $this->name = $name;
$this->mValue = $value;
}
function toStringControl() {
if (!$this->isRenderable()) return "";
- if ($this->mId=="") $this->mId = $this->mName;
+ if ($this->id=="") $this->id = $this->name;
$html = "\n\t<select";
- $html .= " name=\"$this->mName\" id=\"$this->mId\"";
+ $html .= " name=\"$this->name\" id=\"$this->id\"";
if ($this->mSize!="")
$html .= " size=\"$this->mSize\"";
var $lCalendarButtons = array('today'=>'Today', 'close'=>'Close');
function __construct($name) {
- $this->mName = $name;
+ $this->name = $name;
$this->mDateObj = new DateAndTime();
if (isset($GLOBALS["I18N"])) {
if (!$this->isEnable()) {
$html = htmlspecialchars($this->getValue()).
- "<input type=\"hidden\" name=\"$this->mName\" value=\"".htmlspecialchars($this->getValue())."\">\n";
+ "<input type=\"hidden\" name=\"$this->name\" value=\"".htmlspecialchars($this->getValue())."\">\n";
} else {
- if ($this->mId=="") $this->mId = $this->mName;
+ if ($this->id=="") $this->id = $this->name;
$html = "";
$html .= "</script>\n";
$html .= "\n\t<input type=\"text\"";
- $html .= " name=\"$this->mName\" id=\"$this->mId\"";
+ $html .= " name=\"$this->name\" id=\"$this->id\"";
if ($this->mSize!="")
$html .= " size=\"$this->mSize\"";
if (APP_NAME)
$app_root = '/'.APP_NAME;
- $html .= " <img src=\"".$app_root."/images/calendar.gif\" width=\"16\" height=\"16\" onclick=\"displayDatePicker('".$this->mName."');\">\n";
+ $html .= " <img src=\"".$app_root."/images/calendar.gif\" width=\"16\" height=\"16\" onclick=\"displayDatePicker('".$this->name."');\">\n";
}
return $html;
var $cClassName = 'FloatField';
function __construct($name) {
- $this->mName = $name;
+ $this->name = $name;
}
function setLocalization($i18n) {
// | https://www.anuko.com/time_tracker/credits.htm
// +----------------------------------------------------------------------+
+// FromElement is the base class for controls on forms.
class FormElement {
- var $mId = "";
- var $mName;
- var $mFormName = "";
+ var $id = "";
+ var $name;
+ var $form_name = "";
var $mValue = "";
var $mSize = "";
var $mMaxLength = "";
function getClass() { return $this->cClassName; }
- function setName($name) { $this->mName = $name; }
- function getName() { return $this->mName; }
+ function setName($name) { $this->name = $name; }
+ function getName() { return $this->name; }
- function setFormName($name) { $this->mFormName = $name; }
- function getFormName() { return $this->mFormName; }
+ 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 setValueSafe($value) { $this->mValue = $value;}
function getValueSafe() { return $this->mValue; }
- function setId($id) { $this->mId = $id; }
- function getId() { return $this->mId; }
+ function setId($id) { $this->id = $id; }
+ function getId() { return $this->id; }
function setSize($value) { $this->mSize = $value; }
function getSize() { return $this->mSize; }
}
function toStringLabel() {
- return "<label for=\"" . $this->mId . "\">" . $this->mLabel . "</label>";
+ return "<label for=\"" . $this->id . "\">" . $this->mLabel . "</label>";
}
function toArray() {
function __construct($name,$value="")
{
- $this->mName = $name;
+ $this->name = $name;
$this->mValue = $value;
}
function toStringControl() {
- if ($this->mId=="") $this->mId = $this->mName;
+ if ($this->id=="") $this->id = $this->name;
$html = "\n\t<input";
- $html .= " type=\"hidden\" name=\"$this->mName\" id=\"$this->mId\"";
+ $html .= " type=\"hidden\" name=\"$this->name\" id=\"$this->id\"";
$html .= " value=\"".$this->getValue()."\"";
$html .= ">";
function __construct($name,$value="")
{
- $this->mName = $name;
+ $this->name = $name;
$this->mValue = $value;
}
function toStringControl() {
if (!$this->isRenderable()) return "";
- if ($this->mId=="") $this->mId = $this->mName;
+ if ($this->id=="") $this->id = $this->name;
$html = "\n\t<input";
- $html .= " type=\"submit\" name=\"$this->mName\" id=\"$this->mId\"";
+ $html .= " type=\"submit\" name=\"$this->name\" id=\"$this->id\"";
if (!$this->isEnable()) {
$html .= " disabled=\"true\"";
var $mProccessed = false;
function __construct($name, $value='') {
- $this->mName = $name;
+ $this->name = $name;
$this->mValue = $value;
}
function __construct($name,$value="")
{
- $this->mName = $name;
+ $this->name = $name;
$this->mValue = $value;
}
function toStringControl() {
if (!$this->isRenderable()) return "";
- if ($this->mId=="") $this->mId = $this->mName;
+ if ($this->id=="") $this->id = $this->mName;
$js_maxlen = "";
$html = "\n\t<textarea";
- $html .= " name=\"$this->mName\" id=\"$this->mId\"";
+ $html .= " name=\"$this->name\" id=\"$this->id\"";
if ($this->mColumns!="")
$html .= " cols=\"$this->mColumns\"";
if ($this->mMaxLength!="") {
if ($this->mOnKeyPress) $this->mOnKeyPress .= ";";
- $this->mOnKeyPress .= "return validateMaxLenght_".$this->mName."(this, event);";
+ $this->mOnKeyPress .= "return validateMaxLenght_".$this->name."(this, event);";
$js_maxlen = $this->getExtraScript();
$html .= " maxlength=\"$this->mMaxLength\"";
}
function getExtraScript() {
$s = "<script>\n";
$s .= "var isNS4 = (navigator.appName==\"Netscape\")?1:0;\n";
- $s .= "function validateMaxLenght_".$this->mName."(element, event) {\n";
+ $s .= "function validateMaxLenght_".$this->name."(element, event) {\n";
$s .= "\tmaxlength=".$this->mMaxLength.";\n";
$s .= "\tvar iKey = (!isNS4?event.keyCode:event.which);\n";
//$s .= "alert(iKey);";
function __construct($name,$value="")
{
- $this->mName = $name;
+ $this->name = $name;
$this->mValue = $value;
}
if (!$this->isRenderable()) return "";
if (!$this->isEnable()) {
- $html = "<input name=\"$this->mName\" value=\"".htmlspecialchars($this->getValue())."\" readonly>\n";
+ $html = "<input name=\"$this->name\" value=\"".htmlspecialchars($this->getValue())."\" readonly>\n";
} else {
- if ($this->mId=="") $this->mId = $this->mName;
+ if ($this->id=="") $this->id = $this->name;
$html = "\n\t<input";
$html .= ( $this->mPassword ? " type=\"password\"" : " type=\"text\"");
- $html .= " name=\"$this->mName\" id=\"$this->mId\"";
+ $html .= " name=\"$this->name\" id=\"$this->id\"";
if ($this->mSize!="")
$html .= " size=\"$this->mSize\"";
function __construct($name,$value="")
{
- $this->mName = $name;
+ $this->name = $name;
$this->mValue = $value;
}
function toStringControl() {
if (!$this->isRenderable()) return "";
- if ($this->mId=="") $this->mId = $this->mName;
+ if ($this->id=="") $this->id = $this->name;
$html = "\n\t<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"".$this->mMaxSize."\"/>";
$html .= "\n\t<input";
- $html .= " name=\"$this->mName\" id=\"$this->mId\"";
+ $html .= " name=\"$this->name\" id=\"$this->id\"";
$html .= " type=\"file\"";
$html .= ">";
-
- // only IE
- /*$html = "<input type=\"file\" name=\"".$this->mName."\" id=\"".$this->mId."\" style=\"display: none;\">\n";
- $html .= "<input type=\"text\" name=\"".$this->mName."file\">\n";
- $html .= "<input type=\"button\"
- style=\"text-align:center;\" onClick=\"".$this->mName.".click();".$this->mName."file.value=".$this->mName.".value;".$this->mName.".disabled=true;\"";
- $html .= " value=\"".$this->getValue()."\">\n";
- $html .= "<input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"".$this->mMaxSize."\"/>";*/
-
-
- return $html;
+
+ return $html;
}
}
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.10.38.3593 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <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> |
<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>