import('form.FormElement');
class Submit extends FormElement {
- var $cClassName = "Submit";
- function __construct($name,$value="")
- {
- $this->name = $name;
- $this->value = $value;
- }
+ function __construct($name)
+ {
+ $this->class = 'Submit';
+ $this->name = $name;
+ }
- 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->isEnable()) {
+ if (!$this->isEnabled()) {
$html .= " disabled=\"true\"";
}