]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/form/Submit.class.php
Refactoring - removed unused tabindex.
[timetracker.git] / WEB-INF / lib / form / Submit.class.php
index facfffc811a05245b46724c12482da02dbe40453..c4a2c0d629768dcef11f472cbbffec8332af9fef 100644 (file)
@@ -33,23 +33,23 @@ class Submit extends FormElement {
 
        function __construct($name,$value="")
        {
-               $this->mName                    = $name;
-               $this->mValue                   = $value;
+               $this->name = $name;
+               $this->value = $value;
        }
 
        function toStringControl()      {
                if (!$this->isRenderable()) return "";
            
-           if ($this->mId=="") $this->mId = $this->mName;
+           if ($this->id=="") $this->id = $this->name;
            
                $html = "\n\t<input";
-               $html .= " type=\"submit\" name=\"$this->mName\" id=\"$this->mId\"";
+               $html .= " type=\"submit\" name=\"$this->name\" id=\"$this->id\"";
                
                if (!$this->isEnable()) {
                        $html .= " disabled=\"true\"";
                }
                
-               $html .= " value=\"$this->mValue\"";
+               $html .= " value=\"$this->value\"";
                
                if ($this->mOnClick) {
                        $html .= " onclick=\"".$this->mOnClick."\"";