Subversion Repositories Applications.papyrus

Rev

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

Rev 231 Rev 234
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.1 2004-12-15 13:32:29 alex Exp $
22
// CVS : $Id: inscription.class.php,v 1.2 2004-12-17 17:41:57 alex 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.1 $ $Date: 2004-12-15 13:32:29 $
34
*@version       $Revision: 1.2 $ $Date: 2004-12-17 17:41:57 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 109... Line 109...
109
            $this->registerRule('doublonwikini', 'callback', 'verif_doublonNomWiki');
109
            $this->registerRule('doublonwikini', 'callback', 'verif_doublonNomWiki');
110
            $this->addRule('nom_wikini', INS_NOMWIKI_DOUBLE, 'doublonwikini', true);
110
            $this->addRule('nom_wikini', INS_NOMWIKI_DOUBLE, 'doublonwikini', true);
111
        }
111
        }
112
        $this->addElement ('text', 'adresse_1', INS_ADRESSE) ;
112
        $this->addElement ('text', 'adresse_1', INS_ADRESSE) ;
113
        $this->addElement ('text', 'adresse_2', INS_ADRESSE) ;
113
        $this->addElement ('text', 'adresse_2', INS_ADRESSE) ;
-
 
114
        if (INS_CHAMPS_TELEPHONE) $this->addElement('text', 'telephone', INS_TELEPHONE) ;
-
 
115
        if (INS_CHAMPS_FAX) $this->addElement('text', 'fax', INS_FAX) ;
114
        $this->addElement ('text', 'region', INS_REGION) ;
116
        $this->addElement ('text', 'region', INS_REGION) ;
Line 115... Line 117...
115
        
117
        
116
        $cp_ville[] = & HTML_QuickForm::createElement ('text', 'cp', INS_CODE_POSTAL) ;
118
        $cp_ville[] = & HTML_QuickForm::createElement ('text', 'cp', INS_CODE_POSTAL) ;
117
        $cp_ville[] = & HTML_QuickForm::createElement ('text', 'ville', INS_VILLE) ;
119
        $cp_ville[] = & HTML_QuickForm::createElement ('text', 'ville', INS_VILLE) ;
Line 120... Line 122...
120
        
122
        
Line 121... Line 123...
121
            // L'élément pays est construit à partir du tableau liste_pays
123
            // L'élément pays est construit à partir du tableau liste_pays
Line -... Line 124...
-
 
124
 
-
 
125
        $this->addElement ('select', 'pays', INS_PAYS, $liste_pays) ;
122
 
126
        
Line 123... Line 127...
123
        $this->addElement ('select', 'pays', INS_PAYS, $liste_pays) ;
127
        if (INS_CHAMPS_STRUCTURE) $this->addElement('text', 'structure', INS_STRUCTURE) ;
124
        
128
        
125
        $this->addElement ('text', 'site', INS_SITE_INTERNET) ;
129
        $this->addElement ('text', 'site', INS_SITE_INTERNET) ;