--- loncom/interface/statistics/longradinganalysis.pm 2006/05/05 20:03:43 1.5 +++ loncom/interface/statistics/longradinganalysis.pm 2008/10/23 09:07:51 1.9 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: longradinganalysis.pm,v 1.5 2006/05/05 20:03:43 raeburn Exp $ +# $Id: longradinganalysis.pm,v 1.9 2008/10/23 09:07:51 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -197,7 +197,7 @@ sub task_analysis { } close($outputfile); $r->print('<br />'. - '<a href="'.$filename.'">'.&mt('Your csv file.')."</a>\n"); + '<a href="'.$filename.'">'.&mt('Your CSV file.')."</a>\n"); } elsif ($env{'form.output'} eq 'excel') { my ($excel_workbook,$excel_sheet,$filename,$format,$rows_output) = &init_excel_output($r); @@ -216,13 +216,17 @@ sub task_analysis { '<a href="'.$filename.'">'. &mt('Your Excel spreadsheet.').'</a>'."\n"); } else { - $r->print('<table class="thinborder">'); - $r->print('<tr><th>Name (username)</th><th>Grades Assigned</th></tr>'); + $r->print(&Apache::loncommon::start_data_table()); + $r->print(&Apache::loncommon::start_data_table_header_row(). + '<th>'.&mt('Name (username)').'</th><th>'.&mt('Grades Assigned').'</th>'. + &Apache::loncommon::end_data_table_header_row() ); foreach my $line (@output) { - $r->print(sprintf("<tr><td>%s (<tt>%s</tt>)</td><td>%s</td></tr>", - @{$line})); + $r->print(&Apache::loncommon::start_data_table_row(). + sprintf("<td>%s (<tt>%s</tt>)</td><td>%s</td></tr>", + @{$line}). + &Apache::loncommon::end_data_table_row()); } - $r->print('</table>'); + $r->print(&Apache::loncommon::end_data_table()); } &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state); } @@ -305,7 +309,7 @@ sub create_interface { $str .= '<tr>'; $str .= '<td align="center"><b>'.&mt('Sections').'</b></td>'; $str .= '<td align="center"><b>'.&mt('Groups').'</b></td>'; - $str .= '<td align="center"><b>'.&mt('Enrollment Status').'</b></td>'; + $str .= '<td align="center"><b>'.&mt('Access Status').'</b></td>'; $str .= '<td>'.&mt('<b>Output as</b> [_1]',$output_selector).'</td>'; $str .= '</tr>'."\n"; ## @@ -324,11 +328,11 @@ sub create_interface { # $str .= '<td>'; ## - $str .= '<nobr><label>'.&mt('Status: [_1]', - '<input type="text" '. - 'name="stats_status" size="60" value="" />' - ). - '</label></nobr>'; + $str .= '<span class="LC_nobreak"><label>' + .&mt('Status: [_1]', + '<input type="text" name="stats_status"' + .' size="60" value="" readonly="readonly" />') + .'</label></span>'; $str .= '</td>'; ## ##