--- loncom/interface/lonmenu.pm 2003/04/12 15:57:30 1.59 +++ loncom/interface/lonmenu.pm 2003/05/23 13:56:39 1.67 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.59 2003/04/12 15:57:30 www Exp $ +# $Id: lonmenu.pm,v 1.67 2003/05/23 13:56:39 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -143,6 +143,9 @@ $navmaps Launch Remote Control + + +LON-CAPA '; + ''.$force_title; } # Graphical display after login only if ($Apache::lonxml::registered && !$forcereg) { return ''; } $result.=&innerregister($forcereg,$target); - return $result; + return $result.$force_title; } # =========== This gets called in order to register a URL, both with the Remote @@ -203,11 +210,30 @@ sub innerregister { my $reopen=&Apache::lonmenu::reopenmenu(); my $newmail=''; + if ($noremote) { + $newmail='
'; + } + if (($textual) && ($ENV{'request.symb'}) && ($ENV{'request.course.id'})) { + my ($mapurl,$rid,$resurl)=split(/\_\_\_/,$ENV{'request.symb'}); + $newmail.=$ENV{'course.'.$ENV{'request.course.id'}.'.description'}; + my $maptitle=&Apache::lonnet::gettitle($mapurl); + my $restitle=&Apache::lonnet::gettitle($resurl); + if ($maptitle) { + $newmail.=', '.$maptitle; + } + if ($restitle) { + $newmail.=': '.$restitle; + } + $newmail.='   '; + } if (&Apache::lonmsg::newmail()) { $newmail=($textual? 'You have new messages
': 'swmenu.setstatus("you have","messages");'); } + if ($noremote) { + $newmail.='
'; + } my $timesync=($textual?'':'swmenu.syncclock(1000*'.time.');'); my $tablestart=($noremote?'':''); my $tableend=($noremote?'
':''); @@ -331,7 +357,7 @@ $inlinebuttons $tableend $form ENDREGTEXT @@ -345,6 +371,7 @@ var swmenu=null; function LONCAPAreg() { swmenu=$reopen; + swmenu.noclient=0; swmenu.clearTimeout(swmenu.menucltim); $timesync $newmail @@ -372,7 +399,7 @@ var swmenu=null; 'clearbut(2,1);clearbut(2,3);clearbut(8,1);clearbut(8,2);clearbut(8,3);'+ 'clearbut(9,1);clearbut(9,2);clearbut(9,3);clearbut(6,3);clearbut(6,1)', 2000); - + swmenu.noclient=1; } // END LON-CAPA Internal @@ -396,6 +423,7 @@ var swmenu=null; function LONCAPAreg() { swmenu=$reopen + swmenu.noclient=0; $timesync swmenu.currentStale=1; swmenu.clearbut(2,1); @@ -412,6 +440,8 @@ var swmenu=null; } function LONCAPAstale() { + swmenu=$reopen + swmenu.noclient=1; } // END LON-CAPA Internal @@ -577,7 +607,7 @@ sub switch { my $text=$top.' '.$bot; $text=~s/\- //; $inlineremote[10*$row+$col]="\n".($nobreak?' ':'
'). - ''.$text.' '. + ''.$text.' '. ($nobreak?'':$desc); } else { # Inline Remote @@ -587,7 +617,7 @@ sub switch { $inlineremote[10*$row+$col]="\n". ($nobreak==3?''.$text.''. ($nobreak?'':''.$desc.'').($nobreak!=1?'':''); @@ -789,7 +819,7 @@ ENDUTILITY sub serverform { return(< +