--- loncom/interface/statistics/lonstudentsubmissions.pm 2006/05/05 20:03:43 1.44 +++ loncom/interface/statistics/lonstudentsubmissions.pm 2006/05/30 12:46:50 1.45 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstudentsubmissions.pm,v 1.44 2006/05/05 20:03:43 raeburn Exp $ +# $Id: lonstudentsubmissions.pm,v 1.45 2006/05/30 12:46:50 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -37,6 +37,9 @@ use Apache::lonstathelpers; use HTML::Entities(); use Time::Local(); use Spreadsheet::WriteExcel(); +use lib '/home/httpd/lib/perl/'; +use LONCAPA; + my @SubmitButtons = ({ name => 'SelectAnother', text => 'Choose a different Problem' }, @@ -555,7 +558,7 @@ sub html_non_essay_results { return ''; } # - my $submission = &HTML::Entities::decode(&Apache::lonnet::unescape($response->{'Submission'})); + my $submission = &HTML::Entities::decode(&unescape($response->{'Submission'})); return '' if (! defined($submission) || $submission eq ''); $submission =~ s/\\\"/\"/g; $submission =~ s/\\\'/\'/g; @@ -570,14 +573,14 @@ sub html_non_essay_results { if ($resptype =~ /^(option|match|rank)$/) { my %submission = map { - my ($foil,$value) = split('=',&Apache::lonnet::unescape($_)); + my ($foil,$value) = split('=',&unescape($_)); ($foil,$value); } split('&',$response->{'Submission'}); my %correct; if (exists($response->{'Correct'})) { %correct = map { - my ($foil,$value)=split('=',&Apache::lonnet::unescape($_)); + my ($foil,$value)=split('=',&unescape($_)); ($foil,$value); } split('&',$response->{'Correct'}); } @@ -828,7 +831,7 @@ sub compile_response_data { # my $submission = &HTML::Entities::decode - (&Apache::lonnet::unescape($response->{'Submission'})); + (&unescape($response->{'Submission'})); if (!$prob->is_task()) { return () if (! defined($submission) || $submission eq ''); } @@ -843,14 +846,14 @@ sub compile_response_data { if ($resptype =~ /^(option|match|rank)$/) { my %submission = map { - my ($foil,$value) = split('=',&Apache::lonnet::unescape($_)); + my ($foil,$value) = split('=',&unescape($_)); ($foil,$value); } split('&',$response->{'Submission'}); my %correct; if (exists($response->{'Correct'})) { %correct = map { - my ($foil,$value)=split('=',&Apache::lonnet::unescape($_)); + my ($foil,$value)=split('=',&unescape($_)); ($foil,$value); } split('&',$response->{'Correct'}); }