Subversion Repositories Applications.bazar

Rev

Rev 129 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 129 Rev 170
Line 17... Line 17...
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
19
// | License along with this library; if not, write to the Free Software                                  |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: bazar.fonct.formulaire.php,v 1.22 2006-06-02 09:29:07 florian Exp $
22
// CVS : $Id: bazar.fonct.formulaire.php,v 1.23 2007-01-18 14:39:28 alexandre_tb Exp $
23
/**
23
/**
24
* Formulaire
24
* Formulaire
25
*
25
*
26
* Les fonctions de mise en page des formulaire
26
* Les fonctions de mise en page des formulaire
27
*
27
*
Line 29... Line 29...
29
//Auteur original :
29
//Auteur original :
30
*@author        Florian SCHMITT <florian@ecole-et-nature.org>
30
*@author        Florian SCHMITT <florian@ecole-et-nature.org>
31
//Autres auteurs :
31
//Autres auteurs :
32
*@author        Aleandre GRANIER <alexandre@tela-botanica.org>
32
*@author        Aleandre GRANIER <alexandre@tela-botanica.org>
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.22 $ $Date: 2006-06-02 09:29:07 $
34
*@version       $Revision: 1.23 $ $Date: 2007-01-18 14:39:28 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
Line 135... Line 135...
135
* @param    string  ce champs est il obligatoire? (required)
135
* @param    string  ce champs est il obligatoire? (required)
136
* @return   void
136
* @return   void
137
*/
137
*/
138
function listedatedeb(&$formtemplate, $nom_bdd , $label, $limite1, $limite2, $defaut, $source, $obligatoire, $dans_moteur_de_recherche=0) {
138
function listedatedeb(&$formtemplate, $nom_bdd , $label, $limite1, $limite2, $defaut, $source, $obligatoire, $dans_moteur_de_recherche=0) {
139
	$optiondate = array('language' => BAZ_LANGUE_PAR_DEFAUT,
139
	$optiondate = array('language' => BAZ_LANGUE_PAR_DEFAUT,
140
						'minYear' => date('Y'),
140
						'minYear' => date('Y')-4,
141
						'maxYear'=> (date('Y')+10),
141
						'maxYear'=> (date('Y')+10),
142
						'format' => 'd m Y',
142
						'format' => 'd m Y',
143
						'addEmptyOption' => BAZ_DATE_VIDE,
143
						'addEmptyOption' => BAZ_DATE_VIDE,
144
						);
144
						);
145
	$formtemplate->addElement('date', $nom_bdd, $label, $optiondate) ;
145
	$formtemplate->addElement('date', $nom_bdd, $label, $optiondate) ;
Line 428... Line 428...
428
}
428
}
Line 429... Line 429...
429
 
429
 
430
/* +--Fin du code ----------------------------------------------------------------------------------------+
430
/* +--Fin du code ----------------------------------------------------------------------------------------+
431
*
431
*
-
 
432
* $Log: not supported by cvs2svn $
-
 
433
* Revision 1.22  2006/06/02 09:29:07  florian
-
 
434
* debut d'integration de wikini
432
* $Log: not supported by cvs2svn $
435
*
433
* Revision 1.21  2006/05/19 13:54:11  florian
436
* Revision 1.21  2006/05/19 13:54:11  florian
434
* stabilisation du moteur de recherche, corrections bugs, lien recherche avancee
437
* stabilisation du moteur de recherche, corrections bugs, lien recherche avancee
435
*
438
*
436
* Revision 1.20  2006/04/28 12:46:14  florian
439
* Revision 1.20  2006/04/28 12:46:14  florian