--- loncom/interface/lonstatistics.pm 2010/01/06 19:41:49 1.148.2.2 +++ loncom/interface/lonstatistics.pm 2010/04/12 15:55:29 1.149 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstatistics.pm,v 1.148.2.2 2010/01/06 19:41:49 raeburn Exp $ +# $Id: lonstatistics.pm,v 1.149 2010/04/12 15:55:29 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -405,10 +405,10 @@ sub StudentDataSelect { $Str .= 'size="'.$numvisible.'" >'."\n"; # # Deal with 'all' - $Str .= ' '."\n"; # # Put in option for 'all' - $form .= ' symb.'" '; + $form .= ' symb eq $_) { - $form .= 'selected '; + $form .= ' selected="selected"'; last; } } @@ -556,10 +556,10 @@ sub SectionSelect { # # Loop through the sequences foreach my $s (@Sections) { - $Str .= ' send_http_header; if ($r->header_only) { return OK; } - my $gcicustom = &Apache::loncommon::needs_gci_custom(); - if ($gcicustom) { - my $now = time; - my $cnum = $env{'course.'.$env{'request.course.id'}.'.num'}; - my $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'}; - my $courseopt=&Apache::lonnet::get_courseresdata($cnum,$cdom); - my $duedate = $courseopt->{$env{'request.course.id'}.'.0.duedate'}; - if ((!$duedate) || ($duedate > $now)) { - $r->print(&Apache::loncommon::start_page("Course Statistics")); - $r->print(''.&mt('Display of statistics').''); - if ($duedate > $now) { - $r->print(''.&mt('Aggregate test performance data will be available after the Concept Test end date: [_1].', - &Apache::lonlocal::locallocaltime($duedate)).''); - } else { - $r->print(''. - &mt('Aggregate test performance data unavailable without definition of an end date for the Concept Test.').''); - } - $r->print(&Apache::loncommon::end_page()); - return OK; - } - } - # # Extract form elements from query string &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, @@ -903,7 +881,7 @@ ENDSTYLE my $GoToPage = $env{'form.reportSelected'}; # $r->print(''); + $GoToPage.'" />'); if($GoToPage eq 'activitylog') { # &Apache::lonproblemstatistics::Activity(); } elsif($GoToPage eq 'problem_statistics') { @@ -944,11 +922,7 @@ ENDSTYLE &Apache::lonhtmlcommon::add_breadcrumb ({href=>'/adm/statistics?reportselected=student_assessment', text=>'Chart'}); - if ($gcicustom) { - $r->print(&mt('Only aggregate performance data is available for Concept Tests.')); - } else { - &Apache::lonstudentassessment::BuildStudentAssessmentPage($r,$c); - } + &Apache::lonstudentassessment::BuildStudentAssessmentPage($r,$c); } elsif($GoToPage eq 'grading_analysis') { &Apache::lonhtmlcommon::add_breadcrumb ({href=>'/adm/statistics?reportselected=grading_anaylsis',
'.&mt('Aggregate test performance data will be available after the Concept Test end date: [_1].', - &Apache::lonlocal::locallocaltime($duedate)).'
'. - &mt('Aggregate test performance data unavailable without definition of an end date for the Concept Test.').'