theHspace=entrybox('<APPLET> Enter the Horizontal spacing', '', theHspace, , 255)
if upcase(theHspace)='#OOPS' then
return
endif
endif
do while valid_number(theHspace)=FALSE
theHspace=entrybox('<APPLET> Enter the Horizontal spacing', '', theHspace, , 255)
if upcase(theHspace)='#OOPS' then
return
endif
enddo
if upcase(leftstr(theAlign, 5)) = 'AUTO_' then
theAlign= rightstr(theAlign, length(theAlign)-5)
else
parse value listbox('<APPLET> Enter the Alignment', upcase(theAlign), '/Enter/None/Abort', 0,0,5,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 theAlign \0
if (button=\0)|(button=\3) then
return
endif
if button=\2 then
theAlign=''
endif
endif
keyin Currentcase('<APPLET CODE="')theCode||Currentcase('" WIDTH=')theWidth||Currentcase(' HEIGHT=')theHeight
if theCodebase /=='' then
keyin currentcase(' CODEBASE="')theCodeBase'"'
endif
if theName /=='' then
keyin currentcase(' NAME="')theName'"'
endif
if theAlt /=='' then
keyin currentcase(' ALT="')theAlt'"'
endif
if theVspace /=='' then
keyin currentcase(' VSPACE=')theVspace
endif
if theHspace /=='' then
keyin currentcase(' HSPACE=')theHspace
endif
if theAlign /=='' then
keyin currentcase(' ALIGN=')theAlign
endif
keyin '>'
insertline '', .line+1
insertline Currentcase('</APPLET>'), .line+2
.line=.line+1
.col=1
defc Area_tags =
universal LastDone
lastDone='Area_tags'
theShape=getFileArrEl('AREA_SHAPE')
theHref=getFileArrEl('AREA_HREF')
theAlt=getFileArrEl('AREA_ALT')
if theShape='' then
theShape='/RECT/CIRCLE/POLY/DEFAULT'
setFileArrEl('AREA_SHAPE', theShape)
endif
if upcase(leftstr(theShape, 5)) == 'AUTO_' then
theShape=rightstr(theShape, length(theShape)-5)
else
parse value listbox('<AREA> Choose the Shape', theShape, '/Enter/Abort', 0,0,4,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 theShape \0
if (button=\0)|(button=\2) then
return
endif
endif
if upcase(theShape) == 'RECT' then
tx=0
bx=0
ly=0
ry=0
do while tx >= bx
tx=entrybox('<AREA SHAPE=RECT Enter the top edge','',tx,,255)
do while Valid_number2(tx)=FALSE
tx=entrybox('<AREA SHAPE=RECT Enter the top edge','',tx,,255)
enddo
bx=entrybox('<AREA SHAPE=RECT Enter the bottom edge','',bx,,255)
do while Valid_number2(bx)=FALSE
bx=entrybox('<AREA SHAPE=RECT Enter the bottom edge','',bx,,255)
enddo
enddo
do while ly >= ry
ly=entrybox('<AREA SHAPE=RECT Enter the left edge','',ly,,255)
do while Valid_number2(ly)=FALSE
ly=entrybox('<AREA SHAPE=RECT Enter the left edge','',ly,,255)
enddo
ry=entrybox('<AREA SHAPE=RECT Enter the right edge','',ry,,255)
do while Valid_number2(ry)=FALSE
ry=entrybox('<AREA SHAPE=RECT Enter the right edge','',ry,,255)
enddo
enddo
theCoords=tx', 'ly', 'bx', 'ry
elseif upcase(theShape) == 'CIRCLE' then
xCen=''
yCen=''
radius=''
do while valid_number2(xCen)=FALSE
xCen=entrybox('<AREA SHAPE=CIRCLE Enter the center xCoordinate','',xCen,,255)
enddo
do while valid_number2(yCen)=FALSE
yCen=entrybox('<AREA SHAPE=CIRCLE Enter the center yCoordinate','',yCen,,255)
enddo
do while valid_number2(radius)=FALSE
radius=entrybox('<AREA SHAPE=CIRCLE Enter the Radius','',radius,,255)
enddo
theCoords=xCen', 'yCen', 'radius
elseif upcase(theShape) == 'POLY' then
theCoords=''
xc='df'
yc='fdsa'
do while (xc/=='')&(yc/=='')
xc=entrybox('<AREA SHAPE=POLY enter the x coordinate (blank to exit)','','',,255)
if xc /=='' then
yc=entrybox('<AREA SHAPE=POLY enter the y coordinate (blank to exit)','','',,255)
theHref=entrybox('<AREA> Enter the HREF','',theHref,,255)
endif
if upcase(leftstr(theAlt, 5))=='AUTO_' then
theAlt=rightstr(theAlt, length(theAlt)-5)
else
theAlt=entrybox('<AREA> Enter the Alternate text','',theAlt,,255)
endif
keyin currentcase('<AREA SHAPE='theShape)
if upcase(theShape)/=='DEFAULT' then
keyin currentcase(' COORDS="'theCoords'"')
endif
if theHref/=='' then
keyin currentcase(' HREF="')theHref'"'
else
keyin currentcase(' NOHREF')
endif
if theAlt/=='' then
keyin currentcase(' ALT="')theAlt'"'
endif
keyin '>'
defc BaseFont_tags =
universal LastDone
lastDone='BaseFont_tags'
theSize=getFileArrEl('BASEFONT_SIZE')
if upcase(leftstr(theSize,5))== 'AUTO_' then
theSize=rightstr(theSize, length(theSize)-5)
else
do while Valid_Number2(theSize)=FALSE
theSize=entrybox('<BASEFONT> Enter the Size','',theSize,,255)
enddo
endif
keyin currentcase('<BASEFONT SIZE='theSize'>')
defc Big_tags =
universal LastDone
lastDone='Big_tags'
noArgTags('BIG')
defc Blockquote_tags =
universal LastDone
lastDone='Blockquote_tags'
noArgTags('BLOCKQUOTE')
defc Bold_tags =
universal LastDone
lastDone='Bold_tags'
noArgTags('B')
defc Caption_tags =
universal LastDone
lastDone='Caption_tags'
theAlign=GetFileArrEl('CAPTION_ALIGN')
if theAlign='' then
theAlign='/TOP/BOTTOM'
setFileArrEl('CAPTION_ALIGN', theAlign)
endif
if check_mark_on_screen() then
pbegin_mark()
endif
if upcase(leftstr(theAlign, 5)) == 'AUTO_' then
theAlign=rightstr(theAlign, length(theAlign)-5)
else
parse value listbox('<CAPTION> Choose an alignment',Currentcase(theAlign), '/Enter/None/Abort', 0,0,2,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 theAlign \0
if (button=\0)|(button=\3) then
return
endif
if button=\2 then
theAlign=''
endif
endif
keyin Currentcase('<CAPTION')
if theAlign /== '' then
keyin Currentcase(' ALIGN='theAlign)
endif
keyin'>'
if check_mark_on_screen() then
pend_mark()
oldCol=.col
left
if .col=oldCol then
.line=.line-1
endline
else
right
right
endif
endif
keyin Currentcase('</CAPTION>')
if check_mark_on_screen() then
unmark
else
.col=.col-10
endif
defc Center_tags =
universal LastDone
lastDone='Center_tags'
noArgTags('CENTER')
defc Citation_tags =
universal LastDone
lastDone='Citation_tags'
noArgTags('CITE')
defc Code_tags =
universal LastDone
lastDone='Code_tags'
noArgTags('CODE')
defc DeeDee_tags =
universal LastDone
lastDone='DeeDee_tags'
keyin Currentcase('<DD>')
defc DeeTee_tags =
universal LastDone
lastDone='DeeTee_tags'
keyin Currentcase('<DT>')
defc Definition_tags =
universal LastDone
lastDone='Definition_tags'
noArgTags('DFN')
defc DictionaryList_tags =
universal LastDone
lastDone='DictionaryList_tags'
Multiline_tags('DL')
defc Directory_tags =
universal LastDone
lastDone='Directory_tags'
Multiline_tags('DIR')
defc Div_tags =
universal LastDone
lastDone='Div_tags'
theAlign=GetFileArrEl('DIV_ALIGN')
if theAlign='' then
theAlign='/LEFT/RIGHT/CENTER'
setFileArrEl('DIV_ALIGN', theAlign)
endif
if upcase(leftstr(theAlign, 5)) == 'AUTO_' then
theAlign=rightstr(theAlign, length(theAlign)-5)
else
parse value listbox('<DIV> Choose an Alignment', Currentcase(theAlign), '/Enter/None/Abort', 0,0,3,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 theAlign \0
if (button=\0)|(button=\3) then
return
endif
if button=\2 then
theAlign=''
endif
endif
keyin currentCase('<DIV')
if (theAlign /== '')&(upcase(theAlign)/=='LEFT') then
keyin currentCase(' ALIGN="')theAlign'"'
endif
keyin '>'
insertline '</DIV>', .line+2
.line=.line+1
.col=1
defc Emphasis_tags =
universal LastDone
lastDone='Emphasis_tags'
noArgTags('EM')
defc Example_tags =
universal LastDone
lastDone='Example_tags'
noArgTags('XMP')
defc Font_tags =
universal LastDone
lastDone='Font_tags'
theSize=GetFileArrEl('FONT_SIZE')
theColor=GetFileArrEl('FONT_COLOR')
if upcase(leftstr(theSize, 5)) == 'AUTO_' then
theSize=rightstr(theSize, length(theSize)-5)
else
theSize=entrybox('<FONT> Enter the size', '', theSize, , 255)
if upcase(theSize)=='#OOPS' then
return
endif
endif
do while Valid_Number3(theSize)=FALSE
theSize=entrybox('<FONT> Enter the size', '', theSize, , 255)
if upcase(theSize)=='#OOPS' then
return
endif
enddo
if upcase(leftstr(theColor, 5)) == 'AUTO_' then
theColor=rightstr(theColor, length(theColor)-5)
else
theColor=entrybox('<FONT> Enter the color', '/Enter/Cancel/Abort', theColor, , 255)
if upcase(theColor)=='3' then
return
endif
endif
do while Valid_Color(theColor)=FALSE
theColor=entrybox('<FONT> Enter the color', '/Enter/Cancel/Abort', theColor, , 255)
if upcase(theColor)=='3' then
return
endif
enddo
do while (theSize=='')&(theColor=='')
compile if HTML_IF_ARG_BLANK='exit'
if(theSize=='')&(theColor=='') then
return
endif
compile endif
theSize=entrybox('<FONT> Enter the size', '', theSize, , 255)
if upcase(theSize)=='#OOPS' then
return
endif
theColor=entrybox('<FONT> Enter the color', '/Enter/Cancel/Abort', theColor, , 255)
if upcase(theColor)=='3' then
return
endif
enddo
if check_mark_on_screen() then
pbegin_mark()
endif
keyin Currentcase('<FONT')
if theSize /== '' then
keyin Currentcase(' SIZE=')theSize
endif
if theColor /== '' then
keyin Currentcase(' COLOR=#')theColor
endif
keyin'>'
if check_mark_on_screen() then
pend_mark()
oldCol=.col
left
if .col=oldCol then
.line=.line-1
endline
else
right
right
endif
endif
keyin Currentcase('</FONT>')
if check_mark_on_screen() then
unmark
else
.col=.col-7
endif
defc Form_tags =
universal LastDone
lastDone='Form_tags'
theAction=GetFileArrEl('FORM_ACTION')
theMethod=GetFileArrEl('FORM_METHOD')
theEncType=GetFileArrEl('FORM_ENCTYPE')
if theMethod='' then
theMethod='/GET/POST'
setFileArrEl('FORM_METHOD', theMethod)
endif
theAction=entrybox('<FORM> Enter the action','',theAction,,255)
do while theAction=''
compile if HTML_IF_ARG_BLANK='exit'
if theAction=='' then
return
endif
compile endif
theAction=entrybox('<FORM> Enter the action','/Enter/Cancel/Abort',theAction,,255)
do while (upcase(theMethod)/=='POST')&(upcase(theMethod)/=='GET')
parse value listbox('<FORM> Choose the method', Currentcase(getFileArrEl('FORM_METHOD')),'/Enter/Abort', 0,0,2,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 theMethod \0
if (button=\0)|(button=\2) then
return
endif
enddo
endif
theEncType=entrybox('<FORM> Enter the ENCTYPE','',theEncType,,255)
keyin Currentcase('<FORM ACTION="')theAction||Currentcase('" METHOD='theMethod)'>'
insertline '', .line+1
insertline Currentcase('</FORM>'), .line+2
.line=.line+1
.col=1
defc H1_tags =
universal LastDone
lastDone='H1_tags'
alignArgTags('H1')
defc H2_tags =
universal LastDone
lastDone='H2_tags'
alignArgTags('H2')
defc H3_tags =
universal LastDone
lastDone='H3_tags'
alignArgTags('H3')
defc H4_tags =
universal LastDone
lastDone='H4_tags'
alignArgTags('H4')
defc H5_tags =
universal LastDone
lastDone='H5_tags'
alignArgTags('H5')
defc H6_tags =
universal LastDone
lastDone='H6_tags'
alignArgTags('H6')
defc Image_tags =
universal LastDone
lastDone='Image_tags'
theSource=GetFileArrEl('IMG_SOURCE')
theSource=entrybox('<IMG> Enter the source','/Enter/Cancel/Abort',theSource,,255)
compile if HTML_IF_ARG_BLANK='exit'
if upcase(theSource)=='' then
return
endif
compile else
do while theSource=''
theSource=entrybox('<IMG> Enter the source','/Enter/Cancel/Abort',theSource,,255)
theSource=entrybox('<INPUT TYPE=IMAGE> Enter the source', '/Enter/Cancel/Abort', theSource,.255)
if theSource='3' then
return
endif
compile if HTML_IF_ARG_BLANK='exit'
if theSource='' then
return
endif
compile endif
enddo
endif
theAlign=getFileArrEl('INPUT_IMAGE_ALIGN')
if theAlign='' then
theAlign='/LEFT/RIGHT/TOP/MIDDLE/BOTTOM'
setFileArrEl('INPUT_IMAGE_ALIGN', theAlign)
endif
if upcase(leftstr(theAlign, 5))=='AUTO_' then
theAlign=rightstr(theAlign, length(theAlign)-5)
else
parse value listbox('<INPUT TYPE=IMAGE Enter the Alignment', upcase(theAlign), '/Enter/None/Abort', 0,0,5,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 theAlign \0
if (button=\0)|(button=\3) then
return
endif
if button=\2 then
theAlign=''
endif
endif
endif
if (upcase(theType)=='CHECKBOX')|(upcase(theType)=='RADIO') then
theChecked=winmessagebox('<INPUT TYPE='theType'>', 'Is this one checked?', MB_YESNOCANCEL+MB_DEFBUTTON1)
else
theChecked=winmessagebox('<INPUT TYPE='theType'>', 'Is this one checked?', MB_YESNOCANCEL+MB_DEFBUTTON2)
endif
if theChecked=MBID_CANCEL then
return
endif
endif
if theSize=0 then
theSize=''
endif
if theMaxlength=0 then
theMaxlength=''
endif
keyin Currentcase('<INPUT TYPE='theType)
if theName /== '' then
keyin Currentcase(' NAME="')theName'"'
endif
if theValue /== '' then
keyin Currentcase(' VALUE="')theValue'"'
endif
if theSource /== '' then
keyin Currentcase(' SRC="')theSource'"'
endif
if theAlign /== '' then
keyin Currentcase(' ALIGN=')theAlign
endif
if theSize /== '' then
keyin Currentcase(' SIZE=')theSize
endif
if theMaxlength /== '' then
keyin Currentcase(' MAXLENGTH=')theMaxlength
endif
if theChecked=MBID_YES then
keyin Currentcase(' CHECKED')
endif
keyin '>'
defc Italics_Tags =
universal LastDone
lastDone='Italics_Tags'
noArgTags('I')
defc Keyboard_tags =
universal LastDone
lastDone='Keyboard_tags'
noArgTags('KBD')
defc LineBreak_tags =
universal LastDone
lastDone='LineBreak_tags'
theClear=getFileArrEl('BR_CLEAR')
if theClear=''then
theClear='/ALL/LEFT/RIGHT/NONE'
setFileArrEl('BR_CLEAR', theClear)
endif
if upcase(leftstr(theClear, 5))=='AUTO_' then
theClear=rightstr(theClear, length(theClear)-5)
else
parse value listbox('<BR> Clears which way', currentcase(theClear), '/Enter/None/Abort', 0,0,4,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 theClear \0
if (button=\0)|(button=\3) then
return
endif
if button=\2 then
theClear=''
endif
endif
keyin Currentcase('<BR')
if theClear/=='' then
keyin currentcase(' CLEAR='theClear)
endif
keyin '>'
defc Listing_tags =
universal LastDone
lastDone='Listing_tags'
noArgTags('LISTING')
defc Link_tags =
universal LastDone
lastDone='Link_tags'
theURL=GetFileArrEl('LINK_LINK')
theRel=GetFileArrEl('LINK_REL')
theRev=GetFileArrEl('LINK_REV')
theTitle=GetFileArrEl('LINK_TITLE')
do while theURL==''
theURL=entrybox('<LINK> Enter the HREF','/Enter/Cancel/Abort',theURL,,255)
if upcase(theURL)=='3' then
return
endif
compile if HTML_IF_ARG_BLANK='exit'
if theURL=='' then
return
endif
compile endif
enddo
if upcase(leftstr(theRel,5)) == 'AUTO_' then
theRel=rightstr(theRel, length(theRel)-5)
else
theRel=entrybox('<LINK> Enter the Rel', '/Enter/Cancel/Abort',theRel,,255)
if upcase(theRel)=='3' then
return
endif
endif
if upcase(leftstr(theRev,5)) == 'AUTO_' then
theRev=rightstr(theRev, length(theRev)-5)
else
theRev=entrybox('<LINK> Enter the Rev', '/Enter/Cancel/Abort',theRev,,255)
if upcase(theRev)=='3' then
return
endif
endif
if upcase(leftstr(theTitle,5)) == 'AUTO_' then
theTitle=rightstr(theTitle, length(theTitle)-5)
else
theTitle=entrybox('<LINK> Enter the Title', '/Enter/Cancel/Abort',theTitle,,255)
if upcase(theTitle)=='3' then
return
endif
endif
keyin Currentcase('<LINK HREF="')theURL'"'
if theRel /== '' then
keyin Currentcase(' REL="')theRel'"'
endif
if theRev /== '' then
keyin Currentcase(' REV="')theRev'"'
endif
if theTitle /== '' then
keyin Currentcase(' TITLE="')theTitle'"'
endif
keyin ('>')
defc ListItem_tags =
universal LastDone
lastDone='ListItem_tags'
keyin Currentcase('<LI>')
defc Map_Tags =
universal LastDone
lastDone='Map_Tags'
theName=getFileArrEl('MAP_NAME')
if upcase(leftstr(theName, 5)) ='AUTO_' then
theName=rightstr(theName, length(theName)-5)
else
theName=entrybox('<MAP> Enter the Name','',theName,,255)
endif
keyin currentcase('<MAP')
if theName/=='' then
keyin currentcase(' NAME="')theName'"'
endif
keyin '>'
insertline '', .line+1
insertline currentcase('</MAP>'), .line+2
.line=.line+1
beginline
defc Menu_tags =
universal LastDone
lastDone='Menu_tags'
Multiline_tags('MENU')
defc Meta_Tags =
universal LastDone
lastDone='Meta_Tags'
theEquiv=''
theName=''
theContent=''
theEquiv=entrybox('<META> Enter the HTTP_EQUIV','/Enter/Cancel/Abort','', ,255)
if upcase(theEquiv)=='3' then
return
endif
if theEquiv=='' then
theName=entrybox('<META> Enter the name','/Enter/Cancel/Abort','',,255)
if upcase(theName)=='3' then
return
endif
endif
compile if HTML_IF_ARG_BLANK='exit'
if (theEquiv=='')&(theName=='') then
return
endif
compile else do while (theEquiv=='')&(theName=='')
theEquiv=entrybox('<META> Enter the HTTP_EQUIV','/Enter/Cancel/Abort','', ,255)
if upcase(theEquiv)=='3' then
return
endif
if theEquiv=='' then
theName=entrybox('<META> Enter the name','/Enter/Cancel/Abort','',,255)
if upcase(theName)=='3' then
return
endif
endif
enddo
compile endif
do while theContent==''
theContent=entrybox('<META> Enter the content','/Enter/Cancel/Abort','',,255)
if theContent='3' then
return
endif
enddo
keyin Currentcase('<META')
if theEquiv/=='' then
keyin Currentcase(' HTTP-EQUIV="')theEquiv'"'
endif
if theName /=='' then
keyin Currentcase(' NAME="')theName'"'
endif
keyin Currentcase(' CONTENT="')theContent'"'
keyin '>'
defc NewPage_tags =
universal LastDone, load_ext
if wordpos(load_ext, 'xtml XTML') then
sayerror 'This is an XTML file'
return
endif
lastDone=''
theBase=getFileArrEl('BASE')
theVersion=getFileArrEl('HTML_VERSION')
theBackground=GetFileArrEl('BODY_BACKGROUND')
theBackgroundcolor=GetFileArrEl('BODY_BGCOLOR')
theText=GetFileArrEl('BODY_TEXT')
theLink=GetFileArrEl('BODY_LINK')
theIdxPrompt=GetFileArrEl('INDEX_PROMPT')
theHitlink=GetFileArrEl('BODY_VLINK')
theAlink=GetFileArrEl('BODY_ALINK')
theIndex=GetFileArrEl('IS_INDEX')
theTitle=entrybox('[New File] Enter the title','/Enter/Cancel/Abort','',,255)
keyin Currentcase(' BACKGROUND="'theBackground'"')
endif
if theBackgroundcolor /=='' then
keyin Currentcase(' BGCOLOR=#'theBackgroundcolor)
endif
if theText /=='' then
keyin Currentcase(' TEXT=#'theText)
endif
if theLink /=='' then
keyin Currentcase(' LINK=#'theLink)
endif
if theHitlink /=='' then
keyin Currentcase(' VLINK=#'theHitlink)
endif
if theAlink /=='' then
keyin Currentcase(' ALINK=#'theAlink)
endif
.line=.line+1
.col=1
defc Option_tags =
universal LastDone
lastDone='Option_tags'
theValue=''
do while theValue ==''
theValue=entrybox('<OPTION> Enter the value','', theValue,,255)
enddo
keyin Currentcase('<OPTION VALUE="')theValue'">'
defc OrderedList_tags =
universal LastDone
lastDone='OrderedList_tags'
theType=getFileArrEl('OL_TYPE')
theStart=getFileArrEl('OL_START')
theCompact=getFileArrEl('OL_COMPACT')
if theType ='' then
theType='/1/a/A/i/I'
setFileArrEl('OL_TYPE', theType)
endif
if upcase(leftstr(theType, 5))=='AUTO_'then
theType=rightstr(theType, length(theType)-5)
else
parse value listbox('<OL> Choose the Type', theType, '/Enter/None/Abort', 0,0,5,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 theType \0
if (button=\0)|(button=\3) then
return
endif
if button=\2 then
theType=''
endif
endif
if upcase(leftstr(theStart,5))=='AUTO_'then
theStart=rightstr(theStart, length(theStart)-5)
else
theStart=entrybox('<OL> Enter the start index','',theStart,,255)
do while Valid_Number(theStart)=False
theStart=entrybox('<OL> Enter the start index','',theStart,,255)
enddo
endif
if upcase(theCompact)=='AUTO_YES' then
theCompact=MBID_YES
elseif upcase(theCompact)=='AUTO_NO' then
theCompact=MBID_NO
else
if upcase(theCompact)='YES' then
theCompact=winmessagebox('COMPACT?', 'Is this a Compact list?', MB_YESNO + MB_DEFBUTTON1)
else
theCompact=winmessagebox('COMPACT?', 'Is this a Compact list?', MB_YESNO + MB_DEFBUTTON2)
endif
endif
keyin currentcase('<OL')
if theType/=='' then
keyin currentcase(' TYPE=')theType
endif
if theStart/=='' then
keyin currentCase(' START=')theStart
endif
if theCompact==MBID_YES then
keyin currentCase(' COMPACT')
endif
keyin '>'
insertline '', .line+1
insertline currentcase('</OL>'), .line+2
.line=.line+1
beginline
defc Paragraph_tags =
universal LastDone
lastDone='Paragraph_tags'
alignArgTags('P')
defc Parameter_tags =
universal LastDone
lastDone='Parameter_tags'
theName=''
theValue=''
theName=entrybox('<PARAMETER> Enter the name','/Enter/Cancel/Abort', theName,,255)
if upcase(theName)=='3' then
return
endif
compile if HTML_IF_ARG_BLANK = 'exit'
if theName =='' then
return
endif
compile else
do while theName ==''
theName=entrybox('<PARAMETER> Enter the name','/Enter/Cancel/Abort', theName,,255)
if upcase(theName)=='3' then
return
endif
enddo
compile endif
theValue=entrybox('<PARAMETER> Enter the value','', theValue,,255)
compile if HTML_IF_ARG_BLANK = 'exit'
if theValue =='' then
return
endif
compile else
do while theValue ==''
theValue=entrybox('<PARAMETER> Enter the value','', theValue,,255)
enddo
compile endif
if upcase(theValue)=='#OOPS' then
return
endif
keyin Currentcase('<PARAM NAME="')theName||Currentcase('" VALUE="')theValue'">'
defc Preform_tags =
universal LastDone
lastDone='Preform_tags'
theWidth=GetFileArrEl('PRE_WIDTH')
if upcase(leftstr(theWidth, 5))=='AUTO_' then
theWidth=rightstr(theWidth, length(theWidth)-5)
else
theWidth=entrybox('<PRE> Enter the width','',theWidth,,255)
endif
do while Valid_Number(theWidth)=FALSE
theWidth=entrybox('<PRE> Enter the width','/Enter/Cancel/Abort',theWidth,,255)
enddo
if upcase(theWidth)=='3' then
return
endif
if check_mark_on_screen() then
pbegin_mark()
endif
keyin Currentcase('<PRE')
if theWidth/=='' then
keyin Currentcase(' WIDTH=')theWidth
endif
keyin '>'
if check_mark_on_screen() then
pend_mark()
oldCol=.col
left
if .col=oldCol then
.line=.line-1
endline
else
right
right
endif
endif
keyin Currentcase('</PRE>')
if check_mark_on_screen() then
unmark
else
.col=.col-6
endif
defc Rule_tags =
universal LastDone
lastDone='Rule_tags'
theSize=GetFileArrEl('HR_SIZE')
theWidth=GetFileArrEl('HR_WIDTH')
theAlign=GetFileArrEl('HR_ALIGN')
if theAlign='' then
theAlign='/CENTER/LEFT/RIGHT'
setFileArrEl('HR_ALIGN', theAlign)
endif
if upcase(leftstr(theSize, 5)) == 'AUTO_' then
theSize=rightstr(theSize, length(theSize)-5)
else
theSize=entrybox('<HR> Enter the size','',theSize,,255)
endif
do while Valid_Number(theSize)=FALSE
theSize=entrybox('<HR> Enter the size', '', theSize, , 255)
enddo
if upcase(theSize)=='#OOPS' then
return
endif
if upcase(leftstr(theWidth, 5)) == 'AUTO_' then
theWidth=rightstr(theWidth, length(theWidth)-5)
else
theWidth=entrybox('<HR> Enter the width','/Enter/Cancel/Abort',theWidth,,255)
if upcase(theWidth)=='3' then
return
endif
endif
do while (Valid_Number(theWidth)=FALSE)|(theWidth>100)
theWidth=entrybox('<HR> Enter the width', '/Enter/Cancel/Abort', theWidth, , 255)
if upcase(theWidth)=='3' then
return
endif
enddo
if upcase(leftstr(theAlign, 5)) == 'AUTO_' then
theAlign=rightstr(theAlign, length(theAlign)-5)
else
parse value listbox('<HR> Choose an alignment', upcase(theAlign), '/Enter/None/Abort', 0,0,3,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 theAlign \0
if (button=\0)|(button=\3) then
return
endif
if button=\2 then
theAlign=''
endif
endif
keyin Currentcase('<HR')
if (theSize /== '') then
keyin Currentcase(' SIZE='theSize)
endif
if theWidth/=='' then
keyin Currentcase(' WIDTH='theWidth'%')
endif
if (theAlign /== '') then
keyin Currentcase(' ALIGN='theAlign)
endif
keyin '>'
defc Sample_tags =
universal LastDone
lastDone='Sample_tags'
noArgTags('SAMP')
defc Script_tags =
universal LastDone
lastDone='Script_tags'
Multiline_tags('SCRIPT')
defc Select_tags =
universal LastDone
lastDone='Select_tags'
theName=''
theSize=GetFileArrEl('SELECT_SIZE')
do while theName ==''
theName=entrybox('<SELECT> Enter the name','/Enter/Cancel/Abort', theName,,255)
if upcase(theName)=='3' then
return
endif
enddo
if upcase(leftstr(theSize,5))=='AUTO_' then
theSize = rightstr(theSize, length(theSize)-5)
else
theSize=entrybox('<SELECT> Enter the size','',Currentcase(theSize),,255)
endif
do while Valid_Number(theSize)=FALSE
theSize=entrybox('<SELECT> Enter the size','', theSize,,255)
enddo
if upcase(theSize)=='#OOPS' then
return
endif
keyin Currentcase('<SELECT NAME="')theName'"'
if theSize /== '' then
keyin Currentcase(' SIZE=')theSize
endif
keyin '>'
insertline '', .line+1
insertline Currentcase('<SELECT>'), .line+2
.line=.line+1
.col=1
defc Small_tags =
universal LastDone
lastDone='Small_tags'
noArgTags('SMALL')
defc Strike_tags =
universal LastDone
lastDone='Strike_tags'
noArgTags('STRIKE')
defc Strong_tags =
universal LastDone
lastDone='Strong_tag'
noArgTags('STRONG')
defc Style_tags =
universal LastDone
lastDone='Style_tags'
theType=GetFileArrEl('STYLE_TYPE')
if upcase(leftstr(theType, 5)) == 'AUTO_' then
theType=rightstr(theType, length(theType)-5)
else
theType=entrybox('<STYLE> enter the Type','',theType,,255)
theCellspacing=entrybox('<TABLE> Enter the cell spacing', '', theCellspacing,, 255)
endif
do while Valid_Number(theCellspacing)=FALSE
theCellspacing=entrybox('<TABLE> Enter the cell spacing', '', theCellspacing,, 255)
enddo
if upcase(theCellspacing)=='#OOPS' then
return
endif
keyin Currentcase('<TABLE')
if theBorder /=='' then
keyin Currentcase(' BORDER='theBorder)
endif
if theCellspacing /== '' then
keyin Currentcase(' CELLSPACING=')theCellspacing
endif
if theCellpading /=='' then
keyin Currentcase(' CELLPADING=')theCellpading
endif
if theBorder < 1 then
theBorder=''
endif
keyin '>'
insertline '', .line+1
insertline Currentcase('</TABLE>'), .line+2
.line=.line+1
.col=1
defc TableEntry_tags =
universal LastDone
lastDone='TableEntry_tags'
Table_XX(CurrentCase('TD'))
defc TableHeading_tags =
universal LastDone
lastDone='TableHeading_tags'
Table_XX(CurrentCase('TH'))
defc TableNewRow_tags =
universal LastDone
lastDone='TableNewRow_tags'
theAlign=GetFileArrEl('TR_ALIGN')
theValign=GetFileArrEl('TR_VALIGN')
if theAlign='' then
theAlign='/LEFT/RIGHT/CENTER'
setFileArrEl('TR_ALIGN', theAlign)
endif
if theValign='' then
theValign='/MIDDLE/TOP/BOTTOM'
setFileArrEl('TR_VALIGN', theValign)
endif
if upcase(leftstr(theAlign, 5))=='AUTO_' then
theAlign=rightstr(theAlign, length(theAlign)-5)
else
parse value listbox('<TR> Choose the horizontal alignment', upcase(theAlign), '/Enter/None/Abort', 0,0,3,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 theAlign \0
parse value listbox('<TR> Choose the vertical alignment', upcase(theValign), '/Enter/None/Abort', 0,0,3,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 theValign \0
if (button=\0)|(button=\3) then
return
endif
if button=\2 then
theValign=''
endif
endif
keyin Currentcase('<TR')
if theAlign/=='' then
keyin Currentcase(' ALIGN=')theAlign
endif
if theValign/=='' then
keyin Currentcase(' VALIGN=')theValign
endif
keyin ('>')
defc Textarea_tags =
universal LastDone
lastDone='Textarea_tags'
theName=''
theCols=GetFileArrEl('TEXTAREA_COLS')
theRows=GetFileArrEl('TEXTAREA_ROWS')
do while theName ==''
theName=entrybox('<TEXTAREA> Enter the name','/Enter/Cancel/Abort', theName,,255)
if upcase(theName)=='3' then
return
endif
enddo
if upcase(leftstr(theCols, 5)) == 'AUTO_' then
theCols=rightstr(theCols, length(theCols)-5)
else
theCols=entrybox('<TEXTAREA> Enter the number of columns','/Enter/Cancel/Abort',Currentcase(theCols),,255)
if upcase(theCols)=='3' then
return
endif
endif
do while Valid_Number(theCols)=FALSE
theCols=entrybox('<TEXTAREA> Enter the number oc columns','/Enter/Cancel/Abort', theCols,,255)
if upcase(theCols)=='3' then
return
endif
enddo
if upcase(leftstr(theRows, 5)) == 'AUTO_' then
theRows=rightstr(theRows, length(theRows)-5)
else
theRows=entrybox('<TEXTAREA> Enter the number of rows','',Currentcase(theRows),,255)
endif
do while Valid_Number(theRows)=FALSE
theRows=entrybox('<TEXTAREA> Enter the number of rows','', theRows,,255)
enddo
if upcase(theRows)=='#OOPS' then
return
endif
if check_mark_on_screen() then
pbegin_mark()
endif
keyin Currentcase('<TEXTAREA NAME="')theName'"'
if theCols /=='' then
keyin Currentcase(' COLS='theCols)
endif
if theRows /=='' then
keyin Currentcase(' ROWS='theRows)
endif
keyin '>'
if check_mark_on_screen() then
pend_mark()
oldCol=.col
left
if .col=oldCol then
.line=.line-1
endline
else
right
right
endif
endif
keyin Currentcase('</TEXTAREA>')
if check_mark_on_screen() then
unmark
else
.col=.col-11
endif
defc Teletype_tags =
universal LastDone
lastDone='Typewriter_tags'
noArgTags('TT')
defc Underline_tags =
universal LastDone
lastDone='Underline_tags'
noArgTags('U')
defc UnorderedList_tags =
universal LastDone
lastDone='UnorderedList_tags'
theType=getFileArrEl('UL_TYPE')
theCompact=getFileArrEl('UL_COMPACT')
if theType ='' then
theType='/DISC/SQUARE/CIRCLE'
setFileArrEl('UL_TYPE', theType)
endif
if upcase(leftstr(theType, 5))=='AUTO_'then
theType=rightstr(theType, length(theType)-5)
else
parse value listbox('<UL> Choose the Type', upcase(theType), '/Enter/None/Abort', 0,0,3,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 theType \0
if (button=\0)|(button=\3) then
return
endif
if button=\2 then
theType=''
endif
endif
if upcase(theCompact)=='AUTO_YES' then
theCompact=MBID_YES
elseif upcase(theCompact)=='AUTO_NO' then
theCompact=MBID_NO
else
if upcase(theCompact)='YES' then
theCompact=winmessagebox('COMPACT?', 'Is this a Compact list?', MB_YESNO + MB_DEFBUTTON1)
else
theCompact=winmessagebox('COMPACT?', 'Is this a Compact list?', MB_YESNO + MB_DEFBUTTON2)
parse value listbox('<'tag'> choose the alignment', upcase(theAlign), '/Enter/None/Abort', 0,0,3,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 theAlign \0
if (button=\0)|(button=\3) then
return
endif
if button=\2 then
theAlign=''
endif
endif
if check_mark_on_screen() then
pbegin_mark()
endif
keyin currentcase('<'tag)
if theAlign /== '' then
keyin currentcase(' ALIGN="'theAlign'"')
endif
keyin '>'
if check_mark_on_screen() then
pend_mark()
oldCol=.col
left
if .col=oldCol then
.line=.line-1
endline
else
right
right
endif
endif
keyin currentcase('</'tag'>')
if check_mark_on_screen() then
unmark
else
.col=.col-5
endif
defproc Anchor_all(theLink, theName, theText)
theRel=GetFileArrEl('A_REV')
theRev=GetFileArrEl('A_REL')
theTitle=getFileArrEl('A_TITLE')
do while (theLink=='')&(theName=='')
compile if HTML_IF_ARG_BLANK='exit'
if (theLink=='')&(theName=='') then
return
endif
compile endif
theLink=entrybox('<A> Enter the link','/Enter/Cancel/Abort',theLink,,255)
if theLink='' then
return
endif
if theLink=='' then
theName=entrybox('<A> Enter the name','/Enter/Cancel/Abort','',,255)
if theName='3' then
return
endif
else
theName=''
endif
enddo
if upcase(leftstr(theTitle, 5)) == 'AUTO_' then
theTitle=rightstr(theTitle, length(theTitle)-5)
else
theTitle=entrybox('<A> enter the Title','',theTitle,,255)
if theTitle = '3' then
return
endif
endif
if theText='' then
if not check_mark_on_screen() then
theText=entrybox('<A> Enter the text','/Enter/Cancel/Abort','',,255)
if theText='' then
return
endif
else
theText=''
endif
else
unmark
endif
if upcase(leftstr(theRev, 5))=='AUTO_' then
theRev=rightstr(theRev, length(theRev)-5)
else
theRev=entrybox('<A> enter the "rev"','/Enter/Cancel/Abort',theRev,,255)
if theRev='3' then
return
endif
endif
if upcase(leftstr(theRel, 5))=='AUTO_' then
theRel=rightstr(theRel, length(theRel)-5)
else
theRel=entrybox('<A> enter the "rel"','/Enter/Cancel/Abort',theRel,,255)
theHeight=entrybox('<IMG> Enter the height','/Enter/Cancel/Abort',theHeight,,255)
if upcase(theHeight)=='3' then
return
endif
endif
do while Valid_Number(theHeight)=FALSE
theHeight=entrybox('<IMG> Enter the height', '/Enter/Cancel/Abort',theHeight , , 255)
if upcase(theHeight)=='3' then
return
endif
enddo
if upcase(leftstr(theWidth, 5))=='AUTO_' then
theWidth=rightstr(theWidth, length(theWidth)-5)
else
theWidth=entrybox('<IMG> Enter the width','/Enter/Cancel/Abort',theWidth,,255)
if upcase(theWidth)=='3' then
return
endif
endif
do while Valid_Number(theWidth)=FALSE
theWidth=entrybox('<IMG> Enter the width', '/Enter/Cancel/Abort', theWidth, , 255)
if upcase(theWidth)=='3' then
return
endif
enddo
if upcase(leftstr(theAlign, 5))=='AUTO_' then
theAlign=rightstr(theAlign, length(theAlign)-5)
else
parse value listbox('<IMG> Enter the Alignment', upcase(theAlign), '/Enter/None/Abort', 0,0,5,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 theAlign \0
TheHeight=entrybox('<'tag'> Enter the Width', '/Enter/Cancel/Abort',Currentcase(TheHeight),30,255)
if upcase(TheHeight)=='3' then
return
endif
endif
do while Valid_Number(TheHeight)=FALSE
TheHeight=entrybox('<'tag'> Enter the Width','/Enter/Cancel/Abort', TheHeight,30,255)
if upcase(TheHeight)=='3' then
return
endif
enddo
if upcase(leftstr(theAlign, 5))=='AUTO_' then
theAlign=rightstr(theAlign, length(theAlign)-5)
else
parse value listbox('<'tag'> Choose the horizontal alignment',upcase(theAlign), '/Enter/None/Abort', 0,0,3,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 theAlign \0
parse value listbox('<'tag'> Choose the vertical alignment', upcase(theVAlign), '/Enter/None/Abort', 0,0,3,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 theValign \0
if (button=\0)|(button=\3) then
return
endif
if button=\2 then
theValign=''
endif
endif
if upcase(theWrap)=='AUTO_YES' then
theWrap=MBID_YES
elseif upcase(theWrap)=='AUTO_NO' then
theWrap=MBID_NO
else
if upcase(theWrap)='NO' then
theWrap= winmessagebox('Wraping?', 'Do you want to allow wraping within cells?', MB_YESNOCANCEL+MB_DEFBUTTON2)
else
theWrap= winmessagebox('Wraping?', 'Do you want to allow wraping within cells?', MB_YESNOCANCEL+MB_DEFBUTTON1)
parse value listbox('Chose the tag arguement do default', TagsListAll, '/Enter/Abort', 0,0,10,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 EA_to_set \0
if (button=\0)|(button=\2) then
return
endif
oldValue=GetFileArrEl(EA_to_set)
if EA_to_set == 'CAPTION_ALIGN' then
parse value listbox('Choose the default <CAPTION> alignment', '/TOP/BOTTOM/AUTO_TOP/AUTO_BOTOM/AUTO_', '/Enter/Abort', 0,0,5,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 EA_Value \0
if (button=\0)|(button=\2) then
return
endif
if EA_value == 'BOTTOM' then
setFileArrEl(EA_to_set,' /BOTOM/TOP')
return
elseif EA_value == 'AUTO_TOP' then
setFileArrEl(EA_to_set, 'AUTO_TOP')
return
elseif EA_value == 'AUTO_BOTOM' then
setFileArrEl(EA_to_set, 'AUTO_BOTOM')
return
elseif EA_value == 'AUTO_' then
setFileArrEl(EA_to_set, 'AUTO_')
return
else
setFileArrEl(EA_to_set, '/TOP/BOTOM')
return
endif
elseif EA_to_set == 'UL_TYPE' then
parse value listbox('<OL> Choose the type' ,'/DISC/SQUARE/CIRCLE/AUTO_DISC/AUTO_SQUARE/AUTO_CIRCLE/AUTO_', '/Enter/Abort', 0,0,5,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 EA_Value \0
if (button=\0)|(button=\2) then
return
endif
if upcase(leftstr(EA_value,5))=='AUTO_' then
setFileArrEl(EA_to_set, EA_value)
elseif EA_value=='SQUARE' then
setFileArrEl(EA_to_set, '/SQUARE/CIRCLE/DISC')
elseif EA_value=='CIRCLE' then
setFileArrEl(EA_to_set, '/CIRCLE/DISC/SQUARE')
else
setFileArrEl(EA_to_set, '/DISC/SQUARE/CIRCLE')
endif
elseif EA_to_set == 'OL_TYPE' then
parse value listbox('<OL> Choose the type' ,'/1/a/A/i/I/AUTO_1/AUTO_a/AUTO_A/AUTO_i/AUTO_I/AUTO_/', '/Enter/Abort', 0,0,5,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 EA_Value \0
if (button=\0)|(button=\2) then
return
endif
if upcase(leftstr(EA_value,5))=='AUTO_' then
setFileArrEl(EA_to_set, EA_value)
elseif EA_value=='a' then
setFileArrEl(EA_to_set, '/a/A/i/I/1')
elseif EA_value=='A' then
setFileArrEl(EA_to_set, '/A/i/I/1/a')
elseif EA_value=='i' then
setFileArrEl(EA_to_set, '/i/I/1/a/A')
elseif EA_value=='I' then
setFileArrEl(EA_to_set, '/I/1/a/A/i')
else
setFileArrEl(EA_to_set, '/1/a/A/i/I')
endif
elseif EA_to_set == 'BR_CLEAR' then
parse value listbox('Choose the default <BR> CLEAR' ,'/LEFT/RIGHT/ALL/NONE/AUTO_LEFT/AUTO_RIGHT/AUTO_ALL/AUTO_NONE/AUTO_', '/Enter/Abort', 0,0,5,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 EA_Value \0
if (button=\0)|(button=\2) then
return
endif
if upcase(leftstr(EA_value, 5)) == 'AUTO_' then
setFileArrEl(EA_to_set, EA_value)
elseif EA_value == 'RIGHT' then
setFileArrEl(EA_to_set, '/RIGHT/ALL/NONE/LEFT')
elseif EA_value == 'ALL' then
setFileArrEl(EA_to_set, '/ALL/NONE/LEFT/RIGHT')
elseif EA_value == 'NONE' then
setFileArrEl(EA_to_set, '/NONE/LEFT/RIGHT/ALL')
else
setFileArrEl(EA_to_set, '/LEFT/RIGHT/ALL/NONE')
endif
elseif EA_to_set == 'APPLET_ALIGN' then
parse value listbox('Choose the default <APPLET> alignment', '/LEFT/RIGHT/TOP/BOTTOM/MIDDLE/AUTO_LEFT/AUTO_RIGHT/AUTO_TOP/AUTO_BOTTOM/AUTO_MIDDLE', '/Enter/Abort', 0,0,5,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 EA_Value \0
parse value listbox('Choose the default <AREA> shape', '/RECT/CIRCLE/POLY/DEFAULT/AUTO_RECT/AUTO_CIRCLE/AUTO_POLY/AUTO_DEFAULT', '/Enter/Abort', 0,0,5,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 EA_Value \0
EA_value=entrybox('Enter the default path','','',,255)
if EA_value /== '' then
if GetFileArrEl('A_REV') == '' then
setFileArrEl('A_REL', EA_value)
endif
if GetFileArrEl('A_REV') == '' then
setFileArrEl('A_REL', EA_value)
endif
if GetFileArrEl('A_LINK') == '' then
setFileArrEl('A_LINK', EA_value)
endif
if GetFileArrEl('APPLET_CODE') == '' then
setFileArrEl('APPLET_CODE', EA_value)
endif
if GetFileArrEl('FORM_ACTION') == '' then
setFileArrEl('FORM_ACTION', EA_value)
endif
if GetFileArrEl('IMG_SOURCE') == '' then
setFileArrEl('IMG_SOURCE', EA_value)
endif
if GetFileArrEl('LINK_LINK') == '' then
setFileArrEl('LINK_LINK', EA_value)
endif
if GetFileArrEl('INPUT_IMAGE_SOURCE') == '' then
setFileArrEl('INPUT_IMAGE_SOURCE', EA_value)
endif
if GetFileArrEl('FRAME_SOURCE') == '' then
setFileArrEl('FRAME_SOURCE', EA_value)
endif
endif
elseif EA_to_set == 'FORM_METHOD' then
parse value listbox('Choose the default <FORM> method', '/GET/POST/AUTO_GET/AUTO_POST', '/Enter/Abort', 0,0,5,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 EA_Value \0
if (button=\0)|(button=\2) then
return
endif
if upcase(leftstr(EA_value, 5)) == 'AUTO_' then
setFileArrEl(EA_to_set, EA_value)
return
elseif EA_value =='POST' then
setFileArrEl(EA_to_set, '/POST/GET')
return
else
setFileArrEl(EA_to_set, '/GET/POST')
return
endif
elseif EA_to_set == 'FRAME_SCROLLING' then
parse value listbox('<FRAME_SCROLLING>','/YES/NO/AUTO/AUTO_YES/AUTO_NO/AUTO_AUTO/AUTO_', '/Enter/Abort', 0,0,5,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 EA_Value \0
if (button=\0)|(button=\2) then
return
endif
if EA_value=='NO' then
setFileArrEl(EA_to_set'/NO/AUTO/YES')
return
elseif EA_value=='AUTO' then
setFileArrEl(EA_to_set'/AUTO/YES/NO')
return
elseif EA_value =='YES' then
setFileArrEl(EA_to_set'/YES/NO/AUTO')
return
else
setFileArrEl(EA_to_set, EA_value)
return
endif
elseif (EA_to_set == 'IMG_ALIGN')|(EA_to_set == 'INPUT_IMAGE_ALIGN') then
parse value listbox('Choose the default <IMG> alignment', '/TOP/MIDDLE/BOTTOM/LEFT/RIGHT/AUTO_TOP/AUTO_MIDDLE/AUTO_BOTTOM/AUTO_LEFT/AUTO_RIGHT/AUTO_', '/Enter/Abort', 0,0,11,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 EA_Value \0
parse value listbox('Choose the default 'EA_to_set' value', '/YES/NO/AUTO_YES/AUTO_NO', '/Enter/Abort', 0,0,4,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 EA_Value \0
if (button=\0)|(button=\2) then
return
endif
setFileArrEl(EA_to_set, EA_value)
elseif EA_to_set == 'INPUT_TYPE' then
parse value listbox('Choose the default input type', '/CHECKBOX/HIDDEN/IMAGE/PASSWORD/RADIO/RESET/SUBMIT/TEXT/AUTO_CHECKBOX/AUTO_HIDDEN/AUTO_IMAGE/AUTO_PASSWORD/AUTO_RADIO/AUTO_RESET/AUTO_SUBMIT/AUTO_TEXT', '/Enter/Abort', 0,0,5,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 EA_Value \0
parse value listbox('Choose the default 'EA_to_set' alignment', '/LEFT/RIGHT/CENTER/AUTO_LEFT/AUTO_RIGHT/AUTO_CENTER/AUTO_', '/Enter/Abort', 0,0,5,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 EA_Value \0
if (button=\0)|(button=\2) then
return
endif
if EA_value == 'RIGHT' then
setFileArrEl(EA_to_set, '/RIGHT/CENTER/LEFT')
return
elseif EA_value == 'CENTER' then
setFileArrEl(EA_to_set, '/CENTER/LEFT/RIGHT')
return
elseif EA_value == 'AUTO_LEFT' then
setFileArrEl(EA_to_set, 'AUTO_LEFT')
return
elseif EA_value == 'AUTO_RIGHT' then
setFileArrEl(EA_to_set, 'AUTO_RIGHT')
return
elseif EA_value == 'AUTO_CENTER' then
setFileArrEl(EA_to_set, 'AUTO_CENTER')
return
elseif EA_value == 'AUTO_' then
setFileArrEl(EA_to_set, 'AUTO_')
return
else
setFileArrEl(EA_to_set, '/LEFT/RIGHT/CENTER')
return
endif
elseif (EA_to_set == 'TR_VALIGN')|(EA_to_set == 'TD_VALIGN')|(EA_to_set == 'TH_VALIGN') then
parse value listbox('Choose the default 'EA_to_set' vertical alignment', '/TOP/MIDDLE/BOTTOM/AUTO_TOP/AUTO_MIDDLE/AUTO_BOTTOM/AUTO_', '/Enter/Abort', 0,0,5,,atoi(0)||atoi(1)||atoi(1)||atoi(0)) with button 2 EA_Value \0
if (button=\0)|(button=\2) then
return
endif
if EA_value == 'AUTO_' then
setFileArrEl(EA_to_set, 'AUTO_')
return
elseif EA_value == 'MIDDLE' then
setFileArrEl(EA_to_set, '/MIDDLE/BOTTOM/TOP')
return
elseif EA_value == 'BOTTOM' then
setFileArrEl(EA_to_set, '/BOTTOM/TOP/MIDDLE')
return
elseif EA_value == 'AUTO_TOP' then
setFileArrEl(EA_to_set, EA_value)
return
elseif EA_value == 'AUTO_MIDDLE' then
setFileArrEl(EA_to_set, EA_value)
return
elseif EA_value == 'AUTO_BOTTOM' then
setFileArrEl(EA_to_set, EA_value)
else
setFileArrEl(EA_to_set, '/TOP/MIDDLE/BOTTOM')
return
endif
else
EA_value=entrybox('Enter the default value for 'EA_to_set,'',oldValue,,255)