--- loncom/interface/Attic/lonremote.pm 2006/08/30 15:26:29 1.21 +++ loncom/interface/Attic/lonremote.pm 2009/02/26 16:17:30 1.27 @@ -1,7 +1,7 @@ # The LearningOnline Network # User Authentication Module # -# $Id: lonremote.pm,v 1.21 2006/08/30 15:26:29 albertel Exp $ +# $Id: lonremote.pm,v 1.27 2009/02/26 16:17:30 schafran Exp $ # # Copyright Michigan State University Board of Trustees # @@ -39,11 +39,11 @@ use Apache::lonlocal; sub launchremote { my ($r,$lowerurl)=@_; &Apache::lonnet::put('environment',{'remote' => 'on'}); - &Apache::lonnet::appenv('environment.remote' => 'on'); + &Apache::lonnet::appenv({'environment.remote' => 'on'}); # -------------------------------------------------------- Menu script and info my $windowinfo=&Apache::lonmenu::open($env{'browser.os'}); my $startupremote=&Apache::lonmenu::startupremote($lowerurl); - my $start_page = &Apache::loncommon::start_page('Remote Control', + my $start_page = &Apache::loncommon::start_page('Page Display Settings', $startupremote); my $end_page = &Apache::loncommon::end_page(); my $remoteinfo=&Apache::lonmenu::load_remote_msg($lowerurl); @@ -64,24 +64,29 @@ ENDLAUNCH sub collapseremote { my ($r,$lowerurl)=@_; # -------------------------------------------------------- Menu script and info - my $start_page = &Apache::loncommon::start_page('Collapse Remote Control', - undef, - {'no_inline_link' => 1,}); + my $brcrum = [{href=>"/adm/preferences",text=>"Set User Preferences"}, + {href=>"/adm/remote?url=/adm/preferences&action=collapse",text=>"Collapse Remote Control"}]; + my $start_page = + &Apache::loncommon::start_page('Collapse Remote Control', + undef, + {'bread_crumbs' => $brcrum, + 'no_inline_link' => 1,}); my $end_page = &Apache::loncommon::end_page(); my $windowinfo=&Apache::lonmenu::close(); # my $switch=''; - my $message='

'.&mt("The external menu (Remote Control) has been disabled, and you will be working with the smaller inline menu.\nYou may have either closed the Remote Control window, or it was blocked by a pop-up window filter in your browser.\nTo use the Remote Control, disable the filter for this site, and re-launch the Remote Control from the inline menu.").'

'; + my $message='

'.&mt("The external menu (Remote Control) has been disabled, and you will be working with the smaller inline menu. You may have either closed the Remote Control window, or it was blocked by a pop-up window filter in your browser. To use the Remote Control, disable the filter for this site, and re-launch the Remote Control from the inline menu.").'

'; + my $continue = &mt('Continue'); $r->print(< $message

-Continue +$continue $end_page ENDCOLLAPSE &Apache::lonnet::put('environment',{'remote' => 'off'}); - &Apache::lonnet::appenv('environment.remote' => 'off'); + &Apache::lonnet::appenv({'environment.remote' => 'off'}); } sub handler {