version 1.6, 2000/12/16 19:51:30
|
version 1.11, 2001/08/08 13:31:43
|
Line 2
|
Line 2
|
<!-- |
<!-- |
The LearningOnline Network with CAPA |
The LearningOnline Network with CAPA |
Parameter Input Window |
Parameter Input Window |
06/16/00,06/17,11/17,11/18,11/23,11/27,11/28,12/15,12/16 Gerd Kortemeyer |
06/16/00,06/17,11/17,11/18,11/23,11/27,11/28,12/15,12/16, |
|
03/21/01,03/24,06/26 Gerd Kortemeyer |
|
07/24/01 Scott Harrison |
--> |
--> |
<head> |
<head> |
<title>LON-CAPA</title> |
<title>LON-CAPA</title> |
Line 246 function integereval() {
|
Line 248 function integereval() {
|
if ((pscat=='pos') && (svalue==0)) { |
if ((pscat=='pos') && (svalue==0)) { |
svalue=''; |
svalue=''; |
} |
} |
|
if (pscat.indexOf('range')!=-1) { |
|
var rangeparts=new Array; |
|
rangeparts=split('_',pscat); |
|
rangeparts=split('...',rangeparts[1]); |
|
if (svalue<rangeparts[0]) { svalue=rangeparts[0]; } |
|
if (svalue>rangeparts[1]) { svalue=rangeparts[1]; } |
|
} |
draw(); |
draw(); |
} |
} |
|
|
Line 390 choicewrite('<tr bgcolor="#AAFFAA"><td c
|
Line 399 choicewrite('<tr bgcolor="#AAFFAA"><td c
|
if (pscat=='zeropos') { |
if (pscat=='zeropos') { |
tablestart('Positive integer or zero'); |
tablestart('Positive integer or zero'); |
} |
} |
|
if (pscat.indexOf('range')!=-1) { |
|
var rangeparts=new Array; |
|
rangeparts=split('_',pscat); |
|
tablestart('Integer in the range ['+rangeparts[1]+']'); |
|
} |
if (pscat=='any') { |
if (pscat=='any') { |
tablestart('Integer'); |
tablestart('Integer'); |
} |
} |
Line 476 function init() {
|
Line 490 function init() {
|
if (pair[0]=='type') { subs=pair[1].split('_'); |
if (pair[0]=='type') { subs=pair[1].split('_'); |
ptype=subs[0]; |
ptype=subs[0]; |
pscat=subs[1]; |
pscat=subs[1]; |
if (subs[2]!=undefined) { pscat+='_'+subs[2]; } |
if (typeof(subs[2])!="undefined") { |
if ((pscat=='') || (pscat==undefined)) { |
pscat+='_'+subs[2]; |
|
} |
|
if ((pscat=='') || (typeof(pscat)=="undefined")) { |
pscat='default'; |
pscat='default'; |
} |
} |
} |
} |
Line 490 function init() {
|
Line 506 function init() {
|
svalue=pvalue; |
svalue=pvalue; |
if (((ptype=='float') || (ptype=='string') || (ptype=='int')) && |
if (((ptype=='float') || (ptype=='string') || (ptype=='int')) && |
(pscat=='default') && |
(pscat=='default') && |
(svalue!=undefined) && (svalue!=0) && (svalue!='')) { pscat='any'; } |
(typeof(svalue)!="undefined") && |
|
(svalue!=0) && (svalue!='')) { pscat='any'; } |
|
|
this.window.selector.document.clear(); |
this.window.selector.document.clear(); |
selwrite('<html><body bgcolor="#FFFFFF">'); |
selwrite('<html><body bgcolor="#FFFFFF">'); |
|
|
selwrite('<form name="fsel"><h2>'+pname+'</h2>'); |
selwrite('<form name="fsel"><b>'+pname+'</b><br>'); |
selwrite('<select name="fcat" onChange="parent.catchange();">'); |
selwrite('<select name="fcat" onChange="parent.catchange();">'); |
if (ptype=='tolerance') { |
if (ptype=='tolerance') { |
sopt('default','Default'); |
sopt('default','Default'); |
Line 513 function init() {
|
Line 530 function init() {
|
sopt('end','Ending Date'); |
sopt('end','Ending Date'); |
sopt('interval','Time Interval'); |
sopt('interval','Time Interval'); |
|
|
if ((pvalue!='') && (pvalue!=undefined)) { |
if ((pvalue!='') && (typeof(pvalue)!="undefined")) { |
cdate.setTime(pvalue*1000); |
cdate.setTime(pvalue*1000); |
} |
} |
|
|
Line 535 function init() {
|
Line 552 function init() {
|
sopt('default','Default'); |
sopt('default','Default'); |
sopt('pos','Positive Integer, Not Zero'); |
sopt('pos','Positive Integer, Not Zero'); |
sopt('zeropos','Positive Integer or Zero'); |
sopt('zeropos','Positive Integer or Zero'); |
|
sopt('range','Integer Range'); |
sopt('any','Integer'); |
sopt('any','Integer'); |
} |
} |
|
|