<!DOCTYPE html>
<html>
 <head>
     <meta charset="UTF-8" />
     <meta name="author" content="Manuele" />
    <title>Produits</title>
    <link rel="stylesheet" href="css/panier.css" />
 </head>
 <body>
    <header>
       <h1> Nos Produits </h1>
    </header>
 
    <nav>
         <p> <a href="ctlPanier.php?action=terminer"> Terminer </a> </p>
         <p> <a href="ctlPanier.php"> Voir panier </a> <p>
    </nav>
    
    <section>
      
        <table>
          <thead> <tr> <th> Produit </th> <th> Prix </th> <th> </th> <th> </th> </tr> 
          </thead> 
          <tbody>
<!-- Commentaire : on aurait pu recuperer les produits de la BdD. Voir exemple coursPHP-2014-2.php ou coursPHP-19.php -->
             <tr>
                 <td> <b> Autocollant </b> 
                 <br/> Autocollant au symbole du club </td>
                 <td> 15.00 € </td>
                 <td> 
                   <form action=ctlPanier.php method=get > 
            <!-- on ajoute en champs cache ttes les infos du produit -->
                      <input type=hidden name=produit value=autocollant />
                      <input type=hidden name=descr value="Autocollant au symbole du club" />
                      <input type=hidden name=prix  value="15.00" />
                      <input type=hidden name=action value=ajouter />
                      <input type=submit value="+" />
                    </form>
                 </td>
                <td> 
                   <form action=ctlPanier.php method=get > 
                      <input type=hidden name=produit value=autocollant />
                      <input type=hidden name=action value=supprimer />
                      <input type=submit value="-" />
                   </form>   
                </td>
             </tr>
             
             <tr>
                 <td> <b> T-shirt Official </b> 
                 <br/> T-shirt official du club </td>
                 <td> 35.00 € </td>
                 <td> 
                   <form action=ctlPanier.php method=get > 
                      <input type=hidden name=produit value="TSOfficial" />
                      <input type=hidden name=descr value="T-shirt officiel du club" />
                      <input type=hidden name=prix  value="35.00" />
                      <input type=hidden name=action value=ajouter />
                      <input type=submit value="+" />
                    </form>
                 </td>
                <td> 
                   <form action=ctlPanier.php method=get > 
                      <input type=hidden name=produit value="TSOfficial" /> 
                      <input type=hidden name=action value=supprimer />
                      <input type=submit value="-" />
                   </form>   
                </td>
             </tr>
             
             <tr>
                 <td> <b> T-shirt baby-look </b> 
                 <br/> T-shirt au symbole du club, modele feminin </td>
                 <td> 25.00 € </td>
                 <td> 
                   <form action=ctlPanier.php method=get > 
                      <input type=hidden name=produit value="TSBabyLook" />
                      <input type=hidden name=descr value="T-shirt format baby-lock" />
                      <input type=hidden name=prix  value="25.00" />
                      <input type=hidden name=action value=ajouter />
                      <input type=submit value="+" />
                    </form>
                 </td>
                <td> 
                   <form action=ctlPanier.php method=get > 
                      <input type=hidden name=produit value="TSBabyLook" /> 
                      <input type=hidden name=action value=supprimer />
                      <input type=submit value="-" />
                   </form>   
                </td>
             </tr>
             
          </tbody>
        </table>
        
    </section>
   
 </body>
</html>