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

54 lines
2.2 KiB
Plaintext
Raw Normal View History

2008-11-25 21:11:16 +00:00
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean id="article" class="com.articles.Article" scope="request" />
<h2>Article -Informations</h2>
<table border="0" width="100%">
<thead>
<tr>
<th>Aper<65>u</th>
<th>Propri<72>t<EFBFBD>s</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<img src="./img/<jsp:getProperty name="art" property="photo" />" width="50" height="50" alt="image"/>
</td>
<td>
<table border="0" width="100%" height="100%">
<tbody>
<tr>
<td>R&eacute;f&eacute;rence :
<jsp:getProperty name="art" property="ref" /></td>
</tr>
<tr>
<td>Marque :
<jsp:getProperty name="art" property="marque" /></td>
</tr>
<tr>
<td>Mod&egrave;le :
<jsp:getProperty name="art" property="modele" /></td>
</tr>
<tr>
<td>Description :
<jsp:getProperty name="art" property="description" /></td>
</tr>
<tr>
<td>Prix :
<jsp:getProperty name="art" property="prix" /></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<hr width="100%" size="1">
<h2>Acheter l'article</h2>
<form method="post" action="./Panier?action=add">
<input type="hidden" id="ref" name="ref" value="<jsp:getProperty name="art" property="ref" />">
Quantit<69> :<br />
<input type="text" id="txtQte" name="txtQte" maxLength="3" size="3" /><br />
<input type="submit" value="Acheter">
</form>