Gordon Rowell > CGI-FormMagick > CGI::FormMagick::HTML

Download:
CGI-FormMagick-0.89.tar.gz

Annotate this POD

CPAN RT

New  1
Open  0
Stalled  9
View/Report Bugs
Source  

NAME ^

CGI::FormMagick::HTML - HTML output routines for FormMagick

DESCRIPTION ^

These are internal-use-only routines for displaying HTML output, probably only of interest to developers of FormMagick. =head1 DEVELOPER ROUTINES

$self->print_page()

Prints out a page of the form, including the page header and footer, the fields, and the buttons.

print_buttons($fm)

print the table row containing the form's buttons

print_form_header($fm)

prints the header template and the form title (heading level 1)

print_form_footer($fm)

prints the stuff that goes at the bottom of every page of the form

print_page_header($fm)

prints the page title (heading level 2) and description

print_page_footer($fm)

prints the stuff that goes at the bottom of a page, mostly just the form and table close tags and stuff.

print_field_description($description)

prints the description of a field

print_field_error($error)

prints any errors related to a field

display_fields($fm)

displays the fields for a page by looping through them

gather_field_info($field)

Gathers various information about a field and returns it as a hashref.

build_inputfield ($fm, $forminfo)

Builds HTML for individual form fields. $forminfo is a hashref containing information about the field.

set_option_lv($fm, $info)

Given $info (a hashref with info about a field) figures out the option values/labels for select or radio fields and shoves them into $info->{option_values} and $info->{option_labels}

syntax highlighting: