From: x2001corpet Date: Wed, 14 Jun 2006 00:31:32 +0000 (+0000) Subject: add link to google maps for all addresses X-Git-Tag: xorg/0.9.10~57 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=bf73c6514b5d4479304006bb8315960c16ede9af;p=platal.git add link to google maps for all addresses git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@312 839d8a87-29fc-0310-9880-83ba4fa771e5 --- diff --git a/ChangeLog b/ChangeLog index 139338d..13329ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ New : * Geoloc : - Dynamic maps using geodesix plugin. -Car + - Link to local maps for all addresses. -Car * Profile : - See fiche send to AX. -Car diff --git a/plugins/function.display_address.php b/plugins/function.display_address.php index 2a4f1a9..1a12d4b 100644 --- a/plugins/function.display_address.php +++ b/plugins/function.display_address.php @@ -1,6 +1,6 @@ \"Carte\""; if ($param['titre']) { - if ($param['titre_div']) - $txthtml .= "
".$param['titre']."
\n"; - else - $txthtml .= "".$param['titre']."
\n"; + if ($param['titre_div']) + $txthtml .= "
".$param['titre'].$map."
\n"; + else + $txthtml .= "".$param['titre']."".$map."
\n"; } foreach ($lines as $line) { - $txthtml .= "".$line."
\n"; + $txthtml .= "".$line."
\n"; } if ($param['adr']['tel']) - $txthtml .= "
\nTél : \n".$param['adr']['tel']."\n
\n"; + $txthtml .= "
\nTél : \n".$param['adr']['tel']."\n
\n"; if ($param['adr']['fax']) - $txthtml .= "
\nFax : \n".$param['adr']['fax']."\n
\n"; + $txthtml .= "
\nFax : \n".$param['adr']['fax']."\n
\n"; if ($param['adr']['mobile']) - $txthtml .= "
\nTél : \n".$param['adr']['mobile']."\n
\n"; + $txthtml .= "
\nTél : \n".$param['adr']['mobile']."\n
\n"; if ($param['adr']['tels'] && count($param['adr']['tels'])) { foreach ($param['adr']['tels'] as $tel) $txthtml .= "
\n".$tel['tel_type']." : \n".$tel['tel']."\n
\n"; } if (!$params['nodiv']) { - $txthtml = "
\n".$txthtml."
\n"; + $txthtml = "
\n".$txthtml."
\n"; } return $txthtml; } diff --git a/templates/geoloc/address.tpl b/templates/geoloc/address.tpl index e434797..624a4a8 100644 --- a/templates/geoloc/address.tpl +++ b/templates/geoloc/address.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2004 Polytechnique.org *} +{* Copyright (C) 2003-2006 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *}