You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

92 lines
2.5 KiB

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!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=ISO-8859-1">
<link href="${pageContext.request.contextPath}/CSS/style.css" rel="stylesheet" type="text/css" >
<title>MaxPace</title>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
// color impact in center columns
var pace = $("[name='pace']");
for (x=0;x<$(pace).size();x++){
var n = ""+(parseFloat($(pace).eq(x).text()));
if(n>0){
$(pace).eq(x).text("+" + n);
$(pace).eq(x).removeClass("negative").addClass("positive");
}else{
$(pace).eq(x).removeClass("positive").addClass("negative");
}
}
});
$(window).load(function() {
}); //end doc ready
</script>
</head>
<body>
<c:set var="teams" value="${requestScope.teamList}" />
<c:set var="slots" value="${requestScope.slotList}" />
<table class="tableTrade">
<thead>
<tr class="Header" style="line-height: 20px;">
<c:forEach var="team" items= "${teams}" >
<th colspan="3"><strong><c:out value="${team.name}" /></strong></th>
</c:forEach>
</tr>
<tr class="Header" style="line-height: 20px;">
<c:forEach var="team" items= "${teams}" varStatus="i">
<th name="head" style="text-align:left">Slot</th>
<th name="head" style="text-align:center">Played</th>
<th name="head">Pace</th>
</c:forEach>
</tr>
</thead>
<tbody>
<c:forEach var="slot" items= "${slotList}" varStatus="i">
<c:if test="${i.index < 8}">
<tr name="ligne" class="tab">
<c:forEach var="team" items= "${teams}" >
<td style="text-align:left;"><strong><c:out value="${team.slots[i.index].nomPos}" /></strong></td>
<td align="center"><c:out value="${team.slots[i.index].gamesPlayed}" /></td>
<td name="pace" align="center"><fmt:formatNumber pattern="0.#" value="${team.slots[i.index].pace}" /></td>
</c:forEach>
</tr>
</c:if>
</c:forEach>
</tbody>
</table>
</body>
</html>