version 1.30, 2005/06/06 16:06:25
|
version 1.32, 2005/06/20 19:52:51
|
Line 42 var pscat='';
|
Line 42 var pscat='';
|
var pmarker=''; |
var pmarker=''; |
var pname=''; |
var pname=''; |
|
|
|
var defhour=0; |
|
var defmin=0; |
|
var defsec=0; |
|
|
var svalue; |
var svalue; |
var stype; |
var stype; |
var smarker; |
var smarker; |
Line 537 function draw() {
|
Line 541 function draw() {
|
if (pscat=='yesno') { |
if (pscat=='yesno') { |
tablestart('Yes/No'); |
tablestart('Yes/No'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<input name="stringval" value="yes"'+ |
choicewrite('<label><input name="stringval" value="yes"'+ |
' type="radio" '+callradiostringeval('yes')); |
' type="radio" '+callradiostringeval('yes')); |
if (svalue=='yes') { choicewrite(' checked'); } |
if (svalue=='yes') { choicewrite(' checked'); } |
choicewrite('> Yes<br />'); |
choicewrite('> Yes</label><br />'); |
choicewrite('<input name="stringval" value="no"'+ |
choicewrite('<label><input name="stringval" value="no"'+ |
' type="radio" '+callradiostringeval('no')); |
' type="radio" '+callradiostringeval('no')); |
if (svalue=='no') { choicewrite(' checked'); } |
if (svalue=='no') { choicewrite(' checked'); } |
choicewrite('> No<br />'); |
choicewrite('> No</label><br />'); |
} |
} |
if (pscat=='examtype') { |
if (pscat=='examtype') { |
tablestart('Exam Type'); |
tablestart('Exam Type'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<input name="stringval" value="online"'+ |
choicewrite('<label><input name="stringval" value="online"'+ |
' type="radio" '+callradiostringeval('online')); |
' type="radio" '+callradiostringeval('online')); |
if (svalue=='online') { choicewrite(' checked'); } |
if (svalue=='online') { choicewrite(' checked'); } |
choicewrite('> Online<br />'); |
choicewrite('> Online</label><br />'); |
choicewrite('<input name="stringval" value="checkout"'+ |
choicewrite('<label><input name="stringval" value="checkout"'+ |
' type="radio" '+callradiostringeval('checkout')); |
' type="radio" '+callradiostringeval('checkout')); |
if (svalue=='checkout') { choicewrite(' checked'); } |
if (svalue=='checkout') { choicewrite(' checked'); } |
choicewrite('> Check out<br />'); |
choicewrite('> Check out</label><br />'); |
} |
} |
if (pscat=='questiontype') { |
if (pscat=='questiontype') { |
tablestart('Question Type'); |
tablestart('Question Type'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<input name="stringval" value="problem"'+ |
choicewrite('<label><input name="stringval" value="problem"'+ |
' type="radio" '+callradiostringeval('problem')); |
' type="radio" '+callradiostringeval('problem')); |
if (svalue=='problem') { choicewrite(' checked'); } |
if (svalue=='problem') { choicewrite(' checked'); } |
choicewrite('> Standard Problem<br />'); |
choicewrite('> Standard Problem</label><br />'); |
choicewrite('<input name="stringval" value="quiz"'+ |
choicewrite('<label><input name="stringval" value="quiz"'+ |
' type="radio" '+callradiostringeval('quiz')); |
' type="radio" '+callradiostringeval('quiz')); |
if (svalue=='quiz') { choicewrite(' checked'); } |
if (svalue=='quiz') { choicewrite(' checked'); } |
choicewrite('> Quiz<br />'); |
choicewrite('> Quiz</label><br />'); |
choicewrite('<input name="stringval" value="exam"'+ |
choicewrite('<label><input name="stringval" value="exam"'+ |
' type="radio" '+callradiostringeval('exam')); |
' type="radio" '+callradiostringeval('exam')); |
if (svalue=='exam') { choicewrite(' checked'); } |
if (svalue=='exam') { choicewrite(' checked'); } |
choicewrite('> Exam<br />'); |
choicewrite('> Exam</label><br />'); |
choicewrite('<input name="stringval" value="assess"'+ |
choicewrite('<label><input name="stringval" value="assess"'+ |
' type="radio" '+callradiostringeval('assess')); |
' type="radio" '+callradiostringeval('assess')); |
if (svalue=='assess') { choicewrite(' checked'); } |
if (svalue=='assess') { choicewrite(' checked'); } |
choicewrite('> Assessment<br />'); |
choicewrite('> Assessment</label><br />'); |
choicewrite('<input name="stringval" value="survey"'+ |
choicewrite('<label><input name="stringval" value="survey"'+ |
' type="radio" '+callradiostringeval('survey')); |
' type="radio" '+callradiostringeval('survey')); |
if (svalue=='survey') { choicewrite(' checked'); } |
if (svalue=='survey') { choicewrite(' checked'); } |
choicewrite('> Survey<br />'); |
choicewrite('> Survey</label><br />'); |
choicewrite('<input name="stringval" value="form"'+ |
choicewrite('<label><input name="stringval" value="form"'+ |
' type="radio" '+callradiostringeval('form')); |
' type="radio" '+callradiostringeval('form')); |
if (svalue=='form') { choicewrite(' checked'); } |
if (svalue=='form') { choicewrite(' checked'); } |
choicewrite('> Input Form<br />'); |
choicewrite('> Input Form</label><br />'); |
choicewrite('<input name="stringval" value="library"'+ |
choicewrite('<label><input name="stringval" value="library"'+ |
' type="radio" '+callradiostringeval('library')); |
' type="radio" '+callradiostringeval('library')); |
if (svalue=='library') { choicewrite(' checked'); } |
if (svalue=='library') { choicewrite(' checked'); } |
choicewrite('> Library<br />'); |
choicewrite('> Library</label><br />'); |
} |
} |
if (pscat=='ip') { |
if (pscat=='ip') { |
tablestart('IP Number/Name'); |
tablestart('IP Number/Name'); |
Line 599 function draw() {
|
Line 603 function draw() {
|
if (pscat=='fileext') { |
if (pscat=='fileext') { |
tablestart('Allowed File Extensions'); |
tablestart('Allowed File Extensions'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<input name="radstringval" value="txt"'+ |
choicewrite('<label><input name="radstringval" value="txt"'+ |
' type="radio" '+callradiostringeval('txt')); |
' type="radio" '+callradiostringeval('txt')); |
if (svalue=='txt') { choicewrite(' checked'); } |
if (svalue=='txt') { choicewrite(' checked'); } |
choicewrite('> Plain Text<br />'); |
choicewrite('> Plain Text</label><br />'); |
choicewrite('<input name="radstringval" value="png,jpg,jpeg,gif"'+ |
choicewrite('<label><input name="radstringval" value="png,jpg,jpeg,gif"'+ |
' type="radio" '+callradiostringeval('png,jpg,jpeg,gif')); |
' type="radio" '+callradiostringeval('png,jpg,jpeg,gif')); |
if (svalue=='png,jpg,jpeg,gif') { choicewrite(' checked'); } |
if (svalue=='png,jpg,jpeg,gif') { choicewrite(' checked'); } |
choicewrite('> Picture File<br />'); |
choicewrite('> Picture File</label><br />'); |
choicewrite('<input name="radstringval" value="doc,xls,ppt"'+ |
choicewrite('<label><input name="radstringval" value="doc,xls,ppt"'+ |
' type="radio" '+callradiostringeval('doc,xls,ppt')); |
' type="radio" '+callradiostringeval('doc,xls,ppt')); |
if (svalue=='doc,xls,ppt') { choicewrite(' checked'); } |
if (svalue=='doc,xls,ppt') { choicewrite(' checked'); } |
choicewrite('> Office Document<br />'); |
choicewrite('> Office Document</label><br />'); |
choicewrite('<input name="stringval" size="20" value="'+svalue+ |
choicewrite('<input name="stringval" size="20" value="'+svalue+ |
'" onChange="parent.stringeval()">'); |
'" onChange="parent.stringeval()">'); |
} |
} |
Line 726 function init() {
|
Line 730 function init() {
|
if (pair[0]=='call') { pcode=pair[1]; } |
if (pair[0]=='call') { pcode=pair[1]; } |
if (pair[0]=='marker') { pmarker=pair[1]; } |
if (pair[0]=='marker') { pmarker=pair[1]; } |
if (pair[0]=='name') { pname=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; |
svalue=pvalue; |
Line 771 function init() {
|
Line 778 function init() {
|
if ((pvalue!='') && (typeof(pvalue)!="undefined")) { |
if ((pvalue!='') && (typeof(pvalue)!="undefined")) { |
cdate.setTime(pvalue*1000); |
cdate.setTime(pvalue*1000); |
} else { |
} else { |
cdate.setSeconds(0); |
cdate.setSeconds(defsec); |
cdate.setMinutes(0); |
cdate.setMinutes(defmin); |
|
cdate.setHours(defhour); |
} |
} |
|
|
months[0]='January'; |
months[0]='January'; |