Diff for /loncom/interface/lonmenu.pm between versions 1.195 and 1.198

version 1.195, 2006/07/14 16:46:36 version 1.198, 2006/07/18 21:55:24
Line 65  sub initlittle { Line 65  sub initlittle {
        'launch' => 'Launch Remote Control',         'launch' => 'Launch Remote Control',
                                        'groups' => 'Groups',                                         'groups' => 'Groups',
                                        'gdoc' => 'Group Documents',                                         'gdoc' => 'Group Documents',
                                        'teams' => 'Teams',  
                                        );                                         );
 }  }
   
Line 101  sub menubuttons { Line 100  sub menubuttons {
     if ($env{'request.course.id'}) {      if ($env{'request.course.id'}) {
         my %coursegroups;          my %coursegroups;
         my $viewgrps_permission =          my $viewgrps_permission =
     &Apache::lonnet::allowed('vcg',$env{'request.course.id'});      &Apache::lonnet::allowed('vcg',$env{'request.course.id'}.($env{'request.course.sec'}?'/'.$env{'request.course.sec'}:''));
         if (!$viewgrps_permission) {          if (!$viewgrps_permission) {
             %coursegroups = &Apache::lonnet::get_active_groups($env{'user.domain'},$env{'user.name'},$env{'course.'.$env{'request.course.id'}.'.domain'}, $env{'course.'.$env{'request.course.id'}.'.num'});              %coursegroups = &Apache::lonnet::get_active_groups($env{'user.domain'},$env{'user.name'},$env{'course.'.$env{'request.course.id'}.'.domain'}, $env{'course.'.$env{'request.course.id'}.'.num'});
  }   }
Line 129  ENDRELOAD Line 128  ENDRELOAD
 <a href="/adm/coursedocs" target="_top">$lt{'docs'}</a>  <a href="/adm/coursedocs" target="_top">$lt{'docs'}</a>
 ENDDOCS  ENDDOCS
             }              }
 #            if ($showgroups) {              if ($showgroups) {
 #                $groups =(<<ENDGROUPS);                  $groups =(<<ENDGROUPS);
 #<a href="/adm/coursegroups" target="_top">$lt{'groups'}</a>  <a href="/adm/coursegroups" target="_top">$lt{'groups'}</a>
 #ENDGROUPS  ENDGROUPS
 #            }              }
  }   }
         my $form=&serverform();          my $form=&serverform();
         my $utility=&utilityfunctions();          my $utility=&utilityfunctions();
Line 198  my $is_group = (&Apache::loncommon::cour Line 197  my $is_group = (&Apache::loncommon::cour
 <td><a href="/adm/coursedocs" target="_top">$text</a></td>  <td><a href="/adm/coursedocs" target="_top">$text</a></td>
 ENDDOCS  ENDDOCS
             }              }
 #            if ($showgroups) {              if ($showgroups) {
 #                my $text = ($is_group) ? $lt{'teams'} : $lt{'groups'};                  $groups =(<<ENDGROUPS);
 #                $groups =(<<ENDGROUPS);  <td><a href="/adm/coursegroups" target="_top">$lt{'groups'}</a></td>
 #<td><a href="/adm/coursegroups" target="_top">$text</a></td>  ENDGROUPS
 #ENDGROUPS              }
 #            }  
     if (      if (
  ($env{'request.noversionuri'}=~m[^/(res|public)/] &&   ($env{'request.noversionuri'}=~m[^/(res|public)/] &&
  $env{'request.symb'} eq '')   $env{'request.symb'} eq '')
Line 237  ENDCRELOAD Line 235  ENDCRELOAD
  if ($env{'user.adv'}) {   if ($env{'user.adv'}) {
     $remote = '<td><a href="/adm/remote?action=launch&amp;url='.$escurl.'" target="_top">'.$lt{'launch'}.'</a></td>'      $remote = '<td><a href="/adm/remote?action=launch&amp;url='.$escurl.'" target="_top">'.$lt{'launch'}.'</a></td>'
  }   }
         my $helptopic='Student_Intro';  
         if ($env{'request.role'}=~/^(ca|au)/) {          my $helplink=&Apache::loncommon::top_nav_help('Help');
     $helptopic='Authoring_Intro';  
  } elsif ($env{'request.role'}=~/^cc/) {  
     $helptopic='Course_Coordination_Intro';  
  }  
         my $helplink=&Apache::loncommon::help_open_topic($helptopic,'Help');  
  return (<<ENDINLINEMENU);   return (<<ENDINLINEMENU);
 <script type="text/javascript">  <script type="text/javascript">
 // BEGIN LON-CAPA Internal  // BEGIN LON-CAPA Internal
Line 392  sub innerregister { Line 385  sub innerregister {
     &Apache::lonnet::allowed('opa',$crs)) {      &Apache::lonnet::allowed('opa',$crs)) {
     $hwkadd.=&switch('','',7,3,'pparm.gif','problem[_2]','parms[_2]',      $hwkadd.=&switch('','',7,3,'pparm.gif','problem[_2]','parms[_2]',
      "gocmd('/adm/parmset','set')",       "gocmd('/adm/parmset','set')",
      'Modify deadlines, etc, for this resource');       'Modify parameter settings for this resource');
  }   }
 # -- End Homework  # -- End Homework
         ###          ###

Removed from v.1.195  
changed lines
  Added in v.1.198


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>