Subversion Repositories Applications.papyrus

Rev

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

Rev 896 Rev 906
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.php,v 1.16 2006-07-04 09:38:31 alexandre_tb Exp $
22
// CVS : $Id: inscription.php,v 1.17 2006-07-06 10:33:30 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 30... Line 30...
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
*@author        Florian SCHMITT <florian@ecole-et-nature.org>
33
*@author        Florian SCHMITT <florian@ecole-et-nature.org>
34
*@copyright     Tela-Botanica 2000-2004
34
*@copyright     Tela-Botanica 2000-2004
35
*@version       $Revision: 1.16 $ $Date: 2006-07-04 09:38:31 $
35
*@version       $Revision: 1.17 $ $Date: 2006-07-06 10:33:30 $
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
37
*/
37
*/
Line 38... Line 38...
38
 
38
 
39
// +------------------------------------------------------------------------------------------------------+
39
// +------------------------------------------------------------------------------------------------------+
Line 114... Line 114...
114
        	}
114
        	}
115
        }
115
        }
Line 116... Line 116...
116
        
116
        
117
        // On ajoute la règle de vérification mail uniquement lors de l inscription
117
        // On ajoute la règle de vérification mail uniquement lors de l inscription
118
        if ($_REQUEST['action'] == 'inscription') {
118
        if ($_REQUEST['action'] == 'inscription') {
119
	        $this->registerRule('doublonmail', 'callback', 'verif_doublonMail');
119
	        $formulaire->registerRule('doublonmail', 'callback', 'verif_doublonMail');
120
	        $this->addRule('email', INS_MAIL_DOUBLE, 'doublonmail', true);
120
	        $formulaire->addRule('email', INS_MAIL_DOUBLE, 'doublonmail', true);
121
        }
121
        }
122
        //pour la modification d'une inscription, on charge les valeurs par défauts
122
        //pour la modification d'une inscription, on charge les valeurs par défauts
123
        if ($_REQUEST['action'] == 'modifier') {
123
        if ($_REQUEST['action'] == 'modifier') {
124
            $formulaire->addElement('hidden', 'action', 'modifier_v') ;
124
            $formulaire->addElement('hidden', 'action', 'modifier_v') ;
Line 223... Line 223...
223
}
223
}
Line 224... Line 224...
224
 
224
 
225
/* +--Fin du code ----------------------------------------------------------------------------------------+
225
/* +--Fin du code ----------------------------------------------------------------------------------------+
226
*
226
*
-
 
227
* $Log: not supported by cvs2svn $
-
 
228
* Revision 1.16  2006/07/04 09:38:31  alexandre_tb
-
 
229
* Ajout de la règle doublon email uniquement lors de création d'une entrée
227
* $Log: not supported by cvs2svn $
230
*
228
* Revision 1.15  2006/06/01 10:00:35  alexandre_tb
231
* Revision 1.15  2006/06/01 10:00:35  alexandre_tb
229
* correction bug désinscription des appli cliente
232
* correction bug désinscription des appli cliente
230
*
233
*
231
* Revision 1.14  2006/04/10 09:48:16  alexandre_tb
234
* Revision 1.14  2006/04/10 09:48:16  alexandre_tb