Subversion Repositories Applications.papyrus

Rev

Rev 1605 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1427 alexandre_ 1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
17
// |                                                                                                      |
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                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
1628 alexandre_ 22
// CVS : $Id: carto_google.php,v 1.6 2007-10-01 12:18:29 alexandre_tb Exp $
1427 alexandre_ 23
/**
24
* Cartographie google du bottin
25
*
26
*@package bottin
27
//Auteur original :
28
*@author        Alexandre Granier <alexandre@tela-botanica.org>
29
//Autres auteurs :
30
*@copyright     Tela-Botanica 2000-2007
1628 alexandre_ 31
*@version       $Revision: 1.6 $ $Date: 2007-10-01 12:18:29 $
1427 alexandre_ 32
// +------------------------------------------------------------------------------------------------------+
33
*/
34
 
35
// +------------------------------------------------------------------------------------------------------+
36
// |                                            ENTETE du PROGRAMME                                       |
37
// +------------------------------------------------------------------------------------------------------+
38
 
39
include_once 'configuration/bottin.config.inc.php';
40
include_once INS_CHEMIN_APPLI.'bibliotheque/bottin.fonct.php';
1572 alexandre_ 41
include_once INS_CHEMIN_APPLI.'bibliotheque/bottin.class.php';
1427 alexandre_ 42
// Inclusion d'une classe personnalise si elle existe
43
if (file_exists (INS_CHEMIN_APPLI.'bibliotheque/inscription.class.local.php')) {
44
	include_once INS_CHEMIN_APPLI.'bibliotheque/inscription.class.local.php' ;
45
} else {
46
	include_once INS_CHEMIN_APPLI.'bibliotheque/inscription.class.php';
47
}
48
 
1605 alexandre_ 49
$GLOBALS ['ins_config'] = inscription::getConfig($GLOBALS['type_inscription_carto']);
1572 alexandre_ 50
$GLOBALS ['ins_config']['ic_inscription_template'] = inscription::getTemplate(INS_TEMPLATE_FORMULAIRE,
51
    									$GLOBALS['ins_config']['ic_id_inscription']);
1549 alexandre_ 52
$GLOBALS['ins_config']['ic_google_key'] = 'http://maps.google.com/maps?file=api&amp;v=2&amp;key='.INS_GOOGLE_KEY;
1427 alexandre_ 53
GEN_stockerFichierScript('googleMapScript', $GLOBALS['ins_config']['ic_google_key']);
54
 
55
 
56
 
57
 
1628 alexandre_ 58
include_once INS_CHEMIN_APPLI.'squelettes/donnees_googlemap.php';
1427 alexandre_ 59
 
1628 alexandre_ 60
ob_start();
61
include INS_CHEMIN_APPLI.'squelettes/script_googlemap.tpl.js';
62
$script = ob_get_contents();
63
ob_end_clean();
1427 alexandre_ 64
GEN_stockerCodeScript($script);
65
 
66
function afficherContenuCorps() {
1549 alexandre_ 67
	// Appel du template
68
	include_once INS_CHEMIN_APPLI.'bibliotheque/bottin.class.php';
69
	$template = inscription::getTemplate(INS_TEMPLATE_CARTO_GOOGLE_ACCUEIL, 1);
70
	$carte = '<div id="map" style="width: 600px; height: 450px"></div>';
71
	$res = str_replace ('{CARTE}', $carte, $template);
1427 alexandre_ 72
 
73
	return $res;
74
}
75
 
76
/* +--Fin du code ----------------------------------------------------------------------------------------+
77
*
78
* $Log: not supported by cvs2svn $
1628 alexandre_ 79
* Revision 1.5  2007-09-18 08:38:54  alexandre_tb
80
* ajout de la globale $GLOBALS['type_inscription'] pour indiquer quelle inscription on cartographie
81
*
1605 alexandre_ 82
* Revision 1.4  2007-09-06 08:29:22  alexandre_tb
83
* utilisation de constantes pour centrer la carte
84
*
1572 alexandre_ 85
* Revision 1.3  2007-08-27 12:35:13  alexandre_tb
86
* mise en place d un icone personnalise
87
* et de l affichage de plusieurs donnees sur un meme point
88
*
1549 alexandre_ 89
* Revision 1.2  2007-06-25 09:59:03  alexandre_tb
90
* ajout de carte_google, mise en place des templates avec api/formulaire, configuration de multiples inscriptions, ajout de modele pour les mails
91
*
1467 alexandre_ 92
* Revision 1.1  2007-06-01 13:39:14  alexandre_tb
93
* version initiale
94
*
1427 alexandre_ 95
* +-- Fin du code ----------------------------------------------------------------------------------------+
96
*/