[ Index ]
 

Code source de Plume CMS 1.2.2

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/manager/inc/ -> lib.form.php (sommaire)

(pas de description)

Poids: 371 lignes (12 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 2 classes

form:: (12 méthodes):
  combobox()
  textField()
  passwordField()
  datetime()
  textArea()
  button()
  hidden()
  checkbox()
  radio()
  getField()
  getPostField()
  getTimeField()

Validate:: (1 méthode):
  checkEmail()


Classe: form  - X-Ref

combobox($id, $arryData, $selected='', $default='', $tabindex='', $class='', $html='')   X-Ref
Build a combobox.

param: string Id and name of the form
param: array Data, the keys of the array are the displayed strings
param: string Selected value ('')
param: string Default selected value ('')
param: int Tabulation index ('')
param: string CSS class of the combobox field ('')
param: string Extra data for javascript scripting ('')
return: string HTML string of the form

textField($id, $size, $max=0, $default='', $tabindex='', $html='')   X-Ref
Build a single line text field.

param: string Name and id of the field
param: int Size Size of the field
param: int Maximum size of the field (0)
param: string Default value (is htmlspecialchars escaped) ('')
param: int Tabulation index ('')
param: string Extra information for javascript scripting ('')
return: string HTML string of the form

passwordField($id, $size, $max=0, $default='', $tabindex='', $html='')   X-Ref
Build a single line password text field.

param: string Name and id of the field
param: int Size Size of the field
param: int Maximum size of the field (0)
param: string Default value (is htmlspecialchars escaped) ('')
param: int Tabulation index ('')
param: string Extra information for javascript scripting ('')
return: string HTML string of the form

datetime($id, $date='', $tabindex='', $html='')   X-Ref
Build a date/time set of fields.
The array of the date must be in the same order as the
arguments of the mktime() function. ie. (h,m,s,M,D,Y)

param: string Id and name of the form
param: array Date to set the form ('') default to now
param: int Tabulation index ('')
param: string Extra data for javascript scripting ('')
return: string HTML string of the form

textArea($id, $cols, $rows, $default='', $tabindex='', $html='')   X-Ref
Build a textarea field.

param: string Name and id
param: int Number of columns
param: int Number of rows
param: string Default value (is htmlspecialchars escaped) ('')
param: int Tabulation index ('')
param: string Extra information for javascript scripting ('')
return: string HTML string of the form element

button($type='submit', $id='', $value='ok', $tabindex='', $accesskey='', $class='')   X-Ref
Build a button.

param: string Type ('submit')
param: string Id ('')
param: string Value ('ok')
param: int Tabulation index ('')
param: string Access key ('')
param: string Class ('')
return: string HTML of the button

hidden($id, $value, $with_id=true)   X-Ref
Build a hidden field.

param: string Id
param: string Value
param: boolean With_Id
return: string HTML of the field

checkbox($id, $value, $checked=false, $tabindex='', $html='')   X-Ref
Build a checkbox field.

param: string Id of the field
param: string Value
param: bool Is the checkbox checked (false)
param: int Tabulation index ('')
param: string Extra information for javascript scripting ('')
return: string HTML of the field

radio($name, $value, $checked='', $class='', $id='')   X-Ref
Build a radio button field.

param: string Name of the field
param: string Value
param: bool Is the checkbox checked (false)
param: string Class name
param: string Id of the field
return: string HTML of the field

getField($field)   X-Ref
Get REQUEST field.
A request field is field that can be set through POST, GET or COOKIE
method.

param: string REQUEST field to get
return: string Empty string if field not set.

getPostField($field)   X-Ref
Get POST field.
Returns an empty string if the value is not set.

param: string POST field to get
return: string Empty string if field not sent

getTimeField($field)   X-Ref
Get a "time" field from a POST method.
Returns a timestamp.

param: string Time field to get
return: timestamp Time

Classe: Validate  - X-Ref

checkEmail($email)   X-Ref
Check if an email has the right format.

param: string Email
return: bool Success



Généré le : Mon Nov 26 11:57:01 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics