--- loncom/interface/lonsupportreq.pm 2006/03/23 22:32:11 1.32 +++ loncom/interface/lonsupportreq.pm 2006/05/30 12:46:09 1.35 @@ -1,5 +1,5 @@ # -# $Id: lonsupportreq.pm,v 1.32 2006/03/23 22:32:11 albertel Exp $ +# $Id: lonsupportreq.pm,v 1.35 2006/05/30 12:46:09 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -35,6 +35,10 @@ use Apache::Constants qw(:common); use Apache::loncommon(); use Apache::lonnet; use Apache::lonlocal; +use Apache::lonacc(); +use lib '/home/httpd/lib/perl/'; +use LONCAPA; + sub handler { my ($r) = @_; @@ -46,10 +50,10 @@ sub handler { } &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['origurl','function']); if ($r->uri eq '/adm/helpdesk') { - &Apache::loncommon::get_posted_cgi($r); + &Apache::lonacc::get_posted_cgi($r); } my $function = $env{'form.function'}; - my $origurl = &Apache::lonnet::unescape($env{'form.origurl'}); + my $origurl = &unescape($env{'form.origurl'}); my $action = $env{'form.action'}; if ($action eq 'process') { @@ -197,12 +201,14 @@ function initialize_codes() { my $js = ''; - my $add_entries = - 'topmargin="0" marginheight="0" onLoad="initialize_codes()"', + my %add_entries = (topmargin => "0", + marginheight => "0", + onLoad =>"initialize_codes()",); + my $start_page = &Apache::loncommon::start_page('Support Request',$js, { 'function' => $function, - 'add_entries' => $add_entries, + 'add_entries' => \%add_entries, 'only_body' => 1,}); $r->print($start_page); @@ -696,10 +702,12 @@ Date/Time: $reporttime my $start_page = &Apache::loncommon::start_page('Support request recorded',undef, - {'function' => $function, - 'addentries' => - 'topmargin="0" marginheight="0"', - 'only_body' => 1,}); + {'function' => $function, + 'add_entries' => { + topmargin => "0", + marginheight => "0", + }, + 'only_body' => 1,}); $r->print(<<"END"); $start_page @@ -971,7 +979,7 @@ sub retrieve_instcodes { my %courses = &Apache::lonnet::courseiddump($codedom,'.',1,'.','.','.'); foreach my $course (keys %courses) { if ($courses{$course} =~ m/^[^:]*:([^:]+)/) { - $$coursecodes{$course} = &Apache::lonnet::unescape($1); + $$coursecodes{$course} = &unescape($1); $totcodes ++; } }