\n" .
$content . "\n\n";
}
/**
* @access private
* @param string $varname Name of the checkbox.
* @param boolean $checked Set true to check the box (default False).
*/
function checkbox( $varname, $checked=false ) {
$checked = isset( $_POST[$varname] ) && $_POST[$varname] ;
return "\n";
}
/**
* @access private
* @param string $varname Name of the textbox.
* @param string $value Optional value (default empty)
* @param integer $size Optional size of the textbox (default 20)
*/
function textbox( $varname, $value='', $size=20 ) {
$value = isset( $_POST[$varname] ) ? $_POST[$varname] : $value;
return "\n";
}
/**
* @access private
* @param string $varname Name of the radiobox.
* @param array $fields Various fields.
*/
function radiobox( $varname, $fields ) {
foreach ( $fields as $value => $checked ) {
$s .= "\n";
}
return $this->fieldset( $this->mName.'-'.$varname, $s );
}
/**
* @access private
* @param string $varname Name of the textareabox.
* @param string $value Optional value (default empty)
* @param integer $size Optional size of the textarea (default 20)
*/
function textareabox ( $varname, $value='', $size=20 ) {
$value = isset( $_POST[$varname] ) ? $_POST[$varname] : $value;
return '\n";
}
/**
* @access private
* @param string $varname Name of the arraybox.
* @param integer $size Optional size of the textarea (default 20)
*/
function arraybox( $varname , $size=20 ) {
$s = '';
if ( isset( $_POST[$varname] ) && is_array( $_POST[$varname] ) ) {
foreach ( $_POST[$varname] as $index=>$element ) {
$s .= $element."\n";
}
}
return "