--- rat/client/parameter.html 2003/05/01 23:59:37 1.23 +++ rat/client/parameter.html 2005/06/20 19:52:51 1.32 @@ -3,7 +3,7 @@ The LearningOnline Network with CAPA Parameter Input Window // -// $Id: parameter.html,v 1.23 2003/05/01 23:59:37 www Exp $ +// $Id: parameter.html,v 1.32 2005/06/20 19:52:51 albertel Exp $ // // Copyright Michigan State University Board of Trustees // @@ -27,9 +27,6 @@ Parameter Input Window // // http://www.lon-capa.org/ // -06/16/00,06/17,11/17,11/18,11/23,11/27,11/28,12/15,12/16, -03/21/01,03/24,06/26 Gerd Kortemeyer -08/08 Gerd Kortemeyer --> LON-CAPA @@ -45,6 +42,10 @@ var pscat=''; var pmarker=''; var pname=''; +var defhour=0; +var defmin=0; +var defsec=0; + var svalue; var stype; var smarker; @@ -304,6 +305,17 @@ function stringeval() { draw(); } +function radiostringeval(newval) { + svalue=newval; + draw(); +} + +function callradiostringeval(newval) { + return 'onChange="parent.radiostringeval(\'' + +newval+'\')" onClick="parent.radiostringeval(\'' + +newval+'\')"'; +} + function intervaldis() { csecs=svalue; cdays=Math.floor(csecs/86400); @@ -420,10 +432,10 @@ function draw() { choicewrite(''); } else { if (pscat=='start') { - tablestart('Starting or opening date and time'); + tablestart('Date and time'); } if (pscat=='end') { - tablestart('Ending or closing date and time'); + tablestart('Date and time'); } if (pscat=='interval') { tablestart('Time interval'); @@ -520,12 +532,92 @@ function draw() { tablestart('Default value or none'); choicewrite(''); } else { - if (pscat=='any') { + if ((pscat=='any') || (pscat=='') || (typeof(pscat)=='undefined')) { tablestart('Text'); - } - choicewrite('Value:'); - choicewrite(''); + choicewrite('Value:'); + choicewrite(''); + } + if (pscat=='yesno') { + tablestart('Yes/No'); + choicewrite('Value:'); + choicewrite('
'); + choicewrite('
'); + } + if (pscat=='examtype') { + tablestart('Exam Type'); + choicewrite('Value:'); + choicewrite('
'); + choicewrite('
'); + } + if (pscat=='questiontype') { + tablestart('Question Type'); + choicewrite('Value:'); + choicewrite('
'); + choicewrite('
'); + choicewrite('
'); + choicewrite('
'); + choicewrite('
'); + choicewrite('
'); + choicewrite('
'); + } + if (pscat=='ip') { + tablestart('IP Number/Name'); + choicewrite('Value:'); + choicewrite(''); + } + if (pscat=='fileext') { + tablestart('Allowed File Extensions'); + choicewrite('Value:'); + choicewrite('
'); + choicewrite('
'); + choicewrite('
'); + choicewrite(''); + } choicewrite(''); } } @@ -638,6 +730,9 @@ function init() { if (pair[0]=='call') { pcode=pair[1]; } if (pair[0]=='marker') { pmarker=pair[1]; } if (pair[0]=='name') { pname=pair[1]; } + if (pair[0]=='defhour') { defhour=pair[1]; } + if (pair[0]=='defmin') { defmin=pair[1]; } + if (pair[0]=='defsec') { defsec=pair[1]; } } svalue=pvalue; @@ -682,6 +777,10 @@ function init() { if ((pvalue!='') && (typeof(pvalue)!="undefined")) { cdate.setTime(pvalue*1000); + } else { + cdate.setSeconds(defsec); + cdate.setMinutes(defmin); + cdate.setHours(defhour); } months[0]='January'; @@ -717,7 +816,7 @@ function init() { if (ptype=='string') { sopt('default','Default'); - sopt('string','String Value'); + sopt('any','String Value'); } if (ptype=='color') { 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.