P. 1
SQR-guide

SQR-guide

4.5

|Views: 6,565|Likes:
Published by api-3801512

More info:

Published by: api-3801512 on Oct 17, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

09/23/2014

pdf

text

original

The list procedures display lists. To utilize these procedures, call the
appropriate procedure before the list is output. Once the list is output,
call the corresponding end procedure.

The following list procedures are available.

• Definition (for lists of terms and their definitions)—call html_dl and
html_dl_end.

• Directory—call html_dir and html_dir_end.

• Menus—call html_menu and html_menu_end.

• Ordered (numbered or lettered) lists—call html_ol and html_ol_end.

• Unordered (bulleted) lists—call html_ul and html_ul_end.

To display a list, except for the definition list, call the appropriate list
procedure before the list is output. Call html_li to identify each item in the
list; you can also call html_li_end for completeness. Once the list is output
call the corresponding end procedure.

The following code displays an ordered list:

do html_ol(’’)
do html_li(’’)
print ’First item in list’ (1,1)
do html_li_end

do html_li(’’)
print ’Second item in list’ (+1,1)

Working with HTML

SQR 4.3

228

SQR User’s Guide

do html_li_end

do html_li(’’)
print ’Last item in list’ (+1,1)
do html_li_end
do html_ol_end

To display a definition list call html_dl before the list is output. Call
html_dt to identify a term and html_dd to identify a definition. Once the
list is output call html_dl_end. You can also call html_dd_end and
html_dt_end for completeness

The following code displays a definition list:

do html_dl(’’)
do html_dt(’’)
print ’A daisy’ (1,1)
do html_dt_end
do html_dd(’’)
print ’A sweet and innocent flower’ (+1,1)
do html_dd_end
do html_dt(’’)
print ’A rose’ (+1,1)
do html_dt_end
do html_dd(’’)
print ’A very passionate flower’ (+1,1)
do html_dd_end
do html_ol_end

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->