Start of a table. Syntax: html_table(string attributes) Common attributes: border—Displays a border around each table cell. width—Table width in pixels. cols—Number of table columns. (Example: COLS=4) Example: Database records in a tabular format. html_caption_end, html_tr_end, html_td_end, and html_th_end are used for completeness; however, they are typically implied. !start the table & display the column headings
do html_table('border')
do html_caption('')
print 'Customer Records' (1,1)
do html_caption_end
do html_tr('')
do html_th('')
print 'Cust No' (+1,1)
do html_th_end
do html_th('')
print 'Name" (,10)
do html_th_end
do html_tr_end
! display each record
begin-select
do html_tr('')
do html_td('')
cust_num (1,1,6) edit 099999
do html_td_end
do html_td('')
name (1,10,25)
do html_td_end
do html_tr_end
next-listing skiplines=1 need=1
from customers
end-select
! end the table
do html_table_end |