query("select count(*) FROM auto WHERE marque like '$ma5' and modele2 like '$mod5' and type like '$typ5' and No = '$No'")->fetch()); if ( $Nb >= '1' ) { $Res=$bdd->query("SELECT * FROM auto WHERE marque like '$ma5' and modele2 like '$mod5' and type like '$typ5' and No = '$No'"); $Repp = $Res->fetch(PDO::FETCH_ASSOC); $marque = $Repp['marque']; $modele2 = $Repp['modele2']; $type = $Repp['type']; $anneed = $Repp['anneed']; $anneef = $Repp['anneef']; $vit = $Repp['vit']; $bv = $Repp['bv']; $carbur = $Repp['carbur']; $eco = $Repp['eco']; $valeur = $Repp['valeur']; $ci = $Repp['ci']; $portes = $Repp['portes']; $places = $Repp['places']; $rmotrice = $Repp['rmotrice']; $puissance = $Repp['puissance']; $couple = $Repp['couple']; $puissancet = $Repp['puissancet']; $couplet = $Repp['couplet']; $nbcyl = $Repp['nbcyl']; $soupapes = $Repp['soupapes']; $cylindre = $Repp['cylindre']; $compress = $Repp['compress']; $typecarbu = $Repp['typecarbu']; $turbo = $Repp['turbo']; $reservoir = $Repp['reservoir']; $electype = $Repp['electype']; $elecpmax = $Repp['elecpmax']; $eleccmax = $Repp['eleccmax']; $elecnbmot = $Repp['elecnbmot']; $electypebatt = $Repp['electypebatt']; $eleccapbatt = $Repp['eleccapbatt']; $electensionbatt = $Repp['electensionbatt']; $electempscharge = $Repp['electempscharge']; $vmax = $Repp['vmax']; $acc100 = $Repp['acc100']; $consou = $Repp['consou']; $consoeu = $Repp['consoeu']; $consom = $Repp['consom']; $co2 = $Repp['co2']; $suspav = $Repp['suspav']; $suspar = $Repp['suspar']; $frav = $Repp['frav']; $frar = $Repp['frar']; $pneu = $Repp['pneu']; $rb = $Repp['rb']; $abs = $Repp['abs']; $esp = $Repp['esp']; $aircon = $Repp['aircon']; $airbpass = $Repp['airbpass']; $ptac = $Repp['ptac']; $ptav = $Repp['ptav']; $volcoffre = $Repp['volcoffre']; $hautseuil = $Repp['hautseuil']; $long = $Repp['long']; $larg = $Repp['larg']; $haut = $Repp['haut']; $empatt = $Repp['empatt']; $voieav = $Repp['voieav']; $voiear = $Repp['voiear']; $fermcentral = $Repp['fermcentral']; $dirassist = $Repp['dirassist']; $regulvit = $Repp['regulvit']; $clim = $Repp['clim']; $climbizone = $Repp['climbizone']; $capteurstat = $Repp['capteurstat']; $stopstart = $Repp['stopstart']; $siegechauff = $Repp['siegechauff']; $banquetteraba = $Repp['banquetteraba']; $acoudcentre = $Repp['acoudcentre']; $ordibord = $Repp['ordibord']; $essuisauto = $Repp['essuisauto']; $jantealu = $Repp['jantealu']; $entretien = $Repp['entretien']; $photo = $Repp['photo']; if($anneef == '2050' ) { $anneef = "Aujourd'hui"; } $valeur = str_replace(".","","$valeur"); $valeur = ceil($valeur*0.9); $valeur = number_format($valeur, 0, ',', '.'); $modelea = str_replace("Coupe","Coupé","$modele2"); $marque2 = str_replace(" ","-","$marque"); $marque2 = strtolower($marque2); $fermcentral = str_replace("vanaf","à partir du","$fermcentral"); $dirassist = str_replace("vanaf","à partir du","$dirassist"); $regulvit = str_replace("vanaf","à partir du","$regulvit"); $clim = str_replace("vanaf","à partir du","$clim"); $climbizone = str_replace("vanaf","à partir du","$climbizone"); $capteurstat = str_replace("vanaf","à partir du","$capteurstat"); $stopstart = str_replace("vanaf","à partir du","$stopstart"); $siegechauff = str_replace("vanaf","à partir du","$siegechauff"); $banquetteraba = str_replace("vanaf","à partir du","$banquetteraba"); $acoudcentre = str_replace("vanaf","à partir du","$acoudcentre"); $ordibord = str_replace("vanaf","à partir du","$ordibord"); $essuisauto = str_replace("vanaf","à partir du","$essuisauto"); $jantealu = str_replace("vanaf","à partir du","$jantealu"); if (is_numeric($fermcentral)) { $fermcentral = str_replace(".","","$fermcentral"); $fermcentral = ceil($fermcentral*0.95); $fermcentral = number_format($fermcentral, 0, ',', '.'); $fermcentral = "En Option ".$fermcentral." € *"; } if (is_numeric($dirassist)) { $dirassist = str_replace(".","","$dirassist"); $dirassist = ceil($dirassist*0.95); $dirassist = number_format($dirassist, 0, ',', '.'); $dirassist = "En Option ".$dirassist." € *"; } if (is_numeric($regulvit)) { $regulvit = str_replace(".","","$regulvit"); $regulvit = ceil($regulvit*0.95); $regulvit = number_format($regulvit, 0, ',', '.'); $regulvit = "En Option ".$regulvit." € *"; } if (is_numeric($clim)) { $clim = str_replace(".","","$clim"); $clim = ceil($clim*0.95); $clim = number_format($clim, 0, ',', '.'); $clim = "En Option ".$clim." € *"; } if (is_numeric($climbizone)) { $climbizone = str_replace(".","","$climbizone"); $climbizone = ceil($climbizone*0.95); $climbizone = number_format($climbizone, 0, ',', '.'); $climbizone = "En Option ".$climbizone." € *"; } if (is_numeric($capteurstat)) { $capteurstat = str_replace(".","","$capteurstat"); $capteurstat = ceil($capteurstat*0.95); $capteurstat = number_format($capteurstat, 0, ',', '.'); $capteurstat = "En Option ".$capteurstat." € *"; } if (is_numeric($stopstart)) { $stopstart = str_replace(".","","$stopstart"); $stopstart = ceil($stopstart*0.95); $stopstart = number_format($stopstart, 0, ',', '.'); $stopstart = "En Option ".$stopstart." € *"; } if (is_numeric($siegechauff)) { $siegechauff = str_replace(".","","$siegechauff"); $siegechauff = ceil($siegechauff*0.95); $siegechauff = number_format($siegechauff, 0, ',', '.'); $siegechauff = "En Option ".$siegechauff." € *"; } if (is_numeric($banquetteraba)) { $banquetteraba = str_replace(".","","$banquetteraba"); $banquetteraba = ceil($banquetteraba*0.95); $banquetteraba = number_format($banquetteraba, 0, ',', '.'); $banquetteraba = "En Option ".$banquetteraba." € *"; } if (is_numeric($acoudcentre)) { $acoudcentre = str_replace(".","","$acoudcentre"); $acoudcentre = ceil($acoudcentre*0.95); $acoudcentre = number_format($acoudcentre, 0, ',', '.'); $acoudcentre = "En Option ".$acoudcentre." € *"; } if (is_numeric($ordibord)) { $ordibord = str_replace(".","","$ordibord"); $ordibord = ceil($ordibord*0.95); $ordibord = number_format($ordibord, 0, ',', '.'); $ordibord = "En Option ".$ordibord." € *"; } if (is_numeric($essuisauto)) { $essuisauto = str_replace(".","","$essuisauto"); $essuisauto = ceil($essuisauto*0.95); $essuisauto = number_format($essuisauto, 0, ',', '.'); $essuisauto = "En Option ".$essuisauto." € *"; } if (is_numeric($jantealu)) { $jantealu = str_replace(".","","$jantealu"); $jantealu = ceil($jantealu*0.95); $jantealu = number_format($jantealu, 0, ',', '.'); $jantealu = "En Option ".$jantealu." € *"; } } if ( $mob == '0' ) { $br = ""; $wh = "600";} else { $br = ""; $wh = "95%";} ?> <? echo "Fiche Tecnique ".$marque." ".$modelea." ".$type." (".$anneed." - ".$anneef.")"; ?> "> Ce Véhicule n'est pas Répertorié

Ce Véhicule n'est pas répertoriée.


"; } else { echo "

".$marque." ".$modelea." ".$type."

"; if ( $mob == '0' ) { if ( $photo != '' ) { $tab = ""; echo "
"; $whp = "300";} else { $tab = ""; $whp = $wh; } } else { if ( $photo != '' ) { $tab = "
"; echo "
"; $whp = "95%";} else { $tab = "
"; $whp = $wh; } } echo "
"; if ( $carbur != '' ) { if ( $carbur == 'E' ) { echo "Carburant : Essence"; } if ( $carbur == 'D' ) { echo "Carburant : Diesel"; } if ( $carbur == 'B' ) { echo "Carburant : Electrique"; } if ( $carbur == 'HyE' ) { echo "Carburant : Hybride Essence"; } if ( $carbur == 'HyD' ) { echo "Carburant : Hybride Diesel"; } } echo $tab; echo "".$ci." ".$portes." portes ".$places." places
"; echo "Production : entre ".$anneed." et ".$anneef."".$tab.""; echo "Boite "; if ( $bv == 'M' ) { echo "Mécanique"; } if ( $bv == 'A' ) { echo "Automatique"; } if ( $vit == 'co') { echo " Continue"; } else { echo " à ".$vit." vitesses"; } echo "
"; if ( $valeur != '0' ) { echo "Valeur à neuf : ".$valeur." € *"; } echo $tab; if ( $entretien != '' ) { echo "Entretien : ".$entretien; } echo "
"; if ( $mob == '1' ) { echo "
"; } $photoa = str_replace("-"," ","$photo"); if ( $photo != '' ) { echo $br."
".$photoa."
"; } echo "

Performances :

"; echo "
"; if ( $vmax != '' ) { echo "Vitesse Max : ".$vmax." km/h"; } echo $br; if ( $acc100 != '' ) { echo "0 à 100 km/h : ".$acc100." s"; } echo "
"; if ( $consou != '' ) { echo "Consommation Urbaine : ".$consou." l/100km"; } if ( $mob == '0' ) { echo $br; if ( $co2 != '' ) { echo "Co2 : ".$co2." g/km"; } echo "
"; if ( $consoeu != '' ) { echo "Consommation Extra Urbaine : ".$consoeu." l/100km"; } echo ""; $eco = strtolower($eco); if ( $co2 != '' ) { echo ""; } echo "
"; if ( $consom != '' ) { echo "Consommation Mixte : ".$consom." l/100km"; } } else { echo "
"; if ( $consoeu != '' ) { echo "Consommation Extra Urbaine : ".$consoeu." l/100km"; } echo "
"; if ( $consom != '' ) { echo "Consommation Mixte : ".$consom." l/100km"; } echo "
"; if ( $consom != '' ) { echo "Consommation Mixte : ".$consom." l/100km"; } echo "
"; $eco = strtolower($eco); if ( $co2 != '' ) { echo "Co2 : ".$co2." g/km"; } echo $br; if ( $co2 != '' ) { echo ""; } } echo "
"; echo "

Moteur :

"; echo "
"; if ( $carbur != 'B') { if ( $puissancet != '' ) { if ( $puissancet != '' ) { echo "Puissance Totale Max : ".$puissancet; } echo $br; if ( $couplet != '' ) { echo "Couple Total Max : ".$couplet; } echo "


"; } if ( $carbur != '' ) { if ( $carbur == 'E' || $carbur == 'HyE') { echo "Carburant : Essence"; } if ( $carbur == 'D' || $carbur == 'HyD') { echo "Carburant : Diesel"; } if ( $typecarbu != '' ) { echo " à ".$typecarbu; } } echo $br; if ( $reservoir != '' && $reservoir != '-' && $reservoir != '0' && $carbur != 'B') { echo "Réservoir : ".$reservoir." l"; } echo "
"; if ( $puissance != '' && $carbur != 'B') { echo "Puissance Maxi : ".$puissance; } echo $br; if ( $couple != '' && $carbur != 'B') { echo "Couple Maxi : ".$couple; } echo "
"; if ( $nbcyl != '' ) { echo "Nb Cylindres : ".$nbcyl; } echo $br; if ( $cylindre != '' ) { echo "Cylindrée : ".$cylindre." cm3"; } echo "
"; if ( $soupapes != '' ) { echo "Nb Soupapes / Cylindre : ".$soupapes; } echo $br; if ( $compress != '' ) { echo "Taux de Compression : ".$compress; } if ( $turbo != '' && $turbo != '-' && $turbo != 'Non') { echo "
Turbo : ".$turbo; } } if ( $electype != '' ) { echo "
"; if ( $carbur != 'B') { echo "
"; } echo "Moteur Electrique : ".$electype; } echo "
"; if ( $elecpmax != '' ) { echo "Puissance Elecrique : ".$elecpmax; } echo $br; if ( $eleccmax != '' ) { echo "Couple maxi : ".$eleccmax; } echo "
"; if ( $elecnbmot != '' ) { echo "Nombe de Moteur : ".$elecnbmot; } echo $br; if ( $eleccapbatt != '' ) { echo "Capacité des batteries : ".$eleccapbatt; } echo "
"; if ( $electensionbatt != '' ) { echo "Tension des batteries : ".$electensionbatt; } echo $br; if ( $electempscharge != '' ) { echo "Temps de Charge des batteries : ".$electempscharge; } echo "
"; if ( $electypebatt != '' ) { echo "Type de batterie : ".$electypebatt; } echo "
"; echo "

Chassis :

"; echo "
"; if ( $frav != '') { echo "Freins Avant : ".$frav; } echo $br; if ( $frar != '') { echo "Freins Arrière : ".$frar; } echo "
"; if ( $suspav != '') { echo "Suspension Avant : ".$suspav; } echo $br; if ( $suspar != '') { echo "Suspension Arrière : ".$suspar; } echo "
"; if ( $pneu != '') { echo "Pneumatiques : ".$pneu; } echo $br; if ( $rb != '') { echo "Rayon de Braquage : ".$rb. " m"; } echo "
"; if ( $abs != '') { echo "Abs : ".$abs; } echo $br; if ( $esp != '') { echo "Esp : ".$esp; } echo "
"; if ( $jantealu != '') { echo "Jantes Aluminium : ".$jantealu; } echo $br; echo "
"; if ( $mob == '0' ) { echo "

Dimensions :

"; echo "
"; echo "
"; echo $haut." mm"; echo "
"; echo $larg." mm"; echo "
"; echo $long." mm"; echo "
"; } else { echo "

Dimensions :

"; echo "
"; echo "
"; echo $haut." mm"; echo "
"; echo $larg." mm"; echo "

"; echo "
"; echo "
"; echo "
"; echo "
"; echo $long." mm"; echo "

"; } echo "
"; if ( $empatt != '') { echo "Empattement : ".$empatt." mm"; } echo $br; echo "
"; if ( $voieav != '') { echo "Voie Avant : ".$voieav." mm"; } echo $br; if ( $voiear != '') { echo "Voie Arrière : ".$voiear." mm"; } echo "
"; if ( $volcoffre != '') { echo "Volume du Coffre : ".$volcoffre. " l"; } echo $br; if ( $hautseuil != '' && $hautseuil != '-') { echo "Hauteur de Seuil : ".$hautseuil." mm"; } echo "
"; if ( $ptav != '') { echo "Poids Total à Vide : ".$ptav." kg"; } echo $br; if ( $ptac != '') { echo "Poids Total en Charge : ".$ptac. " kg"; } echo "
"; echo "

Options :

"; echo "
"; echo "
"; if ( $dirassist != '' && $dirassist != 'Non' && $dirassist != 'N/A') { echo "Direction Assistée : ".$dirassist."
"; } if ( $clim != '' && $clim != 'Non') { echo "Climatisation : ".$clim."
"; } if ( $regulvit != '' && $regulvit != 'Non' && $regulvit != 'N/A') { echo "Régulateur de Vitesse : ".$regulvit."
"; } if ( $stopstart != '' && $stopstart != 'Non' && $stopstart != 'N/A') { echo "Stop Start : ".$stopstart."
"; } if ( $ordibord != '' && $ordibord != 'Non' && $ordibord != 'N/A') { echo "Ordinateur de Bord : ".$ordibord; } echo "
"; if ( $mob == '0' ) { echo "
"; } else { echo "
"; } echo "
"; if ( $fermcentral != '' && $fermcentral != 'Non' && $fermcentral != 'N/A') { echo "Fermeture Centralisée : ".$fermcentral."
"; } if ( $climbizone != '' && $climbizone != 'Non' && $climbizone != 'N/A') { echo "Climtisation Bizone : ".$climbizone."
"; } if ( $capteurstat != '' && $capteurstat != 'Non' && $capteurstat != 'N/A') { echo "Aide au Stationnement : ".$capteurstat."
"; } if ( $siegechauff != '' && $siegechauff != 'Non' && $siegechauff != 'N/A') { echo "Sièges Chauffant : ".$siegechauff."
"; } if ( $acoudcentre != '' && $acoudcentre != 'Non' && $acoudcentre != 'N/A') { echo "Accoudoir Central : ".$acoudcentre; } echo "
"; if ( $banquetteraba != '' && $banquetteraba != 'Non' && $banquetteraba != 'N/A') { echo "
 Banquette Arrière Rabattable : ".$banquetteraba; } if ( $essuisauto != '' && $essuisauto != 'Non' && $essuisauto != 'N/A') { echo "
 Essuis Glaces Automatique : ".$essuisauto; } echo "
"; echo "
* Somme Non Contractuelle - Estimation donnée à titre indicatif

"; } echo "
"; if ( $mob == '0' ) { echo "
"; $Suiv = $No + 1; $Nb = current($bdd->query("select count(*) FROM auto WHERE No > '$No'")->fetch()); if ( $Nb >= '1' ) { $Ress=$bdd->query("SELECT No,marque,modele2,type FROM auto Where No > '$No' LIMIT 0,1"); } else { $Ress=$bdd->query("SELECT No,marque,modele2,type FROM auto LIMIT 0,1"); } $Repp = $Ress->fetch(PDO::FETCH_ASSOC); $Nos = $Repp['No']; $marque = $Repp['marque']; $modele = $Repp['modele2']; $type = $Repp['type']; $marque2 = str_replace(" ","-",$marque); $marque2 = strtolower($marque2); $type2 = str_replace(" ","-","$type"); $type2 = str_replace("é","e","$type2"); $type2 = strtolower($type2); if ( $type2 != '' ) { $type2 = "-".$type2; } $modele2 = trim(strtolower($modele)); $modele2 = str_replace(" ","-","$modele2"); $modele2 = str_replace("é","e","$modele2"); $modelea = str_replace("Coupe","Coupé","$modele"); echo "Fiche Suivante : ".$marque." ".$modelea." ".$type.""; } ?>