version 1.137, 2004/12/04 02:01:04
|
version 1.138, 2004/12/04 18:53:24
|
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 |
|
} |
|
} |
} |
} |
} |
} |
} |
} |