[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/inc/_core/ui/forms/ -> _form.funcs.php (sommaire)

This file implements Fast Form handling functions. This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.

Author: blueyed: Daniel HAHLER.
Author: fplanque: Francois PLANQUE.
Copyright: (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}
Version: $Id: _form.funcs.php,v 1.1 2007/06/25 10:59:02 fplanque Exp $
Poids: 557 lignes (16 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 19 fonctions

  form_groupstart()
  form_groupend()
  form_fieldstart()
  form_fieldend()
  form_infostart()
  form_infoend()
  form_text()
  form_text_tr()
  form_hidden()
  form_textarea()
  form_select()
  form_select_object()
  form_radio()
  form_checkbox()
  form_checkbox_tr()
  form_info()
  form_info_tr()
  form_formstart()
  form_submit()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

form_groupstart( $title = '' )   X-Ref
Start an field group.

Fieldset with legend.


form_groupend( $title = '' )   X-Ref
End an field group.

Fieldset with legend.


form_fieldstart( $field_name, $field_label )   X-Ref
Start an input field.

A field is a fielset containing a label div and an input div.


form_fieldend()   X-Ref
End an input field.

A field is a fieldset containing a label div and an input div.


form_infostart( $field_label )   X-Ref
Start an info field.

An info field is a fielset containing a label div and an info div.


form_infoend()   X-Ref
End an info field.

An info field is a fielset containing a label div and an info div.


form_text( $field_name, $field_value, $field_size, $field_label, $field_note = '', $field_maxlength = 0 , $field_class = '', $inputtype = 'text', $output = true )   X-Ref
Builds a text (or password) input field.

param: string the name of the input field
param: string initial value
param: integer size of the input field
param: string label displayed in front of the field
param: string note displayed with field
param: integer max length of the value (if 0 field_size will be used!)
param: string the CSS class to use
param: string input type (only 'text' or 'password' makes sense)
param: boolean display (default) or return
return: mixed true (if output) or the generated HTML if not outputting

form_text_tr( $field_name, $field_value, $field_size, $field_label, $field_note = '', $field_maxlength = 0 , $field_class = '' )   X-Ref
form_text_tr(-)


form_hidden( $field_name, $field_value, $display = true )   X-Ref
Builds a hidden field.

param: string name
param: string value
return: string

form_textarea( $field_name, $field_value, $field_rows, $field_label, $field_note = '', $field_cols = 50 , $field_class = '' )   X-Ref
Build a text area.

param: string
param: string
param: integer
param: string
param: string
param: integer
param: string

form_select( $field_name, $field_value, $field_list_callback, $field_label, $field_note = '', $field_class = '' )   X-Ref
Display a select field and populate it with a callback function.

param: string field name
param: string default field value
param: callback callback function
param: string field label to be display before the field
param: string note to be displayed after the field
param: string CSS class for select

form_select_object( $field_name, $field_value, & $field_object, $field_label, $field_note = '', $allow_none = false, $field_class = '' )   X-Ref
Display a select field and populate it with a cache object.

param: string field name
param: string default field value
param: DataObjectCache Cache containing values for list (get_option_list() gets called on it)
param: string field label to be display before the field
param: string note to be displayed after the field
param: boolean allow to select [none] in list
param: string CSS class for select

form_radio( $field_name, $field_value, $field_options, $field_label, $field_lines = false, $field_notes = '' )   X-Ref
Generate set of radio options.

param: string the name of the radio options
param: string the checked option
param: array of arrays the radio options (0: value, 1: label, 2: notes, 3: additional HTML [input field, ..], 4: attribs for <input tag> )
param: string label
param: boolean options on seperate lines (DIVs)
param: string notes

form_checkbox( $field_name, $field_value, $field_label, $field_note = '', $field_class = '', $output = true )   X-Ref
form_checkbox(-)

param: string the name of the checkbox
param: boolean initial value
param: string label
param: string note
param: string CSS class
param: boolean to output (default)  or not
return: mixed true (if output) or the generated HTML if not outputting

form_checkbox_tr( $field_name, $field_value, $field_label, $field_note = '', $field_class = '' )   X-Ref
form_checkbox_tr(-)


form_info( $field_label, $field_info, $field_note = '' )   X-Ref
form_info(-)


form_info_tr( $field_label, $field_info, $field_note = '' )   X-Ref
form_info_tr(-)


form_formstart( $action, $class = '', $name = '', $method = 'get', $id = '' )   X-Ref
Builds a form header and puts GET params of $action into hidden form inputs


form_submit( $submit_attribs = '' )   X-Ref




Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics