Diff for /loncom/interface/statistics/lonstudentsubmissions.pm between versions 1.9 and 1.10

version 1.9, 2004/03/16 16:30:32 version 1.10, 2004/03/16 16:41:26
Line 153  sub BuildStudentSubmissionsPage { Line 153  sub BuildStudentSubmissionsPage {
     }      }
 }  }
   
   
 #########################################################  #########################################################
 #########################################################  #########################################################
 ##  ##
Line 171  sub prepare_excel_output { Line 170  sub prepare_excel_output {
               &mt('Preparing Excel spreadsheet of student responses').                &mt('Preparing Excel spreadsheet of student responses').
               '</h2>');                '</h2>');
     #      #
     &GetStudentAnswers($r,$problem,$Students);      &Apache::lonstathelpers::GetStudentAnswers($r,$problem,$Students);
     #      #
     my @Columns = ( 'username','domain','attempt','time',      my @Columns = ( 'username','domain','attempt','time',
                     'submission','correct', 'grading','awarded','weight',                      'submission','correct', 'grading','awarded','weight',
Line 288  sub prepare_excel_output { Line 287  sub prepare_excel_output {
               '</a></p>'."\n");                '</a></p>'."\n");
 }  }
   
 sub GetStudentAnswers {  
     my ($r,$problem,$Students) = @_;  
     my $c = $r->connection();  
     my %Answers;  
     my ($resource,$partid,$respid) = ($problem->{'resource'},  
                                       $problem->{'part'},  
                                       $problem->{'respid'});  
     # Read in the cache (if it exists) before we start timing things.  
     &Apache::lonstathelpers::ensure_proper_cache($resource->{'symb'});  
     # Open progress window  
     my %prog_state=&Apache::lonhtmlcommon::Create_PrgWin  
         ($r,'Student Answer Compilation Status',  
          'Student Answer Compilation Progress', scalar(@$Students));  
     $r->rflush();  
     foreach my $student (@$Students) {  
         last if ($c->aborted());  
         my $sname = $student->{'username'};  
         my $sdom = $student->{'domain'};  
         my $answer = &Apache::lonstathelpers::analyze_problem_as_student  
             ($resource,$sname,$sdom,$partid,$respid);  
         &Apache::lonhtmlcommon::Increment_PrgWin($r,\%prog_state,  
                                                  &mt('last student'));  
         $student->{'answer'} = $answer;  
     }  
     &Apache::lonstathelpers::write_answer_cache();  
     return if ($c->aborted());  
     $r->rflush();  
     # close progress window  
     &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state);  
     return;  
 }  
   
 #########################################################  #########################################################
 #########################################################  #########################################################
 ##  ##

Removed from v.1.9  
changed lines
  Added in v.1.10


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>