--- rat/client/parameter.html 2006/03/02 18:02:16 1.36
+++ rat/client/parameter.html 2007/06/05 20:44:14 1.44
@@ -3,7 +3,7 @@
The LearningOnline Network with CAPA
Parameter Input Window
//
-// $Id: parameter.html,v 1.36 2006/03/02 18:02:16 albertel Exp $
+// $Id: parameter.html,v 1.44 2007/06/05 20:44:14 albertel Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -529,11 +529,8 @@ function draw() {
}
if (ptype=='string') {
- if (pscat=='default') {
- tablestart('Default value or none');
- choicewrite('');
- } else {
- if ((pscat=='any') || (pscat=='') || (typeof(pscat)=='undefined')) {
+ if ((pscat=='any') || (pscat=='') || (pscat=='default') ||
+ (typeof(pscat)=='undefined')) {
tablestart('Text');
choicewrite('
Value: | ');
choicewrite('');
}
+ if (pscat=='useslots') {
+ tablestart('Slots control access');
+ choicewrite(' |
Value: | ');
+ choicewrite(' ');
+ choicewrite(' ');
+ choicewrite(' ');
+ choicewrite(' ');
choicewrite(' | ');
}
}
@@ -646,7 +662,7 @@ function draw() {
choicewrite('');
}
- choicewrite('');
+ choicewrite('');
choiceend();
}
@@ -666,7 +682,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') {
@@ -822,7 +838,13 @@ function init() {
}
if (ptype=='string') {
- sopt('default','Default');
+ //sopt('default','Default');
+ if (pscat == 'yesno') { sopt('yesno','Yes/No'); }
+ if (pscat == 'examtype') { sopt('examtype','Exam Type'); }
+ if (pscat == 'questiontype') { sopt('questiontype','Question Type'); }
+ if (pscat == 'ip') { sopt('ip','IP Number/Name'); }
+ if (pscat == 'fileext') { sopt('fileext','File Extension'); }
+ if (pscat == 'useslots') { sopt('useslots','Slots control access'); }
sopt('any','String Value');
}
@@ -847,7 +869,7 @@ function init() {
if (pcode!='') {
selwrite('parent.opener.'+pcode+'();');
}
- selwrite('">Store ');
+ selwrite('">Save ');
selwrite('