Subversion Repositories Applications.papyrus

Rev

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

Rev 854 Rev 896
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.15 2006-06-01 10:00:35 alexandre_tb Exp $
22
// CVS : $Id: inscription.php,v 1.16 2006-07-04 09:38:31 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.15 $ $Date: 2006-06-01 10:00:35 $
35
*@version       $Revision: 1.16 $ $Date: 2006-07-04 09:38:31 $
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
37
*/
37
*/
Line 38... Line 38...
38
 
38
 
39
// +------------------------------------------------------------------------------------------------------+
39
// +------------------------------------------------------------------------------------------------------+
Line 112... Line 112...
112
        	if ($_REQUEST['form_structure']==1) {
112
        	if ($_REQUEST['form_structure']==1) {
113
        		$formulaire->formulaireStructure() ;
113
        		$formulaire->formulaireStructure() ;
114
        	}
114
        	}
115
        }
115
        }
Line -... Line 116...
-
 
116
        
-
 
117
        // On ajoute la règle de vérification mail uniquement lors de l inscription
-
 
118
        if ($_REQUEST['action'] == 'inscription') {
-
 
119
	        $this->registerRule('doublonmail', 'callback', 'verif_doublonMail');
-
 
120
	        $this->addRule('email', INS_MAIL_DOUBLE, 'doublonmail', true);
116
        
121
        }
117
        //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
118
        if ($_REQUEST['action'] == 'modifier') {
123
        if ($_REQUEST['action'] == 'modifier') {
119
            $formulaire->addElement('hidden', 'action', 'modifier_v') ;
124
            $formulaire->addElement('hidden', 'action', 'modifier_v') ;
120
            $formulaire->setDefaults(formulaire_defaults()) ;
125
            $formulaire->setDefaults(formulaire_defaults()) ;
Line 218... Line 223...
218
}
223
}
Line 219... Line 224...
219
 
224
 
220
/* +--Fin du code ----------------------------------------------------------------------------------------+
225
/* +--Fin du code ----------------------------------------------------------------------------------------+
221
*
226
*
-
 
227
* $Log: not supported by cvs2svn $
-
 
228
* Revision 1.15  2006/06/01 10:00:35  alexandre_tb
-
 
229
* correction bug désinscription des appli cliente
222
* $Log: not supported by cvs2svn $
230
*
223
* Revision 1.14  2006/04/10 09:48:16  alexandre_tb
231
* Revision 1.14  2006/04/10 09:48:16  alexandre_tb
224
* Correction de bug pour les inscriptions aux autres applications
232
* Correction de bug pour les inscriptions aux autres applications
225
*
233
*
226
* Revision 1.13  2006/04/04 12:23:05  florian
234
* Revision 1.13  2006/04/04 12:23:05  florian