Diff for /loncom/interface/Attic/lonremote.pm between versions 1.29 and 1.30

version 1.29, 2009/03/29 19:44:56 version 1.30, 2009/03/29 22:14:12
Line 74  sub collapseremote { Line 74  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 [_1]"Launch Remote Control"[_2] option in [_3]"Set my user preferences"[_2], accessible via the [_4]Main Menu[_2]','<a href="/adm/remote?action=launch">','</a>','<a href="/adm/preferences">','<a href="/adm/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><b>'.&mt('Actions').'</b></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/network-wireless.png" class="LC_noBorder" />'.
                   &mt('Re-launch Remote Control').'</a></td><td>'.('&nbsp;'x3).'</td>'.
                   '<td class="LC_menubuttons_link" 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 {

Removed from v.1.29  
changed lines
  Added in v.1.30


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>