X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/098a79f0819ebb89b7d48df4a6b154af4560f68e..9a23a8c0a51b7ec38a96f525484134f3cb85dc7e:/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 new file mode 100644 index 00000000..d621850b --- /dev/null +++ b/WEB-INF/lib/form/Submit.class.php @@ -0,0 +1,63 @@ +mName = $name; + $this->mValue = $value; + } + + function toStringControl() { + if (!$this->isRenderable()) return ""; + + if ($this->mId=="") $this->mId = $this->mName; + + $html = "\n\tmName\" id=\"$this->mId\""; + + if (!$this->isEnable()) { + $html .= " disabled=\"true\""; + } + + $html .= " value=\"$this->mValue\""; + + if ($this->mOnClick) { + $html .= " onclick=\"".$this->mOnClick."\""; + } + + $html .= ">"; + + return $html; + } +} +?> \ No newline at end of file