--- loncom/interface/lonquickgrades.pm 2011/05/24 17:17:24 1.89 +++ loncom/interface/lonquickgrades.pm 2011/05/24 18:06:10 1.90 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Quick Student Grades Display # -# $Id: lonquickgrades.pm,v 1.89 2011/05/24 17:17:24 www Exp $ +# $Id: lonquickgrades.pm,v 1.90 2011/05/24 18:06:10 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -669,21 +669,29 @@ ENDMOVE $r->print(''); } # Total + if ($output) { $r->print(''); } if ($cangrade) { if ($output) { - $r->print(''. + $r->print( ''. ''); + '" value="'.&Apache::lonhtmlcommon::entity_encode($categories{$id.'_total'}).'" />'); } } else { if ($output) { - $r->print(''.($categories{$id.'_totaltype'} eq 'default'?&mt('default'):$categories{$id.'_total'}).''); + $r->print(''.($categories{$id.'_totaltype'} eq 'default'?&mt('default'):$categories{$id.'_total'})); } } +# Adjust total points + if ($categories{$id.'_totaltype'} eq 'typein') { + $totalpossible=1.*$categories{$id.'_total'}; + } + if ($output) { + $r->print('

'.&mt('Adjusted raw points: [_1]/[_2]',$totalcorrect,$totalpossible).'

'); + } # Calculation