Getting rid of PHP Deprecated warnings.
[timetracker.git] / WEB-INF / lib / form / Combobox.class.php
index 31b89be..dcb84a2 100644 (file)
@@ -46,7 +46,7 @@ class Combobox extends FormElement {
     var $mDataKeys = array();
     var $cClassName    = "Combobox";
 
-       function Combobox($name,$value="")
+       function __construct($name,$value="")
        {
                $this->mName                    = $name;
                $this->mValue                   = $value;
@@ -87,6 +87,9 @@ class Combobox extends FormElement {
                   
                if ($this->mStyle!="")
                   $html .= " style=\"$this->mStyle\"";
+                
+                if (!$this->isEnable())
+                  $html .= " disabled";
                   
                $html .= ">\n";   
                if (is_array($this->mOptionsEmpty) && (count($this->mOptionsEmpty) > 0))