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.14 2006-10-05 13:53:54 florian Exp $
|
22 |
// CVS : $Id: inscription.class.php,v 1.15 2006-12-01 13:23:16 florian 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.14 $ $Date: 2006-10-05 13:53:54 $
|
34 |
*@version $Revision: 1.15 $ $Date: 2006-12-01 13:23:16 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
Line 187... |
Line 187... |
187 |
$liste_pays = new ListeDePays($GLOBALS['ins_db']) ;
|
187 |
$liste_pays = new ListeDePays($GLOBALS['ins_db']) ;
|
188 |
$this->addElement('select', 'pays', INS_PAYS, $liste_pays->getListePays(INS_LANGUE_DEFAUT)) ;
|
188 |
$this->addElement('select', 'pays', INS_PAYS, $liste_pays->getListePays(INS_LANGUE_DEFAUT)) ;
|
189 |
$this->addElement('text', 'telephone', INS_TELEPHONE, array('size' => '12')) ;
|
189 |
$this->addElement('text', 'telephone', INS_TELEPHONE, array('size' => '12')) ;
|
190 |
$this->addElement('text', 'fax', INS_FAX, array('size' => '12')) ;
|
190 |
$this->addElement('text', 'fax', INS_FAX, array('size' => '12')) ;
|
191 |
$this->addElement('text', 'site', INS_SITE_INTERNET) ;
|
191 |
$this->addElement('text', 'site', INS_SITE_INTERNET) ;
|
- |
|
192 |
$this->addElement('file', 'image', INS_LOGO_OU_IMAGE) ;
|
- |
|
193 |
$this->setMaxFileSize(150000); //logo de 15ko maximum
|
192 |
if (INS_CHAMPS_LETTRE != '') $this->addElement('checkbox', 'lettre',INS_LETTRE, '<br />') ;
|
194 |
if (INS_CHAMPS_LETTRE != '') $this->addElement('checkbox', 'lettre',INS_LETTRE, '<br />') ;
|
193 |
$this->addElement('checkbox', 'visible',INS_VISIBLE, '<br />') ;
|
195 |
$this->addElement('checkbox', 'visible',INS_VISIBLE, '<br />') ;
|
194 |
$this->addElement('hidden', 'est_structure', 0) ;
|
196 |
$this->addElement('hidden', 'est_structure', 0) ;
|
195 |
$defauts=array ('lettre'=>1,'pays'=>'FR');
|
197 |
$defauts=array ('lettre'=>1,'pays'=>'FR');
|
196 |
$this->setDefaults($defauts);
|
198 |
$this->setDefaults($defauts);
|