--- loncom/interface/statistics/lonproblemanalysis.pm 2002/12/13 21:39:19 1.18
+++ loncom/interface/statistics/lonproblemanalysis.pm 2003/03/03 21:52:24 1.20
@@ -1,7 +1,6 @@
# The LearningOnline Network with CAPA
-# (Publication Handler
#
-# $Id: lonproblemanalysis.pm,v 1.18 2002/12/13 21:39:19 albertel Exp $
+# $Id: lonproblemanalysis.pm,v 1.20 2003/03/03 21:52:24 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -56,9 +55,7 @@ sub BuildProblemAnalysisPage {
$Ptr .= '
'."\n";
my @sectionsSelected = split(':',$cache{'sectionsSelected'});
my @sections = split(':',$cache{'sectionList'});
- $Ptr .= &Apache::lonhtmlcommon::MultipleSectionSelect(\@sections,
- \@sectionsSelected,
- 'Statistics');
+ $Ptr .= &Apache::lonstatistics::SectionSelect('Section','multiple',5);
$Ptr .= ' | '."\n";
$Ptr .= 'Intervals | '."\n";
$Ptr .= '';
@@ -176,20 +173,20 @@ sub BuildAnalyzePage {
$Str = '';
if($c->aborted()) { untie(%cache); return; }
- &Apache::lonhtmlcommon::Create_PrgWin($r, $title, $heading);
- my $count=0;
+ my %prog_state=&Apache::lonhtmlcommon::Create_PrgWin($r, $title,
+ $heading,$#students+1);
+
#Java script Progress window
for(my $index=0; $index<(scalar @$students); $index++) {
if($c->aborted()) { untie(%cache); return; }
- $count++;
- my $displayString = $count.'/'.$studentCount.': '.$_;
- &Apache::lonhtmlcommon::Update_PrgWin($displayString, $r);
+ &Apache::lonhtmlcommon::Increment_PrgWin($r,\%prog_state,
+ 'last student '.$students->[$index]);
&OpStatus($problemId, $students->[$index], \%ConceptData,
$analyzeData->{'foil_to_concept'}, $analyzeData,
\%cache, $courseID);
}
- &Apache::lonhtmlcommon::Close_PrgWin($r);
+ &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state);
$Str .= ' ';
for (my $k=0; $k<$interval; $k++ ) {
|