--- rat/client/parameter.html 2005/06/06 16:06:25 1.30
+++ rat/client/parameter.html 2005/06/20 19:52:51 1.32
@@ -3,7 +3,7 @@
The LearningOnline Network with CAPA
Parameter Input Window
//
-// $Id: parameter.html,v 1.30 2005/06/06 16:06:25 www Exp $
+// $Id: parameter.html,v 1.32 2005/06/20 19:52:51 albertel Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -42,6 +42,10 @@ var pscat='';
var pmarker='';
var pname='';
+var defhour=0;
+var defmin=0;
+var defsec=0;
+
var svalue;
var stype;
var smarker;
@@ -537,58 +541,58 @@ 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(' Standard Problem ');
+ choicewrite(' ');
+ choicewrite(' ');
+ choicewrite(' ');
+ choicewrite(' ');
+ choicewrite(' ');
+ choicewrite(' ');
}
if (pscat=='ip') {
tablestart('IP Number/Name');
@@ -599,18 +603,18 @@ function draw() {
if (pscat=='fileext') {
tablestart('Allowed File Extensions');
choicewrite(' |
Value: | ');
- choicewrite(' Plain Text ');
- choicewrite(' Plain Text ');
+ choicewrite(' ');
+ choicewrite(' ');
choicewrite('');
}
@@ -726,6 +730,9 @@ 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]; }
}
svalue=pvalue;
@@ -771,8 +778,9 @@ function init() {
if ((pvalue!='') && (typeof(pvalue)!="undefined")) {
cdate.setTime(pvalue*1000);
} else {
- cdate.setSeconds(0);
- cdate.setMinutes(0);
+ cdate.setSeconds(defsec);
+ cdate.setMinutes(defmin);
+ cdate.setHours(defhour);
}
months[0]='January';
|