--- loncom/interface/statistics/longradinganalysis.pm 2006/02/14 22:12:46 1.3
+++ 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.3 2006/02/14 22:12:46 albertel Exp $
+# $Id: longradinganalysis.pm,v 1.9 2008/10/23 09:07:51 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -55,6 +55,7 @@ sub build_grading_analysis_page {
#
my %saveable_parameters = ('Status' => 'scalar',
'Section' => 'array',
+ 'Group' => 'array',
);
&Apache::loncommon::store_course_settings('grading_analysis',
\%saveable_parameters);
@@ -68,7 +69,7 @@ sub build_grading_analysis_page {
my @students = @Apache::lonstatistics::Students;
#
if (@students < 1 && exists($env{'form.firstrun'})) {
- $r->print('
There are no students in the sections selected
');
+ $r->print('There are no students in the sections/groups selected
');
}
#
#my @cache_button_HTML =
@@ -196,7 +197,7 @@ sub task_analysis {
}
close($outputfile);
$r->print('
'.
- ''.&mt('Your csv file.')."\n");
+ ''.&mt('Your CSV file.')."\n");
} elsif ($env{'form.output'} eq 'excel') {
my ($excel_workbook,$excel_sheet,$filename,$format,$rows_output) =
&init_excel_output($r);
@@ -215,13 +216,17 @@ sub task_analysis {
''.
&mt('Your Excel spreadsheet.').''."\n");
} else {
- $r->print('');
- $r->print('Name (username) | Grades Assigned |
');
+ $r->print(&Apache::loncommon::start_data_table());
+ $r->print(&Apache::loncommon::start_data_table_header_row().
+ ''.&mt('Name (username)').' | '.&mt('Grades Assigned').' | '.
+ &Apache::loncommon::end_data_table_header_row() );
foreach my $line (@output) {
- $r->print(sprintf("%s (%s) | %s |
",
- @{$line}));
+ $r->print(&Apache::loncommon::start_data_table_row().
+ sprintf("%s (%s) | %s | ",
+ @{$line}).
+ &Apache::loncommon::end_data_table_row());
}
- $r->print('
');
+ $r->print(&Apache::loncommon::end_data_table());
}
&Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state);
}
@@ -263,7 +268,7 @@ sub init_excel_output {
$format->{'h1'});
$cols_output += 3;
my $sectionstring = '';
- my @Sections = &Apache::lonstatistics::get_selected_sections();
+# my @Sections = &Apache::lonstatistics::get_selected_sections(); #This is never used
$excel_sheet->write($header_row,$cols_output++,
&Apache::lonstatistics::section_and_enrollment_description('plaintext'),
$format->{'h3'});
@@ -299,12 +304,12 @@ sub create_interface {
$output_selector .= ''.$/;
my $str = '';
- $str .= &Apache::lonhtmlcommon::breadcrumbs
- (undef,'Detailed Grading Statistics');
+ $str .= &Apache::lonhtmlcommon::breadcrumbs('Detailed Grading Statistics');
$str .= ''."\n";
$str .= '';
$str .= ''.&mt('Sections').' | ';
- $str .= ''.&mt('Enrollment Status').' | ';
+ $str .= ''.&mt('Groups').' | ';
+ $str .= ''.&mt('Access Status').' | ';
$str .= ''.&mt('Output as [_1]',$output_selector).' | ';
$str .= '
'."\n";
##
@@ -313,17 +318,21 @@ sub create_interface {
$str .= &Apache::lonstatistics::SectionSelect('Section','multiple',5);
$str .= '';
#
+ $str .= ''."\n";
+ $str .= &Apache::lonstatistics::GroupSelect('Group','multiple',5);
+ $str .= ' | ';
+ #
$str .= '';
$str .= &Apache::lonhtmlcommon::StatusOptions(undef,undef,5);
$str .= ' | ';
#
$str .= '';
##
- $str .= '';
+ $str .= '';
$str .= ' | ';
##
##