[ Index ]
 

Code source de Claroline 188

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

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

CLAROLINE

Author: Claro Team <cvs@claroline.net>
Copyright: (c) 2001-2006 Universite catholique de Louvain (UCL)
License: http://www.gnu.org/copyleft/gpl.html (GPL) GENERAL PUBLIC LICENSE
Version: 1.8 $Revision: 1.36 $
Poids: 372 lignes (13 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 13 fonctions

  claro_disp_date_form()
  claro_html_date_form()
  claro_disp_time_form()
  claro_html_time_form()
  claro_html_form_select()
  claro_html_option_list()
  form_required_field()
  form_row()
  form_input_text()
  form_readonly_text()
  form_input_password()
  form_input_hidden()
  form_input_textarea()

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

claro_disp_date_form($dayFieldName, $monthFieldName, $yearFieldName, $unixDate = 0, $formatMonth = 'numeric' )   X-Ref

author: Sébastien Piraux <pir@cerdecam.be>
param: string  $dayFieldName attribute name of the input DAY
param: string  $monthFieldName attribute name of the input MONTH
param: string  $yearFieldName attribute name of the input YEAR
param: boolean $unixDate unix timestamp of date to display
param: string  $formatMonth display type of month select box : numeric, long, short
return: string html stream to output input tag for a date

claro_html_date_form($dayFieldName, $monthFieldName, $yearFieldName, $unixDate = 0, $formatMonth = 'numeric' )   X-Ref
Pas de description

claro_disp_time_form($hourFieldName, $minuteFieldName, $unixDate = 0)   X-Ref
build htmlstream for input form of a time

author: Sébastien Piraux <pir@cerdecam.be>
param: string $hourFieldName attribute name of the input Hour
param: string $minuteFieldName attribute name of the input minutes
param: string $unixDate unix timestamp of date to display
return: string html stream to output input tag for an hour

claro_html_time_form($hourFieldName, $minuteFieldName, $unixDate = 0)   X-Ref
Pas de description

claro_html_form_select($select_name,$list_option,$preselect=null,$attr=null, $reverted = false)   X-Ref

author: Christophe Gesché <moosh@claroline.net>
param: string $select_name name of the form (other param can be adds with $attr
param: array $list_option 2D table where key are labels and value are values
param: string $preselect name of the key in $list_option would be preselected
param: bool $reverted set the function in reverted mode to use value => label
return: html output from a 2D table where key are name and value are label

claro_html_option_list($list_option, $preselect, $reverted = false)   X-Ref
return a string as html form option list to plce in a <select>

author: Christophe Gesché <moosh@claroline.net>
param: array $list_option 2D table where key are labels and value are values
param: string $preselect name of the key in $list_option would be preselected
param: bool $reverted set the function in reverted mode to use value => label
return: html output of the select options

form_required_field($field)   X-Ref
Return html for a field label wich is required.

param: string $field field label
return: string html for a field label wich is required.

form_row($legend, $element)   X-Ref
Return html for a table row for claro_form_table.

param: string $field field label
return: string html for a field label wich is required.

form_input_text($name, $value, $displayedName = '', $required = false)   X-Ref
Prepare an html output of an input wich  would be include in a <form>

param: string  $name
param: string  $value
param: string  $displayedName (default '')
param: boolean $required      (default false)
return: string html content

form_readonly_text($name, $value, $displayedName = '')   X-Ref
Prepare an html output of an input wich  would be include in a <form>

param: string  $name
param: string  $value
param: string  $displayedName (default '')
param: boolean $required      (default false)
return: string html content

form_input_password($name, $value, $displayedName = '', $required = false)   X-Ref
Prepare an html output of an input wich  would be include in a <form>

param: string  $name
param: string  $value
param: string  $displayedName (default '')
param: boolean $required      (default false)
return: string html content

form_input_hidden($name, $value)   X-Ref
Prepare an html output of an input hidden wich  would be include in a <form>

param: string $name use for name and  by default, id
param: string $value
return: string : html stream

form_input_textarea($name, $value, $displayedName = '', $required = false, $rows=6)   X-Ref
Prepare an html output of an textarea wich  would be include in a <form>

param: string  $name
param: string  $value
param: string  $displayedName (default '')
param: boolean $required      (default false)
return: string html content



Généré le : Thu Nov 29 14:38:42 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics