1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
<!--ET AFFICHER LES RESULTATS-->
<table cellspacing="0" class="lisaTable">
<tr class="lisaHead">
<th colspan="2"><span style="font-size: 16px">LES VO A RESERVER</span></th>
<th class="bg"><h4>Energie</h4></th>
<th class="bg"><h4>Kms</h4></th>
<th class="bg"><h4>Année</h4></th>
<th class="bg"><h4>Prix</h4></th>
<th class="bg"><h4>Action ?</h4></th>
</tr>
<?php
$i = 0;
$j = 0;
foreach($vehicles as $vehicle) {
$url = '/occasions/details.php?nvo='.$vehicle['nvo'];
?>
<tr class="row<?php echo $i ?><?=($j == 0 ? ' first' : '')?>">
<td class="lisaTdPhoto">
<?php if($vehicle['photo_1']) {?>
<a href="<?php echo $url ?>"><img src="<?php echo getUrlPhoto($vehicle['id_ext'],$vehicle['photo_1'],1); ?>" alt="<?php echo strtoupper($vehicle['marque']).' '.$vehicle['modele']?> occasion" class="prevPhoto" /></a>
<?php } ?>
</td>
<td class="lisaTdMain">
<a href="<?php echo $url ?>"><b><?php echo $vehicle['marque'].' '.$vehicle['modele']?></b></a><br />
<?php echo $vehicle['version']; ?></td>
<td class="motor"><?php echo $vehicle['motorisation'] ?></td>
<td class="km"><?php echo number_format($vehicle['km'], 0, '', ' ') ?> kms</td>
<td class="annee"><?php echo $vehicle['millesime'] ? $vehicle['millesime'] : 'NC' ?></td>
<td class="prix"><span><?php echo $vehicle['prix'] ? number_format($vehicle['prix'], 0, '', ' ') : 'NC' ?> </span></td>
<td class="prix"><a style="color:#000;" href="<?=getSelectionUrl('delete', $vehicle['id_voiture'])?>">Retirer de ma réservation</a></td>
</tr>
<form id="contactForm" method="post" action="../occasions/envoi-selection.php">
<input type="hidden" name="nvo" value="<?php echo $vehicle['nvo'] ;?>">
<input type="hidden" name="description" value="<?php echo $vehicle['marque'].' '.$vehicle['modele']?>">
<input type="hidden" name="prix" value="<?php echo $vehicle['prix'] ;?>">
<input type="submit" value="Reserver ces véhicules"/>
</form>
<?php
($i == 0) ? $i++ : $i=0;
$j++;
}
?>
<tr class="lisaFoot">
<td colspan="7">
</td>
</tr>
</table>
<?php
}
?>
<!-- FIN AFFICHAGE DU STOCK --> |
Partager