version 1.43, 2002/07/18 15:45:41
|
version 1.45, 2002/08/05 15:55:39
|
Line 76 sub end_optionresponse {
|
Line 76 sub end_optionresponse {
|
return $result; |
return $result; |
} |
} |
|
|
%Apache::response::foilgroup={}; |
%Apache::response::foilgroup=(); |
sub start_foilgroup { |
sub start_foilgroup { |
my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; |
my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; |
|
|
my $result=''; |
my $result=''; |
%Apache::response::foilgroup={}; |
%Apache::response::foilgroup=(); |
$Apache::optionresponse::conceptgroup=0; |
$Apache::optionresponse::conceptgroup=0; |
&Apache::response::setrandomnumber(); |
&Apache::response::setrandomnumber(); |
if ($target eq 'edit') { |
if ($target eq 'edit') { |
Line 273 sub displayfoils {
|
Line 273 sub displayfoils {
|
my @falselist; |
my @falselist; |
my $result; |
my $result; |
my $name; |
my $name; |
$Apache::optionresponse::displayoptionintex=0; |
my $displayoptionintex=0; |
my @whichopt = &whichfoils($max); |
my @whichopt = &whichfoils($max); |
my $part=$Apache::inputtags::part; |
my $part=$Apache::inputtags::part; |
my $id=$Apache::inputtags::response[-1]; |
my $id=$Apache::inputtags::response[-1]; |
Line 305 sub displayfoils {
|
Line 305 sub displayfoils {
|
."</select>\n".$Apache::response::foilgroup{$name.'.text'}."\n"; |
."</select>\n".$Apache::response::foilgroup{$name.'.text'}."\n"; |
$temp++; |
$temp++; |
} else { |
} else { |
if ($Apache::optionresponse::displayoptionintex == 0) { |
if ($displayoptionintex == 0) { |
my $durtyoptionlist = $optionlist; |
my $texoptionlist = $optionlist; |
$durtyoptionlist =~ s/<option><\/option>/\\item \[\] The possible answers are:/; |
$texoptionlist =~ s/<option><\/option>/\\item \[\] The possible answers are:/; |
$durtyoptionlist =~ s/<option>/{\\bf /g; |
$texoptionlist =~ s/<option>/{\\bf /g; |
$durtyoptionlist =~ s/<\/option>/},/g; |
$texoptionlist =~ s/<\/option>/},/g; |
$durtyoptionlist =~ s/,$/\./g; |
$texoptionlist =~ s/,$/\./g; |
$durtyoptionlist =~ s/>/\$>\$/g; |
$texoptionlist =~ s/>/\$>\$/g; |
$durtyoptionlist =~ s/</\$<\$/g; |
$texoptionlist =~ s/</\$<\$/g; |
$durtyoptionlist =~ s/=/\$=\$/g; |
$texoptionlist =~ s/=/\$=\$/g; |
$result.= $durtyoptionlist.'\item '.$Apache::response::foilgroup{$name.'.text'}; |
$result.= $texoptionlist.'\item '.$Apache::response::foilgroup{$name.'.text'}; |
$Apache::optionresponse::displayoptionintex=1; |
$displayoptionintex=1; |
} else { |
} else { |
$result.= '\item '.$Apache::response::foilgroup{$name.'.text'}; |
$result.= '\item '.$Apache::response::foilgroup{$name.'.text'}; |
} |
} |
Line 334 sub displayfoils {
|
Line 334 sub displayfoils {
|
sub start_conceptgroup { |
sub start_conceptgroup { |
my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; |
my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; |
$Apache::optionresponse::conceptgroup=1; |
$Apache::optionresponse::conceptgroup=1; |
%Apache::response::conceptgroup={}; |
%Apache::response::conceptgroup=(); |
my $result; |
my $result; |
if ($target eq 'edit') { |
if ($target eq 'edit') { |
$result.=&Apache::edit::tag_start($target,$token,"Concept Grouped Foils"); |
$result.=&Apache::edit::tag_start($target,$token,"Concept Grouped Foils"); |