ANNEXES
<th width="172" height="64" scope="col"><a
href="catalogue.php" class="style1"><img 
src="../images/bouton-catalogue1.jpg" width="171" height="62"
border="0" usemap="#Map6" 
/></a></th> 
<th width="172" height="64" scope="col"><a
href="panier.php" class="style1"><img 
src="../images/bouton-panier.png" width="171" height="62"
border="0" usemap="#Map7" 
/></a></th> 
<th width="172" scope="col"><a href="commande.php"
class="style1"><img 
src="../images/bouton-commande.png" width="171" height="62"
border="0" usemap="#Map8" 
/></a></th> 
<th width="172" scope="col"><span
class="style1"><img src="../images/bouton- 
administrateur.png" width="171" height="62" border="0"
usemap="#Map9" /></span></th> 
</tr> 
</table> 
<table width="913" height="152" border="1" align="center"
background="../images/backgroud.jpg"> 
<tr> 
<td height="101" colspan="4" align="center"
valign="top"><p class="Style12"><span 
class="Style13">PANIER</span> 
<?php if(isset($liste)) { //affiche le tableau s'il y a au
moins un article ?> 
</p> 
<p class="Style14">vous pouvez à tout moment
accéder à votre panier et 
ainsi consulter les articles qui s'y trouvent déja. Et
vous pouvez également ajouter 
autant d'articles que vous le voulez dans ce même
panier avant de commander. </p> 
<form id="form1" name="form1" action="panier.php"
method="get"> 
<table width="600" border="1"> 
<tr> 
<th width="196" scope="col"><span
class="Style5">Noms</span></th> 
<th width="84" scope="col"><span
class="Style5">Quantités</span></th> 
<th width="205" scope="col"><span class="Style5">Prix
(Fcfa) </span></th> 
<th width="87" scope="col"><span
class="Style5">Supprimer</span></th> 
</tr> 
<?php 
$total=0; //initialisation du total de la commande à 0 
for ($i=0;$i<count($liste);$i++) 
{//debut du bloc for 
$query_rsPanier="select * from article where
reference='".$liste[$i][0]."'"; 
$rsPanier=mysql_query($query_rsPanier, $ConnexionEcommerce) or
die(mysql_error()); 
$row_rsPanier=mysql_fetch_assoc($rsPanier); 
/*définition et exécution de la requête SQL
afin de récupérer les informations de l'article
stockées 
dans la base (nom, quantité...)*/ 
?> 
<tr> 
<td align="center"><span class="Style8"><?php echo
$row_rsPanier['designation'] ?></span></td> 
<td align="center"> 
<select name="nb<?php echo $i ?>"> 
<option value="1" <?php if($liste[$i][1]==1) echo
"SELECTED"; ?>>1</option> <option value="2" <?php
if($liste[$i][1]==2) echo "SELECTED"; ?>>2</option> <option
value="3" <?php if($liste[$i][1]==3) echo "SELECTED";
?>>3</option> </select> 
</td> 
<td align="center"><span class="Style8"><?php echo
$row_rsPanier['prix'] ?></span></td> <td
align="center"> 
<a href="panier.php?article=<?php echo $i
?>&suppPanier=SUPPRIMER"> 
<img src="../images/supp.png" width="30" height="25"
border="0" /> </a></td> 
</tr> 
Rédigé et Présenté par
NZOGANG Borel et FOTSO WANSI Lionel 62 
 |