--- loncom/interface/lonmenu.pm 2010/01/05 15:27:31 1.309.2.7 +++ loncom/interface/lonmenu.pm 2010/08/09 23:39:43 1.309.2.14 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Routines to control the menu # -# $Id: lonmenu.pm,v 1.309.2.7 2010/01/05 15:27:31 raeburn Exp $ +# $Id: lonmenu.pm,v 1.309.2.14 2010/08/09 23:39:43 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -131,6 +131,7 @@ use Apache::lonhtmlcommon(); use Apache::loncommon(); use Apache::lonenc(); use Apache::lonlocal; +use Apache::loncoursequeueadmin; use LONCAPA qw(:DEFAULT :match); use HTML::Entities(); @@ -1380,7 +1381,8 @@ sub inlinemenu { undef(@inlineremote); undef(%category_members); my $output; - if (($context eq 'gcicustom') || ($context eq 'gcistudent')) { + if (($context eq 'gcicustom') || ($context eq 'gcistudent') || + ($context eq 'gcinorole')) { $output=''. ''; } - $output .= ''; - if ($env{'request.course.id'}) { + $output .= ''. +''; + if ($env{'request.course.id'}) { if (($context eq 'gcicustom') && (&Apache::lonnet::allowed('mdc',$env{'request.course.id'}))) { $output.= '
'. '
'. @@ -1396,8 +1398,9 @@ sub inlinemenu { if ($switcher) { $output .= '
choose role'.$switcher.'
communication'.&mt('Send/Display Messages').'
communication'.&mt('Send/Display Messages').'
user preferences'.&mt('Set my user preferences').'
'. ''. @@ -1405,8 +1408,10 @@ sub inlinemenu { '

'.&mt('Test Management').'

'. ''."\n". ''."\n". - ''."\n". - '
course contentsConcept Test Contents
assemble testAssemble Concept Test
user privs'.&mt('Manage Enrollment').'
what is new'.&mt("What's New?").'
'; + 'user privs'.&mt('Enrollment and Student Activity').''."\n". + 'what is new'.&mt("What's New?").''. + 'print concept test'.&mt("Prepare Printable Concept Test").''. + 'Test Statistics'.&mt("Concept Test Statistics").''; } else { my $navtext = &mt('Table of Contents'); if ($env{'request.role.domain'} eq 'gcitest') { @@ -1414,6 +1419,18 @@ sub inlinemenu { } $output .= 'course contents'.$navtext.''; } + } else { + $output.=''; + } + if ($context eq 'gcinorole') { + my $queued = &Apache::loncoursequeueadmin::queued_selfenrollment('notitle'); + if ($queued) { + $output .= ''. + '
'. + '

'.&mt('Pending Enrollment Requests').'

'. + $queued. + '
'; + } } $output.=''; } else { @@ -1747,7 +1764,7 @@ sub utilityfunctions { my $gcimenujs; if ($custommenu) { - my %concepttests = &Apache::loncommon::existing_gcitest_courses(); + my %concepttests = &Apache::loncommon::existing_gcitest_courses('cc'); my $managetesturl = '/adm/menu'; my $createtesturl = '/adm/requestcourse'; if (($env{'request.course.id'}) &&