Subversion Repositories Applications.papyrus

Rev

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

Rev 1637 Rev 1652
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.28 2007-10-10 12:23:15 alexandre_tb Exp $
22
// CVS : $Id: inscription.class.php,v 1.29 2007-10-12 10:01:53 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.28 $ $Date: 2007-10-10 12:23:15 $
34
*@version       $Revision: 1.29 $ $Date: 2007-10-12 10:01:53 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
Line 178... Line 178...
178
	          map.addControl(new GSmallMapControl());
178
	          map.addControl(new GSmallMapControl());
179
			  map.addControl(new GMapTypeControl());
179
			  map.addControl(new GMapTypeControl());
180
			  map.addControl(new GScaleControl());
180
			  map.addControl(new GScaleControl());
181
			  map.enableContinuousZoom();
181
			  map.enableContinuousZoom();
Line 182... Line 182...
182
			
182
			
183
			  // On centre la carte sur le languedoc roussillon
183
			  // On centre la carte
184
			  center = new GLatLng(43.84245116699036, 3.768310546875);
184
			  center = new GLatLng('.INS_GOOGLE_CENTRE_LAT.', '.INS_GOOGLE_CENTRE_LON.');
185
	          map.setCenter(center, 7);
185
	          map.setCenter(center, '.INS_GOOGLE_ALTITUDE.');
186
			  //marker = new GMarker(center, {draggable: true}) ;
186
			  //marker = new GMarker(center, {draggable: true}) ;
187
	          GEvent.addListener(map, "click", function(marker, point) {
187
	          GEvent.addListener(map, "click", function(marker, point) {
188
	  		    if (marker) {
188
	  		    if (marker) {
189
	    	      map.removeOverlay(marker);
189
	    	      map.removeOverlay(marker);
Line 286... Line 286...
286
				}
286
				}
287
				elseif ( $tableau[$i]['type']=='texte' || $tableau[$i]['type']=='textelong' || 
287
				elseif ( $tableau[$i]['type']=='texte' || $tableau[$i]['type']=='textelong' || 
288
							$tableau[$i]['type']=='listedatedeb' || $tableau[$i]['type']=='listedatefin' ||
288
							$tableau[$i]['type']=='listedatedeb' || $tableau[$i]['type']=='listedatefin' ||
289
							 $tableau[$i]['type']=='champs_mail' || $tableau[$i]['type']=='champs_cache' 
289
							 $tableau[$i]['type']=='champs_mail' || $tableau[$i]['type']=='champs_cache' 
290
							 || $tableau[$i]['type']=='lien_internet' || $tableau[$i]['type']=='newsletter') {
290
							 || $tableau[$i]['type']=='lien_internet' || $tableau[$i]['type']=='newsletter') {
291
					$def=$tableau[$i]['nom_bdd'];					
291
					$def=$tableau[$i]['nom_bdd'];				
292
				} elseif ($tableau[$i]['type']=='carte_google') {
292
				} elseif ($tableau[$i]['type']=='carte_google') {
293
					$def = 'carte_google';
293
					$def = 'carte_google';
294
					$valeurs_par_defaut[$def] = array ('latitude' => $valeurs_par_defaut[$tableau[$i]['limite1']], 
294
					$valeurs_par_defaut[$def] = array ('latitude' => $valeurs_par_defaut[$tableau[$i]['limite1']], 
295
												'longitude' => $valeurs_par_defaut[$tableau[$i]['limite2']]);
295
												'longitude' => $valeurs_par_defaut[$tableau[$i]['limite2']]);
296
					GEN_stockerCodeScript($script);
296
					GEN_stockerCodeScript($script);