Diff for /loncom/interface/statistics/lonstudentsubmissions.pm between versions 1.52 and 1.55

version 1.52, 2008/12/12 05:52:26 version 1.55, 2009/12/16 13:01:01
Line 285  sub prepare_html_output { Line 285  sub prepare_html_output {
                 $headers{'part'} .= qq{<th colspan="$part_span">$tmpname</th>};                  $headers{'part'} .= qq{<th colspan="$part_span">$tmpname</th>};
                 $nonempty_part_headers = 1;                  $nonempty_part_headers = 1;
             } else {              } else {
                 $headers{'part'} .= qq{<th colspan="$part_span">&nbsp</th>};                  $headers{'part'} .= qq{<th colspan="$part_span">&nbsp;</th>};
             }              }
             $prob_span += $part_span;              $prob_span += $part_span;
         }          }
Line 931  sub prepare_csv_output { Line 931  sub prepare_csv_output {
             time.'_'.rand(1000000000).'.csv';              time.'_'.rand(1000000000).'.csv';
     unless ($outputfile = Apache::File->new('>/home/httpd'.$filename)) {      unless ($outputfile = Apache::File->new('>/home/httpd'.$filename)) {
         $r->log_error("Couldn't open $filename for output $!");          $r->log_error("Couldn't open $filename for output $!");
         $r->print('<div class="LC_error">'          $r->print(
                  .&mt('Problems occurred in writing the CSV file. '              '<p class="LC_error">'
                      .'This error has been logged. '             .&mt('Problems occurred in writing the CSV file.')
                      .'Please alert your LON-CAPA administrator.')             .' '.&mt('This error has been logged.')
                  .'</div>');             .' '.&mt('Please alert your LON-CAPA administrator.')
              .'</p>'
           );
         $outputfile = undef;          $outputfile = undef;
     }      }
     #      #
Line 1096  sub CreateInterface { Line 1098  sub CreateInterface {
     $Str .= '<th>'.&mt('Sections').'</th>';      $Str .= '<th>'.&mt('Sections').'</th>';
     $Str .= '<th>'.&mt('Groups').'</th>';      $Str .= '<th>'.&mt('Groups').'</th>';
     $Str .= '<th>'.&mt('Access Status').'</th>';      $Str .= '<th>'.&mt('Access Status').'</th>';
 #    $Str .= '<th>'.&mt('Output as [_1]',$output_selector).'</th>';  
     $Str .= '<th>'.&mt('Options').'</th>';      $Str .= '<th>'.&mt('Options').'</th>';
     $Str .= '<th>'.&mt('Output Format').'</th>';      $Str .= '<th>'.&mt('Output Format').'</th>';
     $Str .= &Apache::loncommon::end_data_table_header_row();      $Str .= &Apache::loncommon::end_data_table_header_row();
Line 1146  sub CreateInterface { Line 1147  sub CreateInterface {
     #      #
     $Str .= '<td align="right" valign="top">'.      $Str .= '<td align="right" valign="top">'.
         '<label><b>'.          '<label><b>'.
         &mt('Show problem [_1]',$prob_checkbox).'</b></label><br />'.          &mt('Show problem').' '.$prob_checkbox.'</b></label><br />'.
         '<label><b>'.          '<label><b>'.
         &mt('Show correct answers [_1]',$ans_checkbox).'</b></label><br />'.          &mt('Show correct answers').' '.$ans_checkbox.'</b></label><br />'.
         '<label><b>'.          '<label><b>'.
         &mt('Show all submissions [_1]',$all_sub_checkbox).          &mt('Show all submissions').' '.$all_sub_checkbox.
         '</b></label><br />'.          '</b></label><br />'.
         '<label><b>'.          '<label><b>'.
         &mt('Show problem grading [_1]',$prob_status_checkbox).          &mt('Show problem grading').' '.$prob_status_checkbox.
         '</b></label><br />'.          '</b></label><br />'.
         '</td>';          '</td>';
     #      #

Removed from v.1.52  
changed lines
  Added in v.1.55


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