version 1.17, 2010/12/20 20:15:55
|
version 1.19.10.1, 2014/02/26 20:52:11
|
Line 118 sub end_externalresponse {
|
Line 118 sub end_externalresponse {
|
$Apache::externalresponse::message=$Apache::loncapagrade::results{'message'}; |
$Apache::externalresponse::message=$Apache::loncapagrade::results{'message'}; |
&Apache::response::handle_previous(\%previous, |
&Apache::response::handle_previous(\%previous, |
$Apache::loncapagrade::results{'awarddetail'}); |
$Apache::loncapagrade::results{'awarddetail'}); |
|
if ($Apache::loncapagrade::results{'awarddetail'} eq 'ASSIGNED_SCORE') { |
|
$Apache::lonhomework::results{"resource.$part.$id.awarded"}= |
|
1.*$Apache::loncapagrade::results{"awarded"}; |
|
} |
&Apache::lonxml::debug("response of"); |
&Apache::lonxml::debug("response of"); |
&Apache::lonhomework::showhash(%$res); |
&Apache::lonhomework::showhash(%$res); |
&Apache::lonxml::debug("capagrade of"); |
&Apache::lonxml::debug("capagrade of"); |
Line 130 sub end_externalresponse {
|
Line 134 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"}. |
&HTML::Entities::encode( |
'</pre></td><td><pre>'.&Apache::lonxml::get_param('answerdisplay',$parstack,$safeeval). |
$Apache::lonhomework::history{"resource.$part.$id.submission"},'"<>&'). |
'</pre></td></tr></table>'; |
'</pre></td></table><br />'.&Apache::lonxml::get_param('answerdisplay',$parstack,$safeeval). |
|
'<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 />'; |