26 $this->_value = $value;
53 $this->_value = $value;
67 $ret =
"<input type='".$this->_type.
"' name='".$this->
getName().
"' id='".$this->
id().
"' value='".$this->_value.
"' ";
68 if ($this->
getClass()!=
'' || $this->_type =
'submit'){
69 if ($this->_type =
'submit' && $this->
getClass()==
''){
70 $ret .=
"class='formButton' ";
72 $ret .=
"class='".$this->getClass().
"' ";
96 public function __construct($caption=
' ',$separator=
' '){
98 $this->sep = $separator;
108 $index = count($this->buttons);
110 if (trim($extra)!=
'') $this->buttons[$index]->setExtra($extra);
115 if (
$ok) $this->ok = $name;
133 foreach ($this->buttons as $index => $button){
134 if ($button->getName()==$name){
135 $this->buttons[$index]->setExtra($extra);
150 foreach ($this->buttons as $k => $button){
153 $button->setClass(
'button formButton');
155 $button->setClass(
'button');
158 $ret = $button->render();
160 $ret .= $this->sep . $button->render();