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/web/WEB-INF/jsp/resultat.jsp

62 lines
2.5 KiB
Text
Raw Normal View History

2022-06-27 21:14:35 +02:00
<%--
Document : resultat
Created on : 4 mars 2018, 20:29:48
Author : faycal
--%>
<%@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>Resultat</title>
</head>
<body>
<%@include file="header.jsp" %>
<c:choose>
<c:when test="${error != null}">
<h1>${error}</h1>
</c:when>
<c:otherwise>
<table border="1" cellpadding="10">
<TR>
<c:forEach items="${colonnes}" var="col">
<TD>${col}</TD>
</c:forEach>
</TR>
2022-06-27 21:14:35 +02:00
<c:forEach items="${results}" var="values" varStatus="row" >
<TR>
<c:forEach items="${values}" var="v" varStatus="vStatus" >
<c:choose>
<c:when test="${relation != null && relation.get(colonnes[vStatus.index]) != null}">
<TD>
<form name="Detail" action="detail.htm" method="POST">
<input hidden type="text" name="type" value="${relation.get(colonnes[vStatus.index])}"/>
<input hidden name="num" value="${v}"/>
<input type=submit value="${v}" />
</form>
</TD>
</c:when>
<c:otherwise>
<TD>${v}</TD>
</c:otherwise>
</c:choose>
</c:forEach>
<TD>
<form name="Detail" action="detail.htm" method="POST">
<input hidden type="text" name="type" value="${type}"/>
<input hidden name="num" value="${values[0]}"/>
<input type=submit value="Détail" />
</form>
</TD>
</TR>
2022-06-27 21:14:35 +02:00
</c:forEach>
</table>
</c:otherwise>
</c:choose>
2022-06-27 21:14:35 +02:00
</body>
</html>