projects
/
timetracker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
cb8e3de
)
Refactoring - renamed a couple of variables.
author
anuko
<support@anuko.com>
Sun, 19 Feb 2017 23:55:42 +0000
(23:55 +0000)
committer
anuko
<support@anuko.com>
Sun, 19 Feb 2017 23:55:42 +0000
(23:55 +0000)
WEB-INF/lib/form/Combobox.class.php
patch
|
blob
|
history
WEB-INF/lib/form/DateField.class.php
patch
|
blob
|
history
WEB-INF/lib/form/FormElement.class.php
patch
|
blob
|
history
WEB-INF/lib/form/TextArea.class.php
patch
|
blob
|
history
WEB-INF/lib/form/TextField.class.php
patch
|
blob
|
history
WEB-INF/templates/footer.tpl
patch
|
blob
|
history
diff --git
a/WEB-INF/lib/form/Combobox.class.php
b/WEB-INF/lib/form/Combobox.class.php
index
082765e
..
4d8df25
100644
(file)
--- a/
WEB-INF/lib/form/Combobox.class.php
+++ b/
WEB-INF/lib/form/Combobox.class.php
@@
-73,8
+73,8
@@
class Combobox extends FormElement {
$html = "\n\t<select";
$html .= " name=\"$this->name\" id=\"$this->id\"";
$html = "\n\t<select";
$html .= " name=\"$this->name\" id=\"$this->id\"";
- if ($this->
mS
ize!="")
- $html .= " size=\"$this->
mS
ize\"";
+ if ($this->
s
ize!="")
+ $html .= " size=\"$this->
s
ize\"";
if ($this->mMultiple)
$html .= " multiple";
if ($this->mMultiple)
$html .= " multiple";
diff --git
a/WEB-INF/lib/form/DateField.class.php
b/WEB-INF/lib/form/DateField.class.php
index
7075c42
..
cf1bb08
100644
(file)
--- a/
WEB-INF/lib/form/DateField.class.php
+++ b/
WEB-INF/lib/form/DateField.class.php
@@
-395,8
+395,8
@@
class DateField extends TextField {
$html .= "\n\t<input type=\"text\"";
$html .= " name=\"$this->name\" id=\"$this->id\"";
$html .= "\n\t<input type=\"text\"";
$html .= " name=\"$this->name\" id=\"$this->id\"";
- if ($this->
mS
ize!="")
- $html .= " size=\"$this->
mS
ize\"";
+ if ($this->
s
ize!="")
+ $html .= " size=\"$this->
s
ize\"";
if ($this->mStyle!="")
$html .= " style=\"$this->mStyle\"";
if ($this->mStyle!="")
$html .= " style=\"$this->mStyle\"";
diff --git
a/WEB-INF/lib/form/FormElement.class.php
b/WEB-INF/lib/form/FormElement.class.php
index
209578d
..
3cab655
100644
(file)
--- a/
WEB-INF/lib/form/FormElement.class.php
+++ b/
WEB-INF/lib/form/FormElement.class.php
@@
-32,9
+32,9
@@
class FormElement {
var $name;
var $form_name = '';
var $value = '';
var $name;
var $form_name = '';
var $value = '';
+ var $size = '';
+ var $max_length = '';
// TODO: refactoring ongoing down from here.
// TODO: refactoring ongoing down from here.
- var $mSize = "";
- var $mMaxLength = "";
var $mTabindex = "";
var $mAccesskey = "";
var $mOnSelect = "";
var $mTabindex = "";
var $mAccesskey = "";
var $mOnSelect = "";
@@
-66,22
+66,22
@@
class FormElement {
function setValueSafe($value) { $this->value = $value;}
function getValueSafe() { return $this->value; }
function setValueSafe($value) { $this->value = $value;}
function getValueSafe() { return $this->value; }
- function setId($id)
{ $this->id = $id;
}
+ function setId($id)
{ $this->id = $id;
}
function getId() { return $this->id; }
function getId() { return $this->id; }
- function setSize($value)
{ $this->mS
ize = $value; }
- function getSize() { return $this->
mS
ize; }
+ function setSize($value)
{ $this->s
ize = $value; }
+ function getSize() { return $this->
s
ize; }
function setLabel($label) { $this->mLabel = $label; }
function getLabel() { return $this->mLabel; }
function setLabel($label) { $this->mLabel = $label; }
function getLabel() { return $this->mLabel; }
- function setMaxLength($value)
{ $this->mMaxL
ength = $value; }
- function getMaxLength() { return $this->m
MaxL
ength; }
+ function setMaxLength($value)
{ $this->max_l
ength = $value; }
+ function getMaxLength() { return $this->m
ax_l
ength; }
- function setTabindex($value)
{ $this->mTabindex = $value; }
+ function setTabindex($value) { $this->mTabindex = $value; }
function getTabindex() { return $this->mTabindex; }
function getTabindex() { return $this->mTabindex; }
- function setAccesskey($value)
{ $this->mAccesskey = $value; }
+ function setAccesskey($value) { $this->mAccesskey = $value; }
function getAccesskey() { return $this->mAccesskey; }
function setStyle($value) { $this->mStyle = $value; }
function getAccesskey() { return $this->mAccesskey; }
function setStyle($value) { $this->mStyle = $value; }
diff --git
a/WEB-INF/lib/form/TextArea.class.php
b/WEB-INF/lib/form/TextArea.class.php
index
6b3b5ee
..
89eef4e
100644
(file)
--- a/
WEB-INF/lib/form/TextArea.class.php
+++ b/
WEB-INF/lib/form/TextArea.class.php
@@
-62,11
+62,11
@@
class TextArea extends FormElement {
if ($this->mRows!="")
$html .= " rows=\"$this->mRows\"";
if ($this->mRows!="")
$html .= " rows=\"$this->mRows\"";
- if ($this->m
MaxL
ength!="") {
+ if ($this->m
ax_l
ength!="") {
if ($this->mOnKeyPress) $this->mOnKeyPress .= ";";
$this->mOnKeyPress .= "return validateMaxLenght_".$this->name."(this, event);";
$js_maxlen = $this->getExtraScript();
if ($this->mOnKeyPress) $this->mOnKeyPress .= ";";
$this->mOnKeyPress .= "return validateMaxLenght_".$this->name."(this, event);";
$js_maxlen = $this->getExtraScript();
- $html .= " maxlength=\"$this->m
MaxL
ength\"";
+ $html .= " maxlength=\"$this->m
ax_l
ength\"";
}
if ($this->mStyle!="")
}
if ($this->mStyle!="")
@@
-86,7
+86,7
@@
class TextArea extends FormElement {
$s = "<script>\n";
$s .= "var isNS4 = (navigator.appName==\"Netscape\")?1:0;\n";
$s .= "function validateMaxLenght_".$this->name."(element, event) {\n";
$s = "<script>\n";
$s .= "var isNS4 = (navigator.appName==\"Netscape\")?1:0;\n";
$s .= "function validateMaxLenght_".$this->name."(element, event) {\n";
- $s .= "\tmaxlength=".$this->m
MaxL
ength.";\n";
+ $s .= "\tmaxlength=".$this->m
ax_l
ength.";\n";
$s .= "\tvar iKey = (!isNS4?event.keyCode:event.which);\n";
//$s .= "alert(iKey);";
$s .= "\tvar re = new RegExp(\"".'\r\n'."\",\"g\");\n";
$s .= "\tvar iKey = (!isNS4?event.keyCode:event.which);\n";
//$s .= "alert(iKey);";
$s .= "\tvar re = new RegExp(\"".'\r\n'."\",\"g\");\n";
diff --git
a/WEB-INF/lib/form/TextField.class.php
b/WEB-INF/lib/form/TextField.class.php
index
4766d91
..
88fb434
100644
(file)
--- a/
WEB-INF/lib/form/TextField.class.php
+++ b/
WEB-INF/lib/form/TextField.class.php
@@
-54,14
+54,14
@@
class TextField extends FormElement {
$html .= ( $this->mPassword ? " type=\"password\"" : " type=\"text\"");
$html .= " name=\"$this->name\" id=\"$this->id\"";
$html .= ( $this->mPassword ? " type=\"password\"" : " type=\"text\"");
$html .= " name=\"$this->name\" id=\"$this->id\"";
- if ($this->
mS
ize!="")
- $html .= " size=\"$this->
mS
ize\"";
+ if ($this->
s
ize!="")
+ $html .= " size=\"$this->
s
ize\"";
if ($this->mStyle!="")
$html .= " style=\"$this->mStyle\"";
if ($this->mStyle!="")
$html .= " style=\"$this->mStyle\"";
- if ($this->m
MaxL
ength!="")
- $html .= " maxlength=\"$this->m
MaxL
ength\"";
+ if ($this->m
ax_l
ength!="")
+ $html .= " maxlength=\"$this->m
ax_l
ength\"";
if ($this->mOnChange!="")
$html .= " onchange=\"$this->mOnChange\"";
if ($this->mOnChange!="")
$html .= " onchange=\"$this->mOnChange\"";
diff --git
a/WEB-INF/templates/footer.tpl
b/WEB-INF/templates/footer.tpl
index
fc9eb2b
..
102c648
100644
(file)
--- a/
WEB-INF/templates/footer.tpl
+++ b/
WEB-INF/templates/footer.tpl
@@
-12,7
+12,7
@@
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.10.38.359
5
| Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.10.38.359
6
| 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>
<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>