query("select count(*) FROM avocat WHERE urlnp = '$urlnp' and cp = '$cp'")->fetch()); if ( $Nb >= '1' ) { $Res=$bdd->query("SELECT * FROM avocat WHERE urlnp = '$urlnp' and cp = '$cp'"); $Repp = $Res->fetch(PDO::FETCH_ASSOC); $No = $Repp['No']; $nom = $Repp['nom']; $prenom = $Repp['prenom']; $specialite = $Repp['specialite']; $adresse1 = $Repp['adresse1']; $adresse2 = $Repp['adresse2']; $adresse3 = $Repp['adresse3']; $cp = $Repp['cp']; $ville = $Repp['ville']; $tel = $Repp['tel']; $portable = $Repp['portable']; $fax = $Repp['fax']; $horaires = $Repp['horaires']; $lat = $Repp['lat']; $lon = $Repp['lon']; $url = $Repp['url']; $sexe = $Repp['sexe']; $email = $Repp['email']; $autre = $Repp['autre']; $barreau = $Repp['barreau']; $serment = $Repp['serment']; $spe = explode(",",$specialite); $heading = $Repp['heading']; $pitch = $Repp['pitch']; $zoom = $Repp['zoom']; $datemaj = $Repp['datemaj']; $surtax = $Repp['surtax']; $toque = $Repp['toque']; $proxi = $Repp['prox']; $vu = $Repp['vu']; $mclv = strtolower("$ville"); $mclt = ucfirst($mclv); $Nb = current($bdd->query("select count(*) FROM avocat WHERE urlnp = '$urlnp'")->fetch()); if ( $Nb >= '2' ) { $mcltt = " - ".$mclt; } else { $mcltt = ""; } $bar = strtolower($barreau); $bar = str_replace("d'","d' ","$bar"); $bar = ucwords($bar); $bar = str_replace("D' ","d'","$bar"); $bar = str_replace(" De "," de ","$bar"); $de = "de "; if ( $barreau == 'VAL D\'OISE' ) { $de = "du "; } if ( $barreau == 'HAZEBROUCK' ) { $de = "d'"; } if ( $barreau == 'LES SABLES D\'OLONNE' ) { $de = "des "; } if ( $barreau == 'GERS' ) { $de = "du "; } if ( $barreau == 'HAUTS DE SEINE' ) { $de = "des "; } if ( $barreau == 'LE HAVRE' ) { $de = "du "; $barreau = "Havre";} if ( $barreau == 'LE MANS' ) { $de = "du "; $barreau = "Mans";} if ( $barreau == 'LOT' ) { $de = "du "; } if ( $barreau == 'MANS' ) { $de = "du "; } if ( $barreau == 'PYRENEES ORIENTALES' ) { $de = "des "; } if ( $barreau == 'TARN ET GARONNE' ) { $de = "du "; } if ( $barreau == 'VAL DE MARNE' ) { $de = "du "; } if ( $barreau == 'ALPES DE HAUTE PROVENCE' ) { $de = "des "; } if ( $barreau == 'ARDENNES' ) { $de = "des "; } $iba = chunk_split($barreau,"1","-"); $ibar = explode("-",$iba); if ( $ibar[0] == 'A' || $ibar[0] == 'E' || $ibar[0] == 'I' || $ibar[0] == 'O' || $ibar[0] == 'U' || $ibar[0] == 'Y' ) { $de = "d'"; } if ( $sexe == 'M' ) { $fem = ""; } if ( $sexe == 'F' ) { $fem = "e"; } } else { $Nb = current($bdd->query("select count(*) FROM avocat WHERE urlnp = '$urlnp'")->fetch()); if ( $Nb >= '1' ) { header("Status: 301 Moved Permanently", false, 301); header('HTTP/1.1 301 Moved Permanently', false, 301); $Res=$bdd->query("SELECT * FROM avocat WHERE urlnp = '$urlnp'"); $Repp = $Res->fetch(PDO::FETCH_ASSOC); $cpr = $Repp['cp']; header("Location: https://www.keskeces.com/avocat/".$cpr."/".$urlnp.".html"); exit(); } header("HTTP/1.1 410 Not Found"); header("Status: 410 Not Found"); header("Pragma: no-cache"); $urlbad = "1"; } ?> Avocat non répertorié Mtre <? echo $prenom." ".$nom."".$mcltt.", avocat".$fem." au barreau ".$de."".$bar."."; ?> : coordonnées, Spécialité, Barreau, etc..."> , Mtre, Maitre, Maître, ">
Cet Avocat n'est pas répertoriée.


"; include("moteur.php"); echo "

"; } else { $ga = "Mtre ".$nom." ".$prenom; $conj = "l'Avocat"; ?>

Maître

"; if ( $sexe == 'M' ) { echo "Avocat"; } else { echo "Avocate"; } echo " au Barreau de :
"; $lienbar = str_replace(" ","-",$barreau); $lienbar = str_replace("'","_",$lienbar); $lienbar = strtolower("$lienbar"); echo "".$barreau.""; echo "

"; } if ( $autre != '' ) { echo "".$autre."

"; } if ( $specialite != '' ) { echo "Spécialité"; if ( ereg(",",$specialite)) { echo "s"; } $specialitebr = str_replace(",","
",$specialite); echo " :

".$specialitebr."

"; } if ( $adresse3 != '' ) { echo $adresse3."
"; } if ( $adresse2 != '' ) { echo $adresse2."
"; } echo $adresse1."
".$cp." ".$ville."
"; if ( $cp == '97150' ) { echo "SAINT MARTIN
"; } if ( $cp == '97133' ) { echo "SAINT BARTHELEMY
"; } if ( $cp != '97150' && $cp != '97133' ) { $depdo = chunk_split("$cp","3","-"); $depdomm = explode("-",$depdo); $depdom = $depdomm[0]; if ( $depdom == '971' ) { echo "GUADELOUPE
"; } if ( $depdom == '972' ) { echo "MARTINIQUE
"; } if ( $depdom == '973' ) { echo "GUYANE
"; } if ( $depdom == '974' ) { echo "LA REUNION
"; } if ( $depdom == '975' ) { echo "ST PIERRE ET MIQUELON
"; } if ( $depdom == '976' ) { echo "MAYOTTE
"; } if ( $depdom == '986' ) { echo "WALLIS ET FUTUNA
"; } if ( $depdom == '987' ) { echo "POLYNESIE FRANCAISE
"; } if ( $depdom == '988' ) { echo "NOUVELLE CALEDONIE
"; } } $telp = str_replace(".","","$tel"); $portablep = str_replace(".","","$portable"); if ( $mob == '1' ) { echo "
"; } echo "
"; if ($tel && $surtax == 'oui') { echo "
"; echo "
"; if ( $rob == '0' ) { $reqt = "No=".$No."".$tsur."&a=0"; } else { If( ceil($No/2) == $No/2 ) { echo "Afficher le Tel"; } If( ceil(($No+1)/2) == ($No+1)/2 ) { echo "Afficher le Téléphone"; } echo ""; } echo "
"; if ( $rob == '0' ) { echo "
* Ce Nº valable 5 minutes n'est pas le Nº du destinataire mais le Nº du service permettant la mise en relation avec celui-ci. Service édité par Keskeces.com Pourquoi ce Nº ?
"; } } if ($portable && $surtax == 'oui') { echo "
"; echo "
"; if ( $rob == '0' ) { $reqp = "No=P".$No."".$tsur."&a=0"; } else { If( ceil($No/4) == $No/4 ) { echo "Afficher le Mobile"; } If( ceil(($No+1)/4) == ($No+1)/4 ) { echo "Afficher le Portable"; } If( ceil(($No+2)/4) == ($No+2)/4 ) { echo "Afficher le Gsm"; } If( ceil(($No+3)/4) == ($No+3)/4 ) { echo "Afficher le Cellulaire"; } echo ""; } echo "
"; if ( !$tel && $rob == '0' ) { echo "
* Ce Nº valable 5 minutes n'est pas le Nº du destinataire mais le Nº du service permettant la mise en relation avec celui-ci. Service édité par Keskeces.com Pourquoi ce Nº ?
"; } } if ($fax) { echo "
Fax:   ".$fax."
"; } echo "
"; $horaires = str_replace("\n","
",$horaires); $horaires = str_replace("Ouverture","ouverture",$horaires); $horaires = str_replace("Fermeture","Fermeture",$horaires); if ($horaires) { echo "
Horaires :
".$horaires."
"; } if ($serment != '0000-00-00') { $ser = explode("-",$serment); if ( $ser[1] == '01' ) { $serm = "Janvier"; } if ( $ser[1] == '02' ) { $serm = "Février"; } if ( $ser[1] == '03' ) { $serm = "Mars"; } if ( $ser[1] == '04' ) { $serm = "Avril"; } if ( $ser[1] == '05' ) { $serm = "Mai"; } if ( $ser[1] == '06' ) { $serm = "Juin"; } if ( $ser[1] == '07' ) { $serm = "Juillet"; } if ( $ser[1] == '08' ) { $serm = "Août"; } if ( $ser[1] == '09' ) { $serm = "Septembre"; } if ( $ser[1] == '10' ) { $serm = "Octobre"; } if ( $ser[1] == '11' ) { $serm = "Novembre"; } if ( $ser[1] == '12' ) { $serm = "Décembre"; } echo "
Date de Serment
".$ser[2]." ".$serm." ".$ser[0]."
"; } if ($toque != '') { echo "
"; If( ceil($No/5) == $No/5 ) { echo "Toque"; } If( ceil(($No+1)/5) == ($No+1)/5 ) { echo "N° de Toque"; } If( ceil(($No+2)/5) == ($No+2)/5 ) { echo "Toque N°"; } If( ceil(($No+3)/5) == ($No+3)/5 ) { echo "Numéro de Toque"; } If( ceil(($No+4)/5) == ($No+4)/5 ) { echo "Toque Numéro"; } echo "
".$toque."
"; } if ($email) { echo "
Email : ".$email."

"; } if ($url) { echo "
Site Web : ".$url."

"; } echo "
"; if ( $mob == '0' ) { $styl2 = "width: 600px;"; $wd = "640"; $wdd = "640"; $he = "500"; } else { $styl2 = "width: 80%; max-width: 640px;"; $wd = "640"; $wdd = "100%"; $he = "350"; } ?>
Changement de Vue
Changement de Vue
Carte Satellite"; } else { echo "Carte Satellite"; } ?>
&maptype=hybrid&markers=color:blue%7C,&format=jpg">
".$prenom." ".$nom."
".$adressemap."
".$cp." ".$ville.""; ?>
"; $nbp = substr_count($proxi, '|'); if ( $nbp >= 1 ) { $pr = explode("|",$proxi); $Nbaa = $nbp/2; $Nbaa =ceil($Nbaa); if ( $nbp > '1' ) { $es = "s"; $con = "les"; $deb = "Les";} else { $es = ""; $con = "le"; $deb = "L'";} echo "
".$deb." Avocat".$es." ".$con." plus proche".$es." :

"; if ( $mob == '0') { echo "
"; } else { echo "
"; } $i = "0"; while ($i < $Nbaa) { $proxy = explode("-",$pr[$i]); if ( $proxy[1] < '1' ) { $dist = $proxy[1]*1000; $distance = $dist." m"; } else { $distance = $proxy[1]." Km"; } $Resp=$bdd->query("SELECT nom,prenom,cp,urlnp FROM avocat WHERE No = '$proxy[0]'"); $Reppr = $Resp->fetch(PDO::FETCH_ASSOC); $nomp = $Reppr['nom']; $prenomp = $Reppr['prenom']; $cpp = $Reppr['cp']; $urlnpl = $Reppr['urlnp']; echo "".$prenomp." ".$nomp."    ".$distance."
"; if ( $mob == '1' ) { echo "
"; } $i++; } if ( $mob == '0' ) { echo "
"; } while ($Nbaa < $nbp) { $proxy = explode("-",$pr[$Nbaa]); if ( $proxy[1] < '1' ) { $dist = $proxy[1]*1000; $distance = $dist." m"; } else { $distance = $proxy[1]." Km"; } $Resp=$bdd->query("SELECT nom,prenom,cp,urlnp FROM avocat WHERE No = '$proxy[0]'"); $Reppr = $Resp->fetch(PDO::FETCH_ASSOC); $nomp = $Reppr['nom']; $prenomp = $Reppr['prenom']; $cpp = $Reppr['cp']; $urlnpl = $Reppr['urlnp']; echo "= '14' ) { echo " rel=\"nofollow\""; } echo " href=\"../".$cpp."/".$urlnpl.".html\">".$prenomp." ".$nomp."    ".$distance."
"; if ( $mob == '1' ) { echo "
"; } $Nbaa++; } echo "

"; } if ( $mob == '0') { echo "
"; } else { echo "
"; } if ( $sexe == 'M' ) { $il = "il"; $ilm = "Il"; $fem = ""; $mdm = "Monsieur"; } if ( $sexe == 'F' ) { $il = "elle"; $ilm = "Elle"; $fem = "e"; $mdm="Madame";} echo $mdm." ".$prenom." ".$nom." est un".$fem." avocat".$fem." "; if( ceil($No/6) == $No/6 ) { echo "exerçant au"; } if( ceil(($No+1)/6) == ($No+1)/6 ) { echo "du"; } if( ceil(($No+2)/6) == ($No+2)/6 ) { echo "affilié".$fem." au"; } if( ceil(($No+3)/6) == ($No+3)/6 ) { echo "adhérant".$fem." au"; } if( ceil(($No+4)/6) == ($No+4)/6 ) { echo "qui dépend du"; } if( ceil(($No+5)/6) == ($No+5)/6 ) { echo "dépendant".$fem." du"; } echo " Barreau "; echo $de."".$bar; if ( $toque != '') { if( ceil($No/3) == $No/3 ) { echo ", toque N°"; } if( ceil(($No+1)/3) == ($No+1)/3 ) { echo ", numéro de toque"; } if( ceil(($No+2)/3) == ($No+2)/3 ) { echo ", toque"; } echo " ".$toque.".
"; } else { echo ".
"; } if ( $serment != '0000-00-00') { echo $ilm; if( ceil($No/4) == $No/4 ) { echo " a prété serment le "; } if( ceil(($No+1)/4) == ($No+1)/4 ) { echo " a débuté son activité le "; } if( ceil(($No+2)/4) == ($No+2)/4 ) { echo " exerce depuis le "; } if( ceil(($No+3)/4) == ($No+3)/4 ) { echo " est diplomé".$fem." depuis le "; } echo $ser[2]." ".$serm." ".$ser[0].".
"; } if( ceil($No/9) == $No/9 ) { echo $ilm." exerce "; } if( ceil(($No+1)/9) == ($No+1)/9 ) { echo "Son cabinet se trouve "; } if( ceil(($No+2)/9) == ($No+2)/9 ) { echo "Son cabinet est "; } if( ceil(($No+3)/9) == ($No+3)/9 ) { echo "Son cabinet se situe "; } if( ceil(($No+4)/9) == ($No+4)/9 ) { echo "Son cabinet est localisé "; } if( ceil(($No+5)/9) == ($No+5)/9 ) { echo "Ses bureaux se trouvent "; } if( ceil(($No+6)/9) == ($No+6)/9 ) { echo "Ses bureaux sont "; } if( ceil(($No+7)/9) == ($No+7)/9 ) { echo "Ses bureaux se situent "; } if( ceil(($No+8)/9) == ($No+8)/9 ) { echo "Ses bureaux sont localisés "; } if( ceil($No/2) == $No/2 ) { echo "en "; } if( ceil(($No+1)/2) == ($No+1)/2 ) { echo "en région "; } $cpp = chunk_split($cp,"2","-"); $dp = explode("-",$cpp); $dep = $dp[0]; if ( $dep == '08' || $dep == '10' || $dep == '51' || $dep == '52' || $dep == '54' || $dep == '55' || $dep == '57' || $dep == '67' || $dep == '68' || $dep == '88') { $reg = "Alsace Champagne Ardenne Lorraine"; } if ( $dep == '16' || $dep == '17' || $dep == '19' || $dep == '23' || $dep == '24' || $dep == '33' || $dep == '40' || $dep == '47' || $dep == '64' || $dep == '79' || $dep == '86' || $dep == '87') { $reg = "Aquitaine Limousin Poitou Charentes"; } if ( $dep == '01' || $dep == '03' || $dep == '07' || $dep == '15' || $dep == '26' || $dep == '38' || $dep == '42' || $dep == '43' || $dep == '63' || $dep == '69' || $dep == '73' || $dep == '74') { $reg = "Auvergne Rhône Alpes"; } if ( $dep == '21' || $dep == '25' || $dep == '39' || $dep == '58' || $dep == '70' || $dep == '71' || $dep == '89' || $dep == '90') { $reg = "Bourgogne Franche Comté"; } if ( $dep == '22' || $dep == '29' || $dep == '35' || $dep == '56') { $reg = "Bretagne"; } if ( $dep == '18' || $dep == '28' || $dep == '36' || $dep == '37' || $dep == '41' || $dep == '45') { $reg = "Centre Val de Loire"; } if ( $dep == '20') { $reg = "Corse"; } if ( $dep == '75' || $dep == '77' || $dep == '78' || $dep == '91' || $dep == '92' || $dep == '93' || $dep == '94' || $dep == '95') { $reg = "Ile de France"; } if ( $dep == '09' || $dep == '11' || $dep == '12' || $dep == '30' || $dep == '31' || $dep == '32' || $dep == '34' || $dep == '46' || $dep == '48' || $dep == '65' || $dep == '66' || $dep == '81' || $dep == '82') { $reg = "Languedoc Roussillon Midi Pyrénées"; } if ( $dep == '02' || $dep == '59' || $dep == '60' || $dep == '62' || $dep == '80') { $reg = "Nord Pas de Calais Picardie"; } if ( $dep == '14' || $dep == '27' || $dep == '50' || $dep == '61' || $dep == '76') { $reg = "Normandie"; } if ( $dep == '44' || $dep == '49' || $dep == '53' || $dep == '72' || $dep == '85') { $reg = "Pays de la Loire"; } if ( $dep == '04' || $dep == '05' || $dep == '06' || $dep == '13' || $dep == '83' || $dep == '84') { $reg = "Provence Alpes Côte d'Azur"; } if ( $dep == '01' ) { $departement = "Ain"; } if ( $dep == '02' ) { $departement = "Aisne"; } if ( $dep == '03' ) { $departement = "Allier"; } if ( $dep == '04' ) { $departement = "Alpes de Haute Provence"; } if ( $dep == '05' ) { $departement = "Hautes Alpes"; } if ( $dep == '06' ) { $departement = "Alpes Maritimes"; } if ( $dep == '07' ) { $departement = "Ardèche"; } if ( $dep == '08' ) { $departement = "Ardennes"; } if ( $dep == '09' ) { $departement = "Ariège"; } if ( $dep == '10' ) { $departement = "Aube"; } if ( $dep == '11' ) { $departement = "Aude"; } if ( $dep == '12' ) { $departement = "Aveyron"; } if ( $dep == '13' ) { $departement = "Bouches du Rhône"; } if ( $dep == '14' ) { $departement = "Calvados"; } if ( $dep == '15' ) { $departement = "Cantal"; } if ( $dep == '16' ) { $departement = "Charente"; } if ( $dep == '17' ) { $departement = "Charente Maritime"; } if ( $dep == '18' ) { $departement = "Cher"; } if ( $dep == '19' ) { $departement = "Corrèze"; } if ( $dep == '20' ) { $departement = "Corse"; } if ( $dep == '21' ) { $departement = "Côte d'Or"; } if ( $dep == '22' ) { $departement = "Côtes d'Armor"; } if ( $dep == '23' ) { $departement = "Creuse"; } if ( $dep == '24' ) { $departement = "Dordogne"; } if ( $dep == '25' ) { $departement = "Doubs"; } if ( $dep == '26' ) { $departement = "Drôme"; } if ( $dep == '27' ) { $departement = "Eure"; } if ( $dep == '28' ) { $departement = "Eure et Loir"; } if ( $dep == '29' ) { $departement = "Finistère"; } if ( $dep == '30' ) { $departement = "Gard"; } if ( $dep == '31' ) { $departement = "Haute Garonne"; } if ( $dep == '32' ) { $departement = "Gers"; } if ( $dep == '33' ) { $departement = "Gironde"; } if ( $dep == '34' ) { $departement = "Hérault"; } if ( $dep == '35' ) { $departement = "Ille et Vilaine"; } if ( $dep == '36' ) { $departement = "Indre"; } if ( $dep == '37' ) { $departement = "Indre et Loire"; } if ( $dep == '38' ) { $departement = "Isère"; } if ( $dep == '39' ) { $departement = "Jura"; } if ( $dep == '40' ) { $departement = "Landes"; } if ( $dep == '41' ) { $departement = "Loir et Cher"; } if ( $dep == '42' ) { $departement = "Loire"; } if ( $dep == '43' ) { $departement = "Haute Loire"; } if ( $dep == '44' ) { $departement = "Loire Atlantique"; } if ( $dep == '45' ) { $departement = "Loiret"; } if ( $dep == '46' ) { $departement = "Lot"; } if ( $dep == '47' ) { $departement = "Lot et Garonne"; } if ( $dep == '48' ) { $departement = "Lozène et Loire"; } if ( $dep == '49' ) { $departement = "Maine et Loire"; } if ( $dep == '50' ) { $departement = "Manche"; } if ( $dep == '51' ) { $departement = "Marne"; } if ( $dep == '52' ) { $departement = "Haute Marne"; } if ( $dep == '53' ) { $departement = "Mayenne"; } if ( $dep == '54' ) { $departement = "Meurthe et Moselle"; } if ( $dep == '55' ) { $departement = "Meuse"; } if ( $dep == '56' ) { $departement = "Morbihan"; } if ( $dep == '57' ) { $departement = "Moselle"; } if ( $dep == '58' ) { $departement = "Nièvre"; } if ( $dep == '59' ) { $departement = "Nord"; } if ( $dep == '60' ) { $departement = "Oise"; } if ( $dep == '61' ) { $departement = "Orne"; } if ( $dep == '62' ) { $departement = "Pas de Calais"; } if ( $dep == '63' ) { $departement = "Puy de Dôme"; } if ( $dep == '64' ) { $departement = "Pyrénées Atlantique"; } if ( $dep == '65' ) { $departement = "Hautes Pyrénées"; } if ( $dep == '66' ) { $departement = "Pyrénées Orientales"; } if ( $dep == '67' ) { $departement = "Bas Rhin"; } if ( $dep == '68' ) { $departement = "Haut Rhin"; } if ( $dep == '69' ) { $departement = "Rhône"; } if ( $dep == '70' ) { $departement = "Haute Saône"; } if ( $dep == '71' ) { $departement = "Saône et Loire"; } if ( $dep == '72' ) { $departement = "Sarthe"; } if ( $dep == '73' ) { $departement = "Savoie"; } if ( $dep == '74' ) { $departement = "Haute Savoie"; } if ( $dep == '75' ) { $departement = "Paris"; } if ( $dep == '76' ) { $departement = "Seine Maritime"; } if ( $dep == '77' ) { $departement = "Seine et Marne"; } if ( $dep == '78' ) { $departement = "Yvelines"; } if ( $dep == '79' ) { $departement = "Deux Sèvres"; } if ( $dep == '80' ) { $departement = "Somme"; } if ( $dep == '81' ) { $departement = "Tarn"; } if ( $dep == '82' ) { $departement = "Tarn et Garonne"; } if ( $dep == '83' ) { $departement = "Var"; } if ( $dep == '84' ) { $departement = "Vaucluse"; } if ( $dep == '85' ) { $departement = "Vendée"; } if ( $dep == '86' ) { $departement = "Vienne"; } if ( $dep == '87' ) { $departement = "Haute Vienne"; } if ( $dep == '88' ) { $departement = "Vosges"; } if ( $dep == '89' ) { $departement = "Yonne"; } if ( $dep == '90' ) { $departement = "Territoire de Belfort"; } if ( $dep == '91' ) { $departement = "Essonne"; } if ( $dep == '92' ) { $departement = "Hauts de seine"; } if ( $dep == '93' ) { $departement = "Seine Saint Denis"; } if ( $dep == '94' ) { $departement = "Val de Marne"; } if ( $dep == '95' ) { $departement = "Val d'Oise"; } if ( $cp == '97150' ) { $departement = "Saint Martin"; $reg = "Dom Tom"; } if ( $cp == '97133' ) { $departement = "Saint Barthélémy"; $reg = "Dom Tom"; } if ( $cp != '97150' && $cp != '97133' ) { if ( $depdom == '971' ) { $departement = "Guadeloupe"; $reg = "Dom Tom";} if ( $depdom == '972' ) { $departement = "Martinique"; $reg = "Dom Tom";} if ( $depdom == '973' ) { $departement = "Guyane"; $reg = "Dom Tom";} if ( $depdom == '974' ) { $departement = "La Réunion"; $reg = "Dom Tom";} if ( $depdom == '975' ) { $departement = "Saint Pierre et Miquelon"; $reg = "Dom Tom";} if ( $depdom == '976' ) { $departement = "Mayotte"; $reg = "Dom Tom";} if ( $depdom == '986' ) { $departement = "Wallis et Futuna"; $reg = "Dom Tom";} if ( $depdom == '987' ) { $departement = "Polynésie Française"; $reg = "Dom Tom";} if ( $depdom == '988' ) { $departement = "Nouvelle Calédonie"; $reg = "Dom Tom";} } echo $reg.", département ".$departement; if( ceil($No/3) == $No/3 ) { echo ", à "; } if( ceil(($No+1)/3) == ($No+1)/3 ) { echo ", dans la ville de "; } if( ceil(($No+2)/3) == ($No+2)/3 ) { echo ", ville de "; } echo $ville.", au "; $adresse1 = str_replace("
"," ",$adresse1); $adresse2 = str_replace("
"," ",$adresse2); $adresse3 = str_replace("
"," ",$adresse3); if ( $adresse3 != '' ) { echo $adresse3." "; } if ( $adresse2 != '' ) { echo $adresse2." "; } echo $adresse1." ( Latitude: ".$lat.", Longitude: ".$lon." )
"; if ( $specialite != '' ) { if( ceil($No/4) == $No/4 ) { if ( ereg(",",$specialite) ) { echo "Ses spécialités sont "; } else { echo "Sa spécialité est "; } } if( ceil(($No+1)/4) == ($No+1)/4 ) { echo $ilm." est spécilaisé".$fem." en "; } if( ceil(($No+2)/4) == ($No+2)/4 ) { echo "Domaines de compétences: "; } if( ceil(($No+3)/4) == ($No+3)/4 ) { echo "Spécialisation en "; } $specialite = str_replace(",",", ",$specialite); echo $specialite.".
"; } else { if( ceil($No/4) == $No/4 ) { echo "C'est un".$fem." avocat".$fem." généraliste."; } if( ceil(($No+1)/4) == ($No+1)/4 ) { echo $ilm." n'a pas de spécialité déterminée."; } if( ceil(($No+2)/4) == ($No+2)/4 ) { echo $ilm." s'occupe de tous les domaines."; } if( ceil(($No+3)/4) == ($No+3)/4 ) { echo "Intervient sur tous type de dossiers."; } echo "
"; } if( ceil($No/6) == $No/6 ) { $con = "vu"; $e = "e";} if( ceil(($No+1)/6) == ($No+1)/6 ) { $con = "consulté"; $e = "";} if( ceil(($No+2)/6) == ($No+2)/6 ) { $con = "affiché"; $e = "";} if( ceil(($No+3)/6) == ($No+3)/6 ) { $con = "compulsé"; $e = "";} if( ceil(($No+4)/6) == ($No+4)/6 ) { $con = "regardé"; $e = "";} if( ceil(($No+5)/6) == ($No+5)/6 ) { $con = "visualisé"; $e = "";} if( ceil($No/4) == $No/4 ) { echo "La fiche de ".$nom." ".$prenom." a été ".$con."e "; $ma1 = " a été "; $ma2 = " a bénéficié ";} if( ceil(($No+1)/4) == ($No+1)/4 ) { echo "La page de ".$nom." ".$prenom." a été ".$con."e "; $ma1 = " a été "; $ma2 = " a bénéficié ";} if( ceil(($No+2)/4) == ($No+2)/4 ) { echo "Les détails de ".$nom." ".$prenom." ont été ".$con."s "; $ma1 = " ont été "; $ma2 = " ont bénéficiés ";} if( ceil(($No+3)/4) == ($No+3)/4 ) { echo "Les informations de ".$nom." ".$prenom." ont été ".$con."".$e."s "; $ma1 = " ont été "; $ma2 = " ont bénéficiés ";} if( ceil($No/2) == $No/2 ) { echo $vu." fois";} if( ceil(($No+1)/2) == ($No+1)/2 ) { echo "à ".$vu." reprises";} if ( $rob == '0' ) { $vuu = $vu +1; $res = $bdd->query("UPDATE avocat SET vu='$vuu' WHERE No='$No'"); } if ( $datemaj != '0000-00-00' ) { $dtm = explode("-",$datemaj); if ( $dtm[2] <= '9' ) { $dtm[2] = str_replace("0","","$dtm[2]"); } if ( $dtm[2] == '1' ) { $dtm[2] = "1er"; } if ( $dtm[1] == '01' ) { $affd = $dtm[2]." Janvier ".$dtm[0]; } if ( $dtm[1] == '02' ) { $affd = $dtm[2]." Février ".$dtm[0]; } if ( $dtm[1] == '03' ) { $affd = $dtm[2]." Mars ".$dtm[0]; } if ( $dtm[1] == '04' ) { $affd = $dtm[2]." Avril ".$dtm[0]; } if ( $dtm[1] == '05' ) { $affd = $dtm[2]." Mai ".$dtm[0]; } if ( $dtm[1] == '06' ) { $affd = $dtm[2]." Juin ".$dtm[0]; } if ( $dtm[1] == '07' ) { $affd = $dtm[2]." Juillet ".$dtm[0]; } if ( $dtm[1] == '08' ) { $affd = $dtm[2]." Août ".$dtm[0]; } if ( $dtm[1] == '09' ) { $affd = $dtm[2]." Septembre ".$dtm[0]; } if ( $dtm[1] == '10' ) { $affd = $dtm[2]." Octobre ".$dtm[0]; } if ( $dtm[1] == '11' ) { $affd = $dtm[2]." Novembre ".$dtm[0]; } if ( $dtm[1] == '12' ) { $affd = $dtm[2]." Décembre ".$dtm[0]; } If( ceil($No/4) == $No/4 ) { echo $ma1." mise à jour le ".$affd."
"; } If( ceil(($No+1)/4) == ($No+1)/4 ) { echo $ma2." d'une mise à jour le ".$affd."
"; } If( ceil(($No+2)/4) == ($No+2)/4 ) { echo "
Mise à jour le ".$affd."
"; } If( ceil(($No+3)/4) == ($No+3)/4 ) { echo ".
Dernière Mise à jour : ".$affd."
"; } } else { echo "."; } echo "
"; echo "
"; if ( $mob == '0' ) { echo "
"; $Suiv = $No + 1; $Nb = current($bdd->query("select count(*) FROM avocat WHERE No = '$Suiv'")->fetch()); if ( $Nb == '0' ) { $Ress=$bdd->query("SELECT * FROM avocat"); } else { $Ress=$bdd->query("SELECT * FROM avocat WHERE No = '$Suiv'"); } $Repp = $Ress->fetch(PDO::FETCH_ASSOC); $cpp = $Repp['cp']; $nomp = $Repp['nom']; $prenomp = $Repp['prenom']; $sexep = $Repp['sexe']; $urlnps = $Repp['urlnp']; if ( $sexep == 'M' ) { echo "Avocat"; } else { echo "Avocate"; } echo " suivant : ".$prenomp." ".$nomp.""; } ?>