|
|
发表于 2006/9/12 22:50:55
|
显示全部楼层
见下面的文档:
htp.formRadio
语法 htp.formRadio (cname, cvalue, cchecked, cattributes);
作用 Prints an HTML tag that inserts a radio button on the HTML Form. Used to create a set of radio buttons, each representing a different value, only one of which will be toggled on by the user. Each radio button field should have the same name. Only the selected radio button will generate a name/value pair in submitted data area. This will require an explicit VALUE attribute.
参数 cname in varchar2
cvalue in varchar2
cchecked in varchar2 DEFAULT NULL
cattributes in varchar2 DEFAULT NULL
Generates <INPUT TYPE="radio" NAME="cname" VALUE="cvalue" CHECKED cattributes>
htp.formReset
语法 htp.formReset (cvalue, cattributes);
作用 Prints an HTML tag that creates a RESET button that, when selected, resets all the form fields to their initial values.
参数 cvalue in varchar2 DEFAULT 'Reset'
cattributes in varchar2 DEFAULT NULL
Generates <INPUT TYPE="reset" VALUE="cvalue" cattributes>
htp.formSubmit
语法 htp.formSubmit (cname, cvalue, cattributes);
作用 Prints an HTML tag that creates a button that, when selected, submits the form. If a SUBMIT button is selected to submit the Form, and that button has a name attribute specified, the submit button then contributes a name/value pair to the submitted data.
参数 cname in varchar2
cvalue in varchar2 DEFAULT 'Submit'
cattributes in varchar2 DEFAULT NULL
Generates <INPUT TYPE="submit" NAME="cname" VALUE="cvalue" cattributes>
htp.formText
语法 htp.formText (cname, csize, cmaxlength, cvalue, cattributes);
作用 Prints an HTML tag that creates a field for a single line of text.
参数 cname in varchar2
csize in varchar2 DEFAULT NULL
cmaxlength in varchar2 DEFAULT NULL
cvalue in varchar2 DEFAULT NULL
cattributes in varchar2 DEFAULT NULL
Generates <INPUT TYPE="text" NAME="cname" SIZE="csize" MAXLENGTH="cmaxlength" VALUE="cvalue" cattributes>
htp.formSelectOpen
语法 htp.formSelectOpen (cname, cprompt, nsize, cattributes);
作用 Prints an HTML tag that begins a Select list of alternatives. Contains the attribute NAME which specifies the name that will be submitted as a name/value pair.
参数 cname in varchar2
cprompt in varchar2 DEFAULT NULL
nsize in integer DEFAULT NULL
cattributes in varchar2 DEFAULT NULL
Generates cprompt <SELECT NAME="cname" SIZE="nsize" cattributes>
Example htp.formSelectOpen('greatest_player';
'Pick the greatest player:');
htp.formSelectOption('Messier');
htp.formSelectOption('Howe');
htp.formSelectOption('Hull');.
htp.formSelectOption('Gretzky');.
htp.formSelectClose; generates: Pick the greatest player:
<SELECT NAME="great player">
<OPTION>Messier
<OPTION>Howe
<OPTION>Hull
<OPTION>Gretzky
</SELECT>
Note: See htp.formSelectOption and htp.formSelectClose.
htp.formSelectOption
语法 htp.formSelectOption (cvalue, cselected, cattributes);
作用 Prints an HTML tag that represents one choice in the Select element.
参数 cvalue in varchar2
cselected in varchar2 DEFAULT NULL
cattributes in varchar2 DEFAULT NULL
Generates <OPTION SELECTED cattributes>cvalue See example for htp.formSelectOpen.
Example See htp.formSelectOpen.
htp.formSelectClose
语法 htp.formSelectClose;
作用 Prints an HTML tag that ends a Select list of alternatives.
参数 none
Generates </SELECT>
Example See htp.formSelectOpen.
htp.formTextarea
语法 htp.formTextarea (cname, nrows, ncolumns, calign, cattributes);
作用 Prints an HTML tag that creates a text field that has no predefined text in the text area. Used to enable the user to enter several lines of text.
参数 cname in varchar2
nrows in integer
ncolumns in integer
calign in varchar2 DEFAULT NULL
cattributes in varchar2 DEFAULT NULL
Generates <TEXTAREA NAME="cname" ROWS="nrows" COLS="ncolumns" ALIGN="calign" cattributes></TEXTAREA>
htp.formTextareaOpen
语法 htp.formTextareaOpen (cname, nrows, ncolumns, calign, cattributes);
作用 Prints an HTML tag that opens a text area where you can insert predefined text that will always appear in the text field.
参数 cname in varchar2
nrows in integer
ncolumns in integer
calign in varchar2 DEFAULT NULL
cattributes in varchar2 DEFAULT NULL
Generates <TEXTAREA NAME="cname" ROWS="nrows" COLS="ncolumns" ALIGN="calign" cattributes>
htp.formTextareaClose
语法 htp.formTextareaClose;
作用 Prints an HTML tag that ends TextArea field
参数 none
Generates </TEXTAREA>
--------------------------------------------------------------------------------
Table Tags 表格标记
The Table tags allow the user to insert tables and manipulate the size and columns of the table in a document.
Note: All the hypertext procedures (HTP) shown in this section are also available as hypertext functions (HTF).
htp.tableOpen
语法 htp.tableOpen (cborder, calign, cnowrap, cclear, cattributes);
作用 Prints an HTML tag that begins an HTML table.
参数 cborder in varchar2 DEFAULT NULL
calign in varchar2 DEFAULT NULL
cnowrap in varchar2 DEFAULT NULL
cclear in varchar2 DEFAULT NULL
cattributes in varchar2 DEFAULT NULL;
Generates <TABLE BORDER NOWRAP ALIGN="calign" CLEAR="cclear" cattributes>
Note: The BORDER attribute is only determined by whether cborder is null or not null.
htp.tableClose
语法 htp.tableClose;
作用 Prints an HTML tag that ends an HTML table.
参数 none
Generates </TABLE>
htp.tableCaption
语法 htp.tableCaption (ccaption, calign, cattributes);
作用 Prints an HTML tag that places a caption in the inserted table.
参数 ccaption in varchar2 DEFAULT NULL
calign in varchar2 DEFAULT NULL
cattributes in varchar2 DEFAULT NULL
Generates <CAPTION ALIGN="calign" cattributes>ccaption</CAPTION>
htp.tableRowOpen
语法 htp.tableRowOpen (calign, cvalign,cdp, cnowrap, cattributes);
作用 Prints an HTML tag that inserts a row tag into a table.
参数 calign in varchar2 DEFAULT NULL
cvalign in varchar2 DEFAULT NULL
cdp in varchar2 DEFAULT NULL
cnowrap in varchar2 DEFAULT NULL
cattributes in varchar2 DEFAULT NULL
Generates <TR ALIGN="calign" VALIGN="cvalign" DP="cdp" NOWRAP catttributes>
htp.tableRowClose
语法 htp.tableRowClose;
作用 Prints an HTML tag that ends a row in a table.
参数 none
Generates </TR>
htp.tableHeader
语法 htp.tableHeader (cvalue, calign, cdp, cnowrap, crowspan, ccolspan, cattributes);
作用 Prints an HTML tag that inserts a table header.
参数 cvalue in varchar2 DEFAULT NULL
calign in varchar2 DEFAULT NULL
cdp in varchar2 DEFAULT NULL
cnowrap in varchar2 DEFAULT NULL
crowspan in varchar2 DEFAULT NULL
ccolspan in varchar2 DEFAULT NULL
cattributes in varchar2 DEFAULT NULL
Generates <TH ALIGN="calign" DP="cdp" ROWSPAN="crowspan" COLSPAN="ccolspan" NOWRAP cattributes>cvalue</TH>
htp.tableData
语法 htp.tableData (cvalue, calign, cdp, cnowrap, cattributes);
作用 Prints an HTML tag that inserts data into the rows and columns of a selected table.
参数 cvalue in varchar2 DEFAULT NULL
calign in varchar2 DEFAULT NULL
cdp in varchar2 DEFAULT NULL
cnowrap in varchar2 DEFAULT NULL
cattributes in varchar2 DEFAULT NULL
Generates <TD ALIGN="calign" DP="cdp" ROWSPAN="crowspan" COLSPAN="ccolspan" NOWRAP cattributes>cvalue</TD> |
|