--- loncom/homework/grades.pm 2003/02/28 21:06:28 1.70 +++ loncom/homework/grades.pm 2003/03/11 19:32:02 1.71 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.70 2003/02/28 21:06:28 ng Exp $ +# $Id: grades.pm,v 1.71 2003/03/11 19:32:02 ng Exp $ # # Copyright Michigan State University Board of Trustees # @@ -32,7 +32,7 @@ # Year 2002 # June-August H.K. Ng # Year 2003 -# February H.K. Ng +# February, March H.K. Ng # package Apache::grades; @@ -237,7 +237,8 @@ sub verifyreceipt { my $title.='
'. - 'Resource: '.$url.' |
'. + 'Part '.$partid.' Points: | '."\n";
+
+ my $ctr = 0;
+ $result.='
| or | '."\n"; + $result.=''."\n"; + $result.=' | /'.$wgt.' '.$wgtmsg. + ($$record{'resource.'.$partid.'.solved'} eq 'correct_by_student' ? ' '.$checkIcon : ''). + ' | '."\n"; + + $result.=''."\n"; + } else { + $result.=''. + ''."\n"; + } + $result.="  \n"; + $result.=''."\n". + ''."\n". + ''."\n"; + $result.=' |
';
- $result.='
'; - $request->print($result); + return $result; +# $request->print($result); } # --------------------------- show submissions of a student, option to grade @@ -843,13 +986,15 @@ sub submission { # header info if ($counter == 0) { &sub_page_js($request); + &sub_page_kw_js($request); $request->print(' Submission Record'."\n". - ' Resource: '.$url.''."\n"); + ' Problem: '. + &Apache::lonnet::metadata($url,'title').''."\n"); # option to display problem, only once else it cause problems # with the form later since the problem has a form. if ($ENV{'form.vProb'} eq 'yes' or !$ENV{'form.vProb'}) { - &show_problem($request,$symb,$uname,$udom,0); + $request->print(&show_problem($request,$symb,$uname,$udom,0,1)); } # kwclr is the only variable that is guaranteed to be non blank @@ -913,8 +1058,8 @@ KEYWORDS } if ($ENV{'form.vProb'} eq 'all') { - $request->print(''); - &show_problem($request,$symb,$uname,$udom,1); + $request->print(' ') if ($counter > 0); + $request->print(&show_problem($request,$symb,$uname,$udom,1,1)); } my %record = &Apache::lonnet::restore($symb,$ENV{'request.course.id'},$udom,$uname); @@ -1010,7 +1155,7 @@ KEYWORDS } else { my ($string,$timestamp)= &get_last_submission (%record); - my $lastsubonly.=''. + my $lastsubonly=''. ($$timestamp eq '' ? '' : 'Date Submitted: '. $$timestamp).''; if ($$timestamp eq '') { @@ -1081,9 +1226,9 @@ KEYWORDS next if ($$handgrade{$_} =~ /:no$/); push @partlist,$partid; - $result=&gradeBox($symb,$uname,$udom,$counter,$partid,\%record); + $request->print(&gradeBox($request,$symb,$uname,$udom,$counter,$partid,\%record)); - $request->print($result); +# $request->print($result); } $result=''."\n"; @@ -1101,7 +1246,7 @@ KEYWORDS ''."\n"; if ($ENV{'form.handgrade'} eq 'yes') { $endform.=' '."\n"; my $ntstu =' | ||||
'."\n";
@@ -1957,7 +2109,8 @@ sub csvuploadmap_header {
}
my $result='
|