function __construct($name,$value="")
{
- $this->name = $name;
- $this->mValue = $value;
+ $this->name = $name;
+ $this->value = $value;
}
- function toStringControl() {
- if (!$this->isRenderable()) return "";
+ function toStringControl() {
if ($this->id=="") $this->id = $this->name;
$html .= " disabled=\"true\"";
}
- $html .= " value=\"$this->mValue\"";
+ $html .= " value=\"$this->value\"";
- if ($this->mOnClick) {
- $html .= " onclick=\"".$this->mOnClick."\"";
+ if ($this->on_click) {
+ $html .= " onclick=\"".$this->on_click."\"";
}
$html .= ">";