--- loncom/interface/statistics/lonproblemanalysis.pm 2002/11/25 18:17:36 1.16
+++ loncom/interface/statistics/lonproblemanalysis.pm 2003/03/03 22:00:03 1.21
@@ -1,7 +1,6 @@
# The LearningOnline Network with CAPA
-# (Publication Handler
#
-# $Id: lonproblemanalysis.pm,v 1.16 2002/11/25 18:17:36 minaeibi Exp $
+# $Id: lonproblemanalysis.pm,v 1.21 2003/03/03 22:00:03 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 .= '';
@@ -66,6 +63,7 @@ sub BuildProblemAnalysisPage {
$Ptr .= ' |
';
$r->print($Ptr);
$r->rflush();
+# $r->print($cache{'OptionResponses'}.'
');
$r->print(&OptionResponseTable($cache{'OptionResponses'}, \%cache, $r));
untie(%cache);
@@ -175,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++ ) {
@@ -435,7 +433,7 @@ sub DrawGraph {
$GData = $Titr.'&Concepts&Answers&'.$Max.'&'.$P_No.'&';
$GData .= (join(',',@data1)).'&'.(join(',',@data2));
- return '';
+ return '';
}
sub DrawTable {