Page: Program_Root/smartform.php

Constant Summary
CONSTANT NAMECONSTANT VALUEDESCRIPTION


Function Summary
sfTemplateStart ( $title, $comment )
HTML Form start code
sfTemplate ( $FH, $title, $field, $comment, ' )
HTML Form field code
sfTemplateError ( $title, $field, $comment, ' )
HTML Form invalid field code
sfNoTemplate ( $field )
outputs non-viewable fields of the form
sfTemplateEnd ( $footnote, ' )
HTML Form end code
sfOpenForm ( $FH, $formname, form, $title, SmartForm, $comment, ', $action, $method, POST )
Creates the 'FORM HANDLER'
sfCloseForm ( $FH, $footnote, ' )
sfButtons ( $FH, $buttons )
sfCorrectValue ( $fh, $name, $value )
sfText ( $FH, $title, $name, $value, ', $size, $maxl, $comment )
sfPassword ( $FH, $title, $name, $value, ', $size, $maxl, $comment )
sfTextArea ( $FH, $title, $name, $value, ', $cols, $rows, $comment )
sfTextAreaNoWrap ( $FH, $title, $name, $value, ', $cols, $rows, $comment )
sfHidden ( $FH, $name, $value, ', $outside )
sfRadio ( $FH, $title, $name, $value, radio, $label, Label, $checked, ', $comment )
sfDBLookup ( $FH, $title, $name, $value, ', $lktable, $lkid, $lkdescr, $comment )
sfMultDBLookup ( $FH, $title, $name, $value, ', $size, $lktable, $lkid, $lkdescr, $comment )
sfLookup ( $FH, $title, $name, $value, ', $values, $comment )
sfMultLookup ( $FH, $title, $name, $value, ', $size, $values, $comment )
sf_show ( $fh )
sfValidRegExp ( $fh, $regexp, $message, ', $value )
sfValidIRegExp ( $fh, $regexp, $message, ', $value )
sfValidNotEmpty ( $fh, $message, ', $value )
sf_validfield ( $fh, &$el, $value )
sf_validate ( $fh )
sf_exec ( $fh )
sf_Valid ( &$fh )

Constant Detail

Function Detail

sfTemplateStart

sfTemplateStart ( $title, $comment )

HTML Form start code

function that outputs the HTML code for form start. First it searchs for
an element named 'FORM_START' in the wildweb template system. If wildweb
is not present or FORM_START element doesnt exists, a function named 
FORM_START() is searched for. If the function doesnt exists then it
outputs a hardcoded HTML block.

grouphtml_generation
Function Parameters:
- $title string Title to be used for the form
- $comment string little text (can be used as coment, instructions, etc)
Function Info:
Access - private
Return - Nothing

sfTemplate

sfTemplate ( $FH, $title, $field, $comment, ' )

HTML Form field code 

outputs HTML code responsible to hold title, the field itself and a comment.
we use the same 'tries' of sfTemplateStart() to get that value, ie, wildweb 
template system first, the a function named 'FORM_FIELD', then a standard HTML
block is used.

grouphtml_generation
Function Parameters:
- $FH array form handler
- $title string Title of the current field
- $field string The field itself
- $comment string little text (can be used as coment, instructions, etc)
Function Info:
Access - private
Return - Nothing

sfTemplateError

sfTemplateError ( $title, $field, $comment, ' )

HTML Form invalid field code 

outputs HTML code responsible to hold title, the field itself and a comment
for invalid fields.  we use the same 'tries' of sfTemplateStart() to get that
value, ie, wildweb template system first, the a function named 'FORM_FIELD',
then a standard HTML block is used.

grouphtml_generation
Function Parameters:
- $title string Title of the current field
- $field string The field itself
- $comment string little text (can be used as coment, instructions, etc)
Function Info:
Access - private
Return - Nothing

sfNoTemplate

sfNoTemplate ( $field )

outputs non-viewable fields of the form 

actually it only outputs the non-viewable fields. Its a placeholder for
future needs. 

grouphtml_generation
Function Parameters:
- $field string The field itself
Function Info:
Access - private
Return - Nothing

sfTemplateEnd

sfTemplateEnd ( $footnote, ' )

HTML Form end code

function that outputs the HTML code for form end. First it searchs for
an element named 'FORM_END' in the wildweb template system. If wildweb
is not present or FORM_END element doesnt exists, a function named 
FORM_END() is searched for. If the function doesnt exists then it
outputs a hardcoded HTML block.

grouphtml_generation
Function Parameters:
- $footnote string a footnote text (can be used as coment, instructions, etc)
Function Info:
Access - private
Return - Nothing

sfOpenForm

sfOpenForm ( $FH, $formname, form, $title, SmartForm, $comment, ', $action, $method, POST )

Creates the 'FORM HANDLER' 

creates the FORM_HANDLER used in all other functions to attach additional
fields and validators. Some initial parameters are set, as the name of the
PHP variable that will hold the field values, a title for the form, the
method used to transmit the form, etcetera. 

grouppublic_interface
Function Parameters:
- $FH array form handler
- $formname string actual name of the PHP variable that will hold the form values, usually form_handler itself.
- $title string title for the form
- $comment string text comment usually some small text bellow title
- $action string the URL that will receive the execution of this form, defaults to $PHP_SELF
- $method string the used method to pass variables , 'GET' or 'POST', defaults to 'POST'
Function Info:
Access - public
Return - form_handler

sfCloseForm

sfCloseForm ( $FH, $footnote, ' )




Function Parameters:
Function Info:

sfButtons

sfButtons ( $FH, $buttons )




Function Parameters:
Function Info:

sfCorrectValue

sfCorrectValue ( $fh, $name, $value )




Function Parameters:
Function Info:

sfText

sfText ( $FH, $title, $name, $value, ', $size, $maxl, $comment )




Function Parameters:
Function Info:

sfPassword

sfPassword ( $FH, $title, $name, $value, ', $size, $maxl, $comment )




Function Parameters:
Function Info:

sfTextArea

sfTextArea ( $FH, $title, $name, $value, ', $cols, $rows, $comment )




Function Parameters:
Function Info:

sfTextAreaNoWrap

sfTextAreaNoWrap ( $FH, $title, $name, $value, ', $cols, $rows, $comment )




Function Parameters:
Function Info:

sfHidden

sfHidden ( $FH, $name, $value, ', $outside )




Function Parameters:
Function Info:

sfRadio

sfRadio ( $FH, $title, $name, $value, radio, $label, Label, $checked, ', $comment )




Function Parameters:
Function Info:

sfDBLookup

sfDBLookup ( $FH, $title, $name, $value, ', $lktable, $lkid, $lkdescr, $comment )




Function Parameters:
Function Info:

sfMultDBLookup

sfMultDBLookup ( $FH, $title, $name, $value, ', $size, $lktable, $lkid, $lkdescr, $comment )




Function Parameters:
Function Info:

sfLookup

sfLookup ( $FH, $title, $name, $value, ', $values, $comment )




Function Parameters:
Function Info:

sfMultLookup

sfMultLookup ( $FH, $title, $name, $value, ', $size, $values, $comment )




Function Parameters:
Function Info:

sf_show

sf_show ( $fh )




Function Parameters:
Function Info:

sfValidRegExp

sfValidRegExp ( $fh, $regexp, $message, ', $value )




Function Parameters:
Function Info:

sfValidIRegExp

sfValidIRegExp ( $fh, $regexp, $message, ', $value )




Function Parameters:
Function Info:

sfValidNotEmpty

sfValidNotEmpty ( $fh, $message, ', $value )




Function Parameters:
Function Info:

sf_validfield

sf_validfield ( $fh, &$el, $value )




Function Parameters:
Function Info:

sf_validate

sf_validate ( $fh )




Function Parameters:
Function Info:

sf_exec

sf_exec ( $fh )




Function Parameters:
Function Info:

sf_Valid

sf_Valid ( &$fh )




Function Parameters:
Function Info: