--- rat/client/parameter.html 2007/08/30 00:02:20 1.46 +++ rat/client/parameter.html 2008/04/05 16:11:03 1.50 @@ -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.50 2008/04/05 16:11:03 www Exp $ // // Copyright Michigan State University Board of Trustees // @@ -556,6 +556,26 @@ function draw() { if (svalue=='no') { choicewrite(' checked'); } choicewrite('> No
'); } + if (pscat=='problemstatus') { + tablestart('Problem Status'); + choicewrite('Value:'); + choicewrite('
'); + choicewrite('
'); + choicewrite('
'); + choicewrite('
'); + } if (pscat=='examtype') { tablestart('Exam Type'); choicewrite('Value:'); @@ -801,11 +821,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 +871,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'); }