projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed a comment.
[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
bcfe3be
..
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 __construct($name,$value=""
)
-
{
-
$this->name = $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->id=="") $this->id = $this->name;
$html = "\n\t<input";
$html .= " type=\"submit\" name=\"$this->name\" id=\"$this->id\"";
if ($this->id=="") $this->id = $this->name;
$html = "\n\t<input";
$html .= " type=\"submit\" name=\"$this->name\" id=\"$this->id\"";
- 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 .= ">";