Various changes not checked in previously because source forge was down.
This commit is contained in:
parent
a06ad50cac
commit
8966e401c3
8 changed files with 298 additions and 46 deletions
|
|
@ -160,8 +160,12 @@ sub checkList {
|
|||
extras=>$_[0]->{extras},
|
||||
checked=>$checked
|
||||
});
|
||||
$output .= ${$_[0]->{options}}{$key}.' ';
|
||||
$output .= '<br>' if ($_[0]->{vertical});
|
||||
$output .= ${$_[0]->{options}}{$key};
|
||||
if ($_[0]->{vertical}) {
|
||||
$output .= "<br />\n";
|
||||
} else {
|
||||
$output .= " \n";
|
||||
}
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
|
@ -946,12 +950,6 @@ sub radio {
|
|||
sub radioList {
|
||||
my ($output, $key, $checked);
|
||||
foreach $key (keys %{$_[0]->{options}}) {
|
||||
$output .= '<input type="radio" name="'.$_[0]->{name}.'" value="'.$key.'"';
|
||||
if ($_[0]->{value} eq $key) {
|
||||
$checked = 1;
|
||||
} else {
|
||||
$checked = 0;
|
||||
}
|
||||
$output .= radio({
|
||||
name=>$_[0]->{name},
|
||||
value=>$key,
|
||||
|
|
@ -959,8 +957,11 @@ sub radioList {
|
|||
extras=>$_[0]->{extras}
|
||||
});
|
||||
$output .= ' '.$_[0]->{options}->{$key};
|
||||
$output .= ' ';
|
||||
$output .= '<br>' if ($_[0]->{vertical});
|
||||
if ($_[0]->{vertical}) {
|
||||
$output .= "<br />\n";
|
||||
} else {
|
||||
$output .= " \n";
|
||||
}
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue