--- loncom/homework/grades.pm 2007/09/05 00:22:20 1.428.2.2
+++ loncom/homework/grades.pm 2007/08/24 00:32:00 1.434
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.428.2.2 2007/09/05 00:22:20 albertel Exp $
+# $Id: grades.pm,v 1.434 2007/08/24 00:32:00 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -755,7 +755,6 @@ LISTJAVASCRIPT
my $saveStatus = $env{'form.Status'} eq '' ? 'Active' : $env{'form.Status'};
$env{'form.Status'} = $saveStatus;
-
$gradeTable.=''."\n".
''."\n".
''."\n".
@@ -766,8 +765,7 @@ LISTJAVASCRIPT
''.
''.
''.
-
- ''."\n".
+ &build_section_inputs().
''."\n".
'
'."\n".
'
'."\n".
@@ -1693,6 +1691,19 @@ sub download_all_link {
return
}
+sub build_section_inputs {
+ my $section_inputs;
+ if ($env{'form.section'} eq '') {
+ $section_inputs .= ''."\n";
+ } else {
+ my @sections = &Apache::loncommon::get_env_multiple('form.section');
+ foreach my $section (@sections) {
+ $section_inputs .= ''."\n";
+ }
+ }
+ return $section_inputs;
+}
+
# --------------------------- show submissions of a student, option to grade
sub submission {
my ($request,$counter,$total) = @_;
@@ -1773,7 +1784,6 @@ sub submission {
$env{'form.savemsgN'} = $keyhash{$symb.'_savemsgN'} ne '' ? $keyhash{$symb.'_savemsgN'} : '0';
}
my $overRideScore = $env{'form.overRideScore'} eq '' ? 'no' : $env{'form.overRideScore'};
-
$request->print('