Diff for /loncom/interface/lonmenu.pm between versions 1.137 and 1.142

version 1.137, 2004/12/04 02:01:04 version 1.142, 2005/01/31 19:24:02
Line 145  ENDMAINMENU Line 145  ENDMAINMENU
         my $sidebg=&Apache::loncommon::designparm($function.'.sidebg',$domain);          my $sidebg=&Apache::loncommon::designparm($function.'.sidebg',$domain);
 # Do we have a NAV link?  # Do we have a NAV link?
         if ($ENV{'request.course.id'}) {          if ($ENV{'request.course.id'}) {
            $navmaps=(<<ENDNAV);      my $link='/adm/navmaps?postdata='.$escurl.'&amp;postsymb='.
    $escsymb;
       if ($ENV{'environment.remotenavmap'} eq 'on') {
    $link="javascript:gonav('".$link."')";
       }
       $navmaps=(<<ENDNAV);
 <td bgcolor="$tabbg">  <td bgcolor="$tabbg">
 <a href="javascript:gonav('/adm/navmaps?postdata=$escurl&amp;postsymb=$escsymb')"><font color="$font">$lt{'nav'}</font></a></td>  <a href="$link"><font color="$font">$lt{'nav'}</font></a></td>
 ENDNAV  ENDNAV
     if (($ENV{'request.noversionuri'}=~/^\/adm\//) &&      if (($ENV{'request.noversionuri'}=~/^\/adm\//) &&
                 ($ENV{'request.noversionuri'}!~/^\/adm\/wrapper\//) &&                  ($ENV{'request.noversionuri'}!~/^\/adm\/wrapper\//) &&
Line 460  $tableend Line 465  $tableend
 ENDREGTEXT  ENDREGTEXT
 # Registered, graphical output  # Registered, graphical output
         } else {          } else {
     my $requri=(split(/\?/,$ENV{'request.noversionuri'}))[0];      my $requri=&Apache::lonnet::clutter(&Apache::lonnet::fixversion((split(/\?/,$ENV{'request.noversionuri'}))[0]));
     $requri=&Apache::lonenc::check_encrypt(&Apache::lonnet::unescape($requri));      $requri=&Apache::lonenc::check_encrypt(&Apache::lonnet::unescape($requri));
     my $cursymb=&Apache::lonenc::check_encrypt($ENV{'request.symb'});      my $cursymb=&Apache::lonenc::check_encrypt($ENV{'request.symb'});
     my $navstatus=&get_nav_status();      my $navstatus=&get_nav_status();
       my $clearcstr;
       if ($ENV{'user.adv'}) { $clearcstr='clearbut(6,1)'; }
     $result = (<<ENDREGTHIS);      $result = (<<ENDREGTHIS);
             
 <script type="text/javascript">  <script type="text/javascript">
Line 498  var swmenu=null; Line 505  var swmenu=null;
           swmenu.clearbut(7,3);            swmenu.clearbut(7,3);
           swmenu.menucltim=swmenu.setTimeout(            swmenu.menucltim=swmenu.setTimeout(
  'clearbut(2,1);clearbut(2,3);clearbut(8,1);clearbut(8,2);clearbut(8,3);'+   'clearbut(2,1);clearbut(2,3);clearbut(8,1);clearbut(8,2);clearbut(8,3);'+
  'clearbut(9,1);clearbut(9,3);clearbut(6,3);clearbut(6,1)',   'clearbut(9,1);clearbut(9,3);clearbut(6,3);$clearcstr',
   2000);    2000);
       }        }
   
Line 1023  function gocstr(url,filename) { Line 1030  function gocstr(url,filename) {
     if (url == '/adm/printout') {      if (url == '/adm/printout') {
         this.document.cstrprint.postdata.value = filename          this.document.cstrprint.postdata.value = filename
         this.document.cstrprint.curseed.value = 0;          this.document.cstrprint.curseed.value = 0;
         if ((this.document.lonhomework.rndseed.value != null) && (this.document.lonhomework.rndseed.value != '')) {  
             this.document.cstrprint.curseed.value = this.document.lonhomework.rndseed.value  
         }  
         this.document.cstrprint.problemtype.value = 0;          this.document.cstrprint.problemtype.value = 0;
         for (var i=0; i<this.document.lonhomework.problemtype.options.length; i++) {          if (this.document.lonhomework) {
             if (this.document.lonhomework.problemtype.options[i].selected) {              if ((this.document.lonhomework.rndseed) && (this.document.lonhomework.rndseed.value != null) && (this.document.lonhomework.rndseed.value != '')) {
                 if (this.document.lonhomework.problemtype.options[i].value != null && this.document.lonhomework.problemtype.options[i].value != '') {                   this.document.cstrprint.curseed.value = this.document.lonhomework.rndseed.value
                     this.document.cstrprint.problemtype.value = this.document.lonhomework.problemtype.options[i].value              }
               if (this.document.lonhomework.problemtype) {
                   for (var i=0; i<this.document.lonhomework.problemtype.options.length; i++) {
                       if (this.document.lonhomework.problemtype.options[i].selected) {
                           if (this.document.lonhomework.problemtype.options[i].value != null && this.document.lonhomework.problemtype.options[i].value != '') { 
                               this.document.cstrprint.problemtype.value = this.document.lonhomework.problemtype.options[i].value
                           }
                       }
                 }                  }
             }              }
         }          }
Line 1136  sub handler { Line 1147  sub handler {
     $tabbg=&Apache::loncommon::designparm($function.'.tabbg',$domain);      $tabbg=&Apache::loncommon::designparm($function.'.tabbg',$domain);
     $font=&Apache::loncommon::designparm($function.'.font',$domain);      $font=&Apache::loncommon::designparm($function.'.font',$domain);
     my $script_tag;      my $script_tag;
     if ($ENV{'environment.remote'} eq 'on') {      if ($ENV{'environment.remote'} ne 'off') {
         my $utility=&utilityfunctions('/adm/menu');          my $utility=&utilityfunctions('/adm/menu');
         $script_tag=(<<ENDSCRIPT);          $script_tag=(<<ENDSCRIPT);
 <script type="text/javascript">  <script type="text/javascript">

Removed from v.1.137  
changed lines
  Added in v.1.142


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