--- rat/client/parameter.html 2003/05/22 23:13:58 1.24
+++ rat/client/parameter.html 2004/05/27 06:26:19 1.28
@@ -3,7 +3,7 @@
The LearningOnline Network with CAPA
Parameter Input Window
//
-// $Id: parameter.html,v 1.24 2003/05/22 23:13:58 www Exp $
+// $Id: parameter.html,v 1.28 2004/05/27 06:26:19 albertel Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -304,6 +304,11 @@ function stringeval() {
draw();
}
+function radiostringeval(newval) {
+ svalue=newval;
+ draw();
+}
+
function intervaldis() {
csecs=svalue;
cdays=Math.floor(csecs/86400);
@@ -520,12 +525,92 @@ function draw() {
tablestart('Default value or none');
choicewrite('');
} else {
- if (pscat=='any') {
+ if ((pscat=='any') || (pscat=='') || (typeof(pscat)=='undefined')) {
tablestart('Text');
- }
- choicewrite('
Value: | ');
- choicewrite('');
+ choicewrite(' |
Value: | ');
+ choicewrite('');
+ }
+ if (pscat=='yesno') {
+ tablestart('Yes/No');
+ choicewrite(' |
Value: | ');
+ choicewrite(' Yes ');
+ choicewrite(' No ');
+ }
+ if (pscat=='examtype') {
+ tablestart('Exam Type');
+ choicewrite(' |
Value: | ');
+ choicewrite(' Online ');
+ choicewrite(' Check out ');
+ }
+ if (pscat=='questiontype') {
+ tablestart('Question Type');
+ choicewrite(' |
Value: | ');
+ choicewrite(' Standard Problem ');
+ choicewrite(' Quiz ');
+ choicewrite(' Exam ');
+ choicewrite(' Assessment ');
+ choicewrite(' Survey ');
+ choicewrite(' Input Form ');
+ choicewrite(' Library ');
+ }
+ if (pscat=='ip') {
+ tablestart('IP Number/Name');
+ choicewrite(' |
Value: | ');
+ choicewrite('');
+ }
+ if (pscat=='fileext') {
+ tablestart('Allowed File Extensions');
+ choicewrite(' |
Value: | ');
+ choicewrite(' Plain Text ');
+ choicewrite(' Picture File ');
+ choicewrite(' Office Document ');
+ choicewrite('');
+ }
choicewrite(' | ');
}
}
@@ -717,7 +802,7 @@ function init() {
if (ptype=='string') {
sopt('default','Default');
- sopt('string','String Value');
+ sopt('any','String Value');
}
if (ptype=='color') {