--- rat/client/parameter.html 2007/10/17 00:27:19 1.47
+++ rat/client/parameter.html 2010/01/13 18:45:15 1.54
@@ -3,7 +3,7 @@
The LearningOnline Network with CAPA
Parameter Input Window
//
-// $Id: parameter.html,v 1.47 2007/10/17 00:27:19 albertel Exp $
+// $Id: parameter.html,v 1.54 2010/01/13 18:45:15 bisitz Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -81,15 +81,15 @@ function choicewrite(text) {
}
function tablestart(headtext) {
- choicewrite('
'+
+ choicewrite(''+
headtext+' ');
}
function valline(text,id1,id2) {
- choicewrite(''+text+
- ' incl: ');
+ choicewrite(''+text+
+ ' incl: ');
}
function escapeHTML(text) {
@@ -116,11 +116,11 @@ function datecalc() {
function hour() {
var thishour=cdate.getHours();
var i; var j;
- choicewrite('');
+ choicewrite('');
for (i=0;i<=23;i++) {
- choicewrite('');
if (i==12) { choicewrite('noon'); } else {
@@ -140,11 +140,11 @@ function hour() {
function minute() {
var thisminutes=cdate.getMinutes();
var i;
- choicewrite('');
+ choicewrite('');
for (i=0;i<=59;i++) {
- choicewrite(''+i+' ');
}
@@ -154,11 +154,11 @@ function minute() {
function second() {
var thisseconds=cdate.getSeconds();
var i;
- choicewrite('');
+ choicewrite('');
for (i=0;i<=59;i++) {
- choicewrite(''+i+' ');
}
@@ -169,11 +169,11 @@ function second() {
function date() {
var thisdate=cdate.getDate();
var i;
- choicewrite('');
+ choicewrite('');
for (i=1;i<=31;i++) {
- choicewrite(''+i+' ');
}
@@ -190,11 +190,11 @@ function year() {
if (thisyear>nowyear) { loweryear=nowyear-2; }
if (thisyear');
+ choicewrite('');
for (i=loweryear;i<=upperyear;i++) {
- choicewrite(''+i+' ');
}
@@ -204,11 +204,11 @@ function year() {
function month() {
var thismonth=cdate.getMonth();
var i;
- choicewrite('');
+ choicewrite('');
for (i=0;i<=11;i++) {
- choicewrite(''+months[i]+' ');
}
@@ -219,11 +219,11 @@ function month() {
function intminute() {
var thisminutes=cmins;
var i;
- choicewrite('');
+ choicewrite('');
for (i=0;i<=59;i++) {
- choicewrite(''+i+' ');
}
@@ -233,11 +233,11 @@ function intminute() {
function inthour() {
var thishours=chours;
var i;
- choicewrite('');
+ choicewrite('');
for (i=0;i<=23;i++) {
- choicewrite(''+i+' ');
}
@@ -247,11 +247,11 @@ function inthour() {
function intsecond() {
var thisseconds=csecs;
var i;
- choicewrite('');
+ choicewrite('');
for (i=0;i<=59;i++) {
- choicewrite(''+i+' ');
}
@@ -262,11 +262,11 @@ function intsecond() {
function intday() {
var thisdate=cdays;
var i;
- choicewrite('');
+ choicewrite('');
for (i=0;i<=31;i++) {
- choicewrite(''+i+' ');
}
@@ -320,8 +320,8 @@ function radiostringeval(newval) {
}
function callradiostringeval(newval) {
- return 'onChange="parent.radiostringeval(\''
- +newval+'\')" onClick="parent.radiostringeval(\''
+ return 'onchange="parent.radiostringeval(\''
+ +newval+'\')" onclick="parent.radiostringeval(\''
+newval+'\')"';
}
@@ -355,7 +355,7 @@ function colorfield(ir,ig,ib) {
function draw() {
choicestart();
- choicewrite('
');
} else {
- choicewrite(' '
+ choicewrite(' '
+cdate.toString()+
- ' Date: ');
+ ' Date: ');
month();date();year();
- choicewrite(' Time:'
- +' ');hour();choicewrite('h ');minute();
+ choicewrite(' Time:'
+ +' ');hour();choicewrite('h ');minute();
choicewrite('m ');second();
choicewrite('s
');
}
@@ -479,12 +479,12 @@ function draw() {
} else {
if (pscat=='range') {
tablestart('Integer range');
- choicewrite('Lower Value:'+
- ' ');
- choicewrite('Upper Value:'+
- ' ');
+ choicewrite('Lower Value:'+
+ ' ');
+ choicewrite('Upper Value:'+
+ ' ');
var range=new Array;
if ((svalue!='') && (typeof(svalue)!="undefined")) {
range=svalue.split(',');
@@ -507,10 +507,10 @@ function draw() {
if (pscat=='any') {
tablestart('Integer');
}
- choicewrite('Value: ');
- choicewrite(' ');
- choicewrite(' ');
+ choicewrite('Value: ');
+ choicewrite(' ');
+ choicewrite(' ');
}
}
}
@@ -529,10 +529,10 @@ function draw() {
if (pscat=='any') {
tablestart('Floating point number');
}
- choicewrite('Value: ');
- choicewrite(' ');
- choicewrite(' ');
+ choicewrite('Value: ');
+ choicewrite(' ');
+ choicewrite(' ');
}
}
@@ -540,130 +540,134 @@ function draw() {
if ((pscat=='any') || (pscat=='') || (pscat=='default') ||
(typeof(pscat)=='undefined')) {
tablestart('Text');
- choicewrite('Value: ');
+ choicewrite(' Value: ');
choicewrite(' ');
+ '" type="text" onchange="parent.stringeval()" />');
}
if (pscat=='yesno') {
tablestart('Yes/No');
- choicewrite(' Value: ');
+ choicewrite(' Value: ');
choicewrite(' Yes ');
+ if (svalue=='yes') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Yes ');
choicewrite(' No ');
+ if (svalue=='no') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> No ');
}
if (pscat=='problemstatus') {
tablestart('Problem Status');
- choicewrite(' Value: ');
+ choicewrite(' Value: ');
choicewrite(' Yes ');
+ if (svalue=='yes') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Yes ');
+ choicewrite(' Yes, and show correct answer if they exceed the maximum number of tries. ');
choicewrite(' No, don\'t show correct/incorrect feedback. ');
+ if (svalue=='no') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> No, don\'t show correct/incorrect feedback. ');
choicewrite(' No, show no feedback at all. ');
+ if (svalue=='no_feedback_ever') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> No, show no feedback at all. ');
}
if (pscat=='examtype') {
tablestart('Exam Type');
- choicewrite(' Value: ');
+ choicewrite(' Value: ');
choicewrite(' Online ');
+ if (svalue=='online') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Online ');
choicewrite(' Check out ');
+ if (svalue=='checkout') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Check out ');
}
if (pscat=='questiontype') {
tablestart('Question Type');
- choicewrite(' Value: ');
+ choicewrite(' Value: ');
choicewrite(' Standard Problem ');
+ if (svalue=='problem') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Standard Problem ');
// choicewrite(' Quiz ');
+// if (svalue=='quiz') { choicewrite(' checked="checked"'); }
+// choicewrite(' /> Quiz ');
choicewrite(' Practice ');
+ if (svalue=='practice') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Practice ');
choicewrite(' Exam ');
+ if (svalue=='exam') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Exam ');
// choicewrite(' Assessment ');
+// if (svalue=='assess') { choicewrite(' checked="checked"'); }
+// choicewrite(' /> Assessment ');
choicewrite(' Survey ');
+ if (svalue=='survey') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Survey ');
// choicewrite(' Input Form ');
choicewrite(' Library ');
+ if (svalue=='library') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Library ');
}
if (pscat=='ip') {
tablestart('IP Number/Name');
- choicewrite(' Value: ');
+ choicewrite(' Value: ');
choicewrite(' ');
+ '" onchange="parent.stringeval()" />');
}
if (pscat=='fileext') {
tablestart('Allowed File Extensions');
- choicewrite(' Value: ');
+ choicewrite(' Value: ');
choicewrite(' Plain Text ');
+ if (svalue=='txt') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Plain Text ');
choicewrite(' Picture File ');
+ if (svalue=='png,jpg,jpeg,gif') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Picture File ');
choicewrite(' Office Document ');
+ if (svalue=='doc,xls,ppt') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Office Document ');
choicewrite(' ');
+ '" onchange="parent.stringeval()" />');
}
if (pscat=='useslots') {
tablestart('Slots control access');
- choicewrite(' Value: ');
+ choicewrite(' Value: ');
choicewrite(' No ');
+ if (svalue=='no') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> No ');
choicewrite(' Yes, and the scope of student selected slot is a single resource. ');
+ if (svalue=='resource') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Yes, and the scope of student selected slot is a single resource. ');
choicewrite(' Yes, and the scope of student selected slot is the enclosing map/folder. When checking in, it applies to only one resource. ');
+ if (svalue=='map') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Yes, and the scope of student selected slot is the enclosing map/folder. When checking in, it applies to only one resource. ');
choicewrite(' Yes, and the scope of student selected slot is the enclosing map/folder. When checking in, all resources in the map/folder are checked in.. ');
- choicewrite(' ');
+ if (svalue=='map_map') { choicewrite(' checked="checked"'); }
+ choicewrite(' /> Yes, and the scope of student selected slot is the enclosing map/folder. When checking in, all resources in the map/folder are checked in.. ');
+ choicewrite(' ');
}
}
@@ -693,7 +697,7 @@ function draw() {
function sopt(va,text) {
selwrite(''+text+' ');
}
@@ -805,8 +809,8 @@ function init() {
this.window.selector.document.clear();
selwrite('');
- selwrite('