version 1.51, 2009/04/23 17:31:29
|
version 1.52, 2010/01/08 17:39:33
|
Line 81 function choicewrite(text) {
|
Line 81 function choicewrite(text) {
|
} |
} |
|
|
function tablestart(headtext) { |
function tablestart(headtext) { |
choicewrite('<table><tr bgcolor="#AAFFAA"><th colspan="3">'+ |
choicewrite('<table><tr bgcolor="#C5DB99"><th colspan="3">'+ |
headtext+'</th></tr>'); |
headtext+'</th></tr>'); |
} |
} |
|
|
function valline(text,id1,id2) { |
function valline(text,id1,id2) { |
choicewrite('<tr bgcolor="#AAFFAA"><td>'+text+ |
choicewrite('<tr><td>'+text+ |
'</td><td><input type="text" size="4" name="val'+ |
'</td><td><input type="text" size="4" name="val'+ |
id1+'"></td><td>incl:<input type="checkbox" name="val'+ |
id1+'"></td><td>incl:<input type="checkbox" name="val'+ |
id2+'"></td></tr>'); |
id2+'"></td></tr>'); |
Line 448 function draw() {
|
Line 448 function draw() {
|
} |
} |
if (pscat=='interval') { |
if (pscat=='interval') { |
tablestart('Time interval'); |
tablestart('Time interval'); |
choicewrite('<tr bgcolor="#AAFFAA"><td colspan="3">'); |
choicewrite('<tr><td colspan="3">'); |
intervaldis(); |
intervaldis(); |
choicewrite('</td></tr><tr bgcolor="#AAFFAA"><td>Time:' |
choicewrite('</td></tr><tr><td>Time:' |
+'</td><td colspan="2">'); |
+'</td><td colspan="2">'); |
intday();choicewrite('days '); |
intday();choicewrite('days '); |
inthour();choicewrite('hours '); |
inthour();choicewrite('hours '); |
intminute(); choicewrite('mins '); intsecond(); |
intminute(); choicewrite('mins '); intsecond(); |
choicewrite('secs</td></tr></table>'); |
choicewrite('secs</td></tr></table>'); |
} else { |
} else { |
choicewrite('<tr bgcolor="#AAFFAA"><td colspan="3">' |
choicewrite('<tr><td colspan="3">' |
+cdate.toString()+ |
+cdate.toString()+ |
'</td></tr><tr bgcolor="#AAFFAA"><td>Date:</td><td colspan="2">'); |
'</td></tr><tr><td>Date:</td><td colspan="2">'); |
month();date();year(); |
month();date();year(); |
choicewrite('</td></tr><tr bgcolor="#AAFFAA"><td>Time:' |
choicewrite('</td></tr><tr><td>Time:' |
+'</td><td colspan="2">');hour();choicewrite('h ');minute(); |
+'</td><td colspan="2">');hour();choicewrite('h ');minute(); |
choicewrite('m ');second(); |
choicewrite('m ');second(); |
choicewrite('s</td></tr></table>'); |
choicewrite('s</td></tr></table>'); |
Line 479 function draw() {
|
Line 479 function draw() {
|
} else { |
} else { |
if (pscat=='range') { |
if (pscat=='range') { |
tablestart('Integer range'); |
tablestart('Integer range'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Lower Value:'+ |
choicewrite('<tr><td>Lower Value:'+ |
'</td><td colspan="2"><input type="text" size="4" name="val2'+ |
'</td><td colspan="2"><input type="text" size="4" name="val2'+ |
'"></td></tr>'); |
'"></td></tr>'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Upper Value:'+ |
choicewrite('<tr><td>Upper Value:'+ |
'</td><td colspan="2"><input type="text" size="4" name="val4'+ |
'</td><td colspan="2"><input type="text" size="4" name="val4'+ |
'"></td></tr></table>'); |
'"></td></tr></table>'); |
var range=new Array; |
var range=new Array; |
Line 507 function draw() {
|
Line 507 function draw() {
|
if (pscat=='any') { |
if (pscat=='any') { |
tablestart('Integer'); |
tablestart('Integer'); |
} |
} |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">'); |
choicewrite('<tr><td>Value:</td><td colspan="2">'); |
choicewrite('<input name="intval" size="10" value="'+escapeHTML(svalue)+ |
choicewrite('<input name="intval" size="10" value="'+escapeHTML(svalue)+ |
'" name=intval onChange="parent.integereval()">'); |
'" name=intval onChange="parent.integereval()">'); |
choicewrite('</td></table>'); |
choicewrite('</td></table>'); |
Line 529 function draw() {
|
Line 529 function draw() {
|
if (pscat=='any') { |
if (pscat=='any') { |
tablestart('Floating point number'); |
tablestart('Floating point number'); |
} |
} |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">'); |
choicewrite('<tr><td>Value:</td><td colspan="2">'); |
choicewrite('<input name="floatval" size="10" value="'+escapeHTML(svalue)+ |
choicewrite('<input name="floatval" size="10" value="'+escapeHTML(svalue)+ |
'" name=floatval onChange="parent.floateval()">'); |
'" name=floatval onChange="parent.floateval()">'); |
choicewrite('</td></table>'); |
choicewrite('</td></table>'); |
Line 540 function draw() {
|
Line 540 function draw() {
|
if ((pscat=='any') || (pscat=='') || (pscat=='default') || |
if ((pscat=='any') || (pscat=='') || (pscat=='default') || |
(typeof(pscat)=='undefined')) { |
(typeof(pscat)=='undefined')) { |
tablestart('Text'); |
tablestart('Text'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">'); |
choicewrite('<tr><td>Value:</td><td colspan="2">'); |
choicewrite('<input name="stringval" size="20" value="'+escapeHTML(svalue)+ |
choicewrite('<input name="stringval" size="20" value="'+escapeHTML(svalue)+ |
'" type="text" onChange="parent.stringeval()">'); |
'" type="text" onChange="parent.stringeval()">'); |
} |
} |
if (pscat=='yesno') { |
if (pscat=='yesno') { |
tablestart('Yes/No'); |
tablestart('Yes/No'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">'); |
choicewrite('<tr><td>Value:</td><td colspan="2">'); |
choicewrite('<label><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'); } |
Line 558 function draw() {
|
Line 558 function draw() {
|
} |
} |
if (pscat=='problemstatus') { |
if (pscat=='problemstatus') { |
tablestart('Problem Status'); |
tablestart('Problem Status'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">'); |
choicewrite('<tr><td>Value:</td><td colspan="2">'); |
choicewrite('<label><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'); } |
Line 578 function draw() {
|
Line 578 function draw() {
|
} |
} |
if (pscat=='examtype') { |
if (pscat=='examtype') { |
tablestart('Exam Type'); |
tablestart('Exam Type'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">'); |
choicewrite('<tr><td>Value:</td><td colspan="2">'); |
choicewrite('<label><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'); } |
Line 590 function draw() {
|
Line 590 function draw() {
|
} |
} |
if (pscat=='questiontype') { |
if (pscat=='questiontype') { |
tablestart('Question Type'); |
tablestart('Question Type'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">'); |
choicewrite('<tr><td>Value:</td><td colspan="2">'); |
choicewrite('<label><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'); } |
Line 626 function draw() {
|
Line 626 function draw() {
|
} |
} |
if (pscat=='ip') { |
if (pscat=='ip') { |
tablestart('IP Number/Name'); |
tablestart('IP Number/Name'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">'); |
choicewrite('<tr><td>Value:</td><td colspan="2">'); |
choicewrite('<input name="stringval" size="20" value="'+escapeHTML(svalue)+ |
choicewrite('<input name="stringval" size="20" value="'+escapeHTML(svalue)+ |
'" onChange="parent.stringeval()">'); |
'" onChange="parent.stringeval()">'); |
} |
} |
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><td>Value:</td><td colspan="2">'); |
choicewrite('<label><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'); } |
Line 650 function draw() {
|
Line 650 function draw() {
|
} |
} |
if (pscat=='useslots') { |
if (pscat=='useslots') { |
tablestart('Slots control access'); |
tablestart('Slots control access'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan="2">'); |
choicewrite('<tr><td>Value:</td><td colspan="2">'); |
choicewrite('<label><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'); } |