--- loncom/interface/statistics/lonproblemanalysis.pm 2004/04/01 15:32:06 1.84 +++ loncom/interface/statistics/lonproblemanalysis.pm 2004/06/04 21:42:18 1.85 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonproblemanalysis.pm,v 1.84 2004/04/01 15:32:06 albertel Exp $ +# $Id: lonproblemanalysis.pm,v 1.85 2004/06/04 21:42:18 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -51,10 +51,6 @@ my @SubmitButtons = ({ name => 'PrevProb { name => 'NextProblemAnalysis', text => 'Next Problem' }, { name => 'break'}, - { name => 'ClearCache', - text => 'Clear Caches' }, - { name => 'updatecaches', - text => 'Update Student Data' }, { name => 'SelectAnother', text => 'Choose a different Problem' }, { name => 'ExcelOutput', @@ -85,18 +81,8 @@ sub BuildProblemAnalysisPage { $r->print('

There are no students in the sections selected

'); } # - &Apache::loncoursedata::clear_internal_caches(); - if (exists($ENV{'form.ClearCache'}) || - exists($ENV{'form.updatecaches'}) || - (exists($ENV{'form.firstanalysis'}) && - $ENV{'form.firstanalysis'} ne 'no')) { - &Apache::lonstatistics::Gather_Full_Student_Data($r); - } - if (! exists($ENV{'form.firstanalysis'})) { - $r->print(''); - } else { - $r->print(''); - } + my @CacheButtonHTML = + &Apache::lonstathelpers::manage_caches($r,'Statistics','stats_status'); $r->rflush(); # my $problem_types = '(option|radiobutton|numerical)'; @@ -111,6 +97,9 @@ sub BuildProblemAnalysisPage { $r->print(' 'x5); } } + foreach my $html (@CacheButtonHTML) { + $r->print($html.(' 'x5)); + } # $r->print('
'); $r->rflush(); @@ -230,8 +219,10 @@ sub NumericalResponseAnalysis { } # # This next call causes all the waiting around that people complain about - my ($max,$min) = &Apache::lonstathelpers::GetStudentAnswers($r,$problem, - $Students); + my ($max,$min) = + &Apache::lonstathelpers::GetStudentAnswers($r,$problem,$Students, + 'Statistics', + 'stats_status'); return if ($c->aborted()); # # Collate the data @@ -1468,7 +1459,7 @@ sub CreateInterface { $Str .= '
'; } { - $Str .= '
'.&mt('Number of Plots:'); + $Str .= ''.&mt('Number of Plots:'); $Str .= &Apache::loncommon::help_open_topic ('Analysis_num_plots'); $Str .= ''; + $Str .= '
'; + } + { + $Str .= ''.&mt('Status: [_1]', + '' + ). + '
'; } } $Str .= '';