Diff for /loncom/interface/statistics/lonstudentassessment.pm between versions 1.92 and 1.96

version 1.92, 2004/02/20 16:24:20 version 1.96, 2004/03/08 17:31:37
Line 402  my @OutputOptions = Line 402  my @OutputOptions =
    },     },
      { name  => 'CSV',       { name  => 'CSV',
        value => 'csv',         value => 'csv',
        description => 'Output a comma seperated values file suitable for '.         description => 'Output a comma separated values file suitable for '.
            'import into a spreadsheet program.  Using this method as opposed '.             'import into a spreadsheet program.  Using this method as opposed '.
            'to Excel output allows you to organize your data before importing'.             'to Excel output allows you to organize your data before importing'.
            ' it into a spreadsheet program.',             ' it into a spreadsheet program.',
Line 643  sub html_initialize { Line 643  sub html_initialize {
             # Use 3 digits for the total              # Use 3 digits for the total
             $sequence->{'width_sum'}+=3;              $sequence->{'width_sum'}+=3;
         }          }
    #
         if ($chosen_output->{'every_problem'}) {          if ($chosen_output->{'every_problem'}) {
             # one problem per digit              # one problem per digit
             $sequence->{'width_problem'} = $sequence->{'num_assess_parts'};              $sequence->{'width_problem'} = $sequence->{'num_assess_parts'};
Line 651  sub html_initialize { Line 652  sub html_initialize {
         }          }
         $sequence->{'width_total'} = $sequence->{'width_problem'} +           $sequence->{'width_total'} = $sequence->{'width_problem'} + 
                                      $sequence->{'width_sum'};                                       $sequence->{'width_sum'};
         if ($sequence->{'width_total'} < length($sequence->{'title'})) {          if ($sequence->{'width_total'} < length(&HTML::Entities::decode($sequence->{'title'}))) {
             $sequence->{'width_total'} = length($sequence->{'title'});              $sequence->{'width_total'} = length(&HTML::Entities::decode($sequence->{'title'}));
             $sequence->{'width_problem'} =   
                 $sequence->{'width_total'} - $sequence->{'width_sum'};  
         }          }
         #          #
         # Output the sequence titles          # Output the sequence titles
Line 728  sub html_outputstudent { Line 727  sub html_outputstudent {
         #          #
         if (! $chosen_output->{'every_problem'}) {          if (! $chosen_output->{'every_problem'}) {
             $performance = '';              $performance = '';
       $performance_length=0;
         }          }
         $performance .= ' 'x($seq->{'width_problem'}-$performance_length).          $performance .= ' 'x($seq->{'width_total'}-$performance_length-$seq->{'width_sum'}).
             $ratio;              $ratio;
         #          #
         $Str .= $performance.$padding;          $Str .= $performance.$padding;
Line 1586  sub csv_finish { Line 1586  sub csv_finish {
     #      #
     # Tell the user where to get their csv file      # Tell the user where to get their csv file
     $r->print('<br />'.      $r->print('<br />'.
               '<a href="'.$filename.'">Your csv file.</a>'."\n");                '<a href="'.$filename.'">'.&mt('Your csv file.').'</a>'."\n");
     $r->rflush();      $r->rflush();
     return;      return;
           

Removed from v.1.92  
changed lines
  Added in v.1.96


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