cours0708/P51/apache-tomcat-6.0.14/webapps/ecommerce/payement.jsp

68 lines
2.0 KiB
Plaintext

<h2>Payement</h2>
<p>Rappel de la commande :</p>
<table border="0" width="100%">
<thead>
<tr>
<th>Reference</th>
<th>Modele</th>
<th>Prix</th>
</tr>
</thead>
<tbody>
<c:forEach items="${articles}" var="artRef" >
<tr>
<td>
R&eacute;f&eacute;rence : ${artRef.ref}
</td>
<td>
Mod&egrave;le : ${artRef.modele}
</td>
<td>
Prix : ${artRef.prix}
</td>
</tr>
</c:forEach>
<tr>
<td colspan="2" 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>
<hr width="100%" size="1">
<form method="post" action="./Client">
<table border="0">
<tbody>
<tr>
<td>Nom :</td>
<td><input type="text" id="nomCli" name="nomCli" size="10" value="" /></td>
</tr>
<tr>
<td>Prénom :</td>
<td><input type="text" id="prenomCli" name="prenomCli" size="10" value="" /></td>
</tr>
<tr>
<td>Adresse :</td>
<td><input type="text" id="addrCli" name="addrCli" size="10" value="" /></td>
</tr>
<tr>
<td>Code postal :</td>
<td><input type="text" id="cpCli" name="cpCli" size="10" value="" /></td>
</tr>
<tr>
<td>Ville :</td>
<td><input type="text" id="villeCli" name="villeCli" size="10" value="" /></td>
</tr>
</tbody>
</table>
<p>Note : le payement se fera à la livraison de la commande.</p>
<input type="hidden" name="action" value="payer" />
<input type="button" value="Annuler" onclick="javascript:document.location='./Articles'" />&nbsp;
<input type="submit" value="Payer" />
</form>