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

version 1.137, 2004/12/04 02:01:04 version 1.139, 2004/12/06 19:37:46
Line 460  $tableend Line 460  $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();
Line 1023  function gocstr(url,filename) { Line 1023  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
                           }
                       }
                 }                  }
             }              }
         }          }

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


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