1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
JEE_Project/build/web/WEB-INF/jsp/detail.jsp

98 lines
4.7 KiB
Text
Raw Permalink Normal View History

2022-06-27 21:14:35 +02:00
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Detail</title>
</head>
<body>
<%@include file="header.jsp" %>
<form name="detail" method="POST">
<c:choose>
<c:when test="${type == 'customer'}">
<p>
<label for="numero">Numero</label>
<input type="text" name="numero" value="${result.customerId}" size="30" id="numero" />
</p>
<p>
<label for="nom">Nom</label>
<input type="text" name="nom" value="${result.name}" size="30" id="nom" />
</p>
<p>
<label for="adresse">Adresse</label>
<input type="text" name="adresse" value="${result.addressline1}" size="30" id="adresse" />
</p>
<p>
<label for="telephone">Téléphone</label>
<input type="text" name="telephone" value="${result.phone}" size="30" id="tel" />
</p>
<p>
<label for="email">E-mail</label>
<input type="text" name="email" value="${result.email}" size="30" id="email"/>
</p>
<p>
<label for="Remise">Remise</label>
<select name="code_remise" id="dc">
<c:forEach items="${code}" var="dc">
<option <c:if test="${dc==result.discountCode}"> selected </c:if>>${dc}</option>
</c:forEach>
</select>
</p>
<p>
<label for="cp">Code Postal</label>
<select name="CP" id="cp">
<c:forEach items="${cpostaux}" var="cp">
<option <c:if test="${cp==result.zip}"> selected </c:if>>${cp}</option>
</c:forEach>
</select>
</p>
</c:when>
<c:when test="${type == 'product'}">
<p>
<label for="productId">ID</label>
<input type="number" name="productId" value="${result.productId}" size="30" id="productId" />
</p>
<p>
<label for="manufacturerId">Manufacturer</label>
<input type="number" name="manufacturerId" value="${result.manufacturerId}" size="30" id="manufacturerId" />
</p>
<p>
<label for="productCode">Product Code</label>
<input type="text" name="productCode" value="${result.productCode}" size="2" id="productCode" />
</p>
<p>
<label for="purchaseCost">Purchase cost</label>
<input type="number" step="0.000000000001" name="purchaseCost" value="${result.purchaseCost}" id="purchaseCost" />
</p>
<p>
<label for="quantityOnHand">Quantity on hand</label>
<input type="number" name="quantityOnHand" value="${result.quantityOnHand}" id="quantityOnHand" />
</p>
<p>
<label for="markup">Markup</label>
<input type="number" step="0.0001" name="markup" value="${result.markup}" id="markup" />
</p>
<p>
<label for="markup">Available</label>
<input type="text" name="available" value="${result.available}" id="available" size="5" />
</p>
<p>
<label for="description">Description</label>
<input type="text" name="description" value="${result.description}" id="description" size="50" />
</p>
</c:when>
</c:choose>
<input hidden type="text" name="type" value="${type}" />
2022-06-27 21:14:35 +02:00
<input type="submit" value="Modifier" formaction="update.htm" />
<input type="submit" value="Supprimer" formaction="delete.htm" />
<c:if test="${type == 'customer'}">
<input type="submit" value="Afficher les achats" formaction="achats.htm" />
</c:if>
2022-06-27 21:14:35 +02:00
</form>
</body>
</html>