<th>Total</th> </tr> </thead> <tbody> <tr class="success"> <td><?php echo $_SESSION['panier']['libelleJeu']; ?> </td> <td><?php echo $_SESSION['panier']['prixJeu']; ?> € </td> <td><?php echo MontantGlobal(); ?> €</td> </tr> </tbody> </table> <?php } ?> </div> <form action="<?php echo $_SERVER['PHP_SELF']; ?> " method="POST">
$nbArticles = count($_SESSION['panier']['libelleProduit']); if ($nbArticles <= 0) { echo "<tr><td bgcolor='#49DAE5'>Votre panier est vide </ td></tr>"; } else { for ($i = 0; $i < $nbArticles; $i++) { echo "<tr>"; echo "<td bgcolor='#49DAE5'>" . htmlspecialchars($_SESSION['panier']['libelleProduit'][$i]) . "</ td>"; echo "<td bgcolor='#B9F3AB'><input type=\"text\" size=\"4\" name=\"q[]\" value=\"" . htmlspecialchars($_SESSION['panier']['qteProduit'][$i]) . "\"/></td>"; echo "<td bgcolor='#B9F3AB'>" . htmlspecialchars($_SESSION['panier']['prixProduit'][$i]) . "dh</td>"; echo "<td bgcolor='#B9F3AB'><a href=\"" . htmlspecialchars("panier.php?action=suppression&l=" . rawurlencode($_SESSION['panier']['libelleProduit'][$i])) . "&&page=panier'\"><img src='images/sup.jpg'/></a></td>"; echo "<td bgcolor='#B9F3AB'><a href=passer_commande.php?action=" . $_SESSION['panier']['libelleProduit'][$i] . "&&qte=" . $_SESSION['panier']['qteProduit'][$i] . "><img src='images/save.png'/></a></td>"; echo "</tr>"; } echo "<tr><td bgcolor='magenta'colspan=\"2\"> <input type=\"submit\" value=\"Rafraichir\"/>\n\t <input type=\"hidden\" name=\"action\" value=\"refresh\"/></td>"; echo "<td bgcolor='yellow' colspan=\"2\">"; echo "Total : " . MontantGlobal() . "dh"; echo "</td></tr>"; echo "<tr><td colspan=\"4\">"; echo "</td></tr>"; } switch ($page) { case "index": header("location:index.php"); break; case "liste": header("location:list_podruit_auto.php"); break; case "panier": header("location:panier.php"); break; default:
echo "<tr><td>Votre panier est vide </ td></tr>"; else { for ($i=0 ;$i < $nbArticles ; $i++) { echo "<tr>"; echo "<td>".htmlspecialchars($_SESSION['panier']['libelleProduit'][$i])."</ td>"; echo "<td><input type=\"text\" size=\"4\" name=\"q[]\" value=\"".htmlspecialchars($_SESSION['panier']['qteProduit'][$i])."\"/></td>"; echo "<td>".htmlspecialchars($_SESSION['panier']['prixProduit'][$i])."</td>"; echo "<td><a href=\"".htmlspecialchars("panier.php?action=suppression&l=".rawurlencode($_SESSION['panier']['libelleProduit'][$i]))."\">XX</a></td>"; echo "</tr>"; } echo "<tr><td colspan=\"2\"> </td>"; echo "<td colspan=\"2\">"; echo "Total : ".MontantGlobal(); echo "</td></tr>"; echo "<tr><td colspan=\"4\">"; echo "<input type=\"submit\" value=\"Rafraichir\"/>"; echo "<input type=\"hidden\" name=\"action\" value=\"refresh\"/>"; echo "</td></tr>"; } } ?> </table> </form> </body> </html>
<div class="header"> <div class="bg"> <!--start:header --> <div class="container_16"> <!--start:header container --> <!--start:logo --> <br/><br/><br/><br/> <h4 align="right"> <?php include_once "fonctions-panier.php"; echo "<a href=panier.php?page='panier'><font color='blue' size='2'>" . compterArticles() . " :Produit(s)</font></br>"; echo "<font color='yellow' size='2'>Total : " . MontantGlobal() . "dh</font></a></br>"; if (!isset($_SESSION['clientLogin'])) { echo '<a href="formAuthentificationclient.php"><font color="orange">se connecter</font></a>'; } else { echo "<font color='orange' size='3'>Bienvenu : </font><font color='black' size='3'>" . $_SESSION['clientLogin'] . "</font>"; } ?> </h4> <div class="grid_5"> <img src="images/loho.jpg" alt="DesignPlus" class="pngfix logo"/> </div> <!--end:logo --> <div class="grid_11"> <!--start:menu grid -->