Subversion Repositories Applications.papyrus

Rev

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

Rev 1550 Rev 1585
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.24 2007-08-27 13:08:37 alexandre_tb Exp $
22
// CVS : $Id: inscription.class.php,v 1.25 2007-09-06 14:55:16 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.24 $ $Date: 2007-08-27 13:08:37 $
34
*@version       $Revision: 1.25 $ $Date: 2007-09-06 14:55:16 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 288... Line 288...
288
				} elseif ($tableau[$i]['type']=='carte_google') {
288
				} elseif ($tableau[$i]['type']=='carte_google') {
289
					$def = 'carte_google';
289
					$def = 'carte_google';
290
					$valeurs_par_defaut[$def] = array ('latitude' => $valeurs_par_defaut[$tableau[$i]['limite1']], 
290
					$valeurs_par_defaut[$def] = array ('latitude' => $valeurs_par_defaut[$tableau[$i]['limite1']], 
291
												'longitude' => $valeurs_par_defaut[$tableau[$i]['limite2']]);
291
												'longitude' => $valeurs_par_defaut[$tableau[$i]['limite2']]);
292
					GEN_stockerCodeScript($script);
292
					GEN_stockerCodeScript($script);
-
 
293
					// On ajoute l attribut load a la balise body
-
 
294
					GEN_AttributsBody('onload', 'load()');
293
				}
295
				}
294
				$tableau[$i]['type']($this, $tableau[$i]['nom_bdd'], $tableau[$i]['label'], $tableau[$i]['limite1'],
296
				$tableau[$i]['type']($this, $tableau[$i]['nom_bdd'], $tableau[$i]['label'], $tableau[$i]['limite1'],
295
			                         $tableau[$i]['limite2'], $valeurs_par_defaut[$def], $tableau[$i]['table_source'], 
297
			                         $tableau[$i]['limite2'], $valeurs_par_defaut[$def], $tableau[$i]['table_source'], 
296
			                         $tableau[$i]['obligatoire']) ;		           
298
			                         $tableau[$i]['obligatoire']) ;		           
297
			}
299
			}
298
		}
300
		}
299
		else {
301
		else {
300
			for ($i=0; $i<count($tableau); $i++) {
302
			for ($i=0; $i<count($tableau); $i++) {
301
				if ($tableau[$i]['type'] == 'carte_google') {
303
				if ($tableau[$i]['type'] == 'carte_google') {
302
					GEN_stockerCodeScript($script);	
304
					GEN_stockerCodeScript($script);	
-
 
305
					// On ajoute l attribut load a la balise body
-
 
306
					GEN_AttributsBody('onload', 'load()');
303
				}
307
				}
304
				$tableau[$i]['type']($this, $tableau[$i]['nom_bdd'], $tableau[$i]['label'], $tableau[$i]['limite1'],
308
				$tableau[$i]['type']($this, $tableau[$i]['nom_bdd'], $tableau[$i]['label'], $tableau[$i]['limite1'],
305
			                         $tableau[$i]['limite2'], $tableau[$i]['defaut'], $tableau[$i]['table_source'], $tableau[$i]['obligatoire']) ;
309
			                         $tableau[$i]['limite2'], $tableau[$i]['defaut'], $tableau[$i]['table_source'], $tableau[$i]['obligatoire']) ;
306
			 }
310
			 }
307
		}
311
		}