This file contains various helper functions for building forms and form elements.
$Id: _tag_utils_form_utils_inc.html,v 1.34 2003/08/01 01:37:37 hemna Exp $
build/render an input tag of type CHECKBOX with onClick javaScript selection
- the name of the input tag.
- the value of the tag
- text label for the checkbox
class - CSS class of the text
build/render an set of radio buttons with onClick javaScript selection
- the name of the input tag.
- an array of text label = value pairs
- the default value (the one that will be checked)
- specify whether to put a line break after each radio button
- specify addionnal attribs for each value
build/render an input tag of type button
- the name of the input tag.
- the value of the tag
- any extra name='value' pair attributes
- render an object (FALSE) or raw html (TRUE);
build/render an input tag of type CHECKBOX
- the name of the input tag.
- the value of the tag
- any extra name='value' pair attributes
- render an object (FALSE) or raw html (TRUE);
render a form close tag
build/render an html tag of file
- the name of the input tag.
- the value of the tag
- any extra name='value' pair attributes
- render an object (FALSE) or raw html (TRUE);
build/render an input tag of type hidden
- the name of the input tag.
- the value of the tag
- any extra name='value' pair attributes
- render an object (FALSE) or raw html (TRUE);
build/render an input tag of type image
- the name of the input tag.
- the value of the tag
- the image src
- any extra name='value' pair attributes
- render an object (FALSE) or raw html (TRUE);
render an form open tag only.
This is usefull for forms that are inside a table. you would render the form tag first, then the table with the form fields.
- name attribute of the form tag.
- the form action.
- form method
- any extra name='value' attributes for the form tag.
build/render an input tag of type password
- the name of the input tag.
- the value of the tag
- the size in characters of the text tag
- the maximum @ of characters for the field
- any extra name='value' pair attributes
- render an object (FALSE) or raw html (TRUE);
build/render an input tag of type radio
- the name of the input tag.
- the value of the tag
- any extra name='value' pair attributes
- render an object (FALSE) or raw html (TRUE);
Build a select tag with all of its option tags
- name of the select.
- an array of name value pairs for the options. the format is array( "LABEL" => VALUE ); each <option value="VALUE"> LABEL </option> ie array( "test" => "foo") would give an option of <option value="foo"> test </option>
- This can be either a string or an array. If its a string then, it will be the selected option value <option value="foo" SELECTED>foo</option> If it is an array, then all of the option values will be marked as SELECTED. This only makes sense to do if the multiple_flag is true.
- is this a multiple selection select box?
- additionnal attributes to the select tag
build/render an input tag of type submit
- the name of the input tag.
- the value of the tag
- any extra name='value' pair attributes
- render an object (FALSE) or raw html (TRUE);
build/render an input tag of type text
- the name of the input tag.
- the value of the tag
- the size in characters of the text tag
- the maximum @ of characters for the field
- any extra name='value' pair attributes
- render an object (FALSE) or raw html (TRUE);
build a textarea tag with name and attributes.
- the name of the textarea tag.
- data to display in the textarea.
- any extra name='value' pair attributes
- render an object (FALSE) or raw html (TRUE);
render an form open tag only.
This is usefull for forms that are inside a table. you would render the form tag first, then the table with the form fields.
- name attribute of the form tag.
- the form action.
- form method
- any extra name='value' attributes for the form tag.
Documention generated on Thu, 31 Jul 2003 18:32:47 -0700 by phpDocumentor 1.2.0