Module HtmlWrite_Mixin.pkg
1//****************************************************************************//
2// //
3// $File name : HtmlWrite_mixin.PKG //
4// $File title : HTML conversion functions //
5// $Author : John Tuohy //
6// //
7// Confidential Trade Secret. //
8// Copyright 1998-1999 Data Access Corporation, Miami FL, USA //
9// All Rights reserved //
10// DataFlex is a registered trademark of Data Access Corporation. //
11// $Rev History //
12// //
13// //
14// //
15//****************************************************************************//
16
17// create standard html write commands. This expect that the
18// message WriteHtml already exists
19//
20// Current messages
21//
22// WriteHtmlBreak String WrStr writes line with a <br>
23// WriteHtmlHorzLine writes horizontal line <hr>
24// WriteHtmlTableBegin String sParams starts a table <table>
25// WriteHtmlTableEnd end a table </table>
26// WriteHtmlRowBegin start a row <tr>
27// WriteHtmlRowEnd end a row </tr>
28// WriteHtmlCell String sData String sAlign create a data cell <td>
29// WriteHtmlCellHeader String sData string sAlign create a header cell <th>
30//
31use VDFBase.pkg
32
33{ ClassLibrary=Common }
34Class HtmlWrite_mixin is a Mixin
35
36 Procedure WriteHtmlBreak String sHtml
37 if (Num_Arguments>0) Send WriteHtml sHtml
38 Send WriteHtml "
"
39 End_Procedure
40
41 Procedure WriteHtmlHorzLine
42 Send WriteHtml "
"
43 End_Procedure
44
45 Procedure WriteHtmlTableBegin String sParams string sPer
46 String sHtml
47 Case Begin
48 Case (Num_Arguments=2) Move ('- sParams - '" width="' - sPer - '%" >') to sHtml
49 Case (Num_Arguments=1) Move ('