';
- $result.=''."\n".
''.
''."  \n";
@@ -760,7 +761,7 @@ sub processHandGrade {
my $statusflg = '';
foreach (keys(%status)) {
$statusflg = 1 if ($status{$_} ne 'nothing');
- my ($foo,$partid,$foo) = split(/\./,$_);
+ my ($foo,$partid,$foo1) = split(/\./,$_);
$statusflg = '' if ($status{'resource.'.$partid.'.submitted_by'} ne '');
}
next if ($statusflg eq '');
@@ -796,11 +797,11 @@ sub saveHandGrade {
# my %record=&Apache::lonnet::restore($symb,$ENV{'request.course.id'},$domain,$stuname);
my %newrecord;
foreach (split(/:/,$ENV{'form.partlist'.$newflg})) {
- if ($ENV{'form.GRADE_SEL'.$newflg.'_'.$_} eq 'excused') {
+ if ($ENV{'form.GD_SEL'.$newflg.'_'.$_} eq 'excused') {
$newrecord{'resource.'.$_.'.solved'} = 'excused';
} else {
- my $pts = ($ENV{'form.GRADE_BOX'.$newflg.'_'.$_} ne '' ?
- $ENV{'form.GRADE_BOX'.$newflg.'_'.$_} : $ENV{'form.RADVAL'.$newflg.'_'.$_});
+ my $pts = ($ENV{'form.GD_BOX'.$newflg.'_'.$_} ne '' ?
+ $ENV{'form.GD_BOX'.$newflg.'_'.$_} : $ENV{'form.RADVAL'.$newflg.'_'.$_});
if ($pts eq '') {
&userError($request,'No point was assigned for part id '.$_.' and for username '.$stuname.'.');
return 'error';
@@ -857,7 +858,7 @@ sub gradingmenu {
my ($responsetype,$handgrade)=split(/:/,$$handgrade{$_});
$resptype = $responsetype;
$hdgrade = $handgrade if ($handgrade eq 'yes');
- $result.='
'."\n";
@@ -1058,15 +1056,17 @@ sub viewgrades_js {
textbox.value = point;
}
for (i=0;i
VIEWJAVASCRIPT
@@ -1156,9 +1174,9 @@ sub viewgrades {
&viewgrades_js($request);
my ($symb,$url) = ($ENV{'form.symb'},$ENV{'form.url'});
- $request->print ('
Manual Grading
');
+ my $result='
Manual Grading
';
- my $result='Resource: '.$ENV{'form.url'}.''."\n";
+ $result.='Resource: '.$ENV{'form.url'}.''."\n";
#view individual student submission form - called using Javascript viewOneStudent
$result.= '
'."\n";
return $result;
}
@@ -1329,7 +1416,7 @@ sub setstudentgrade {
foreach my $part (@parts) {
my ($temp,$part,$type)=split(/_/,$part);
my $oldscore=$record{"resource.$part.$type"};
- my $newscore=$ENV{"form.GRADE.$student.$part.$type"};
+ my $newscore=$ENV{"form.GD.$student.$part.$type"};
if ($type eq 'solved') {
my $update=0;
if ($newscore eq 'nothing' ) {