version 1.9, 2001/07/25 03:10:15
|
version 1.10, 2001/08/08 13:24:52
|
Line 3
|
Line 3
|
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, |
06/16/00,06/17,11/17,11/18,11/23,11/27,11/28,12/15,12/16, |
03/21/01,03/24 Gerd Kortemeyer |
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 248 function integereval() {
|
Line 247 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 392 choicewrite('<tr bgcolor="#AAFFAA"><td c
|
Line 398 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 478 function init() {
|
Line 489 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 (typeof(subs[2])!="undefined") { pscat+='_'+subs[2]; } |
if (subs[2]!=undefined) { pscat+='_'+subs[2]; } |
if ((pscat=='') || (typeof(pscat)=="undefined")) { |
if ((pscat=='') || (pscat==undefined)) { |
pscat='default'; |
pscat='default'; |
} |
} |
} |
} |
Line 492 function init() {
|
Line 503 function init() {
|
svalue=pvalue; |
svalue=pvalue; |
if (((ptype=='float') || (ptype=='string') || (ptype=='int')) && |
if (((ptype=='float') || (ptype=='string') || (ptype=='int')) && |
(pscat=='default') && |
(pscat=='default') && |
(typeof(svalue)!="undefined") && (svalue!=0) && (svalue!='')) { pscat='any'; } |
(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">'); |
Line 515 function init() {
|
Line 526 function init() {
|
sopt('end','Ending Date'); |
sopt('end','Ending Date'); |
sopt('interval','Time Interval'); |
sopt('interval','Time Interval'); |
|
|
if ((pvalue!='') && (typeof(pvalue)!="undefined")) { |
if ((pvalue!='') && (pvalue!=undefined)) { |
cdate.setTime(pvalue*1000); |
cdate.setTime(pvalue*1000); |
} |
} |
|
|
Line 537 function init() {
|
Line 548 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'); |
} |
} |
|
|