--- loncom/interface/statistics/lonstudentassessment.pm 2003/10/07 14:38:30 1.70 +++ loncom/interface/statistics/lonstudentassessment.pm 2004/04/06 21:42:26 1.81.2.3 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstudentassessment.pm,v 1.70 2003/10/07 14:38:30 matthew Exp $ +# $Id: lonstudentassessment.pm,v 1.81.2.3 2004/04/06 21:42:26 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -52,9 +52,12 @@ package Apache::lonstudentassessment; use strict; use Apache::lonstatistics; use Apache::lonhtmlcommon; +use Apache::loncommon(); use Apache::loncoursedata; use Apache::lonnet; # for logging porpoises +use Apache::lonlocal; use Spreadsheet::WriteExcel; +use Spreadsheet::WriteExcel::Utility(); ####################################################### ####################################################### @@ -138,7 +141,7 @@ Inputs: ####################################################### sub BuildStudentAssessmentPage { my ($r,$c)=@_; - + # undef($Statistics); undef($show_links); undef($output_mode); @@ -146,9 +149,22 @@ sub BuildStudentAssessmentPage { undef($base); undef($datadescription); undef($single_student_mode); - + # + my %Saveable_Parameters = ('Status' => 'scalar', + 'chartoutputmode' => 'scalar', + 'chartoutputdata' => 'scalar', + 'Section' => 'array', + 'StudentData' => 'array', + 'Maps' => 'array'); + &Apache::loncommon::store_course_settings('chart',\%Saveable_Parameters); + &Apache::loncommon::restore_course_settings('chart',\%Saveable_Parameters); + # + &Apache::lonstatistics::PrepareClasslist(); + # $single_student_mode = 0; $single_student_mode = 1 if ($ENV{'form.SelectedStudent'}); + &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, + ['selectstudent']); if ($ENV{'form.selectstudent'}) { &Apache::lonstatistics::DisplayClasslist($r); return; @@ -305,14 +321,14 @@ sub CreateInterface { # $Str .= &CreateLegend(); $Str .= ''."\n"; $Str .= ''; - $Str .= ''; - $Str .= ''; - $Str .= ''; - $Str .= ''; - $Str .= ''; + $Str .= ''; + $Str .= ''; + $Str .= ''; + $Str .= ''; - $Str .= ''; $Str .= ''."\n"; @@ -341,12 +357,14 @@ sub CreateInterface { $Str .= &CreateAndParseOutputDataSelector(); $Str .= ''."\n"; $Str .= '
SectionsStudent DataEnrollment StatusSequences and FoldersOutput Format'. + $Str .= ''.&mt('Sections').''.&mt('Student Data').''.&mt('Enrollment Status').''.&mt('Sequences and Folders').''.&mt('Output Format').''. &Apache::loncommon::help_open_topic("Chart_Output_Formats"). 'Output Data'. + $Str .= ''.&mt('Output Data').''. &Apache::loncommon::help_open_topic("Chart_Output_Data"). '
'."\n"; - $Str .= ''; + $Str .= ''; $Str .= ' 'x5; - $Str .= ''; + $Str .= ''; $Str .= ' 'x5; - $Str .= ''; + $Str .= ''; $Str .= ' 'x5; $Str .= '
'; return $Str; @@ -419,6 +437,8 @@ sub OutputDescriptions { sub CreateAndParseOutputSelector { my $Str = ''; my $elementname = 'chartoutputmode'; + &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, + [$elementname]); # # Format for output options is 'mode, restrictions'; my $selected = 'html, without links'; @@ -445,7 +465,7 @@ sub CreateAndParseOutputSelector { foreach my $option (@OutputOptions) { $Str .= "\n".'