--- loncom/interface/statistics/lonsurveyreports.pm 2006/02/14 15:44:25 1.10 +++ loncom/interface/statistics/lonsurveyreports.pm 2006/05/30 12:46:50 1.13 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonsurveyreports.pm,v 1.10 2006/02/14 15:44:25 albertel Exp $ +# $Id: lonsurveyreports.pm,v 1.13 2006/05/30 12:46:50 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -37,6 +37,9 @@ use Apache::lonstathelpers; use Spreadsheet::WriteExcel; use HTML::Entities(); use Time::Local(); +use lib '/home/httpd/lib/perl/'; +use LONCAPA; + my @SubmitButtons = ( { name => 'break'}, @@ -201,7 +204,7 @@ sub SurveyProblemSelector { $checked = 'checked '; } my $link = $problem->{'res'}->src. - '?symb='.&Apache::lonnet::escape($problem->{'res'}->symb); + '?symb='.&escape($problem->{'res'}->symb); $Str .= ''. ''.''. @@ -249,13 +252,13 @@ sub compile_student_answers { foreach my $response (@responses) { my ($foilid,$option) = map { - &Apache::lonnet::unescape($_); + &unescape($_); } split('=',$response); $data->{'foil_count'}->{$foilid}++; $data->{'foil_responses'}->{$foilid}->{$option}++; } } elsif ($resptype =~ /^(radiobutton)$/) { - my ($foil,$value) = map { &Apache::lonnet::unescape($_); } split('=',$student_response); + my ($foil,$value) = map { &unescape($_); } split('=',$student_response); $value += 1; # explicitly increment it... $data->{'foil_responses'}->{$foil}++; $data->{'foil_values'}->{$value}++; @@ -606,12 +609,12 @@ sub CreateInterface { $output_selector.= '>'.$output_format->{'text'}.''.$/; } $output_selector .= ''.$/; - $Str .= &Apache::lonhtmlcommon::breadcrumbs - (undef,'Student Submission Reports'); + $Str .= &Apache::lonhtmlcommon::breadcrumbs('Student Submission Reports'); $Str .= '

'; $Str .= ''."\n"; $Str .= ''; $Str .= ''; + $Str .= ''; $Str .= ''; $Str .= ''; $Str .= ''; @@ -621,6 +624,10 @@ sub CreateInterface { $Str .= &Apache::lonstatistics::SectionSelect('Section','multiple',5); $Str .= ''; # + $Str .= ''; + # $Str .= '';
'.&mt('Sections').''.&mt('Groups').''.&mt('Enrollment Status').''.&mt('Output Format').''.' '.''."\n"; + $Str .= &Apache::lonstatistics::GroupSelect('Group','multiple',5); + $Str .= ''; $Str .= &Apache::lonhtmlcommon::StatusOptions(undef,undef,5); $Str .= '