--- loncom/homework/grades.pm 2002/11/27 15:25:48 1.60
+++ loncom/homework/grades.pm 2002/12/10 02:46:23 1.65
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.60 2002/11/27 15:25:48 albertel Exp $
+# $Id: grades.pm,v 1.65 2002/12/10 02:46:23 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -672,21 +672,21 @@ sub sub_page_js {
pWin.document.write("
");
pWin.document.write("Subject | ");
pWin.document.write(" | ");
- pWin.document.write(" |
");
+ pWin.document.write(" | ");
}
function displaySavedMsg(ctr,msg,shwsel) {
pWin.document.write("");
pWin.document.write(""+ctr+" | ");
pWin.document.write(" | ");
- pWin.document.write(" |
");
+ pWin.document.write(" | ");
}
function newMsg(newmsg,shwsel) {
pWin.document.write("");
pWin.document.write("New | ");
pWin.document.write(" | ");
- pWin.document.write(" |
");
+ pWin.document.write(" | ");
}
function msgTail() {
@@ -1173,9 +1173,9 @@ sub get_last_submission {
for ($version=1;$version<=$returnhash{'version'};$version++) {
foreach (sort(split(/\:/,$returnhash{$version.':keys'}))) {
$lasthash{$_}=$returnhash{$version.':'.$_};
- if ($returnhash{$version.':'.$_} =~ /(SUBMITTED|DRAFT)$/) {
+# if ($returnhash{$version.':'.$_} =~ /(SUBMITTED|DRAFT)$/) {
$timestamp = scalar(localtime($returnhash{$version.':timestamp'}));
- }
+# }
}
}
foreach ((keys %lasthash)) {
@@ -1226,7 +1226,7 @@ sub processHandGrade {
my $includemsg = $ENV{'form.includemsg'.$ctr};
my ($subject,$message,$msgstatus) = ('','','');
- if ($includemsg =~ /savemsg|new$ctr/) {
+ if ($includemsg =~ /savemsg|newmsg\Q$ctr\E/) {
$subject = $ENV{'form.msgsub'} if ($includemsg =~ /^msgsub/);
my (@msgnum) = split(/,/,$includemsg);
foreach (@msgnum) {
@@ -1725,8 +1725,8 @@ sub viewstudentgrade {
''.$fullname.''.
''.$uname.' | '.$udom.' | '."\n";
- foreach my $part (@$parts) {
- my ($part,$type) = &split_part_type($part);
+ foreach my $apart (@$parts) {
+ my ($part,$type) = &split_part_type($apart);
my $score=$record{"resource.$part.$type"};
if ($type eq 'awarded') {
my $pts = $score eq '' ? '' : $score*$$weight{$part};