Subversion Repositories Applications.papyrus

Rev

Rev 810 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 810 Rev 816
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: inscription.class.php,v 1.11 2006-04-10 14:01:36 florian Exp $
22
// CVS : $Id: inscription.class.php,v 1.12 2006-04-11 08:41:19 alexandre_tb Exp $
23
/**
23
/**
24
* Inscription
24
* Inscription
25
*
25
*
26
* Un module d'inscription, en général ce code est spécifique à
26
* Un module d'inscription, en général ce code est spécifique à
27
* un site web
27
* un site web
Line 29... Line 29...
29
*@package inscription
29
*@package inscription
30
//Auteur original :
30
//Auteur original :
31
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
31
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
32
//Autres auteurs :
32
//Autres auteurs :
33
*@copyright     Tela-Botanica 2000-2004
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.11 $ $Date: 2006-04-10 14:01:36 $
34
*@version       $Revision: 1.12 $ $Date: 2006-04-11 08:41:19 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 174... Line 174...
174
        $this->addRule(array ('mot_de_passe', 'mot_de_passe_repete'), INS_MOTS_DE_PASSE_DIFFERENTS, 'compare', '', 'client') ;
174
        $this->addRule(array ('mot_de_passe', 'mot_de_passe_repete'), INS_MOTS_DE_PASSE_DIFFERENTS, 'compare', '', 'client') ;
175
        $this->addElement('text', 'nom', INS_NOM) ;
175
        $this->addElement('text', 'nom', INS_NOM) ;
176
        $this->addRule('nom', INS_NOM_REQUIS, 'required', '', 'client') ;
176
        $this->addRule('nom', INS_NOM_REQUIS, 'required', '', 'client') ;
177
        $this->addElement('text', 'prenom', INS_PRENOM) ;
177
        $this->addElement('text', 'prenom', INS_PRENOM) ;
178
        $this->addRule('prenom', INS_PRENOM_REQUIS, 'required', '', 'client') ;
178
        $this->addRule('prenom', INS_PRENOM_REQUIS, 'required', '', 'client') ;
-
 
179
        if (INS_UTILISE_WIKINI && !INS_NOM_WIKINI_GENERE) {
-
 
180
        	$this->addElement ('text', 'nomwiki', INS_NOM_WIKI) ;
-
 
181
        	$this->addRule ('nomwiki', INS_NOM_WIKI_REQUIS, 'required', '', 'client');	
-
 
182
        }
179
        $this->addElement('text', 'adresse_1', INS_ADRESSE_1) ;
183
        $this->addElement('text', 'adresse_1', INS_ADRESSE_1) ;
180
        $this->addElement('text', 'adresse_2', INS_ADRESSE_2) ;
184
        $this->addElement('text', 'adresse_2', INS_ADRESSE_2) ;
181
        $this->addElement('text', 'cp', INS_CODE_POSTAL) ;
185
        $this->addElement('text', 'cp', INS_CODE_POSTAL) ;
182
        $this->addRule('cp', INS_CODE_POSTAL_REQUIS, 'required', '', 'client') ;
186
        $this->addRule('cp', INS_CODE_POSTAL_REQUIS, 'required', '', 'client') ;
183
        $this->addElement('text', 'ville', INS_VILLE) ;
187
        $this->addElement('text', 'ville', INS_VILLE) ;