Correction gestion des caractères de ponctuation et abbréviation, issue #0000243
This commit is contained in:
parent
44616819dd
commit
3291ce743b
@ -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) {
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user