X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FCombobox.class.php;h=dcb84a24c1607c7808f1fe04e4ba7b5bdfc1a937;hb=f5ed86434f9baa4ce4f89b2a40d35e9d5677df67;hp=31b89bed7b92e6cee572497284bee084158cfb4a;hpb=9a23a8c0a51b7ec38a96f525484134f3cb85dc7e;p=timetracker.git diff --git a/WEB-INF/lib/form/Combobox.class.php b/WEB-INF/lib/form/Combobox.class.php index 31b89bed..dcb84a24 100644 --- a/WEB-INF/lib/form/Combobox.class.php +++ b/WEB-INF/lib/form/Combobox.class.php @@ -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))