--- loncom/interface/lonmenu.pm 2003/04/03 20:25:08 1.53 +++ loncom/interface/lonmenu.pm 2003/04/05 22:14:40 1.58 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.53 2003/04/03 20:25:08 www Exp $ +# $Id: lonmenu.pm,v 1.58 2003/04/05 22:14:40 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -45,6 +45,10 @@ use Apache::lonhtmlcommon(); use Apache::loncommon; use Apache::File; use vars qw(@desklines $readdesk); +my @inlineremote; +my $font; +my $tabbg; +my $pgbg; # ============================= This gets called at the top of the body section @@ -52,13 +56,22 @@ sub menubuttons { my $forcereg=shift; my $target =shift; my $registration=shift; + my $navmaps=''; + my $escurl=&Apache::lonnet::escape($ENV{'REQUEST_URI'}); + my $escsymb=&Apache::lonnet::escape($ENV{'request.symb'}); if ($ENV{'browser.interface'} eq 'textual') { # Textual display only + if ($ENV{'request.course.id'}) { + $navmaps=(<Navigate Contents +ENDNAV + } my $output=(< // BEGIN LON-CAPA Internal -Main Menu
+Main Menu +$navmaps
@@ -67,19 +80,57 @@ ENDMAINMENU return $output."
"; } elsif ($ENV{'environment.remote'} eq 'off') { # Remote Control is switched off - my $output=(< +Navigate Contents +ENDNAVREM + } + my $reg=''; + if ($registration) { + $reg=&innerregister($forcereg,$target); + } + return (< // BEGIN LON-CAPA Internal -Main Menu -Launch Remote Control -
+ + + +$navmaps + + +
+Main Menu + + +Launch Remote Control
+$reg ENDINLINEMENU - if ($registration) { $output.=&innerregister($forcereg,$target); } - return $output."
"; } else { return ''; } @@ -127,6 +178,9 @@ sub innerregister { my $textual=($textinter || $noremote); + @inlineremote=(); + undef @inlineremote; + my $reopen=&Apache::lonmenu::reopenmenu(); my $newmail=''; @@ -136,6 +190,8 @@ sub innerregister { 'swmenu.setstatus("you have","messages");'); } my $timesync=($textual?'':'swmenu.syncclock(1000*'.time.');'); + my $tablestart=($noremote?'':''); + my $tableend=($noremote?'
':''); # ============================================================================= # ============================ This is for URLs that actually can be registered if (($ENV{'REQUEST_URI'}!~/^\/(res\/)*adm\//) || ($forcereg)) { @@ -220,7 +276,7 @@ sub innerregister { my $menuitems=(< // BEGIN LON-CAPA Internal @@ -249,9 +307,9 @@ $utility $timesync $newmail -$buttons -$hwkadd -$editbutton +$tablestart +$inlinebuttons +$tableend $form