version 1.45, 2005/03/15 16:55:22
|
version 1.47, 2005/06/21 21:00:55
|
Line 263 sub displayfoils {
|
Line 263 sub displayfoils {
|
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); |
if ($target eq 'web') {$result.='<br />';} else {$result.=' \strut\\\\\strut ';} |
if ($target eq 'web') { |
$result.=$value.':'.$text; |
$result.='<br /><b>'.$value.':</b> '.$text; |
|
} else { |
|
$result.=' \strut\\\\\strut '.$value.':'.$text; |
|
} |
} |
} |
} else { |
} else { |
my $i = 0; |
my $i = 0; |
Line 426 sub end_foil {
|
Line 429 sub end_foil {
|
my $name = &Apache::lonxml::get_param('name',$parstack,$safeeval); |
my $name = &Apache::lonxml::get_param('name',$parstack,$safeeval); |
&Apache::lonxml::debug("Got a name of :$name:"); |
&Apache::lonxml::debug("Got a name of :$name:"); |
if (!$name) { |
if (!$name) { |
&Apache::lonxml::error("Foils without names exist. This can cause problems to malfunction."); |
&Apache::lonxml::warning("Foils without names exist. This can cause problems to malfunction."); |
$name=$Apache::lonxml::curdepth; |
$name=$Apache::lonxml::curdepth; |
} |
} |
&Apache::lonxml::debug("Using a name of :$name:"); |
&Apache::lonxml::debug("Using a name of :$name:"); |