HTML Samples
Nancy Palmquist
nlp at vss3.com
Tue Jun 27 11:32:36 PDT 2006
Pete Murray wrote:
> I'm using filepro HTML commands for the first time (5.0 Linux) and would
> like to see some examples of processing to create a web page. Please
> send samples to computer at alaskanwindow.com
> <mailto:computer at alaskanwindow.com> or let me know where to look. Thanks.
Pete,
Web pages have three parts, heading, body, footer
Think of it as a report with a heading on the first page only and
subtotals at the very end. In the middle, you have each record selected
to be included on the page. I like to use tables since they lend
themselves perfectly to this logic flow.
Write a routine for the headings
<html>
html "1" :CR filename.htm :TI "My page title"
<body>
html "1" :BO :al "#993300" :vl "maroon" :bc "#f8f9f0" :te "#003366" :li
"red" :ZZ "onload=\"getHost()\""
html "1" :CE
html "1" :fn :si "2"
html "1" :tx "<br>Printed On: "<@td<"at"<@tm
html "1" :fn-
Write a routine that ends the document:
</body>
html "1" :bo-
</html>
html "1" :cr-
Tables have a similar stucture: headings, rows, end
<table>
HTML "1" :TA :al "center" :BO "2" :cp "2" :cs "0" :wi "100%"
<th>...</th>
<tr><td> ... </td></tr> - each row
HTML "1" :TR ■
307 ------- - - - - - - - - -- - - - - -
■ If: 'only put this column when billing account is selected
■
Then:
■
308 ------- - - - - - - - - - - - - - - -
■ If: ■
Then: HTML "1" :TD :AL "center" :wi (sa)
■
309 ------- - - - - - - - - - - - - - - -
■ If: ' ORDERING ACCOUNT ■
Then: HTML "1" :TX col("12")
■
Then: HTML "1" :TD-
■
312 ------- - - - - - - - - - - - - - - -
■ If:
■
Then: HTML "1" :TD :AL "center" :wi sb
■
313 ------- - - - - - - - - - - - - - - -
■ If: ' Claim #
■
Then: HTML "1" :TX col("1")
■
Then: HTML "1" :TD-
■
353 ------- - - - - - - - - - - - - - - -
■ If:
■
Then: HTML "1" :TR-
</table> -end table
html "1" :ta-
This is a very brief idea of how to do it. Make sure each element is
opened and closed properly. HTML requires every tag group to open in
sequence and then close in reverse.
<table><tr><td></td></tr></table>
I found it helpful to generate the page then open it in front page to
get an error report that would help me. FilePro will try to help you
close your tags if you forget but is not always as intuitive as would be
desired.
I have stopped using filePro to make HTML pages and now just generate
XML data files. The pages are then formatted using XSL stylesheets.
This makes it much more like generating export files from filePro and
the page formating is much better done with a good XSL editor.
I have used the HTML logic to generate a report that must be emailed or
displayed with a browser to make it more universal, since there is no
way to add print codes to make it look nice.
I hope this helps. I did not have any examples simple enough, but it
seems to me the tutorial had some examples.
Nancy
--
Nancy Palmquist MOS & filePro Training Available
Virtual Software Systems Web Based Training and Consulting
PHONE: (412) 835-9417 Web site: http://www.vss3.com
More information about the Filepro-list
mailing list