Correction gestion des caractères de ponctuation et abbréviation, issue #0000243

This commit is contained in:
Michael RICOIS 2010-04-12 12:11:20 +00:00
parent 44616819dd
commit 3291ce743b
2 changed files with 15 additions and 11 deletions

View File

@ -2,10 +2,11 @@
<div id="infogeo_txt" style="float:left;width:200px;padding:20px 0 0 20px;">
<?php
$google_map = './?page=referer&part=gmap&siret='.$siret.
'&url=http://maps.google.com/maps?f=q%26hl=fr%26geocode=%26q='.
'&url=http://maps.google.fr/maps?f=q%26hl=fr%26geocode=%26q='.
$etab['AdresseNum'].',+'.
urlencode($etab['AdresseVoie']).'+'.
urlencode($etab['AdresseRue']).',+'.$etab['CP'].'+'.
urlencode(normaliseVoie($etab['AdresseVoie'])).'+'.
urlencode(htmlspecialchars_decode($etab['AdresseRue'], ENT_QUOTES)).
',+'.$etab['CP'].'+'.
urlencode($etab['Ville']);
if ($etab['GeoPrecis']>0) {

View File

@ -728,14 +728,17 @@ function identite_statutsmodif($StatutsModif,$StatutsModifDepot)
}
function normaliseVoie($voie) {
switch (strtoupper($voie)) {
case 'BD': case 'BVD': return 'BOULEVARD'; break;
case 'AV': case 'AVE': return 'AVENUE'; break;
case 'PL': case 'PLA': return 'PLACE'; break;
case 'ESP': return 'ESPLANADE'; break;
//- 8E__ARRONDISSEMENT
default; return strtoupper($voie); break;
}
switch (strtoupper($voie)) {
case 'BD':
case 'BVD': return 'BOULEVARD'; break;
case 'AV':
case 'AVE': return 'AVENUE'; break;
case 'PL':
case 'PLA': return 'PLACE'; break;
case 'ESP': return 'ESPLANADE'; break;
case 'CRS': return 'COURS'; break;
default: return strtoupper($voie); break;
}
}
function identite_autresiren($liste)