[LON-CAPA-cvs] cvs: loncom /interface lonstatistics.pm

minaeibi lon-capa-cvs@mail.lon-capa.org
Tue, 06 Aug 2002 17:39:15 -0000


minaeibi		Tue Aug  6 13:39:15 2002 EDT

  Modified files:              
    /loncom/interface	lonstatistics.pm 
  Log:
  Fixed for loading the graphical chart
  
  
Index: loncom/interface/lonstatistics.pm
diff -u loncom/interface/lonstatistics.pm:1.39 loncom/interface/lonstatistics.pm:1.40
--- loncom/interface/lonstatistics.pm:1.39	Mon Aug  5 16:53:38 2002
+++ loncom/interface/lonstatistics.pm	Tue Aug  6 13:39:15 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # (Publication Handler
 #
-# $Id: lonstatistics.pm,v 1.39 2002/08/05 20:53:38 stredwic Exp $
+# $Id: lonstatistics.pm,v 1.40 2002/08/06 17:39:15 minaeibi Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -548,7 +548,7 @@
     my %reports = ('classlist'          => 'Class list',
                    'problem_statistics' => 'Problem Statistics',
                    'student_assessment' => 'Student Assessment',
-                   'activitylog'        => 'Activity Log',
+#                   'activitylog'        => 'Activity Log',
                    'reportSelected'     => 'Class list');
 
     my %cache;
@@ -610,10 +610,8 @@
     } elsif($GoToPage eq 'Analyze') {
         &Apache::lonproblemanalysis::BuildAnalyzePage($cacheDB, $students, 
                                                       $courseID, $r);
-    } elsif($GoToPage eq 'DoDiffGraph') {
-        &Apache::lonproblemstatistics::BuildDiffGraph($r);
-    } elsif($GoToPage eq 'PercentWrongGraph') {
-        &Apache::lonproblemstatistics::BuildWrongGraph($r);
+    } elsif($GoToPage eq 'DoDiffGraph' || $GoToPage eq 'PercentWrongGraph') {
+        &Apache::lonproblemstatistics::BuildGraphicChart($GoToPage,$r,$cacheDB);
     } elsif($GoToPage eq 'Class list') {
         &BuildClasslist($cacheDB, $students, \@studentInformation,
                         \@headings, $r);