Skip to content

Commit 4a605a6

Browse files
committed
Refactoring - renamed a couple of variables.
1 parent cb8e3de commit 4a605a6

6 files changed

Lines changed: 21 additions & 21 deletions

File tree

WEB-INF/lib/form/Combobox.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ function toStringControl() {
7373
$html = "\n\t<select";
7474
$html .= " name=\"$this->name\" id=\"$this->id\"";
7575

76-
if ($this->mSize!="")
77-
$html .= " size=\"$this->mSize\"";
76+
if ($this->size!="")
77+
$html .= " size=\"$this->size\"";
7878

7979
if ($this->mMultiple)
8080
$html .= " multiple";

WEB-INF/lib/form/DateField.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,8 @@ function adjustiFrame(pickerDiv, iFrameDiv) {
395395
$html .= "\n\t<input type=\"text\"";
396396
$html .= " name=\"$this->name\" id=\"$this->id\"";
397397

398-
if ($this->mSize!="")
399-
$html .= " size=\"$this->mSize\"";
398+
if ($this->size!="")
399+
$html .= " size=\"$this->size\"";
400400

401401
if ($this->mStyle!="")
402402
$html .= " style=\"$this->mStyle\"";

WEB-INF/lib/form/FormElement.class.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ class FormElement {
3232
var $name;
3333
var $form_name = '';
3434
var $value = '';
35+
var $size = '';
36+
var $max_length = '';
3537
// TODO: refactoring ongoing down from here.
36-
var $mSize = "";
37-
var $mMaxLength = "";
3838
var $mTabindex = "";
3939
var $mAccesskey = "";
4040
var $mOnSelect = "";
@@ -66,22 +66,22 @@ function getValue() { return $this->value; }
6666
function setValueSafe($value) { $this->value = $value;}
6767
function getValueSafe() { return $this->value; }
6868

69-
function setId($id) { $this->id = $id; }
69+
function setId($id) { $this->id = $id; }
7070
function getId() { return $this->id; }
7171

72-
function setSize($value) { $this->mSize = $value; }
73-
function getSize() { return $this->mSize; }
72+
function setSize($value) { $this->size = $value; }
73+
function getSize() { return $this->size; }
7474

7575
function setLabel($label) { $this->mLabel = $label; }
7676
function getLabel() { return $this->mLabel; }
7777

78-
function setMaxLength($value) { $this->mMaxLength = $value; }
79-
function getMaxLength() { return $this->mMaxLength; }
78+
function setMaxLength($value) { $this->max_length = $value; }
79+
function getMaxLength() { return $this->max_length; }
8080

81-
function setTabindex($value) { $this->mTabindex = $value; }
81+
function setTabindex($value) { $this->mTabindex = $value; }
8282
function getTabindex() { return $this->mTabindex; }
8383

84-
function setAccesskey($value) { $this->mAccesskey = $value; }
84+
function setAccesskey($value) { $this->mAccesskey = $value; }
8585
function getAccesskey() { return $this->mAccesskey; }
8686

8787
function setStyle($value) { $this->mStyle = $value; }

WEB-INF/lib/form/TextArea.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ function toStringControl() {
6262
if ($this->mRows!="")
6363
$html .= " rows=\"$this->mRows\"";
6464

65-
if ($this->mMaxLength!="") {
65+
if ($this->max_length!="") {
6666
if ($this->mOnKeyPress) $this->mOnKeyPress .= ";";
6767
$this->mOnKeyPress .= "return validateMaxLenght_".$this->name."(this, event);";
6868
$js_maxlen = $this->getExtraScript();
69-
$html .= " maxlength=\"$this->mMaxLength\"";
69+
$html .= " maxlength=\"$this->max_length\"";
7070
}
7171

7272
if ($this->mStyle!="")
@@ -86,7 +86,7 @@ function getExtraScript() {
8686
$s = "<script>\n";
8787
$s .= "var isNS4 = (navigator.appName==\"Netscape\")?1:0;\n";
8888
$s .= "function validateMaxLenght_".$this->name."(element, event) {\n";
89-
$s .= "\tmaxlength=".$this->mMaxLength.";\n";
89+
$s .= "\tmaxlength=".$this->max_length.";\n";
9090
$s .= "\tvar iKey = (!isNS4?event.keyCode:event.which);\n";
9191
//$s .= "alert(iKey);";
9292
$s .= "\tvar re = new RegExp(\"".'\r\n'."\",\"g\");\n";

WEB-INF/lib/form/TextField.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ function toStringControl() {
5454
$html .= ( $this->mPassword ? " type=\"password\"" : " type=\"text\"");
5555
$html .= " name=\"$this->name\" id=\"$this->id\"";
5656

57-
if ($this->mSize!="")
58-
$html .= " size=\"$this->mSize\"";
57+
if ($this->size!="")
58+
$html .= " size=\"$this->size\"";
5959

6060
if ($this->mStyle!="")
6161
$html .= " style=\"$this->mStyle\"";
6262

63-
if ($this->mMaxLength!="")
64-
$html .= " maxlength=\"$this->mMaxLength\"";
63+
if ($this->max_length!="")
64+
$html .= " maxlength=\"$this->max_length\"";
6565

6666
if ($this->mOnChange!="")
6767
$html .= " onchange=\"$this->mOnChange\"";

WEB-INF/templates/footer.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<br>
1313
<table cellspacing="0" cellpadding="4" width="100%" border="0">
1414
<tr>
15-
<td align="center">&nbsp;Anuko Time Tracker 1.10.38.3595 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
15+
<td align="center">&nbsp;Anuko Time Tracker 1.10.38.3596 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
1616
<a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
1717
<a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
1818
<a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>

0 commit comments

Comments
 (0)