version 1.13, 2001/11/24 17:31:42
|
version 1.14, 2001/11/27 21:16:11
|
Line 11
|
Line 11
|
# 08/30,08/31,09/06,09/14,09/15,09/16,09/19,09/20,09/21,09/23, |
# 08/30,08/31,09/06,09/14,09/15,09/16,09/19,09/20,09/21,09/23, |
# 10/02,10/10,10/14,10/16,10/18,10/19,10/31,11/6,11/14,11/16 Gerd Kortemeyer) |
# 10/02,10/10,10/14,10/16,10/18,10/19,10/31,11/6,11/14,11/16 Gerd Kortemeyer) |
# |
# |
# 3/1/1,6/1,17/1,29/1,30/1 Gerd Kortemeyer) |
# 3/1/1,6/1,17/1,29/1,30/1,31/1 Gerd Kortemeyer) |
# |
|
# 1/31 Gerd Kortemeyer |
|
# |
|
# 7/10/01 Behrouz Minaei |
# 7/10/01 Behrouz Minaei |
# 9/8 Gerd Kortemeyer |
# 9/8 Gerd Kortemeyer |
# 10/18/01, 10/19/01 Behrouz Minaei |
# 10/18/01, 10/19/01 Behrouz Minaei |
Line 52 sub ExtractStudentData {
|
Line 49 sub ExtractStudentData {
|
my $ProbNo; |
my $ProbNo; |
my $PrTotal; |
my $PrTotal; |
my $LatestVersion; |
my $LatestVersion; |
|
|
|
my $test = $ENV{'request.course.fn'}; |
|
my $comp = '/home/httpd/perl/tmp/minaeibi_msu_12679c3ed543a25msul1'; |
|
|
my $Str=substr($students[$index]. |
my $Str=substr($students[$index]. |
' ',0,14).' ! '. |
' ',0,14).' ! '. |
substr($rowlabels[$index]. |
substr($rowlabels[$index]. |
Line 96 sub ExtractStudentData {
|
Line 96 sub ExtractStudentData {
|
$Code=' '; |
$Code=' '; |
$Tries = 0; |
$Tries = 0; |
$LatestVersion = $result{"version:$Prob"}; |
$LatestVersion = $result{"version:$Prob"}; |
|
|
if ( $LatestVersion ) { |
if ( $LatestVersion ) { |
for ( my $Version=1; $Version<=$LatestVersion; $Version++ ) { |
for ( my $Version=1; $Version<=$LatestVersion; $Version++ ) { |
my $vkeys = $result{"$Version:keys:$Prob"}; |
my $vkeys = $result{"$Version:keys:$Prob"}; |
my @keys = split(/\:/,$vkeys); |
my @keys = split(/\:/,$vkeys); |
|
|
foreach my $Key (@keys) { |
foreach my $Key (@keys) { |
if (($Key=~/\.(\w+)\.solved$/) && ($Key!~/^\d+\:/)) { |
if (($Key=~/\.(\w+)\.solved$/) && ($Key!~/^\d+\:/)) { |
my $Part = $1; |
my $Part = $1; |
Line 114 sub ExtractStudentData {
|
Line 115 sub ExtractStudentData {
|
elsif ($Val eq 'excused'){$Code = 'x';} |
elsif ($Val eq 'excused'){$Code = 'x';} |
else {$Code = ' ';} |
else {$Code = ' ';} |
$TempHash{"$Part.Code"} = $Code; |
$TempHash{"$Part.Code"} = $Code; |
|
if ($test eq $comp) { |
|
$r->print("$Version:$Prob:resource.$Part.tries".' = '.$result{"$Version:$Prob:resource.$Part.tries"}." $Val "."($Code)".'<br>'); |
|
} |
} |
} |
} |
} |
} |
} |