Subversion Repositories Applications.papyrus

Rev

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

Rev 1427 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: carto_google.php,v 1.1 2007-06-01 13:39:14 alexandre_tb Exp $
22
// CVS : $Id: carto_google.php,v 1.2 2007-06-25 09:59:03 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.1 $ $Date: 2007-06-01 13:39:14 $
31
*@version       $Revision: 1.2 $ $Date: 2007-06-25 09:59:03 $
32
// +------------------------------------------------------------------------------------------------------+
32
// +------------------------------------------------------------------------------------------------------+
33
*/
33
*/
Line 34... Line 34...
34
 
34
 
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
Line 58... Line 58...
58
if ($resultat->numRows() != 0) {
58
if ($resultat->numRows() != 0) {
59
	$script_marker = '';
59
	$script_marker = '';
60
	while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
60
	while ($ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC)) {
61
		$id_marker = $ligne['a_id'];
61
		$id_marker = $ligne['a_id'];
62
		$script_marker .= "\t".'point = new GLatLng('.$ligne['a_latitude'].','.$ligne['a_longitude'].');'."\n"
62
		$script_marker .= "\t".'point = new GLatLng('.$ligne['a_latitude'].','.$ligne['a_longitude'].');'."\n"
63
				."\t".'map.addOverlay(createMarker(point, \''.preg_replace ('/\n/', '', info ($ligne['a_id'])).'\'));'."\n";
63
				."\t".'map.addOverlay(createMarker(point, \''.preg_replace ('/\n/', '', info ($ligne['a_id'], 'info')).'\'));'."\n";
Line 64... Line 64...
64
				
64
				
65
	}
65
	}
Line 66... Line 66...
66
}
66
}
Line 106... Line 106...
106
}
106
}
Line 107... Line 107...
107
 
107
 
108
/* +--Fin du code ----------------------------------------------------------------------------------------+
108
/* +--Fin du code ----------------------------------------------------------------------------------------+
109
*
109
*
-
 
110
* $Log: not supported by cvs2svn $
-
 
111
* Revision 1.1  2007-06-01 13:39:14  alexandre_tb
-
 
112
* version initiale
110
* $Log: not supported by cvs2svn $
113
*
111
* +-- Fin du code ----------------------------------------------------------------------------------------+
114
* +-- Fin du code ----------------------------------------------------------------------------------------+
112
*/
115
*/