projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring - removedunused stuff and some renaming.
[timetracker.git]
/
WEB-INF
/
lib
/
form
/
TextField.class.php
diff --git
a/WEB-INF/lib/form/TextField.class.php
b/WEB-INF/lib/form/TextField.class.php
index
a409410
..
82d6af2
100644
(file)
--- a/
WEB-INF/lib/form/TextField.class.php
+++ b/
WEB-INF/lib/form/TextField.class.php
@@
-29,14
+29,13
@@
import('form.FormElement');
class TextField extends FormElement {
import('form.FormElement');
class TextField extends FormElement {
- var $mValue;
var $mPassword = false;
var $cClassName = "TextField";
function __construct($name,$value="")
{
var $mPassword = false;
var $cClassName = "TextField";
function __construct($name,$value="")
{
- $this->
mName
= $name;
- $this->
mValue
= $value;
+ $this->
name
= $name;
+ $this->
value
= $value;
}
function setAsPassword($name) { $this->mPassword = $name; }
}
function setAsPassword($name) { $this->mPassword = $name; }
@@
-46,26
+45,26
@@
class TextField extends FormElement {
if (!$this->isRenderable()) return "";
if (!$this->isEnable()) {
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 {
} else {
- if ($this->
mId=="") $this->mId = $this->mN
ame;
+ if ($this->
id=="") $this->id = $this->n
ame;
$html = "\n\t<input";
$html .= ( $this->mPassword ? " type=\"password\"" : " type=\"text\"");
$html = "\n\t<input";
$html .= ( $this->mPassword ? " type=\"password\"" : " type=\"text\"");
- $html .= " name=\"$this->
mName\" id=\"$this->mI
d\"";
+ $html .= " name=\"$this->
name\" id=\"$this->i
d\"";
- 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->
mOnC
hange!="")
- $html .= " onchange=\"$this->
mOnC
hange\"";
+ if ($this->
on_c
hange!="")
+ $html .= " onchange=\"$this->
on_c
hange\"";
$html .= " value=\"".htmlspecialchars($this->getValue())."\"";
$html .= ">";
$html .= " value=\"".htmlspecialchars($this->getValue())."\"";
$html .= ">";