60 lines
2.1 KiB
Plaintext
60 lines
2.1 KiB
Plaintext
|
<p><a href="./Panier?action=valider">Achat</a></p>
|
|||
|
|
|||
|
<h2>Panier</h2>
|
|||
|
|
|||
|
<form method="post" action="./Panier">
|
|||
|
<table border="0" width="100%">
|
|||
|
<thead>
|
|||
|
<tr>
|
|||
|
<th>Aper<65>u</th>
|
|||
|
<th>Propri<72>t<EFBFBD>s</th>
|
|||
|
<th>Quantit<69></th>
|
|||
|
<th>Action</th>
|
|||
|
</tr>
|
|||
|
</thead>
|
|||
|
<tbody>
|
|||
|
<c:forEach items="${articles}" var="artRef" >
|
|||
|
<tr>
|
|||
|
<td>
|
|||
|
<img src="./img/${artRef.photo}" width="50" height="50" alt="image"/>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<table border="0" width="100%" height="100%">
|
|||
|
<tbody>
|
|||
|
<tr>
|
|||
|
<td>Référence : ${artRef.ref}</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>Marque : ${artRef.marque}</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>Modèle : ${artRef.modele}</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<td>Prix : ${artRef.prix}</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<input type="text" id="${artRef.ref}" name="${artRef.ref}" maxLength="3" size="3" value="${artRef.quantite}" />
|
|||
|
</td>
|
|||
|
<td>
|
|||
|
<a href="./Panier?action=del&artRef=${artRef.ref}">enlever</a>
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</c:forEach>
|
|||
|
<tr>
|
|||
|
<td colspan="3" class="tabTotal">Total :</td>
|
|||
|
<td>
|
|||
|
<jsp:useBean id="panierTotal" class="com.articles.Panier" scope="request" />
|
|||
|
<jsp:getProperty name="panierTotal" property="prixTotal" />
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
<br />
|
|||
|
<input type="hidden" name="action" value="modif" />
|
|||
|
<input type="submit" value="Calculer <20> nouveau">
|
|||
|
</form>
|