X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FCombobox.class.php;h=a421b66a0e852c8edc6353d2042e5be6c4593fe9;hb=e358c96cac5953f33fec0570e68f99f61802a436;hp=dcb84a24c1607c7808f1fe04e4ba7b5bdfc1a937;hpb=a07b6f8bccda226991ced6fe25f1c9c508e423e5;p=timetracker.git diff --git a/WEB-INF/lib/form/Combobox.class.php b/WEB-INF/lib/form/Combobox.class.php index dcb84a24..a421b66a 100644 --- a/WEB-INF/lib/form/Combobox.class.php +++ b/WEB-INF/lib/form/Combobox.class.php @@ -48,8 +48,8 @@ class Combobox extends FormElement { function __construct($name,$value="") { - $this->mName = $name; - $this->mValue = $value; + $this->name = $name; + $this->value = $value; } function setMultiple($value) { $this->mMultiple = $value; } @@ -68,20 +68,17 @@ class Combobox extends FormElement { function toStringControl() { if (!$this->isRenderable()) return ""; - if ($this->mId=="") $this->mId = $this->mName; + if ($this->id=="") $this->id = $this->name; $html = "\n\tmName\" id=\"$this->mId\""; + $html .= " name=\"$this->name\" id=\"$this->id\""; - if ($this->mSize!="") - $html .= " size=\"$this->mSize\""; + if ($this->size!="") + $html .= " size=\"$this->size\""; if ($this->mMultiple) $html .= " multiple"; - - if ($this->mTabindex!="") - $html .= " tabindex=\"$this->mTabindex\""; - + if ($this->mOnChange!="") $html .= " onchange=\"$this->mOnChange\""; @@ -95,7 +92,7 @@ class Combobox extends FormElement { if (is_array($this->mOptionsEmpty) && (count($this->mOptionsEmpty) > 0)) foreach ($this->mOptionsEmpty as $key=>$value) { $html .= "\n"; } if (is_array($this->mOptions) && (count($this->mOptions) > 0)) @@ -106,7 +103,7 @@ class Combobox extends FormElement { $value = $value[$this->mDataKeys[1]]; } $html .= "\n"; }