name = $name;
$this->caption = $caption;
$this->value = $value;
/* Set the optional parameters. */
$this->refresh_level = $refresh_level;
$this->type = $type;
$this->value = $value;
$this->possible_values = $possible_value;
/* Lastly, check for a new value. */
if (isset($GLOBALS["new_$name"])) {
$this->new_value = $GLOBALS["new_$name"];
$this->changed = ($this->value !== $this->new_value);
}
}
function hasChanged() {
return ($this->changed);
}
}
function OptionSelect( $title, $name, $data, $default, $show = '', $store = '' ) {
echo "
$title: | " .
" |
\n";
}
function OptionRadio( $title, $name, $data, $default, $show = '', $store = '', $sep = ' ' ) {
echo "$title: | ";
foreach( $data as $key => $opt ) {
if ( $store == '' ) {
$vl = $key;
} else{
$vl = $opt[$store];
}
if ( $show == '' ) {
$nm = $opt;
} else{
$nm = $opt[$show];
}
if ( $nm <> '') {
echo "$nm $sep\n";
}
}
echo " |
\n";
}
function OptionText( $title, $name, $value, $size ) {
echo "$title: | " .
"" .
" |
\n";
}
function OptionHidden( $name, $value ) {
echo "\n";
}
function OptionCheck( $title, $name, $value, $comment ) {
if ( $value )
$chk = 'checked';
echo "$title: | " .
" $comment" .
" |
\n";
}
function OptionTitle( $title ) {
echo "$title |
\n";
}
function OptionSubmit( $name ) {
echo ' | ' .
' |
';
}
?>