--- loncom/interface/statistics/lonsubmissiontimeanalysis.pm 2004/03/01 16:39:19 1.14 +++ loncom/interface/statistics/lonsubmissiontimeanalysis.pm 2004/06/04 21:42:19 1.15 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonsubmissiontimeanalysis.pm,v 1.14 2004/03/01 16:39:19 matthew Exp $ +# $Id: lonsubmissiontimeanalysis.pm,v 1.15 2004/06/04 21:42:19 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -75,18 +75,8 @@ sub BuildSubmissionTimePage { $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(); # if (! exists($ENV{'form.problemchoice'}) || @@ -102,6 +92,10 @@ sub BuildSubmissionTimePage { 'value="'.&mt($button->{'text'}).'" />'); $r->print(' 'x5); } + foreach my $html (@CacheButtonHTML) { + $r->print($html.(' 'x5)); + } + $r->rflush(); # # Determine which problem we are to analyze my $current_problem = &Apache::lonstathelpers::get_target_from_id @@ -136,6 +130,7 @@ sub BuildSubmissionTimePage { $r->print('

'.$resource->{'src'}.'

'); $r->rflush(); $r->print(&Apache::lonstathelpers::render_resource($resource)); + $r->print('
'); $r->rflush(); $r->print(&analyze_times($r,$resource,\@Students, $current_problem->{'part'})); @@ -334,11 +329,11 @@ sub CreateInterface { ## Build the menu my $Str = ''; $Str .= &Apache::lonhtmlcommon::breadcrumbs(undef,'Submission Time Plots'); + $Str .= '

'; $Str .= ''."\n"; $Str .= ''; $Str .= ''; $Str .= ''; - $Str .= ''; $Str .= ''."\n"; ## ## @@ -349,21 +344,14 @@ sub CreateInterface { $Str .= ''; - # - my $only_seq_with_assessments = sub { - my $s=shift; - if ($s->{'num_assess'} < 1) { - return 0; - } else { - return 1; - } - }; - &Apache::lonstatistics::MapSelect('Maps','multiple,all',5, - $only_seq_with_assessments); - ## - ## $Str .= ''."\n"; $Str .= '
'.&mt('Sections').''.&mt('Enrollment Status').' 
'; $Str .= &Apache::lonhtmlcommon::StatusOptions(undef,undef,5); $Str .= '
'."\n"; + # + $Str .= ''.&mt('Status: [_1]', + ''). + ''.'

'; + ## return $Str; }