--- loncom/interface/statistics/lonproblemstatistics.pm 2002/08/05 18:10:08 1.12
+++ loncom/interface/statistics/lonproblemstatistics.pm 2002/08/06 02:07:19 1.15
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# (Publication Handler
#
-# $Id: lonproblemstatistics.pm,v 1.12 2002/08/05 18:10:08 minaeibi Exp $
+# $Id: lonproblemstatistics.pm,v 1.15 2002/08/06 02:07:19 minaeibi Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -70,9 +70,13 @@ sub BuildProblemStatisticsPage {
$Ptr .= '';
$Ptr .= &ProblemStatisticsLegend();
$r->print($Ptr);
+ $r->rflush();
untie(%cache);
+ &Create_PrgWin($r);
+ my $count=0;
foreach (@$students) {
+ &Update_PrgWin(scalar(@$students),$count,$_,$r);
my $courseData =
&Apache::loncoursedata::DownloadCourseInformation($_, $courseID);
last if ($c->aborted());
@@ -81,7 +85,9 @@ sub BuildProblemStatisticsPage {
$courseData, $_);
untie(%cache);
}
+ $count++;
}
+ &Close_PrgWin($r);
if($c->aborted()) { return; }
unless(tie(%cache,'GDBM_File',$cacheDB,&GDBM_READER,0640)) {
@@ -99,7 +105,7 @@ sub BuildProblemStatisticsPage {
# 'ProblemStatisticsHeading',
# 'ProblemStatisticsHeading',
# 'Homework Sets Order');
- $r->print("
state=".$state);
+# $r->print("
state=".$state);
my $TempCache;
@@ -140,12 +146,6 @@ sub BuildProblemStatisticsPage {
#---- Problem Statistics Web Page ---------------------------------------
-
-sub NumericSort {
- $a <=> $b;
-}
-
-
sub CreateProblemStatisticsTableHeading {
my ($displayFormat,$sequenceSource,$sequenceTitle,$headings,$r)=@_;
if($displayFormat eq 'Display CSV Format') {
@@ -153,10 +153,12 @@ sub CreateProblemStatisticsTableHeading
$r->print($sequenceSource.'"');
return;
}
-
- $r->print('
'.$sequenceTitle.'');
-
+ if ($sequenceSource eq 'Sorted by: ') {
+ $r->print('
'.$sequenceSource.$sequenceTitle.'');
+ } else {
+ $r->print('
'.$sequenceTitle.'');
+ }
my $Result = "\n".'
P# | '."\n"; for(my $nIndex=0; $nIndex < (scalar (keys %$headings)); $nIndex++) { $Result .= ''.''+
+ 'Computation Progress'+ + ''+ + ' |
---|