version 1.171, 2003/05/13 20:38:55
|
version 1.173, 2003/05/14 16:49:13
|
Line 480 sub end_problem {
|
Line 480 sub end_problem {
|
($target eq 'answer') || ($target eq 'tex') |
($target eq 'answer') || ($target eq 'tex') |
) { |
) { |
if ($status eq 'CAN_ANSWER') { |
if ($status eq 'CAN_ANSWER') { |
if ($target ne 'tex') { |
if ($target ne 'tex' && |
if ($ENV{'form.print_answer'} ne 'yes') {$result.="</form></body>\n";} |
$ENV{'form.answer_output_mode'} ne 'tex') { |
|
$result.="</form></body>\n"; |
} |
} |
} elsif ($status eq 'SHOW_ANSWER' || $status eq 'CANNOT_ANSWER' || |
} elsif ($status eq 'SHOW_ANSWER' || $status eq 'CANNOT_ANSWER' || |
$status eq 'UNCHECKEDOUT' ) { |
$status eq 'UNCHECKEDOUT' ) { |
Line 504 sub end_problem {
|
Line 505 sub end_problem {
|
&Apache::lonhomework::showhash(%Apache::lonhomework::results); |
&Apache::lonhomework::showhash(%Apache::lonhomework::results); |
&finalize_storage(); |
&finalize_storage(); |
} |
} |
if ($target eq 'answer' && ($ENV{'request.state'} eq 'construct') ) { |
if ($target eq 'answer' && ($ENV{'request.state'} eq 'construct') |
if ($ENV{'form.print_answer'} ne 'yes') { |
&& $ENV{'form.answer_output_mode'} ne 'tex') { |
$result.='</html>'; #normally we get it from xmlend, but in CSTR |
$result.='</html>'; # normally we get it from xmlend, but in CSTR |
# we always show answer mode too. |
# we always show answer mode too. |
} |
|
} |
} |
} elsif ($target eq 'meta') { |
} elsif ($target eq 'meta') { |
if ($Apache::inputtags::part eq '0') { |
if ($Apache::inputtags::part eq '0') { |