version 1.24, 2003/05/22 23:13:58
|
version 1.25, 2003/07/10 08:34:43
|
Line 304 function stringeval() {
|
Line 304 function stringeval() {
|
draw(); |
draw(); |
} |
} |
|
|
|
function radiostringeval(newval) { |
|
svalue=newval; |
|
draw(); |
|
} |
|
|
function intervaldis() { |
function intervaldis() { |
csecs=svalue; |
csecs=svalue; |
cdays=Math.floor(csecs/86400); |
cdays=Math.floor(csecs/86400); |
Line 520 function draw() {
|
Line 525 function draw() {
|
tablestart('Default value or none'); |
tablestart('Default value or none'); |
choicewrite('</table>'); |
choicewrite('</table>'); |
} else { |
} else { |
if (pscat=='any') { |
if ((pscat=='any') || (pscat=='') || (typeof(pscat)=='undefined')) { |
tablestart('Text'); |
tablestart('Text'); |
|
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
|
choicewrite('<input name="stringval" size="20" value="'+svalue+ |
|
'" type="text" onChange="parent.stringeval()">'); |
|
} |
|
if (pscat=='yesno') { |
|
tablestart('Yes/No'); |
|
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
|
choicewrite('<input name="stringval" value="yes"'+ |
|
' type="radio" onChange="parent.radiostringeval(\'yes\')"'); |
|
if (svalue=='yes') { choicewrite(' checked'); } |
|
choicewrite('> Yes<br />'); |
|
choicewrite('<input name="stringval" value="no"'+ |
|
' type="radio" onChange="parent.radiostringeval(\'no\')"'); |
|
if (svalue=='no') { choicewrite(' checked'); } |
|
choicewrite('> No<br />'); |
|
} |
|
if (pscat=='examtype') { |
|
tablestart('Exam Type'); |
|
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
|
choicewrite('<input name="stringval" value="online"'+ |
|
' type="radio" onChange="parent.radiostringeval(\'online\')"'); |
|
if (svalue=='online') { choicewrite(' checked'); } |
|
choicewrite('> Online<br />'); |
|
choicewrite('<input name="stringval" value="checkout"'+ |
|
' type="radio" onChange="parent.radiostringeval(\'checkout\')"'); |
|
if (svalue=='checkout') { choicewrite(' checked'); } |
|
choicewrite('> Check out<br />'); |
|
} |
|
if (pscat=='questiontype') { |
|
tablestart('Question Type'); |
|
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
|
choicewrite('<input name="stringval" value="problem"'+ |
|
' type="radio" onChange="parent.radiostringeval(\'problem\')"'); |
|
if (svalue=='problem') { choicewrite(' checked'); } |
|
choicewrite('> Standard Problem<br />'); |
|
choicewrite('<input name="stringval" value="quiz"'+ |
|
' type="radio" onChange="parent.radiostringeval(\'quiz\')"'); |
|
if (svalue=='quiz') { choicewrite(' checked'); } |
|
choicewrite('> Quiz<br />'); |
|
choicewrite('<input name="stringval" value="exam"'+ |
|
' type="radio" onChange="parent.radiostringeval(\'exam\')"'); |
|
if (svalue=='exam') { choicewrite(' checked'); } |
|
choicewrite('> Exam<br />'); |
|
choicewrite('<input name="stringval" value="assess"'+ |
|
' type="radio" onChange="parent.radiostringeval(\'assess\')"'); |
|
if (svalue=='assess') { choicewrite(' checked'); } |
|
choicewrite('> Assessment<br />'); |
|
choicewrite('<input name="stringval" value="survey"'+ |
|
' type="radio" onChange="parent.radiostringeval(\'survey\')"'); |
|
if (svalue=='survey') { choicewrite(' checked'); } |
|
choicewrite('> Survey<br />'); |
|
choicewrite('<input name="stringval" value="form"'+ |
|
' type="radio" onChange="parent.radiostringeval(\'form\')"'); |
|
if (svalue=='form') { choicewrite(' checked'); } |
|
choicewrite('> Input Form<br />'); |
|
choicewrite('<input name="stringval" value="library"'+ |
|
' type="radio" onChange="parent.radiostringeval(\'library\')"'); |
|
if (svalue=='library') { choicewrite(' checked'); } |
|
choicewrite('> Library<br />'); |
|
} |
|
if (pscat=='ip') { |
|
tablestart('IP Number/Name'); |
|
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
|
choicewrite('<input name=stringval size=20 value="'+svalue+ |
|
'" onChange="parent.stringeval()">'); |
} |
} |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
|
choicewrite('<input name=stringval size=20 value="'+svalue+ |
|
'" name=stringval onChange="parent.stringeval()">'); |
|
choicewrite('</td></table>'); |
choicewrite('</td></table>'); |
} |
} |
} |
} |