version 1.153.6.6, 2012/01/25 11:37:32
|
version 1.153.6.7, 2012/01/25 12:00:33
|
Line 449 sub displayallfoils{
|
Line 449 sub displayallfoils{
|
$lastresponse = |
$lastresponse = |
$Apache::lonhomework::history{"resource.$part.$id.submission"}; |
$Apache::lonhomework::history{"resource.$part.$id.submission"}; |
} |
} |
if ( $direction eq 'horizontal' ) { $result .= '<table><tr>'; } |
if ( $direction eq 'horizontal' && $target ne 'tex') { |
|
$result .= '<table><tr>'; |
|
} |
my %lastresponse = &Apache::lonnet::str2hash($lastresponse); |
my %lastresponse = &Apache::lonnet::str2hash($lastresponse); |
if ($showanswer) { |
if ($showanswer) { |
foreach my $name (@names) { |
foreach my $name (@names) { |
Line 488 sub displayallfoils{
|
Line 490 sub displayallfoils{
|
foreach my $name (@names) { |
foreach my $name (@names) { |
if ( $Apache::response::foilgroup{ $name . '.value' } ne 'unused' ) |
if ( $Apache::response::foilgroup{ $name . '.value' } ne 'unused' ) |
{ |
{ |
if ( $direction eq 'horizontal' ) { |
if ( $direction eq 'horizontal' && $target ne 'tex' ) { |
$result .= "<td>"; |
$result .= "<td>"; |
} |
} |
else { |
else { |