X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FCombobox.class.php;h=dcb84a24c1607c7808f1fe04e4ba7b5bdfc1a937;hb=b35ed34767de056ad0adef9d85060b587c1f6ce2;hp=778379303a86443b3fc49c3d9b0a7755755efece;hpb=33399ff6a8bdfe9b989810dafe9c4dbf3cf3b685;p=timetracker.git diff --git a/WEB-INF/lib/form/Combobox.class.php b/WEB-INF/lib/form/Combobox.class.php index 77837930..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)) @@ -112,3 +115,4 @@ class Combobox extends FormElement { return $html; } } +?> \ No newline at end of file