version 1.7, 2006/08/18 15:15:38
|
version 1.12, 2013/07/22 18:06:58
|
Line 149 sub build_grading_analysis_page {
|
Line 149 sub build_grading_analysis_page {
|
|
|
sub task_analysis { |
sub task_analysis { |
my ($r,$problem,$students) = @_; |
my ($r,$problem,$students) = @_; |
my %prog_state=&Apache::lonhtmlcommon::Create_PrgWin |
my %prog_state=&Apache::lonhtmlcommon::Create_PrgWin($r,scalar(@$students)); |
($r,'Student Answer Compilation Status', |
|
'Student Answer Compilation Progress', scalar(@$students), |
|
'inline',undef,'Statistics','stats_status'); |
|
my %graders; |
my %graders; |
foreach my $student (@$students) { |
foreach my $student (@$students) { |
my $sname = $student->{'username'}; |
my $sname = $student->{'username'}; |
Line 176 sub task_analysis {
|
Line 173 sub task_analysis {
|
} |
} |
|
|
&Apache::lonhtmlcommon::Increment_PrgWin($r,\%prog_state, |
&Apache::lonhtmlcommon::Increment_PrgWin($r,\%prog_state, |
&mt('last student')); |
'last student'); |
|
|
} |
} |
|
|
Line 197 sub task_analysis {
|
Line 194 sub task_analysis {
|
} |
} |
close($outputfile); |
close($outputfile); |
$r->print('<br />'. |
$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') { |
} elsif ($env{'form.output'} eq 'excel') { |
my ($excel_workbook,$excel_sheet,$filename,$format,$rows_output) = |
my ($excel_workbook,$excel_sheet,$filename,$format,$rows_output) = |
&init_excel_output($r); |
&init_excel_output($r); |
Line 218 sub task_analysis {
|
Line 215 sub task_analysis {
|
} else { |
} else { |
$r->print(&Apache::loncommon::start_data_table()); |
$r->print(&Apache::loncommon::start_data_table()); |
$r->print(&Apache::loncommon::start_data_table_header_row(). |
$r->print(&Apache::loncommon::start_data_table_header_row(). |
'<th>Name (username)</th><th>Grades Assigned</th>'. |
'<th>'.&mt('Name (username)').'</th><th>'.&mt('Grades Assigned').'</th>'. |
&Apache::loncommon::end_data_table_header_row() ); |
&Apache::loncommon::end_data_table_header_row() ); |
foreach my $line (@output) { |
foreach my $line (@output) { |
$r->print(&Apache::loncommon::start_data_table_row(). |
$r->print(&Apache::loncommon::start_data_table_row(). |
Line 310 sub create_interface {
|
Line 307 sub create_interface {
|
$str .= '<td align="center"><b>'.&mt('Sections').'</b></td>'; |
$str .= '<td align="center"><b>'.&mt('Sections').'</b></td>'; |
$str .= '<td align="center"><b>'.&mt('Groups').'</b></td>'; |
$str .= '<td align="center"><b>'.&mt('Groups').'</b></td>'; |
$str .= '<td align="center"><b>'.&mt('Access 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 .= '<td>'.&mt('[_1]Output as[_2] [_3]','<b>',$output_selector,'</b>').'</td>'; |
$str .= '</tr>'."\n"; |
$str .= '</tr>'."\n"; |
## |
## |
## |
## |
Line 327 sub create_interface {
|
Line 324 sub create_interface {
|
$str .= '</td>'; |
$str .= '</td>'; |
# |
# |
$str .= '<td>'; |
$str .= '<td>'; |
## |
|
$str .= '<nobr><label>'.&mt('Status: [_1]', |
|
'<input type="text" '. |
|
'name="stats_status" size="60" value="" />' |
|
). |
|
'</label></nobr>'; |
|
$str .= '</td>'; |
$str .= '</td>'; |
## |
## |
## |
## |