--- rat/client/parameter.html 2001/08/08 16:41:28 1.13
+++ rat/client/parameter.html 2003/02/03 18:03:54 1.20
@@ -2,9 +2,33 @@
@@ -149,9 +173,15 @@ function date() {
function year() {
var thisyear=cdate.getFullYear();
+ var nowdate=new Date();
+ var nowyear=nowdate.getFullYear();
+ var loweryear=thisyear-2;
+ var upperyear=thisyear+5;
+ if (thisyear>nowyear) { loweryear=nowyear-2; }
+ if (thisyear');
- for (i=thisyear-25;i<=thisyear+50;i++) {
+ for (i=loweryear;i<=upperyear;i++) {
choicewrite('Number of digits: '
- +' ');
-
-choicewrite('Accept if more digits given: '
- +' ');
-
- }
}
if (ptype=='date') {
@@ -412,10 +433,29 @@ choicewrite('');
+ choicewrite('');
} else {
+ if (pscat=='range') {
+ tablestart('Integer range');
+ choicewrite(' Lower Value:'+
+ ' ');
+ choicewrite('Upper Value:'+
+ ' ');
+ var range=new Array;
+ if ((svalue!='') && (typeof(svalue)!="undefined")) {
+ range=svalue.split(',');
+ if (typeof(range[1])=='undefined') { range[1]=range[0]; }
+ choices.document.forms.sch.val2.value=parseInt(range[0]);
+ choices.document.forms.sch.val4.value=parseInt(range[1]);
+ }
+ } else {
if (pscat=='pos') {
tablestart('Positive (non-zero) integer');
}
@@ -427,9 +467,6 @@ choicewrite('');
choicewrite(' ');
}
+ }
}
if (ptype=='float') {
@@ -470,7 +508,7 @@ choicewrite('Value: ');
- choicewrite(' ');
choicewrite(' ');
}
@@ -532,6 +570,10 @@ function assemble() {
}
}
}
+ if ((ptype=='int') && (pscat=='range')) {
+ svalue=choices.document.forms.sch.val2.value+','+
+ choices.document.forms.sch.val4.value;
+ }
if (pscat=='default') { svalue=''; }
stype=ptype+'_'+pscat;
}
@@ -674,16 +716,24 @@ function init() {
selwrite('">Delete ');
selwrite('Cancel ');
selwrite('