--- rat/client/parameter.html 2007/08/30 00:02:20 1.46 +++ rat/client/parameter.html 2010/02/05 18:16:23 1.55 @@ -3,7 +3,7 @@ The LearningOnline Network with CAPA Parameter Input Window // -// $Id: parameter.html,v 1.46 2007/08/30 00:02:20 albertel Exp $ +// $Id: parameter.html,v 1.55 2010/02/05 18:16:23 bisitz Exp $ // // Copyright Michigan State University Board of Trustees // @@ -68,7 +68,21 @@ function selwrite(text) { function choicestart() { this.window.choices.document.clear(); - choicewrite(''); + choicewrite(''); + choicewrite(''); + choicewrite(''); + choicewrite(''); } function choiceend() { @@ -81,15 +95,15 @@ function choicewrite(text) { } function tablestart(headtext) { - choicewrite('
'+ + choicewrite(''); } function valline(text,id1,id2) { - choicewrite(''); + choicewrite(''); } function escapeHTML(text) { @@ -116,11 +130,11 @@ function datecalc() { function hour() { var thishour=cdate.getHours(); var i; var j; - choicewrite(''); for (i=0;i<=23;i++) { - choicewrite(''); } @@ -154,11 +168,11 @@ function minute() { function second() { var thisseconds=cdate.getSeconds(); var i; - choicewrite(''); for (i=0;i<=59;i++) { - choicewrite(''); } @@ -169,11 +183,11 @@ function second() { function date() { var thisdate=cdate.getDate(); var i; - choicewrite(''); for (i=1;i<=31;i++) { - choicewrite(''); } @@ -190,11 +204,11 @@ function year() { if (thisyear>nowyear) { loweryear=nowyear-2; } if (thisyear'); + choicewrite(''); + choicewrite(''); + choicewrite(''); + choicewrite(''); + choicewrite(''); + choicewrite('
'+ headtext+'
'+text+ - 'incl:
'+text+ + 'incl:
'); + choicewrite('
'); intervaldis(); - choicewrite('
Time:' - +''); + choicewrite('
Time:' + +''); intday();choicewrite('days '); inthour();choicewrite('hours '); intminute(); choicewrite('mins '); intsecond(); choicewrite('secs
'); } 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 +493,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 +521,10 @@ function draw() { if (pscat=='any') { tablestart('Integer'); } - choicewrite('Value:'); - choicewrite(''); - choicewrite(''); + choicewrite('Value:'); + choicewrite(''); + choicewrite(''); } } } @@ -529,10 +543,10 @@ function draw() { if (pscat=='any') { tablestart('Floating point number'); } - choicewrite('Value:'); - choicewrite(''); - choicewrite(''); + choicewrite('Value:'); + choicewrite(''); + choicewrite(''); } } @@ -540,114 +554,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('
'); + if (svalue=='yes') { choicewrite(' checked="checked"'); } + choicewrite(' /> Yes
'); choicewrite('
'); + if (svalue=='no') { choicewrite(' checked="checked"'); } + choicewrite(' /> No
'); + } + if (pscat=='problemstatus') { + tablestart('Problem Status'); + choicewrite('Value:'); + choicewrite('
'); + choicewrite('
'); + choicewrite('
'); + choicewrite('
'); } if (pscat=='examtype') { tablestart('Exam Type'); - choicewrite('Value:'); + choicewrite('Value:'); choicewrite('
'); + if (svalue=='online') { choicewrite(' checked="checked"'); } + choicewrite(' /> Online
'); choicewrite('
'); + if (svalue=='checkout') { choicewrite(' checked="checked"'); } + choicewrite(' /> Check out
'); } if (pscat=='questiontype') { tablestart('Question Type'); - choicewrite('Value:'); + choicewrite('Value:'); choicewrite('
'); + if (svalue=='problem') { choicewrite(' checked="checked"'); } + choicewrite(' /> Standard Problem
'); // choicewrite('
'); +// if (svalue=='quiz') { choicewrite(' checked="checked"'); } +// choicewrite(' /> Quiz
'); choicewrite('
'); + if (svalue=='practice') { choicewrite(' checked="checked"'); } + choicewrite(' /> Practice
'); choicewrite('
'); + if (svalue=='exam') { choicewrite(' checked="checked"'); } + choicewrite(' /> Exam
'); // choicewrite('
'); +// if (svalue=='assess') { choicewrite(' checked="checked"'); } +// choicewrite(' /> Assessment
'); choicewrite('
'); + if (svalue=='survey') { choicewrite(' checked="checked"'); } + choicewrite(' /> Survey
'); // choicewrite('
'); choicewrite('
'); + 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('
'); + if (svalue=='txt') { choicewrite(' checked="checked"'); } + choicewrite(' /> Plain Text
'); choicewrite('
'); + if (svalue=='png,jpg,jpeg,gif') { choicewrite(' checked="checked"'); } + choicewrite(' /> Picture File
'); choicewrite('
'); + 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('
'); + if (svalue=='no') { choicewrite(' checked="checked"'); } + choicewrite(' /> No
'); choicewrite('
'); + if (svalue=='resource') { choicewrite(' checked="checked"'); } + choicewrite(' /> Yes, and the scope of student selected slot is a single resource.
'); choicewrite('
'); + 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('
'); - 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(''); } } @@ -677,7 +711,7 @@ function draw() { function sopt(va,text) { selwrite(''); } @@ -787,10 +821,21 @@ function init() { } this.window.selector.document.clear(); - selwrite(''); - - selwrite('
'+pname+'
'); - selwrite(''); if (ptype=='tolerance') { sopt('default','Default'); @@ -801,11 +846,14 @@ function init() { } if (ptype=='date') { - sopt('default','Default'); - sopt('start','Starting Date'); - sopt('end','Ending Date'); - sopt('interval','Time Interval'); - + if (pscat != 'interval') { + sopt('default','Default'); + sopt('start','Starting Date'); + sopt('end','Ending Date'); + } else { + sopt('interval','Time Interval'); + } + if ((pvalue!='') && (typeof(pvalue)!="undefined")) { cdate.setTime(pvalue*1000); } else { @@ -848,6 +896,7 @@ function init() { if (ptype=='string') { //sopt('default','Default'); if (pscat == 'yesno') { sopt('yesno','Yes/No'); } + else if (pscat == 'problemstatus'){ sopt('problemstatus','Problem Status'); } 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'); } @@ -922,8 +971,8 @@ function init() { - - + +