projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplified Checkbox class.
[timetracker.git]
/
WEB-INF
/
lib
/
form
/
Submit.class.php
diff --git
a/WEB-INF/lib/form/Submit.class.php
b/WEB-INF/lib/form/Submit.class.php
index
d621850
..
35eb6df
100644
(file)
--- a/
WEB-INF/lib/form/Submit.class.php
+++ b/
WEB-INF/lib/form/Submit.class.php
@@
-29,30
+29,28
@@
import('form.FormElement');
class Submit extends FormElement {
import('form.FormElement');
class Submit extends FormElement {
- var $cClassName = "Submit";
-
function Submit($name,$value=""
)
-
{
-
$this->mName = $name
;
-
$this->mValue = $valu
e;
-
}
+
function __construct($name
)
+ {
+
$this->class = 'Submit'
;
+
$this->name = $nam
e;
+ }
- function toStringControl() {
- if (!$this->isRenderable()) return "";
+ function getHtml() {
- if ($this->
mId=="") $this->mId = $this->mN
ame;
+ if ($this->
id=="") $this->id = $this->n
ame;
$html = "\n\t<input";
$html = "\n\t<input";
- $html .= " type=\"submit\" name=\"$this->
mName\" id=\"$this->mI
d\"";
+ $html .= " type=\"submit\" name=\"$this->
name\" id=\"$this->i
d\"";
- if (!$this->isEnable()) {
+ if (!$this->isEnable
d
()) {
$html .= " disabled=\"true\"";
}
$html .= " disabled=\"true\"";
}
- $html .= " value=\"$this->
mV
alue\"";
+ $html .= " value=\"$this->
v
alue\"";
- if ($this->
mOnC
lick) {
-
$html .= " onclick=\"".$this->mOnC
lick."\"";
+ if ($this->
on_c
lick) {
+
$html .= " onclick=\"".$this->on_c
lick."\"";
}
$html .= ">";
}
$html .= ">";
@@
-60,4
+58,3
@@
class Submit extends FormElement {
return $html;
}
}
return $html;
}
}
-?>
\ No newline at end of file