--- loncom/homework/grades.pm 2002/08/26 12:47:28 1.47 +++ loncom/homework/grades.pm 2002/09/06 20:59:28 1.48 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.47 2002/08/26 12:47:28 www Exp $ +# $Id: grades.pm,v 1.48 2002/09/06 20:59:28 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -324,6 +324,7 @@ sub listStudents { LISTJAVASCRIPT + my ($symb,$url) = &get_symb_and_url(); my $cdom = $ENV{"course.$ENV{'request.course.id'}.domain"}; my $cnum = $ENV{"course.$ENV{'request.course.id'}.num"}; my $getsec = $ENV{'form.section'} eq '' ? 'all' : $ENV{'form.section'}; @@ -333,8 +334,8 @@ LISTJAVASCRIPT 'View/Grade Submissions for a Student or a Group of Students'; $result.=''; $result.=''; - my ($partlist,$handgrade) = &response_type($ENV{'form.url'}); + 'Resource: '.$url.''; + my ($partlist,$handgrade) = &response_type($url); for (sort keys(%$handgrade)) { my ($responsetype,$handgrade)=split(/:/,$$handgrade{$_}); $ENV{'form.handgrade'} = 'yes' if ($handgrade eq 'yes'); @@ -361,8 +362,8 @@ LISTJAVASCRIPT ''."\n". '
'."\n". '
'."\n". - ''."\n". - ''."\n". + ''."\n". + ''."\n". 'To view/grade a submission, click on the check box next to the student\'s name. Then '."\n". 'click on the View/Grade button. To view the submissions for a group of students, click'."\n". ' on the check boxes for the group of students.
'."\n". @@ -385,8 +386,7 @@ LISTJAVASCRIPT my $ctr = 0; foreach my $student (sort {$$fullname{$a} cmp $$fullname{$b} } keys %$fullname) { my ($uname,$udom) = split(/:/,$student); - my (%status) = &student_gradeStatus($ENV{'form.url'}, - $ENV{'form.symb'},$udom,$uname,$partlist); + my (%status) =&student_gradeStatus($url,$symb,$udom,$uname,$partlist); my $statusflg = ''; foreach (keys(%status)) { $statusflg = 1 if ($status{$_} ne 'nothing'); @@ -423,7 +423,7 @@ LISTJAVASCRIPT if ($ctr == 0) { $gradeTable='
 '. 'No submission found for this resource.
'; - $gradeTable.=&show_grading_menu_form ($ENV{'form.symb'},$ENV{'form.url'}); + $gradeTable.=&show_grading_menu_form($symb,$url); } elsif ($ctr == 1) { $gradeTable =~ s/type=checkbox/type=checkbox checked/; }
'. - 'Resource: '.$ENV{'form.url'}.'