version 1.17, 2010/12/20 20:15:55
|
version 1.18, 2010/12/21 01:53:08
|
Line 130 sub end_externalresponse {
|
Line 130 sub end_externalresponse {
|
if ($target eq 'web') { |
if ($target eq 'web') { |
&Apache::response::setup_prior_tries_hash(\&format_prior_response); |
&Apache::response::setup_prior_tries_hash(\&format_prior_response); |
if (&Apache::response::show_answer()) { |
if (&Apache::response::show_answer()) { |
$result.='<table border="1"><tr><th>'.&mt('Your answer:').'</th><th>'.&mt("Computer's answer information").'</th></tr><tr><td><pre>'. |
$result.='<table border="1"><tr><th>'.&mt('Your answer:').'</th></tr><tr><td><pre>'. |
$Apache::lonhomework::history{"resource.$part.$id.submission"}. |
$Apache::lonhomework::history{"resource.$part.$id.submission"}. |
'</pre></td><td><pre>'.&Apache::lonxml::get_param('answerdisplay',$parstack,$safeeval). |
'</pre></td></table><br />'.&Apache::lonxml::get_param('answerdisplay',$parstack,$safeeval). |
'</pre></td></tr></table>'; |
'<br />'; |
} |
} |
if ($Apache::externalresponse::message) { |
if ($Apache::externalresponse::message) { |
$result.='<br /><table><tr><td bgcolor="#FFFFAA">'.$Apache::externalresponse::message.'</td></tr></table><br />'; |
$result.='<br /><table><tr><td bgcolor="#FFFFAA">'.$Apache::externalresponse::message.'</td></tr></table><br />'; |