--- loncom/interface/lonmenu.pm 2005/02/13 22:52:48 1.146 +++ loncom/interface/lonmenu.pm 2005/02/18 21:23:12 1.148 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.146 2005/02/13 22:52:48 albertel Exp $ +# $Id: lonmenu.pm,v 1.148 2005/02/18 21:23:12 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -108,8 +108,9 @@ ENDRELOAD my $utility=&utilityfunctions(); my $output=(< -// BEGIN LON-CAPA Internal + $lt{'main'} $reloadlink $navmaps
@@ -180,8 +181,9 @@ ENDRELOAD my $logo=&Apache::loncommon::lonhttpdurl("/adm/lonIcons/minilogo.gif"); return (< -// BEGIN LON-CAPA Internal + @@ -441,27 +443,27 @@ ENDREALRES $buttons.=&clear(@rest); } } - my $addremote=0; - foreach (@inlineremote) { if ($_ ne '') { $addremote=1; } } - if ($textual && $addremote) { -# Registered, textual output + + if ($textual) { + my $addremote=0; + foreach (@inlineremote) { if ($_ ne '') { $addremote=1; } } my $inlinebuttons=''; + if ($addremote) { +# Registered, textual output - if ($ENV{'browser.interface'} eq 'textual') { - $inlinebuttons= + if ($ENV{'browser.interface'} eq 'textual') { + $inlinebuttons= join('',map { (defined($_)?$_:'') } @inlineremote); - } else { - $inlinebuttons=(< ENDINLINE + } } - if ($const_space && $is_const_dir) { - $inlinebuttons = ''; - } $result =(< // BEGIN LON-CAPA Internal @@ -483,11 +485,12 @@ ENDREGTEXT my $cursymb=&Apache::lonenc::check_encrypt($ENV{'request.symb'}); my $navstatus=&get_nav_status(); my $clearcstr; + if ($ENV{'user.adv'}) { $clearcstr='clearbut(6,1)'; } $result = (< -// BEGIN LON-CAPA Internal +// ENDREGTHIS } @@ -1174,8 +1177,10 @@ ENDSCRIPT $ENV{'browser.interface'}='faketextual'; $ENV{'environment.remote'}='off'; } + my $html=&Apache::lonxml::xmlbegin(); $r->print(< +$html + LON-CAPA Main Menu $script_tag
$inlineremote[21] $inlineremote[23]
$inlineremote[61]$inlineremote[62]$inlineremote[63]
$inlineremote[71]$inlineremote[72]$inlineremote[73]
$inlineremote[81]$inlineremote[82]$inlineremote[83]
$inlineremote[91]$inlineremote[92]$inlineremote[93]