Merge origin/master
Conflicts: nbproject/project.properties src/java/bean/Pompier.java src/java/servlet/PompierServlet.java src/java/util/TrmtDate.java web/WEB-INF/jspf/formulairePompier.jspf web/WEB-INF/jspf/header.jspf web/WEB-INF/web.xml
This commit is contained in:
parent
03780acc84
commit
fb1699b16f
@ -36,7 +36,7 @@ public class gardeMySQL {
|
||||
int indiceDateFin = lesDates.length - 1;
|
||||
Pompier lePompier;
|
||||
PompierMySQL pm = new PompierMySQL();
|
||||
ArrayList<Pompier> lesPompiers = pm.readLesPompiersCaserne(idCaserne);
|
||||
ArrayList<Pompier> lesPompiers = pm.readLesPomprangeiersCaserne(idCaserne);
|
||||
for (Pompier unPompier : lesPompiers) {
|
||||
for (Calendar uneDate : lesDates) {
|
||||
for (int unePeriode : lesPeriodes) {
|
||||
|
@ -91,7 +91,7 @@ public class GardesServlet extends HttpServlet {
|
||||
maSession.setAttribute("lesCouleurs", lesCouleurs);
|
||||
|
||||
/* Affichage de la page de ventilation */
|
||||
getServletContext().getRequestDispatcher("/WEB-INF/feuilleGardesJSP.jsp").forward(request, response);
|
||||
getServletContext().getRequestDispatcher("/WEB-INF/feuilleGardes.jsp").forward(request, response);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -47,6 +47,14 @@
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
<div id="legendCouleur">
|
||||
|
||||
<span style="background-color: white">Dispo</span>
|
||||
<span style="background-color: gray">Indispo</span>
|
||||
<span style="background-color: yellow">Au travail</span>
|
||||
<span>De garde : X</span>
|
||||
|
||||
</div>
|
||||
|
||||
</table>
|
||||
|
||||
|
@ -127,48 +127,51 @@
|
||||
</div><!-- fin ligne observation -->
|
||||
</div> <!-- fin observation -->
|
||||
<br/>
|
||||
|
||||
|
||||
<!-- tab disp -->
|
||||
<div>
|
||||
<label for="tDisp">Disponibilitées</label>
|
||||
<table border="1" cellspacing="3" cellpadding="1" class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<c:forEach items="${sessionScope.lesDatesEnString}" var="uneDate" varStatus="status">
|
||||
<tr>
|
||||
|
||||
<c:forEach items="${sessionScope.lesDatesEnString}" var="uneDate" varStatus="status">
|
||||
<th colspan="2" class="text-center">${uneDate}</th>
|
||||
</c:forEach>
|
||||
</tr>
|
||||
<tr>
|
||||
</c:forEach>
|
||||
</tr>
|
||||
<tr>
|
||||
<c:forEach var="i" begin="0" end="4" step="1">
|
||||
<c:forEach items="${sessionScope.lesPeriodes}" var="uneP" varStatus="status">
|
||||
<td class="text-center">${uneP}</td>
|
||||
<th class="text-center">${uneP}</th>
|
||||
</c:forEach>
|
||||
</c:forEach>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:set var="oldId" value="-1" scope="page"/>
|
||||
<tr>
|
||||
<c:forEach items="${sessionScope.lesVentilInit}" var="ventil" varStatus="status">
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:set var="oldId" value="-1" scope="page"/>
|
||||
<tr>
|
||||
<c:forEach items="${sessionScope.lesVentilInit}" var="ventil" varStatus="status">
|
||||
<c:set var="newId" value="${gardes.getPompier().getId()}" scope="page"/>
|
||||
<c:if test="${oldId != newId}" var="test" scope="page">
|
||||
</tr> <tr>
|
||||
<td>${ventil.getSalarie().getId()}</td>
|
||||
<td>${ventil.getSalarie().getNom()} ${ventil.getSalarie().getPrenom()}</td>
|
||||
</tr> <tr>
|
||||
|
||||
|
||||
<c:set var="oldId" value="${newId}" scope="page"/>
|
||||
</c:if>
|
||||
<c:set var="act" value="${gardes.getDisponibilite()}" scope="page"/>
|
||||
<c:set var="act" value="${gardes.getDisponibilite()}" scope="page"/>
|
||||
<td><input type="text" value="${act}" name="lesAct" class="ztVentil ${sessionScope.lesCouleurs[act]}" readonly/></td>
|
||||
|
||||
</c:forEach>
|
||||
</tr>
|
||||
</tbody>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div id="legendCouleur">
|
||||
|
||||
<span style="background-color: white">Dispo</span>
|
||||
<span style="background-color: gray">Indispo</span>
|
||||
<span style="background-color: yellow">Au travail</span>
|
||||
|
||||
<span>De garde : X</span>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
@ -84,3 +84,30 @@ aside, #btAfficherPompier {
|
||||
select[readonly] {
|
||||
pointer-events: none;
|
||||
}
|
||||
.blanc {
|
||||
background-color: white;
|
||||
color: white;
|
||||
border-color : white;
|
||||
}
|
||||
|
||||
.gris {
|
||||
background-color: gray;
|
||||
color: gray;
|
||||
border-color: gray;
|
||||
}
|
||||
|
||||
.jaune {
|
||||
background-color: yellow;
|
||||
color: yellow;
|
||||
border-color: yellow;
|
||||
}
|
||||
|
||||
.ztVentil {
|
||||
width : 40%;
|
||||
border: 3px solid;
|
||||
|
||||
}
|
||||
|
||||
.ztVentil:hover {
|
||||
border-color: grey;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user