--- loncom/auth/lonroles.pm 2004/07/04 05:53:35 1.94 +++ loncom/auth/lonroles.pm 2006/01/03 17:48:06 1.138.2.1 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # User Roles Screen # -# $Id: lonroles.pm,v 1.94 2004/07/04 05:53:35 albertel Exp $ +# $Id: lonroles.pm,v 1.138.2.1 2006/01/03 17:48:06 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -30,22 +30,31 @@ package Apache::lonroles; use strict; -use Apache::lonnet(); +use Apache::lonnet; use Apache::lonuserstate(); use Apache::Constants qw(:common); use Apache::File(); use Apache::lonmenu; use Apache::loncommon; +use Apache::lonhtmlcommon; use Apache::lonannounce; use Apache::lonlocal; +use GDBM_File; sub redirect_user { - my ($r,$title,$url,$msg) = @_; + my ($r,$title,$url,$msg,$launch_nav) = @_; $msg = $title if (! defined($msg)); &Apache::loncommon::content_type($r,'text/html'); &Apache::loncommon::no_cache($r); $r->send_http_header; my $swinfo=&Apache::lonmenu::rawconfig(); + my $navwindow; + if ($launch_nav eq 'on') { + $navwindow.=&Apache::lonnavmaps::launch_win('now',undef,undef, + ($url eq '/adm/whatsnew')); + } else { + $navwindow.=&Apache::lonnavmaps::close(); + } my $bodytag=&Apache::loncommon::bodytag('Switching Role'); # Note to style police: # This must only replace the spaces, nothing else, or it bombs elsewhere. @@ -56,10 +65,12 @@ sub redirect_user { $bodytag - +$navwindow