Subversion Repositories Applications.papyrus

Rev

Rev 1430 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1430 Rev 1467
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.21 2007-06-01 13:45:46 alexandre_tb Exp $
22
// CVS : $Id: inscription.class.php,v 1.22 2007-06-25 09:59:03 alexandre_tb Exp $
23
/**
23
/**
24
* Inscription
24
* Inscription
25
*
25
*
26
* Un module d'inscription, en general ce code est specifique a
26
* Un module d'inscription, en general ce code est specifique a
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.21 $ $Date: 2007-06-01 13:45:46 $
34
*@version       $Revision: 1.22 $ $Date: 2007-06-25 09:59:03 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 161... Line 161...
161
        $squelette->setGroupTemplate('<tr><td colspan="2">{content}</td></tr>'."\n", 'groupe_bouton');
161
        $squelette->setGroupTemplate('<tr><td colspan="2">{content}</td></tr>'."\n", 'groupe_bouton');
162
        $squelette->setRequiredNoteTemplate("\n".'<tr>'."\n".'<td colspan="2" class="symbole_obligatoire">* {requiredNote}</td></tr>'."\n");
162
        $squelette->setRequiredNoteTemplate("\n".'<tr>'."\n".'<td colspan="2" class="symbole_obligatoire">* {requiredNote}</td></tr>'."\n");
163
		//Traduction de champs requis
163
		//Traduction de champs requis
164
		$this->setRequiredNote(INS_CHAMPS_REQUIS) ;
164
		$this->setRequiredNote(INS_CHAMPS_REQUIS) ;
165
		$this->setJsWarnings(INS_ERREUR_SAISIE,INS_VEUILLEZ_CORRIGER);
165
		$this->setJsWarnings(INS_ERREUR_SAISIE,INS_VEUILLEZ_CORRIGER);
166
				
-
 
167
        $debut = '<h2>'.INS_AJOUT_MEMBRE.'</h2>'."\n";
-
 
168
        $this->addElement('html', $debut);
-
 
169
        
-
 
170
        $this->addElement('text', 'email', INS_EMAIL) ;
-
 
171
        $this->addRule('email', INS_EMAIL_REQUIS, 'required','', 'client') ;
-
 
172
        $this->addRule('email', INS_MAIL_INCORRECT, 'email', '', 'client') ;        
-
 
173
        $this->addElement('password', 'mot_de_passe', INS_MOT_DE_PASSE, array('size' => '10')) ;
-
 
174
        $this->addElement('password', 'mot_de_passe_repete', INS_REPETE_MOT_DE_PASSE, array('size' => '10')) ;
-
 
175
        $this->addRule('mot_de_passe', INS_MOT_DE_PASSE_REQUIS, 'required', '', 'client') ;
-
 
176
        $this->addRule('mot_de_passe_repete', INS_MOT_DE_PASSE_REQUIS, 'required', '', 'client') ;
-
 
177
        $this->addRule(array ('mot_de_passe', 'mot_de_passe_repete'), INS_MOTS_DE_PASSE_DIFFERENTS, 'compare', '', 'client') ;
-
 
178
        $this->addElement('text', 'nom', INS_NOM) ;
-
 
179
        $this->addRule('nom', INS_NOM_REQUIS, 'required', '', 'client') ;
-
 
180
        $this->addElement('text', 'prenom', INS_PRENOM) ;
-
 
181
        $this->addRule('prenom', INS_PRENOM_REQUIS, 'required', '', 'client') ;
-
 
182
        $this->addElement('text', 'adresse_1', INS_ADRESSE_1, array('id' => 'adresse_1')) ;
-
 
183
        $this->addElement('text', 'adresse_2', INS_ADRESSE_2, array('id' => 'adresse_2')) ;
-
 
184
        $this->addElement('text', 'cp', INS_CODE_POSTAL, array('id' => 'cp')) ;
-
 
185
        $this->addRule('cp', INS_CODE_POSTAL_REQUIS, 'required', '', 'client') ;
-
 
186
        $this->addElement('text', 'ville', INS_VILLE, array('id' => 'ville')) ;
-
 
187
        // L'element pays est construit a partir du tableau liste_pays
-
 
188
        $liste_pays = new ListeDePays($GLOBALS['ins_db']) ;
-
 
189
        $this->addElement('select', 'pays', INS_PAYS, $liste_pays->getListePays(INS_LANGUE_DEFAUT), array('id' => 'pays')) ;
-
 
190
        $this->addElement('text', 'telephone', INS_TELEPHONE, array('size' => '12')) ;
-
 
191
        $this->addElement('text', 'fax', INS_FAX, array('size' => '12')) ;
-
 
192
        $this->addElement('text', 'site', INS_SITE_INTERNET) ;
-
 
193
        $this->addElement('file', 'image', INS_LOGO_OU_IMAGE) ;
-
 
194
		$this->setMaxFileSize(150000); //logo de 15ko maximum
-
 
195
        if (INS_CHAMPS_LETTRE != '') $this->addElement('checkbox', 'lettre',INS_LETTRE, '<br />') ;
-
 
196
        $this->addElement('checkbox', 'visible',INS_VISIBLE, '<br />') ;
-
 
197
        
-
 
198
        $this->addElement('hidden', 'est_structure', 0) ;
-
 
199
        $defauts=array ('lettre'=>1,'pays'=>'FR');
-
 
200
        if (isset ($GLOBALS['ins_config']['ic_google_key']) && $GLOBALS['ins_config']['ic_google_key'] != '') {
-
 
201
	        $this->addElement('button', 'chercher_sur_carte', 'Vérifier mon adresse avec la carte', array("onclick" => "showAddress();"));
-
 
202
	        $this->addElement('text', 'latitude', 'Latitude', array('id' => 'latitude', 'size' => 6, 'readonly' => 'readonly'));
-
 
203
	        $this->addElement('text', 'longitude', 'longitude', array('id' => 'longitude', 'size' => 6, 'readonly' => 'readonly'));
-
 
204
	        $this->addElement('html', '<tr><td colspan="2"	><div id="map" style="width: 600px; height: 450px"></div></td></tr>');
-
 
205
        }      
-
 
206
        $this->setDefaults($defauts);	
-
 
207
        // on fait un groupe avec les boutons pour les mettres sur la meme ligne
-
 
208
        $boutons[] = &HTML_QuickForm::createElement('button', 'annuler', INS_ANNULER, array ("onclick" => "javascript:document.location.href='".$url."'",
-
 
209
        												'id' => 'annuler', 'class' => 'bouton'));
-
 
210
        $boutons[] = &HTML_QuickForm::createElement('submit', 'valider', INS_VALIDER, array ('id' => 'valider', 'class' =>'bouton'));
-
 
211
        $this->addGroup($boutons, 'groupe_bouton', '', "\n");
-
 
212
        
-
 
213
        if (isset ($GLOBALS['ins_config']['ic_google_key']) && $GLOBALS['ins_config']['ic_google_key'] != '') {
-
 
214
        	GEN_stockerFichierScript('googleMapScript', $GLOBALS['ins_config']['ic_google_key']);
-
 
215
        	
-
 
216
        	
166
		
217
	        $script = '
167
		$script = '
218
	        // Variables globales
168
	        // Variables globales
219
	        var map = null;
169
	        var map = null;
220
	    	var geocoder = null;
170
	    	var geocoder = null;
221
			var lat = document.getElementById("latitude");
171
			var lat = document.getElementById("latitude");
222
	        var lon = document.getElementById("longitude");
172
	        var lon = document.getElementById("longitude");
Line 262... Line 212...
262
			} 
212
			} 
263
	        $script .= 'geocoder = new GClientGeocoder();
213
	        $script .= 'geocoder = new GClientGeocoder();
264
	      }
214
	      }
265
	    };
215
	    };
266
	    function showAddress() {
216
	    function showAddress() {
267
	      var adress_1 = document.getElementById("adresse_1").value ;
217
	      var adress_1 = document.getElementById("a_adresse1").value ;
268
	      var adress_2 = document.getElementById("adresse_2").value ;
218
	      var adress_2 = document.getElementById("a_adresse2").value ;
269
	      var ville = document.getElementById("ville").value ;
219
	      var ville = document.getElementById("a_ville").value ;
270
	      var cp = document.getElementById("cp").value ;
220
	      var cp = document.getElementById("a_code_postal").value ;
271
	      var selectIndex = document.getElementById("pays").selectedIndex;
221
	      var selectIndex = document.getElementById("a_ce_pays").selectedIndex;
272
	      var pays = document.getElementById("pays").options[selectIndex].text ;
222
	      var pays = document.getElementById("a_ce_pays").options[selectIndex].text ;
Line 273... Line 223...
273
	      
223
	      
274
	      var address = adress_1 + \' \' + adress_2 + \' \' + \' \' + cp + \' \' + ville + \' \' +pays ;
224
	      var address = adress_1 + \' \' + adress_2 + \' \' + \' \' + cp + \' \' + ville + \' \' +pays ;
275
	      if (geocoder) {
225
	      if (geocoder) {
276
	        geocoder.getLatLng(
226
	        geocoder.getLatLng(
Line 303... Line 253...
303
	      var lon = document.getElementById("longitude");
253
	      var lon = document.getElementById("longitude");
304
		  lat.value = coordMarker.lat();
254
		  lat.value = coordMarker.lat();
305
	      lon.value = coordMarker.lng();
255
	      lon.value = coordMarker.lng();
306
	    }
256
	    }
307
	    ';
257
	    ';
-
 
258
	    
-
 
259
		// Mise en place du systeme de template du bazar
-
 
260
		include_once GEN_CHEMIN_API.'/formulaire/formulaire.fonct.inc.php';
-
 
261
		$tableau= formulaire_valeurs_template_champs($GLOBALS['ins_config']['ic_inscription_template']);
-
 
262
 
-
 
263
		if (isset ($_REQUEST['action']) && $_REQUEST['action']=='modifier') {
-
 
264
			//Ajout des valeurs par defaut
-
 
265
			$requete_defaut = 'select * from annuaire where a_id='.$GLOBALS['AUTH']->getAuthData(INS_CHAMPS_ID);
-
 
266
			$resultat_defaut = $GLOBALS['ins_db']->query($requete_defaut);
-
 
267
			$valeurs_par_defaut = $resultat_defaut->fetchRow(DB_FETCHMODE_ASSOC);
-
 
268
			
-
 
269
			for ($i=0; $i<count($tableau); $i++) {
-
 
270
				if ( $tableau[$i]['type']=='liste' || $tableau[$i]['type']=='checkbox' ) {
-
 
271
					if (is_int ($tableau[$i]['nom_bdd'])) $def=$tableau[$i]['type'].$tableau[$i]['nom_bdd'];
-
 
272
							else $def = $tableau[$i]['nom_bdd'];
-
 
273
				}
-
 
274
				elseif ( $tableau[$i]['type']=='texte' || $tableau[$i]['type']=='textelong' || 
-
 
275
							$tableau[$i]['type']=='listedatedeb' || $tableau[$i]['type']=='listedatefin' ||
-
 
276
							 $tableau[$i]['type']=='champs_mail') {
-
 
277
					$def=$tableau[$i]['nom_bdd'];					
-
 
278
				} elseif ($tableau[$i]['type']=='carte_google') {
-
 
279
					$def = 'carte_google';
-
 
280
					$valeurs_par_defaut[$def] = array ('latitude' => $valeurs_par_defaut[$tableau[$i]['limite1']], 
-
 
281
												'longitude' => $valeurs_par_defaut[$tableau[$i]['limite2']]);
-
 
282
					GEN_stockerCodeScript($script);
-
 
283
				}
-
 
284
				$tableau[$i]['type']($this, $tableau[$i]['nom_bdd'], $tableau[$i]['label'], $tableau[$i]['limite1'],
-
 
285
			                         $tableau[$i]['limite2'], $valeurs_par_defaut[$def], $tableau[$i]['table_source'], 
-
 
286
			                         $tableau[$i]['obligatoire']) ;		           
-
 
287
			}
-
 
288
		}
-
 
289
		else {
-
 
290
			for ($i=0; $i<count($tableau); $i++) {
-
 
291
				if ($tableau[$i]['type'] == 'carte_google') {
308
	    GEN_stockerCodeScript($script);
292
					GEN_stockerCodeScript($script);	
-
 
293
				}
-
 
294
				$tableau[$i]['type']($this, $tableau[$i]['nom_bdd'], $tableau[$i]['label'], $tableau[$i]['limite1'],
-
 
295
			                         $tableau[$i]['limite2'], $tableau[$i]['defaut'], $tableau[$i]['table_source'], $tableau[$i]['obligatoire']) ;
-
 
296
			 }
-
 
297
		}
-
 
298
		
-
 
299
        $debut = inscription::getTemplate(INS_TEMPLATE_TITRE_FORMULAIRE, $GLOBALS['ins_config']['ic_id_inscription'])."\n";
-
 
300
        $this->addElement('html', $debut);
-
 
301
        /*
-
 
302
        $this->addElement('text', 'email', INS_EMAIL) ;
-
 
303
        $this->addRule('email', INS_EMAIL_REQUIS, 'required','', 'client') ;
-
 
304
        $this->addRule('email', INS_MAIL_INCORRECT, 'email', '', 'client') ; 
-
 
305
        /*       
-
 
306
        $this->addElement('password', 'mot_de_passe', INS_MOT_DE_PASSE, array('size' => '10')) ;
-
 
307
        $this->addElement('password', 'mot_de_passe_repete', INS_REPETE_MOT_DE_PASSE, array('size' => '10')) ;
-
 
308
        $this->addRule('mot_de_passe', INS_MOT_DE_PASSE_REQUIS, 'required', '', 'client') ;
-
 
309
        $this->addRule('mot_de_passe_repete', INS_MOT_DE_PASSE_REQUIS, 'required', '', 'client') ;
-
 
310
        $this->addRule(array ('mot_de_passe', 'mot_de_passe_repete'), INS_MOTS_DE_PASSE_DIFFERENTS, 'compare', '', 'client') ;
-
 
311
 
-
 
312
        $this->addElement('text', 'nom', INS_NOM) ;
-
 
313
        $this->addRule('nom', INS_NOM_REQUIS, 'required', '', 'client') ;
-
 
314
        $this->addElement('text', 'prenom', INS_PRENOM) ;
-
 
315
        $this->addRule('prenom', INS_PRENOM_REQUIS, 'required', '', 'client') ;
-
 
316
        if ($GLOBALS['ins_config']['ic_utilise_nom_wiki'] && ! $GLOBALS['ins_config']['ic_genere_nom_wiki']) {
-
 
317
        		$this->addElement('text', 'nomwiki', INS_NOM_WIKI, array('id' => 'nom_wiki')) ;
-
 
318
        }
-
 
319
        $this->addElement('text', 'adresse_1', INS_ADRESSE_1, array('id' => 'adresse_1')) ;
-
 
320
        $this->addElement('text', 'adresse_2', INS_ADRESSE_2, array('id' => 'adresse_2')) ;
-
 
321
        $this->addElement('text', 'cp', INS_CODE_POSTAL, array('id' => 'cp')) ;
-
 
322
        $this->addRule('cp', INS_CODE_POSTAL_REQUIS, 'required', '', 'client') ;
-
 
323
        $this->addElement('text', 'ville', INS_VILLE, array('id' => 'ville')) ;
-
 
324
        // L'element pays est construit a partir du tableau liste_pays
-
 
325
        $liste_pays = new ListeDePays($GLOBALS['ins_db']) ;
-
 
326
        $this->addElement('select', 'pays', INS_PAYS, $liste_pays->getListePays(INS_LANGUE_DEFAUT), array('id' => 'pays')) ;
-
 
327
        */
-
 
328
        //$this->addElement('text', 'telephone', INS_TELEPHONE, array('size' => '12')) ;
-
 
329
        //$this->addElement('text', 'fax', INS_FAX, array('size' => '12')) ;
-
 
330
        //$this->addElement('text', 'site', INS_SITE_INTERNET) ;
-
 
331
        /*
-
 
332
        $this->addElement('file', 'image', INS_LOGO_OU_IMAGE) ;
-
 
333
		$this->setMaxFileSize(150000); //logo de 15ko maximum
-
 
334
		*/
-
 
335
        //if (INS_CHAMPS_LETTRE != '') $this->addElement('checkbox', 'lettre',INS_LETTRE, '<br />') ;
-
 
336
        //$this->addElement('checkbox', 'visible',INS_VISIBLE, '<br />') ;
-
 
337
        /*
-
 
338
        $this->addElement('hidden', 'est_structure', 0) ;
-
 
339
        $defauts=array ('lettre'=>1,'pays'=>'FR');
-
 
340
        if (isset ($GLOBALS['ins_config']['ic_google_key']) && $GLOBALS['ins_config']['ic_google_key'] != '') {
-
 
341
	        $this->addElement('button', 'chercher_sur_carte', 'Vérifier mon adresse avec la carte', array("onclick" => "showAddress();"));
-
 
342
	        $this->addElement('html', '<tr><td colspan="2"	><div id="map" style="width: 600px; height: 450px"></div></td></tr>');
-
 
343
	        $this->addElement('text', 'latitude', 'Latitude', array('id' => 'latitude', 'size' => 6, 'readonly' => 'readonly'));
-
 
344
	        $this->addElement('text', 'longitude', 'longitude', array('id' => 'longitude', 'size' => 6, 'readonly' => 'readonly'));
-
 
345
	        
-
 
346
        } 
-
 
347
        */     
-
 
348
        //$this->setDefaults($defauts);	
-
 
349
        // on fait un groupe avec les boutons pour les mettres sur la meme ligne
-
 
350
        $boutons[] = &HTML_QuickForm::createElement('button', 'annuler', INS_ANNULER, array ("onclick" => "javascript:document.location.href='".$url."'",
-
 
351
        												'id' => 'annuler', 'class' => 'bouton'));
-
 
352
        $boutons[] = &HTML_QuickForm::createElement('submit', 'valider', INS_VALIDER, array ('id' => 'valider', 'class' =>'bouton'));
-
 
353
        $this->addGroup($boutons, 'groupe_bouton', '', "\n");
-
 
354
        
-
 
355
        if (isset ($GLOBALS['ins_config']['ic_google_key']) && $GLOBALS['ins_config']['ic_google_key'] != '') {
-
 
356
        	GEN_stockerFichierScript('googleMapScript', $GLOBALS['ins_config']['ic_google_key']);
-
 
357
        	
-
 
358
        	
-
 
359
	        
-
 
360
	    
309
        }
361
        }
310
    } // end of member function construitFormulaire
362
    } // end of member function construitFormulaire
Line 311... Line 363...
311
    
363
    
312
    /** Modifie le formulaire pour l'adapter au cas des structures
364
    /** Modifie le formulaire pour l'adapter au cas des structures
Line 315... Line 367...
315
     * @return void
367
     * @return void
316
     * @access public
368
     * @access public
317
     */
369
     */
318
    function formulaireStructure()
370
    function formulaireStructure()
319
    {
371
    {
-
 
372
        /*
320
        $this->removeElement('nom', false) ;
373
        $this->removeElement('nom', false) ;
321
        $this->removeElement('prenom') ;
374
        $this->removeElement('prenom') ;
322
        $this->removeElement('email', false) ;
375
        $this->removeElement('email', false) ;
-
 
376
        $this->removeElement('telephone', false) ;
-
 
377
        $nom_structure = & HTML_QuickForm::createElement('text', 'nom', INS_NOM_STRUCTURE) ;
-
 
378
        $this->insertElementBefore($nom_structure, 'mot_de_passe') ;
-
 
379
        
323
        $mail = & HTML_QuickForm::createElement('text', 'email', INS_MAIL_STRUCTURE) ;
380
        $mail = & HTML_QuickForm::createElement('text', 'email', INS_MAIL_STRUCTURE) ;
324
        $this->insertElementBefore($mail, 'mot_de_passe') ;
381
        $this->insertElementBefore($mail, 'mot_de_passe') ;
325
        $nom_structure = & HTML_QuickForm::createElement('text', 'nom', INS_NOM_STRUCTURE) ;
-
 
326
        $this->insertElementBefore($nom_structure, 'email') ;
-
 
-
 
382
        
327
        $this->addRule('nom', INS_NOM_REQUIS, 'required', '', 'client') ;
383
        $this->addRule('nom', INS_NOM_REQUIS, 'required', '', 'client') ;
-
 
384
        /*
328
        $sigle_structure = & HTML_QuickForm::createElement('text', 'sigle_structure', INS_SIGLE_DE_LA_STRUCTURE) ;
385
        $sigle_structure = & HTML_QuickForm::createElement('text', 'sigle_structure', INS_SIGLE_DE_LA_STRUCTURE) ;
329
        $this->insertElementBefore($sigle_structure, 'email') ;
386
        $this->insertElementBefore($sigle_structure, 'email') ;
-
 
387
        */
-
 
388
        // not required
330
        $this->addRule('sigle_structure', INS_SIGLE_REQUIS, 'required', '', 'client') ;
389
        //$this->addRule('sigle_structure', INS_SIGLE_REQUIS, 'required', '', 'client') ;
-
 
390
        
-
 
391
        // what's this ?
331
        $num_agrement = & HTML_QuickForm::createElement('text', 'num_agrement', INS_NUM_AGREMENT) ;
392
        //$num_agrement = & HTML_QuickForm::createElement('text', 'num_agrement', INS_NUM_AGREMENT) ;
332
        $this->insertElementBefore($num_agrement, 'email') ;
393
        //$this->insertElementBefore($num_agrement, 'email') ;
-
 
394
        /*
-
 
395
        $telephone = & HTML_QuickForm::createElement('text', 'telephone', INS_TELEPHONE_STRUCTURE) ;
-
 
396
        $this->insertElementBefore($telephone, 'lettre') ;
-
 
397
        $fax = & HTML_QuickForm::createElement('text', 'fax', INS_FAX_STRUCTURE) ;
-
 
398
        $this->insertElementBefore($fax, 'lettre') ;
-
 
399
        
333
        $this->removeElement('site', false) ;
400
        $this->removeElement('site', false) ;
334
        $site_structure = & HTML_QuickForm::createElement('text', 'site', INS_SITE_STRUCTURE) ;
401
        $site_structure = & HTML_QuickForm::createElement('text', 'site', INS_SITE_STRUCTURE) ;
335
        $this->insertElementBefore($site_structure, 'lettre') ;
402
        $this->insertElementBefore($site_structure, 'lettre') ;
-
 
403
        
-
 
404
        // bloc contact
-
 
405
        $coord = & HTML_QuickForm::createElement('html', '<tr><td colspan="2"><strong>'.INS_COORD_CONTACT.'</strong></td></tr>') ;
-
 
406
        $nom = & HTML_QuickForm::createElement('text', 'nom_contact', INS_NOM_CONTACT) ;
-
 
407
        $prenom = & HTML_QuickForm::createElement('text', 'prenom_contact', INS_PRENOM_CONTACT) ;
-
 
408
        $poste = & HTML_QuickForm::createElement('text', 'poste_contact', INS_POSTE_CONTACT) ;
-
 
409
        $tel = & HTML_QuickForm::createElement('text', 'tel_contact', INS_TEL_CONTACT) ;
-
 
410
		$this->insertElementBefore($coord, 'lettre') ;
-
 
411
		$this->insertElementBefore($nom, 'lettre') ;
-
 
412
		$this->insertElementBefore($prenom, 'lettre') ;
-
 
413
		$this->insertElementBefore($poste, 'lettre') ;
-
 
414
		$this->insertElementBefore($tel, 'lettre') ;
-
 
415
        */
-
 
416
        $separateur = & HTML_QuickForm::createElement('html', '<tr><td colspan="2"><hr /></td></tr>') ;
-
 
417
        $this->insertElementBefore($separateur, 'lettre') ;
-
 
418
        
-
 
419
        //$fax = & HTML_QuickForm::createElement('text', 'fax', INS_FAX) ;
-
 
420
        //$image = & HTML_QuickForm::createElement('file', 'image', INS_LOGO_OU_IMAGE) ;
-
 
421
        
-
 
422
		//$this->insertElementBefore($image, 'lettre') ;
-
 
423
		//$this->setMaxFileSize(150000); //logo de 150 ko maximum
-
 
424
		
336
        $this->removeElement('est_structure', false) ;
425
        $this->removeElement('est_structure', false) ;
337
        $this->addElement('hidden', 'est_structure', 1) ;
426
        $this->addElement('hidden', 'est_structure', 1) ;
338
        $this->addElement('hidden', 'form_structure', 1) ;
427
        $this->addElement('hidden', 'form_structure', 1) ;
Line 339... Line 428...
339
        
428