--- loncom/homework/grades.pm 2005/02/18 23:36:12 1.248
+++ loncom/homework/grades.pm 2005/03/03 05:57:26 1.250
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.248 2005/02/18 23:36:12 albertel Exp $
+# $Id: grades.pm,v 1.250 2005/03/03 05:57:26 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -96,7 +96,7 @@ sub get_symb_and_url {
sub nameUserString {
my ($type,$fullname,$uname,$udom) = @_;
if ($type eq 'header') {
- return ' Fullname (Username) ';
+ return ' Fullname (Username) ';
} else {
return ' '.$fullname.' ('.$uname.
($ENV{'user.domain'} eq $udom ? '' : ' ('.$udom.')').') ';
@@ -664,17 +664,21 @@ LISTJAVASCRIPT
$gradeTable.='To '.lc($viewgrade).' a submission or a group of submissions, click on the check box(es) '.
'next to the student\'s name(s). Then click on the Next button. '."\n".
' '."\n";
+
+# checkall buttons
+ $gradeTable.=&check_script('gradesub', 'stuinfo');
$gradeTable.=' " />'."\n";
+ 'value="Next->" /> '."\n";
+ $gradeTable.=&check_buttons();
$gradeTable.=' Check For Plagiarism';
- my (undef, undef, $fullname) = &getclasslist($getsec,'1');
+ my ($classlist, undef, $fullname) = &getclasslist($getsec,'1');
$gradeTable.='
'.
'';
my $loop = 0;
while ($loop < 2) {
$gradeTable.=' No. Select '.
- ''.&nameUserString('header').' ';
+ ''.&nameUserString('header').' Section/Group ';
if ($ENV{'form.showgrading'} eq 'yes' && $submitonly ne 'all') {
foreach (sort(@$partlist)) {
my $display_part=&get_display_part((split(/_/))[0],$url,$symb);
@@ -719,12 +723,16 @@ LISTJAVASCRIPT
}
$ctr++;
+ my $section = $classlist->{$student}->[&Apache::loncoursedata::CL_SECTION()];
+
if ( $perm{'vgr'} eq 'F' ) {
$gradeTable.=' ' if ($ctr%2 ==1);
$gradeTable.=''.$ctr.' '.
- ' '."\n".
- ''.&nameUserString(undef,$$fullname{$student},$uname,$udom).' '."\n";
+ ' '."\n".''.
+ &nameUserString(undef,$$fullname{$student},$uname,$udom).
+ ' '.$section.' '."\n";
if ($ENV{'form.showgrading'} eq 'yes' && $submitonly ne 'all') {
foreach (sort keys(%status)) {
@@ -746,7 +754,7 @@ LISTJAVASCRIPT
$gradeTable.=' ';
}
- $gradeTable.='
'.
+ $gradeTable.=''."\n".
' " />'."\n";
@@ -771,6 +779,52 @@ LISTJAVASCRIPT
}
#---- Called from the listStudents routine
+
+sub check_script {
+ my ($form, $type)=@_;
+ my $chkallscript=''."\n";
+ return $chkallscript;
+}
+
+sub check_buttons {
+ my $buttons.=' ';
+ $buttons.=' ';
+ $buttons.=' ';
+ $buttons.=' ';
+ return $buttons;
+}
+
# Displays the submissions for one student or a group of students
sub processGroup {
my ($request) = shift;