31 function __construct($caption, $name, $size=50, $max=255, $value=
'',$password=
false, $enabled=
true){
36 $this->_value = $value;
37 $this->_password = $password;
38 $this->_enabled = $enabled;
73 $this->_value = $value;
87 $this->_password = $value;
101 if(!is_numeric($this->_size))
104 $ret =
'<input type="'.($this->_password ?
'password' :
'text').
'" size="'.$this->_size.
'" name="'.$this->getName().
'" id="'.$this->
id().
'"'.($this->
getMax()>0 ?
' maxlength="'.$this->getMax().
'"' :
'').
' value="'.(isset($_REQUEST[$this->
getName()]) ? $_REQUEST[$this->
getName()] : $this->
getValue()).
'" ';
106 $ret .=
'class="'.$this->getClass().
'" '.$this->
getExtra();
111 $ret .= ($this->_enabled ?
'' :
' disabled="disabled"').
' />';
132 $this->_type =
$type;
141 $this->_type =
$type;
156 $rtn =
"<h4 class='form_subtitle ".$this->getClass().
"'>".$this->
getCaption().
"</h4>";
158 $rtn =
"<span class='".$this->getClass().
"'>".$this->
getCaption().
"</span>";
185 $this->_rows = $rows;
186 $this->_cols =
$cols;
187 $this->_value = $value;
198 $this->_rows = $rows;
212 $this->_cols =
$cols;
226 $this->_value = $value;
240 $ret =
"<textarea name='".$this->getName().
"' id='".$this->
id().
"' cols='".$this->_cols.
"' rows='".$this->_rows.
"' ";
242 $ret .=
"class='".$this->getClass().
"' ";
244 if ($this->width!=
'' || $this->
height!=
''){
245 $ret .=
"style='".($this->width!=
'' ?
"width: $this->width; " :
'').($this->
height!=
'' ?
"height: $this->height; " :
'').
"'";