Merge origin/master
Conflicts: web/WEB-INF/feuilleGardes.jsp web/css/mycss.css
This commit is contained in:
parent
f293ce8b0f
commit
f74104e7ff
@ -44,7 +44,11 @@ public class GardeMySQL {
|
|||||||
PompierMySQL pm = new PompierMySQL();
|
PompierMySQL pm = new PompierMySQL();
|
||||||
HttpSession maSession = request.getSession();
|
HttpSession maSession = request.getSession();
|
||||||
ArrayList<Pompier> lesPompiers = (ArrayList<Pompier>) maSession.getAttribute("lesPompiers");
|
ArrayList<Pompier> lesPompiers = (ArrayList<Pompier>) maSession.getAttribute("lesPompiers");
|
||||||
|
Pompier lePompierConnecte =(Pompier) maSession.getAttribute("lePompierConnecte");
|
||||||
|
if(lesPompiers==null){
|
||||||
|
lesPompiers = new ArrayList<>();
|
||||||
|
lesPompiers.add(lePompierConnecte);
|
||||||
|
}
|
||||||
for (Pompier unPompier : lesPompiers) {
|
for (Pompier unPompier : lesPompiers) {
|
||||||
for (Calendar uneDate : lesDates) {
|
for (Calendar uneDate : lesDates) {
|
||||||
for (int unePeriode : lesPeriodes) {
|
for (int unePeriode : lesPeriodes) {
|
||||||
|
@ -85,7 +85,7 @@ public class GardesServlet extends HttpServlet {
|
|||||||
System.out.println(lesDatesEnString.toString());
|
System.out.println(lesDatesEnString.toString());
|
||||||
/*Initialisation des periodes */
|
/*Initialisation des periodes */
|
||||||
int[] lesPeriodes = {1,2,3,4};
|
int[] lesPeriodes = {1,2,3,4};
|
||||||
maSession.setAttribute("lesPeriodes", lesPeriodes);
|
// maSession.setAttribute("lesPeriodes", lesPeriodes);
|
||||||
System.out.println(lesPeriodes.toString());
|
System.out.println(lesPeriodes.toString());
|
||||||
/* Recherche des ventilations */
|
/* Recherche des ventilations */
|
||||||
|
|
||||||
|
@ -31,8 +31,8 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<c:forEach var="i" begin="0" end="6" step="1">
|
<c:forEach var="i" begin="0" end="6" step="1">
|
||||||
<c:forEach items='${sessionScope.lesPeriodes}' var="unePeriode" varStatus="status">
|
<c:forEach items='${sessionScope.lesPeriodes}' var="unePeriode" varStatus="status">
|
||||||
<c:set var="periode" value="${unePeriode.getCode()}" scope="page"/>
|
|
||||||
<td class="text-center">${unePeriode}</td>
|
<td class="text-center">${unePeriode.getCode()}</td>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -32,8 +32,8 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<c:forEach var="i" begin="0" end="6" step="1">
|
<c:forEach var="i" begin="0" end="6" step="1">
|
||||||
<c:forEach items='${sessionScope.lesPeriodes}' var="unePeriode" varStatus="status">
|
<c:forEach items='${sessionScope.lesPeriodes}' var="unePeriode" varStatus="status">
|
||||||
<c:set var="periode" value="${unePeriode.getCode()}" scope="page"/>
|
|
||||||
<td class="text-center">${unePeriode}</td>
|
<td class="text-center">${unePeriode.getCode()}</td>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</c:forEach>
|
</c:forEach>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user