version 1.99, 2011/06/03 00:04:47
|
version 1.100, 2011/06/03 01:07:22
|
Line 35 use Apache::loncommon;
|
Line 35 use Apache::loncommon;
|
use Apache::lonlocal; |
use Apache::lonlocal; |
use Apache::lonnet; |
use Apache::lonnet; |
use Apache::grades; |
use Apache::grades; |
|
use Apache::loncoursedata; |
|
|
sub handler { |
sub handler { |
my $r = shift; |
my $r = shift; |
Line 125 sub real_handler {
|
Line 126 sub real_handler {
|
$navmap,$totalParts,$totalPossible,$totalRight,$totalAttempted,$topLevelParts,$topLevelRight,$topLevelAttempted); |
$navmap,$totalParts,$totalPossible,$totalRight,$totalAttempted,$topLevelParts,$topLevelRight,$topLevelAttempted); |
} |
} |
if ($cangrade) { $r->print("\n</form>\n"); } |
if ($cangrade) { $r->print("\n</form>\n"); } |
|
|
&endGradeScreen($r); |
&endGradeScreen($r); |
return OK; |
return OK; |
|
|
Line 141 sub getStudentCatGrade {
|
Line 141 sub getStudentCatGrade {
|
sub getAllStudentData { |
sub getAllStudentData { |
my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'}; |
my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'}; |
my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'}; |
my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'}; |
|
|
my %categories=&Apache::lonnet::dump('grading_categories',$cdom,$cnum); |
my %categories=&Apache::lonnet::dump('grading_categories',$cdom,$cnum); |
#FIXME: debugging output |
|
return &getStudentCatGrade('korte','gerd',%categories); |
my $classlist = &Apache::loncoursedata::get_classlist(); |
|
|
|
my $statusidx = &Apache::loncoursedata::CL_STATUS(); |
|
my $usernameidx = &Apache::loncoursedata::CL_SNAME(); |
|
my $domainidx = &Apache::loncoursedata::CL_SDOM(); |
|
my $fullnameidx = &Apache::loncoursedata::CL_FULLNAME(); |
|
|
|
foreach my $key (keys(%{$classlist})) { |
|
my $student = $classlist->{$key}; |
|
my $perc=&getStudentCatGrade($classlist->{$student}->[$usernameidx], |
|
$classlist->{$student}->[$domainidx], |
|
%categories); |
|
} |
} |
} |
|
|
|
|