version 1.4, 2006/05/01 19:29:13
|
version 1.5, 2006/05/05 20:03:43
|
Line 55 sub build_grading_analysis_page {
|
Line 55 sub build_grading_analysis_page {
|
# |
# |
my %saveable_parameters = ('Status' => 'scalar', |
my %saveable_parameters = ('Status' => 'scalar', |
'Section' => 'array', |
'Section' => 'array', |
|
'Group' => 'array', |
); |
); |
&Apache::loncommon::store_course_settings('grading_analysis', |
&Apache::loncommon::store_course_settings('grading_analysis', |
\%saveable_parameters); |
\%saveable_parameters); |
Line 68 sub build_grading_analysis_page {
|
Line 69 sub build_grading_analysis_page {
|
my @students = @Apache::lonstatistics::Students; |
my @students = @Apache::lonstatistics::Students; |
# |
# |
if (@students < 1 && exists($env{'form.firstrun'})) { |
if (@students < 1 && exists($env{'form.firstrun'})) { |
$r->print('<h2>There are no students in the sections selected</h2>'); |
$r->print('<h2>There are no students in the sections/groups selected</h2>'); |
} |
} |
# |
# |
#my @cache_button_HTML = |
#my @cache_button_HTML = |
Line 263 sub init_excel_output {
|
Line 264 sub init_excel_output {
|
$format->{'h1'}); |
$format->{'h1'}); |
$cols_output += 3; |
$cols_output += 3; |
my $sectionstring = ''; |
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++, |
$excel_sheet->write($header_row,$cols_output++, |
&Apache::lonstatistics::section_and_enrollment_description('plaintext'), |
&Apache::lonstatistics::section_and_enrollment_description('plaintext'), |
$format->{'h3'}); |
$format->{'h3'}); |
Line 303 sub create_interface {
|
Line 304 sub create_interface {
|
$str .= '<table cellspacing="5">'."\n"; |
$str .= '<table cellspacing="5">'."\n"; |
$str .= '<tr>'; |
$str .= '<tr>'; |
$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('Enrollment Status').'</b></td>'; |
$str .= '<td align="center"><b>'.&mt('Enrollment Status').'</b></td>'; |
$str .= '<td>'.&mt('<b>Output as</b> [_1]',$output_selector).'</td>'; |
$str .= '<td>'.&mt('<b>Output as</b> [_1]',$output_selector).'</td>'; |
$str .= '</tr>'."\n"; |
$str .= '</tr>'."\n"; |
Line 312 sub create_interface {
|
Line 314 sub create_interface {
|
$str .= &Apache::lonstatistics::SectionSelect('Section','multiple',5); |
$str .= &Apache::lonstatistics::SectionSelect('Section','multiple',5); |
$str .= '</td>'; |
$str .= '</td>'; |
# |
# |
|
$str .= '<td align="center">'."\n"; |
|
$str .= &Apache::lonstatistics::GroupSelect('Group','multiple',5); |
|
$str .= '</td>'; |
|
# |
$str .= '<td align="center">'; |
$str .= '<td align="center">'; |
$str .= &Apache::lonhtmlcommon::StatusOptions(undef,undef,5); |
$str .= &Apache::lonhtmlcommon::StatusOptions(undef,undef,5); |
$str .= '</td>'; |
$str .= '</td>'; |