--- loncom/auth/lonroles.pm 2006/07/19 10:07:14 1.162.2.2 +++ loncom/auth/lonroles.pm 2006/10/13 21:28:50 1.167 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # User Roles Screen # -# $Id: lonroles.pm,v 1.162.2.2 2006/07/19 10:07:14 albertel Exp $ +# $Id: lonroles.pm,v 1.167 2006/10/13 21:28:50 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -40,6 +40,7 @@ use Apache::lonhtmlcommon; use Apache::lonannounce; use Apache::lonlocal; use Apache::lonpageflip(); +use Apache::lonnavdisplay(); use GDBM_File; use LONCAPA; @@ -53,8 +54,8 @@ sub redirect_user { my $swinfo=&Apache::lonmenu::rawconfig(); my $navwindow; if ($launch_nav eq 'on') { - $navwindow.=&Apache::lonnavmaps::launch_win('now',undef,undef, - ($url =~ m-^/adm/whatsnew-)); + $navwindow.=&Apache::lonnavdisplay::launch_win('now',undef,undef, + ($url =~ m-^/adm/whatsnew-)); } else { $navwindow.=&Apache::lonnavmaps::close(); } @@ -485,8 +486,11 @@ ENDHEADER $tstatus='selected'; } my $tbg; - if (($tstatus eq 'is') || ($tstatus eq 'selected') || - ($env{'form.showall'})) { + if (($tstatus eq 'is') + || ($tstatus eq 'selected') + || ($tstatus eq 'will') + || ($tstatus eq 'future') + || ($env{'form.showall'})) { if ($tstatus eq 'is') { $tbg='#77FF77'; $tfont='#003300'; @@ -635,7 +639,7 @@ ENDHEADER # More than one possible role # ----------------------------------------------------------------------- Table unless (($advanced) || ($nochoose)) { - $r->print("

".&mt('Select a Course to Enter')."

\n"); + $r->print("

".&mt('Select a Course/Group to Enter')."

\n"); } $r->print('
'); unless ($nochoose) { $r->print(''); } @@ -831,7 +835,7 @@ sub build_roletext { $roletext.=''.&mt('Switch Server').''; } else { - $roletext.=(''); + $roletext.=(' '); } } elsif ($tstatus eq 'is') { $roletext.=''.$trole. ''. '
  '.$twhere. ''.$tpstart. @@ -1012,7 +1017,7 @@ sub allcourses_row { my ($dcdom,$rowtype) = @_; my $output = '
'; - foreach my $type ('Course') { + foreach my $type ('Course','Group') { my $selectlink = &courselink($dcdom,$rowtype,$type); my $ccrole = &Apache::lonnet::plaintext('cc',$type); $output.= ''.$ccrole.''.