Previous Table of Contents Next


Table 27.3 shows some of the more commonly used features of HTP and HTF. If you don’t already know something about HTML, this table won’t mean anything to you—see the section on HTML first. Note that while case sensitivity is not an issue in HTML, the Oracle documentation tends to display HTP and HTF procedures in the case shown—that is, in lower case letters, but capitalizing any second word in the concatenated string (with no use of underscores), for example, centerOpen, or tableData. This is just a formatting issue and obviously (well, obviously to PL/SQL programmers) has no bearing on functionality.

Table 27.3. Commonly used htp procedures (and htf functions) and their output.

Procedure Name and Parameters Output Format

anchor2(curl, ctext, cname, <A HREF=”curl” NAME=”cname”
ctarget, cattributes) cattributes>ctext</A>TARGET=”ctarget”
bodyOpen(cbackground, cattributes) <BODY background=”cbackground”cattributes>
bodyClose </BODY>
bold(ctext, cattributes) <B cattributes>ctext</B>
center(ctext) <CENTER>ctext</CENTER>
centerOpen <CENTER>
centerClose </CENTER>
formOpen(curl, cmethod, ctarget, <FORM ACTION=”curl”
cenctype, cattributes)
METHOD=”cmethod”
TARGET=”ctarget”
ENCTYPE=”cenctype”
cattributes>
formClose </FORM>
formCheckbox(cname, cvalue, <INPUT TYPE=”checkbox” NAME=”cname”
cchecked, cattributes) VALUE=”cvalue”CHECKED=”cattributes”>
formRadio(cname, cvalue, <INPUT TYPE=”radio” NAME=”cname” cchecked,
cattributes) VALUE=”cvalue” CHECKED cattribute>
formReset(cvalue, cattributes) <INPUT TYPE=”reset” VALUE=”cvalue”
cattributes>
formSubmit(cname, cvalue, <INPUT TYPE=”submit” NAME=”cname”
cattributes) VALUE=”cvalue” cattributes>
formText(cname, csize, cmaxlength, <INPUT TYPE=”text” NAME=”cname” cvalue,
cattributes) SIZE=”csize” MAXLENGTH=”cmaxlength”
VALUE=”cvalue” cattributes>
headOpen <HEAD>
headClose </HEAD>
header(nsize, cheader, calign, <Hnsize ALIGN=”calign” NOWRAP
cnowrap, cclear, cattributes) CLEAR=”cclear” cattributes>cheader</Hnsize>
hr(cclear, csrc, cattributes) <HR CLEAR=”cclear” SRC=”csrc” cattributes>
htmlOpen <HTML>
htmlClose </HTML>
img(curl, calign, calt, cismap, <IMG SRC=”curl” ALIGN=”calign”
cattributes) ALT=”calt” ISMAP cattributes>
italic(ctext, cattributes) <I cattributes>ctext</I>
line (See HR)
mailto(caddress, ctext, cname, <A HREF=”mailto;caddress”
cattributes) cattributes>ctext</A>
nl <BR>
para <P>
paragraph(calign, cnowrap, cclear, <P ALIGN=”calign” NOWRAP
cattributes) CLEAR=”cclear” cattributes>
tableOpen(cborder, calign, <TABLE “cborder” NOWRAP
cnowrap, cclear, cattributes) ALIGN=”calign” CLEAR=”cclear” cattributes>
tableClose </TABLE>
tableRowOpen(calign, cvalign, <TR ALIGN=”calign” VALIGN=”cvalign”
cdp, cnowrap, cattributes) DP=”cdp” NOWRAP cattributes>
tableRowClose </TR>
tableData(cvalue, calign, cdp, <TD ALIGN=”calign” DP=”cdp”
cnowrap, crowspan, ccolspan, ROWSPAN=”crowspan”
cattributes) COLSPAN=”ccolspan”
NOWRAP cattributes>


Note:  
The presence of anything for cchecked results in CHECKED.

The presence of the cnowrap parameter causes NOWRAP to appear. If cnowrap is NULL, NOWRAP will not appear.

The presence of cismap causes ISMAP to appear.



Previous Table of Contents Next
Используются технологии uCoz