--- rat/client/parameter.html 2006/04/25 15:43:02 1.37
+++ rat/client/parameter.html 2007/06/13 01:01:33 1.45
@@ -3,7 +3,7 @@
The LearningOnline Network with CAPA
Parameter Input Window
//
-// $Id: parameter.html,v 1.37 2006/04/25 15:43:02 albertel Exp $
+// $Id: parameter.html,v 1.45 2007/06/13 01:01:33 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(' Yes, and the scope of student selected slot is a single resource. ');
- choicewrite(' ');
- }
+ choicewrite(' ');
+ choicewrite(' ');
choicewrite('
');
}
}
@@ -662,7 +662,7 @@ function draw() {
choicewrite('');
}
- choicewrite('');
+ choicewrite('');
choiceend();
}
@@ -682,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') {
@@ -838,7 +838,14 @@ function init() {
}
if (ptype=='string') {
- sopt('default','Default');
+ //sopt('default','Default');
+ if (pscat == 'yesno') { sopt('yesno','Yes/No'); }
+ else if (pscat == 'examtype') { sopt('examtype','Exam Type'); }
+ else if (pscat == 'questiontype') { sopt('questiontype','Question Type'); }
+ else if (pscat == 'ip') { sopt('ip','IP Number/Name'); }
+ else if (pscat == 'fileext') { sopt('fileext','File Extension'); }
+ else if (pscat == 'useslots') { sopt('useslots','Slots control access'); }
+ else { pscat = 'any'; }
sopt('any','String Value');
}
@@ -863,7 +870,7 @@ function init() {
if (pcode!='') {
selwrite('parent.opener.'+pcode+'();');
}
- selwrite('">Store ');
+ selwrite('">Save ');
selwrite('