Subversion Repositories Applications.papyrus

Rev

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

Rev 1691 Rev 1800
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: carto_google.php,v 1.7.2.1 2007-11-16 11:19:01 alexandre_tb Exp $
22
// CVS : $Id: carto_google.php,v 1.7.2.2 2008-02-08 08:30:07 alexandre_tb Exp $
23
/**
23
/**
24
* Cartographie google du bottin
24
* Cartographie google du bottin
25
*
25
*
26
*@package bottin
26
*@package bottin
27
//Auteur original :
27
//Auteur original :
28
*@author        Alexandre Granier <alexandre@tela-botanica.org>
28
*@author        Alexandre Granier <alexandre@tela-botanica.org>
29
//Autres auteurs :
29
//Autres auteurs :
30
*@copyright     Tela-Botanica 2000-2007
30
*@copyright     Tela-Botanica 2000-2007
31
*@version       $Revision: 1.7.2.1 $ $Date: 2007-11-16 11:19:01 $
31
*@version       $Revision: 1.7.2.2 $ $Date: 2008-02-08 08:30:07 $
32
// +------------------------------------------------------------------------------------------------------+
32
// +------------------------------------------------------------------------------------------------------+
33
*/
33
*/
Line 34... Line 34...
34
 
34
 
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
Line 67... Line 67...
67
	// Appel du template
67
	// Appel du template
68
	include_once INS_CHEMIN_APPLI.'bibliotheque/bottin.class.php';
68
	include_once INS_CHEMIN_APPLI.'bibliotheque/bottin.class.php';
69
	$template = inscription::getTemplate(INS_TEMPLATE_CARTO_GOOGLE_ACCUEIL, 1);
69
	$template = inscription::getTemplate(INS_TEMPLATE_CARTO_GOOGLE_ACCUEIL, 1);
70
	GEN_AttributsBody('onload', 'load()');
70
	GEN_AttributsBody('onload', 'load()');
71
	$carte = '<div id="map" style="width: '.INS_GOOGLE_IMAGE_LARGEUR.'px; height: '.INS_GOOGLE_IMAGE_HAUTEUR.'px"></div>';
71
	$carte = '<div id="map" style="width: '.INS_GOOGLE_IMAGE_LARGEUR.'px; height: '.INS_GOOGLE_IMAGE_HAUTEUR.'px"></div>';
-
 
72
	$res = '';
-
 
73
	ob_start();
-
 
74
	if (file_exists(INS_CHEMIN_SQUELETTE.INS_FICHIER_LEGENDE)) include_once INS_CHEMIN_SQUELETTE.INS_FICHIER_LEGENDE;
-
 
75
	$res .= ob_get_contents();
-
 
76
	ob_end_clean();
-
 
77
	
72
	$res = str_replace ('{CARTE}', $carte, $template);
78
	$res .= str_replace ('{CARTE}', $carte, $template);
-
 
79
	
Line 73... Line 80...
73
	
80
	
74
	return $res;
81
	return $res;
Line 75... Line 82...
75
}
82
}
76
 
83
 
77
/* +--Fin du code ----------------------------------------------------------------------------------------+
84
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
85
*
-
 
86
* $Log: not supported by cvs2svn $
-
 
87
* Revision 1.7.2.1  2007-11-16 11:19:01  alexandre_tb
78
*
88
* utilisation constante INS_FICHIER_DONNEES_GOOGLE
79
* $Log: not supported by cvs2svn $
89
*
80
* Revision 1.7  2007-10-12 10:04:52  alexandre_tb
90
* Revision 1.7  2007-10-12 10:04:52  alexandre_tb
81
* ajout des contantes INS_GOOGLE_IMAGE_LARGEUR et INS_GOOGLE_IMAGE_HAUTEUR
91
* ajout des contantes INS_GOOGLE_IMAGE_LARGEUR et INS_GOOGLE_IMAGE_HAUTEUR
82
*
92
*