version 1.18, 2003/09/22 20:49:01
|
version 1.20, 2003/09/24 17:57:42
|
Line 241 sub displayfoils {
|
Line 241 sub displayfoils {
|
my $status=$Apache::inputtags::status[-1]; |
my $status=$Apache::inputtags::status[-1]; |
my @whichopt=(1..($#whichfoils+1)); |
my @whichopt=(1..($#whichfoils+1)); |
my @correctorder=&get_correct_order($tol,@whichfoils); |
my @correctorder=&get_correct_order($tol,@whichfoils); |
if ( &Apache::response::show_answer() ) { |
if ( &Apache::response::show_answer() && ($target ne 'tex')) { |
foreach my $name (@whichfoils) { |
foreach my $name (@whichfoils) { |
my $text=$Apache::response::foilgroup{$name.'.text'}; |
my $text=$Apache::response::foilgroup{$name.'.text'}; |
my $value=shift(@correctorder); |
my $value=shift(@correctorder); |
$result.='<br />'.$value.':'.$text; |
if ($target eq 'web') {$result.='<br />';} else {$result.=' \strut\\\\\strut ';} |
|
$result.=$value.':'.$text; |
} |
} |
} else { |
} else { |
my $i = 0; |
my $i = 0; |