var $mCompareOn = "key"; // or "value"
var $mDataDeep = 1;
var $mDataKeys = array();
- var $cClassName = "Combobox";
- function __construct($name,$value="")
- {
- $this->name = $name;
- $this->value = $value;
- }
+ function __construct($name) {
+ $this->class = 'Combobox';
+ $this->name = $name;
+ }
function setMultiple($value) { $this->mMultiple = $value; }
function isMultiple() { return $this->mMultiple; }
function getDataKeys() { return $this->mDataKeys; }
- function toStringControl() {
- if (!$this->isRenderable()) return "";
-
+ function getHtml() {
+
if ($this->id=="") $this->id = $this->name;
$html = "\n\t<select";
$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\"";
+
+ if ($this->on_change!="")
+ $html .= " onchange=\"$this->on_change\"";
- if ($this->mStyle!="")
- $html .= " style=\"$this->mStyle\"";
+ if ($this->style!="")
+ $html .= " style=\"$this->style\"";
- if (!$this->isEnable())
+ if (!$this->isEnabled())
$html .= " disabled";
$html .= ">\n";
return $html;
}
}
-?>
\ No newline at end of file