version 1.49, 2002/08/30 15:35:08
|
version 1.54, 2002/11/18 20:39:46
|
Line 245 sub SortStudents {
|
Line 245 sub SortStudents {
|
my $sortBy = ''; |
my $sortBy = ''; |
if(defined($cache->{'sort'})) { |
if(defined($cache->{'sort'})) { |
$sortBy = ':'.$cache->{'sort'}; |
$sortBy = ':'.$cache->{'sort'}; |
|
} else { |
|
$sortBy = ':fullname'; |
} |
} |
my @order = sort { $cache->{$a.$sortBy} cmp $cache->{$b.$sortBy} || |
my @order = sort { lc($cache->{$a.$sortBy}) cmp lc($cache->{$b.$sortBy}) || |
$cache->{$a.':fullname'} cmp $cache->{$b.':fullname'} } |
lc($cache->{$a.':fullname'}) cmp lc($cache->{$b.':fullname'}) } |
@sorted1Students; |
@sorted1Students; |
|
|
return \@order; |
return \@order; |
Line 324 sub PrepareData {
|
Line 326 sub PrepareData {
|
return "Unable to tie hash to db file."; |
return "Unable to tie hash to db file."; |
} |
} |
|
|
if(!$isCached) { |
# if(!$isCached) { |
my $processTopResourceMapReturn= |
my $processTopResourceMapReturn= |
&Apache::loncoursedata::ProcessTopResourceMap(\%cache, $c, $r); |
&Apache::loncoursedata::ProcessTopResourceMap(\%cache, $c); |
if($processTopResourceMapReturn ne 'OK') { |
if($processTopResourceMapReturn ne 'OK') { |
untie(%cache); |
untie(%cache); |
return $processTopResourceMapReturn; |
return $processTopResourceMapReturn; |
} |
} |
} |
# } |
|
|
if($c->aborted()) { |
if($c->aborted()) { |
untie(%cache); |
untie(%cache); |
Line 509 sub BuildStatistics {
|
Line 511 sub BuildStatistics {
|
'updateTime'); |
'updateTime'); |
my @headings=('Full Name', 'Section', 'PID', 'Domain', 'User Name', |
my @headings=('Full Name', 'Section', 'PID', 'Domain', 'User Name', |
'Last Updated'); |
'Last Updated'); |
my $spacing = ' '; |
my $spacing = ' '; |
|
|
my %reports = ('classlist' => 'Class list', |
my %reports = ('classlist' => 'Class list', |
'problem_statistics' => 'Problem Statistics', |
'problem_statistics' => 'Problem Statistics', |
'student_assessment' => 'Student Assessment', |
'student_assessment' => 'Student Assessment', |
Line 612 sub handler {
|
Line 615 sub handler {
|
|
|
# $jr = $r; |
# $jr = $r; |
|
|
|
my $loaderror=&Apache::lonnet::overloaderror($r); |
|
if ($loaderror) { return $loaderror; } |
|
$loaderror= |
|
&Apache::lonnet::overloaderror($r, |
|
$ENV{'course.'.$ENV{'request.course.id'}.'.home'}); |
|
if ($loaderror) { return $loaderror; } |
|
|
unless(&Apache::lonnet::allowed('vgr',$ENV{'request.course.id'})) { |
unless(&Apache::lonnet::allowed('vgr',$ENV{'request.course.id'})) { |
$ENV{'user.error.msg'}= |
$ENV{'user.error.msg'}= |
$r->uri.":vgr:0:0:Cannot view grades for complete course"; |
$r->uri.":vgr:0:0:Cannot view grades for complete course"; |