version 1.28, 2009/03/16 17:07:33
|
version 1.34, 2009/10/01 23:02:11
|
Line 41 sub launchremote {
|
Line 41 sub launchremote {
|
&Apache::lonnet::put('environment',{'remote' => 'on'}); |
&Apache::lonnet::put('environment',{'remote' => 'on'}); |
&Apache::lonnet::appenv({'environment.remote' => 'on'}); |
&Apache::lonnet::appenv({'environment.remote' => 'on'}); |
# -------------------------------------------------------- Menu script and info |
# -------------------------------------------------------- Menu script and info |
|
my $brcrum = [{href=>"/adm/preferences",text=>"Set User Preferences"}, |
|
{href=>"/adm/remote?url=/adm/preferences&action=launch",text=>"Launch Remote Control"}]; |
my $windowinfo=&Apache::lonmenu::open($env{'browser.os'}); |
my $windowinfo=&Apache::lonmenu::open($env{'browser.os'}); |
my $startupremote=&Apache::lonmenu::startupremote($lowerurl); |
my $startupremote=&Apache::lonmenu::startupremote($lowerurl); |
my $start_page = &Apache::loncommon::start_page('Page Display Settings', |
my $start_page = &Apache::loncommon::start_page('Launch Remote Control', |
$startupremote); |
$startupremote, |
|
{'bread_crumbs' => $brcrum,}); |
my $end_page = &Apache::loncommon::end_page(); |
my $end_page = &Apache::loncommon::end_page(); |
my $remoteinfo=&Apache::lonmenu::load_remote_msg($lowerurl); |
my $remoteinfo=&Apache::lonmenu::load_remote_msg($lowerurl); |
my $setflags=&Apache::lonmenu::setflags(); |
my $setflags=&Apache::lonmenu::setflags(); |
my $maincall=&Apache::lonmenu::maincall(); |
my $maincall=&Apache::lonmenu::maincall(); |
my $message=&mt("Launching of the Remote Control menu will fail if pop-up window filters are active. To use the Remote Control, disable the filter for this site."); |
my $message='<p class="LC_info">' |
|
.&mt('Launching of the Remote Control menu will fail if pop-up window filters are active.' |
|
.' To use the Remote Control, disable the filter for this site.') |
|
.'</p>'; |
$r->print(<<ENDLAUNCH); |
$r->print(<<ENDLAUNCH); |
$start_page |
$start_page |
$setflags |
$setflags |
Line 74 sub collapseremote {
|
Line 80 sub collapseremote {
|
my $end_page = &Apache::loncommon::end_page(); |
my $end_page = &Apache::loncommon::end_page(); |
my $windowinfo=&Apache::lonmenu::close(); |
my $windowinfo=&Apache::lonmenu::close(); |
# my $switch='<meta HTTP-EQUIV="Refresh" CONTENT="0.5; url='.$lowerurl.'" />'; |
# my $switch='<meta HTTP-EQUIV="Refresh" CONTENT="0.5; url='.$lowerurl.'" />'; |
my $message='<p>'.&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.").'</p>'; |
my $message='<div class="LC_warning"><b>'.&mt('The external menu (Remote Control) has been disabled, and you will be working with the smaller inline menu.').'</b></div>'."\n". |
my $continue = &mt('Continue'); |
'<p>'.&mt('You may have either closed the Remote Control window, or it was blocked by a pop-up window filter in your browser.').'<br />'."\n". |
|
&mt('To use the Remote Control, disable the filter for this site, and re-launch the Remote Control.').'</p>'."\n". |
|
'<table><tr><td><fieldset><legend>'.&mt('Actions').'</legend><table><tr>'."\n". |
|
'<td class="LC_menubuttons_text" align="left">'. |
|
'<a class="LC_menubuttons_link" href="/adm/remote?action=launch"><img alt="Launch Remote Control" src="/res/adm/pages/remotecontrol.png" class="LC_noBorder" />'. |
|
&mt('Re-launch Remote Control').'</a></td><td>'.(' 'x3).'</td>'. |
|
'<td class="LC_menubuttons_text" align="right">'. |
|
'<a class="LC_menubuttons_link" href="'.$lowerurl.'"><img alt="Launch Remote Control" src="/res/adm/pages/forw.png" class="LC_noBorder" />'. |
|
&mt('Continue without Remote Control').'</a></td></tr></table>'. |
|
'</fieldset></td></tr></table>'."\n". |
|
'<p>'.&mt('Assuming no pop-up blocking, the Remote Control can be launched at any time from the [_1]Set User Preferences[_2] page, linked to in the [_3]Main Menu[_2].','<a href="/adm/preferences">','</a>','<a href="/adm/menu">').'</span></p>'; |
$r->print(<<ENDCOLLAPSE); |
$r->print(<<ENDCOLLAPSE); |
$start_page |
$start_page |
$windowinfo |
$windowinfo |
<p> |
|
$message |
$message |
</p> |
|
<a href="$lowerurl">$continue</a> |
|
$end_page |
$end_page |
ENDCOLLAPSE |
ENDCOLLAPSE |
&Apache::lonnet::put('environment',{'remote' => 'off'}); |
&Apache::lonnet::put('environment',{'remote' => 'off'}); |
&Apache::lonnet::appenv({'environment.remote' => 'off'}); |
&Apache::lonnet::appenv({'environment.remote' => 'off'}); |
} |
} |
|
|
sub handler { |
sub handler { |