Grosse MàJ
This commit is contained in:
69
workspace/webapps/vues/contenuPanier.jsp
Normal file
69
workspace/webapps/vues/contenuPanier.jsp
Normal file
@ -0,0 +1,69 @@
|
||||
<%@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>Contenu du Panier</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>Contenu du Panier</h1>
|
||||
<br></br>
|
||||
|
||||
<form name="panier" action="panier" method="POST">
|
||||
|
||||
<table border="0" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Description</th>
|
||||
<th>Compl<70>m<EFBFBD>nt</th>
|
||||
<th>Panier</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach items="${articles}" var="artRef" >
|
||||
<tr>
|
||||
<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>
|
||||
Quantit<69> : ${artRef.quantite}
|
||||
</td>
|
||||
<td>
|
||||
<a href="./Panier?action=del&artRef=${artRef.ref}">ajouter au panier</a>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<hr width="100%" size="1">
|
||||
|
||||
<a href="./ListeArticles">Continuez vos achats</a>
|
||||
</body>
|
||||
</html>
|
58
workspace/webapps/vues/listeArticles.jsp
Normal file
58
workspace/webapps/vues/listeArticles.jsp
Normal file
@ -0,0 +1,58 @@
|
||||
<%@page contentType="text/html" %>
|
||||
<%@page pageEncoding="UTF-8" %>
|
||||
<%@page language="java" %>
|
||||
|
||||
<!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>Contenu du Panier</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>Liste des articles</h1>
|
||||
<br></br>
|
||||
<table border="0" width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Description</th>
|
||||
<th>Compl<70>ment</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach items="${articles}" var="artRef" >
|
||||
<tr>
|
||||
<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="./ListeArticles?action=info&artRef=${artRef.ref}">infos</a>
|
||||
</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</HTML>
|
||||
|
12
workspace/webapps/vues/loginForm.jsp
Normal file
12
workspace/webapps/vues/loginForm.jsp
Normal file
@ -0,0 +1,12 @@
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
<c:url var="login" value="/connexion" />
|
||||
<h1>Authentification</h1>
|
||||
<p><c:out value="${message}" default="Identifiez-vous :"/></p>
|
||||
|
||||
<form method="POST" action="${login}">
|
||||
<label>Identifiant :</label>
|
||||
<input name="id" type="text" value="<c:out value="${user.id}"/>"/><br />
|
||||
<label>Mot de passe : </label>
|
||||
<input name="password" type="password" value="<c:out value="${user.password}"/>"/><br/>
|
||||
<input name="ok" type="submit" value="Ok"/>
|
||||
</form>
|
20
workspace/webapps/vues/panierVide.jsp
Normal file
20
workspace/webapps/vues/panierVide.jsp
Normal file
@ -0,0 +1,20 @@
|
||||
<%@page contentType="text/html" %>
|
||||
<%@page pageEncoding="UTF-8" %>
|
||||
<%@page language="java" %>
|
||||
|
||||
<!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>Panier</title>
|
||||
</head>
|
||||
<body>
|
||||
<body>
|
||||
<h1>Panier</h1>
|
||||
<P>panier vide</P>
|
||||
<a href="./ListeArticles">Continuez vos achats</a>
|
||||
</body>
|
||||
</html>
|
6
workspace/webapps/vues/salut.jsp
Normal file
6
workspace/webapps/vues/salut.jsp
Normal file
@ -0,0 +1,6 @@
|
||||
<%@ taglib prefix="balise" uri="/WEB-INF/tld/librairie.tld" %>
|
||||
|
||||
<%
|
||||
String identifiant = request.getParameter("id");
|
||||
out.println("Votre identifiant est: " + identifiant);
|
||||
%>
|
Reference in New Issue
Block a user