83 lines
2.7 KiB
Plaintext
83 lines
2.7 KiB
Plaintext
<%@page contentType="text/html" %>
|
|
<%@page pageEncoding="UTF-8" %>
|
|
<%@page language="java" %>
|
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
"http://www.w3.org/TR/html4/loose.dtd">
|
|
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<link rel="stylesheet" href="style.css" type="text/css" />
|
|
<title>RandoOnLine - Articles disponibles</title>
|
|
</head>
|
|
<body>
|
|
|
|
<h1>RandoOnLine</h1>
|
|
<table border="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th><a href="./index.jsp">Accueil</a></th>
|
|
<th><a href="./Panier">Panier</a></th>
|
|
<th>Liste des articles</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
|
|
<h2>Filtre</h2>
|
|
<form method="post" action="./Articles">
|
|
<select id="lstCategs" name="lstCategs" size="1">
|
|
<c:forEach items="${categories}" var="categ" >
|
|
<option value="${categ.id}">${categ.cat}</option>
|
|
</c:forEach>
|
|
</select>
|
|
<input type="submit" value="Appliquer le filtre">
|
|
</form>
|
|
|
|
<h2>Liste des articles disponibles</h2>
|
|
<table border="0" width="100%">
|
|
<thead>
|
|
<tr>
|
|
<th>Aperçu</th>
|
|
<th>Propriétés</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>Description : ${artRef.description}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Prix : ${artRef.prix}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</td>
|
|
<td>
|
|
<a href="./Panier?action=add&artRef=${artRef.ref}">ajouter au panier</a>
|
|
</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</tbody>
|
|
</table>
|
|
</body>
|
|
</HTML>
|
|
|