--- rat/client/parameter.html 2005/06/14 02:33:18 1.31
+++ rat/client/parameter.html 2006/12/06 21:09:35 1.41
@@ -3,7 +3,7 @@
The LearningOnline Network with CAPA
Parameter Input Window
//
-// $Id: parameter.html,v 1.31 2005/06/14 02:33:18 www Exp $
+// $Id: parameter.html,v 1.41 2006/12/06 21:09:35 www Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -176,6 +176,7 @@ function year() {
var thisyear=cdate.getFullYear();
var nowdate=new Date();
var nowyear=nowdate.getFullYear();
+ if ( !thisyear ) { thisyear=nowyear; }
var loweryear=thisyear-2;
var upperyear=thisyear+5;
if (thisyear>nowyear) { loweryear=nowyear-2; }
@@ -541,58 +542,62 @@ function draw() {
if (pscat=='yesno') {
tablestart('Yes/No');
choicewrite('
Value: | ');
- choicewrite(' Yes ');
- choicewrite(' Yes ');
+ choicewrite(' ');
}
if (pscat=='examtype') {
tablestart('Exam Type');
choicewrite(' |
Value: | ');
- choicewrite(' Online ');
- choicewrite(' Online ');
+ choicewrite(' ');
}
if (pscat=='questiontype') {
tablestart('Question Type');
choicewrite(' |
Value: | ');
- choicewrite(' Standard Problem ');
- choicewrite(' Quiz ');
- choicewrite(' Standard Problem ');
+// choicewrite(' ');
+ choicewrite(' ');
+ choicewrite(' ');
+// choicewrite(' ');
+ choicewrite(' ');
+// choicewrite(' ');
+ choicewrite(' ');
}
if (pscat=='ip') {
tablestart('IP Number/Name');
@@ -603,21 +608,41 @@ function draw() {
if (pscat=='fileext') {
tablestart('Allowed File Extensions');
choicewrite(' |
Value: | ');
- choicewrite(' Plain Text ');
- choicewrite(' Plain Text ');
+ choicewrite(' ');
+ choicewrite(' ');
choicewrite('');
}
+ if (pscat=='useslots') {
+ tablestart('Slots control access');
+ choicewrite(' |
Value: | ');
+ choicewrite(' ');
+ choicewrite(' ');
+ choicewrite(' ');
+ choicewrite(' ');
+ }
choicewrite(' | ');
}
}
@@ -641,7 +666,7 @@ function draw() {
choicewrite('');
}
- choicewrite('');
+ choicewrite('');
choiceend();
}
@@ -661,7 +686,7 @@ function catchange() {
function assemble() {
if ((ptype=='date') && (pscat!='interval')) {
- svalue=Math.round(cdate.getTime()/1000);
+ svalue=Math.floor(cdate.getTime()/1000);
}
if (ptype=='tolerance') {
if (pscat=='relative_sym') {
@@ -730,9 +755,11 @@ function init() {
if (pair[0]=='call') { pcode=pair[1]; }
if (pair[0]=='marker') { pmarker=pair[1]; }
if (pair[0]=='name') { pname=pair[1]; }
- if (pair[0]=='defhour') { defhour=pair[1]; }
- if (pair[0]=='defmin') { defmin=pair[1]; }
- if (pair[0]=='defsec') { defsec=pair[1]; }
+ if (pair[0]=='defhour' && pair[1] >= 0 && pair[1] < 24 ) {
+ defhour=pair[1];
+ }
+ if (pair[0]=='defmin' && pair[1] >= 0 && pair[1] < 60) { defmin=pair[1]; }
+ if (pair[0]=='defsec' && pair[1] >= 0 && pair[1] < 60) { defsec=pair[1]; }
}
svalue=pvalue;