diff -r 000000000000 -r 4eba9c11703f web/Zend/View/Helper/FormSubmit.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/Zend/View/Helper/FormSubmit.php Mon Dec 13 18:29:26 2010 +0100 @@ -0,0 +1,87 @@ +_getInfo($name, $value, $attribs); + extract($info); // name, value, attribs, options, listsep, disable, id + // check if disabled + $disabled = ''; + if ($disable) { + $disabled = ' disabled="disabled"'; + } + + if ($id) { + $id = ' id="' . $this->view->escape($id) . '"'; + } + + // XHTML or HTML end tag? + $endTag = ' />'; + if (($this->view instanceof Zend_View_Abstract) && !$this->view->doctype()->isXhtml()) { + $endTag= '>'; + } + + // Render the button. + $xhtml = '_htmlAttribs($attribs) + . $endTag; + + return $xhtml; + } +}