X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FCombobox.class.php;h=ce6673963aa4a7af1fea25c9dfa41f2f735b0180;hb=e1703495130c8ed88fe210f50a2a6b453b3c566b;hp=190819489c9661672cf33c171e20588b94416037;hpb=bd569da4f1d6ada00f5e48eac9716c068003748a;p=timetracker.git diff --git a/WEB-INF/lib/form/Combobox.class.php b/WEB-INF/lib/form/Combobox.class.php index 19081948..ce667396 100644 --- a/WEB-INF/lib/form/Combobox.class.php +++ b/WEB-INF/lib/form/Combobox.class.php @@ -44,7 +44,7 @@ class Combobox extends FormElement { var $mCompareOn = "key"; // or "value" var $mDataDeep = 1; var $mDataKeys = array(); - var $cClassName = "Combobox"; + var $class = 'Combobox'; function __construct($name,$value="") { @@ -65,9 +65,8 @@ class Combobox extends FormElement { function getDataKeys() { return $this->mDataKeys; } - function toStringControl() { - if (!$this->isRenderable()) return ""; - + function getHtml() { + if ($this->id=="") $this->id = $this->name; $html = "\n\tstyle!="") $html .= " style=\"$this->style\""; - if (!$this->isEnable()) + if (!$this->isEnabled()) $html .= " disabled"; $html .= ">\n";