version 1.17, 2002/03/25 21:01:12
|
version 1.24, 2003/05/22 23:13:58
|
Line 29 Parameter Input Window
|
Line 29 Parameter Input Window
|
// |
// |
06/16/00,06/17,11/17,11/18,11/23,11/27,11/28,12/15,12/16, |
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 |
03/21/01,03/24,06/26 Gerd Kortemeyer |
07/24/01 Scott Harrison |
|
08/08 Gerd Kortemeyer |
08/08 Gerd Kortemeyer |
--> |
--> |
<head> |
<head> |
Line 174 function date() {
|
Line 173 function date() {
|
|
|
function year() { |
function year() { |
var thisyear=cdate.getFullYear(); |
var thisyear=cdate.getFullYear(); |
|
var nowdate=new Date(); |
|
var nowyear=nowdate.getFullYear(); |
|
var loweryear=thisyear-2; |
|
var upperyear=thisyear+5; |
|
if (thisyear>nowyear) { loweryear=nowyear-2; } |
|
if (thisyear<nowyear) { upperyear=nowyear+5; } |
var i; |
var i; |
choicewrite('<select name=year onChange="parent.datecalc();">'); |
choicewrite('<select name=year onChange="parent.datecalc();">'); |
for (i=thisyear-25;i<=thisyear+50;i++) { |
for (i=loweryear;i<=upperyear;i++) { |
choicewrite('<option value='+i); |
choicewrite('<option value='+i); |
if (i==thisyear) { |
if (i==thisyear) { |
choicewrite(' selected'); |
choicewrite(' selected'); |
Line 310 function intervaldis() {
|
Line 315 function intervaldis() {
|
choicewrite(cdays+' days '+chours+' hours ' |
choicewrite(cdays+' days '+chours+' hours ' |
+cmins+' mins '+csecs+' secs'); |
+cmins+' mins '+csecs+' secs'); |
} |
} |
|
|
|
function pickcolor(picked) { |
|
svalue=picked; |
|
draw(); |
|
} |
|
|
|
function colorfield(ir,ig,ib) { |
|
var col=new Array; |
|
col=["00","11","22","44","66","88","AA","CC","DD","EE","FF"]; |
|
var color='#'+col[ir]+col[ig]+col[ib]; |
|
var selection="<font color='"+color+"'>X</font>"; |
|
if (color==svalue) { selection="<font color='#"+col[10-ir]+col[10-ig]+col[10-ib]+"'>X</font>"; } |
|
choicewrite('<td bgcolor="'+color+'"><a href="javascript:parent.pickcolor('+"'"+ |
|
color+"'"+')">'+selection+'</a></td>'); |
|
|
|
} |
|
|
function draw() { |
function draw() { |
choicestart(); |
choicestart(); |
choicewrite('<form name=sch'); |
choicewrite('<form name=sch'); |
Line 399 function draw() {
|
Line 420 function draw() {
|
choicewrite('</table>'); |
choicewrite('</table>'); |
} else { |
} else { |
if (pscat=='start') { |
if (pscat=='start') { |
tablestart('Starting or opening date and time'); |
tablestart('Date and time'); |
} |
} |
if (pscat=='end') { |
if (pscat=='end') { |
tablestart('Ending or closing date and time'); |
tablestart('Date and time'); |
} |
} |
if (pscat=='interval') { |
if (pscat=='interval') { |
tablestart('Time interval'); |
tablestart('Time interval'); |
Line 428 function draw() {
|
Line 449 function draw() {
|
} |
} |
|
|
if (ptype=='int') { |
if (ptype=='int') { |
|
var pscatparts=new Array; |
|
pscatparts=pscat.split(','); |
|
pscat=pscatparts[0]; |
if (pscat=='default') { |
if (pscat=='default') { |
tablestart('Default value or none'); |
tablestart('Default value or none'); |
choicewrite('</table>'); |
choicewrite('</table>'); |
Line 500 function draw() {
|
Line 524 function draw() {
|
tablestart('Text'); |
tablestart('Text'); |
} |
} |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<tr bgcolor="#AAFFAA"><td>Value:</td><td colspan=2>'); |
choicewrite('<input name=intval size=20 value="'+svalue+ |
choicewrite('<input name=stringval size=20 value="'+svalue+ |
'" name=stringval onChange="parent.stringeval()">'); |
'" name=stringval onChange="parent.stringeval()">'); |
choicewrite('</td></table>'); |
choicewrite('</td></table>'); |
} |
} |
} |
} |
|
|
|
if (ptype=='color') { |
|
tablestart('Choose a Color'); |
|
choicewrite('<table>'); |
|
if (svalue) { |
|
choicewrite('<tr><td colspan="9">Current choice:</td><td bgcolor="'+ |
|
svalue+'" colspan="2"> </td></tr>'); |
|
} |
|
for (var ir=0; ir<=10; ir++) { |
|
for (var ig=0; ig<=10; ig++) { |
|
choicewrite('<tr>'); |
|
for (var ib=0; ib<=10; ib++) { |
|
colorfield(ir,ig,ib); |
|
} |
|
choicewrite('</tr>'); |
|
} |
|
} |
|
choicewrite('</table></td></table>'); |
|
} |
|
|
choicewrite('</table></form>'); |
choicewrite('</table></form>'); |
choiceend(); |
choiceend(); |
Line 677 function init() {
|
Line 720 function init() {
|
sopt('string','String Value'); |
sopt('string','String Value'); |
} |
} |
|
|
|
if (ptype=='color') { |
|
sopt('default','Use Default Color'); |
|
sopt('custom','Use Custom Color'); |
|
} |
|
|
selwrite('</select></form>'); |
selwrite('</select></form>'); |
|
|
selwrite('<a href="javascript:parent.assemble();'); |
selwrite('<a href="javascript:parent.assemble();'); |