version 1.21, 2001/11/28 18:29:53
|
version 1.23, 2001/12/06 21:57:23
|
Line 30 my %hash;
|
Line 30 my %hash;
|
my @cols; |
my @cols; |
my @rowlabels; |
my @rowlabels; |
my @students; |
my @students; |
my $r; |
|
|
|
# ------------------------------------------------------------- Find out status |
# ------------------------------------------------------------- Find out status |
|
|
Line 48 sub ExtractStudentData {
|
Line 47 sub ExtractStudentData {
|
my $Version; |
my $Version; |
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 113 sub ExtractStudentData {
|
Line 108 sub ExtractStudentData {
|
elsif ($Val eq 'incorrect_attempted'){$Code = '.';} |
elsif ($Val eq 'incorrect_attempted'){$Code = '.';} |
elsif ($Val eq 'incorrect_by_override'){$Code = '-';} |
elsif ($Val eq 'incorrect_by_override'){$Code = '-';} |
elsif ($Val eq 'excused'){$Code = 'x';} |
elsif ($Val eq 'excused'){$Code = 'x';} |
|
elsif ($Val eq 'ungraded_attempted'){$Code = '#';} |
else {$Code = ' ';} |
else {$Code = ' ';} |
$TempHash{"$Part.Code"} = $Code; |
$TempHash{"$Part.Code"} = $Code; |
# if ($test=~/*minaeibi*/) { |
|
# $r->print($Key." PartNo =$PartNo "." Tries=$Tries!<br>$Version:$Prob:resource.$Part.tries".' = '.$result{"$Version:$Prob:resource.$Part.tries"}." $Val "."($Code)".'<br>'); |
|
# } |
|
} |
} |
} |
} |
} |
} |
Line 131 sub ExtractStudentData {
|
Line 124 sub ExtractStudentData {
|
} |
} |
} |
} |
$Str .= $TempHash{"$part.Code"}; |
$Str .= $TempHash{"$part.Code"}; |
# $r->print($n.") Part=".$part." code=$TempHash{$part.'.Code'}<br>"); |
|
} |
} |
} |
} |
else {for(my $n=0; $n<$PartNo; $n++) {$Str.=' ';}} |
else {for(my $n=0; $n<$PartNo; $n++) {$Str.=' ';}} |
Line 190 sub tracetable {
|
Line 182 sub tracetable {
|
# ================================================================ Main Handler |
# ================================================================ Main Handler |
|
|
sub handler { |
sub handler { |
$r=shift; |
my $r=shift; |
|
|
if (&Apache::lonnet::allowed('vgr',$ENV{'request.course.id'})) { |
if (&Apache::lonnet::allowed('vgr',$ENV{'request.course.id'})) { |
# ------------------------------------------- Set document type for header only |
# ------------------------------------------- Set document type for header only |
Line 237 sub handler {
|
Line 229 sub handler {
|
" +: correct by override\n". |
" +: correct by override\n". |
" -: incorrect by override\n". |
" -: incorrect by override\n". |
" .: incorrect attempted\n". |
" .: incorrect attempted\n". |
|
" #: ungraded attempted\n". |
" : not attempted\n". |
" : not attempted\n". |
" x: excused</pre><p>"); |
" x: excused</pre><p>"); |
|
|