--- loncom/interface/lonhelper.pm 2005/10/17 21:14:55 1.126 +++ loncom/interface/lonhelper.pm 2006/05/30 12:46:09 1.152 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # .helper XML handler to implement the LON-CAPA helper # -# $Id: lonhelper.pm,v 1.126 2005/10/17 21:14:55 albertel Exp $ +# $Id: lonhelper.pm,v 1.152 2006/05/30 12:46:09 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -183,6 +183,10 @@ use Apache::File; use Apache::lonxml; use Apache::lonlocal; use Apache::lonnet; +use Apache::longroup; +use Apache::lonselstudent; +use lib '/home/httpd/lib/perl/'; +use LONCAPA; # Register all the tags with the helper, so the helper can # push and pop them @@ -467,8 +471,8 @@ sub _varsInFile { my $self = shift; my @vars = (); for my $key (keys %{$self->{VARS}}) { - push @vars, &Apache::lonnet::escape($key) . '=' . - &Apache::lonnet::escape($self->{VARS}->{$key}); + push @vars, &escape($key) . '=' . + &escape($self->{VARS}->{$key}); } return join ('&', @vars); } @@ -573,22 +577,20 @@ sub display { } # Phase 4: Display. - my $html=&Apache::lonxml::xmlbegin(); my $stateTitle=&mt($state->title()); - my $helperTitle = &mt($self->{TITLE}); - my $bodytag = &Apache::loncommon::bodytag($helperTitle,'',''); + my $browser_searcher_js = + ''; + + $result .= &Apache::loncommon::start_page($self->{TITLE}, + $browser_searcher_js); + my $previous = HTML::Entities::encode(&mt("<- Previous"), '<>&"'); my $next = HTML::Entities::encode(&mt("Next ->"), '<>&"'); # FIXME: This should be parameterized, not concatenated - Jeremy - my $loncapaHelper = &mt("LON-CAPA Helper:"); - $result .= < - $loncapaHelper: $helperTitle - - $bodytag -HEADER + if (!$state->overrideForm()) { $result.=""; } $result .= < @@ -651,10 +653,9 @@ HEADER -