--- loncom/interface/statistics/lonproblemstatistics.pm 2002/11/26 16:59:03 1.37 +++ loncom/interface/statistics/lonproblemstatistics.pm 2003/02/25 20:47:47 1.40 @@ -1,7 +1,6 @@ # The LearningOnline Network with CAPA -# (Publication Handler # -# $Id: lonproblemstatistics.pm,v 1.37 2002/11/26 16:59:03 minaeibi Exp $ +# $Id: lonproblemstatistics.pm,v 1.40 2003/02/25 20:47:47 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -185,9 +184,7 @@ sub BuildProblemStatisticsPage { $Ptr .= ''."\n"; my @sections = split(':',$cache{'sectionList'}); my @sectionsSelected = split(':',$cache{'sectionsSelected'}); - $Ptr .= &Apache::lonhtmlcommon::MultipleSectionSelect(\@sections, - \@sectionsSelected, - 'Statistics'); + $Ptr .= &Apache::lonstatistics::SectionSelect('Section','multiple',5); $Ptr .= ''."\n"; $Ptr .= &ProblemStatisticsButtons($cache{'DisplayFormat'}, $cache{'DisplayLegend'}, @@ -222,9 +219,6 @@ sub BuildGraphicChart { my ($graph,$cacheDB,$courseDescription,$students,$courseID,$r,$c)=@_; my %cache; my $max; - unless(tie(%cache,'GDBM_File',$cacheDB,&GDBM_READER(),0640)) { - return 'Unable to tie database.7'; - } my $title = ''; if($graph eq 'DoDiffGraph') { @@ -244,6 +238,10 @@ sub BuildGraphicChart { my @values = (); + unless(tie(%cache,'GDBM_File',$cacheDB,&GDBM_READER(),0640)) { + return 'Unable to tie database.7'; + } + foreach(@$orderedProblems) { my ($sequence,$problem,$part)=split(':', $_); if($cache{'StatisticsMaps'} ne 'All Maps' && @@ -303,7 +301,7 @@ sub DrawGraph { # $r->print(''."\n"); $r->print('
'."\n"); - $r->print(''); # $r->print('
'."\n"); $r->print('
'."\n");