From fb1699b16f7b1c66a65dab2188436c0d56b34c62 Mon Sep 17 00:00:00 2001 From: "clementine.desrucques" Date: Mon, 13 Dec 2021 14:42:07 +0100 Subject: [PATCH] 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 --- src/java/bdd/gardeMySQL.java | 2 +- src/java/servlet/GardesServlet.java | 2 +- web/WEB-INF/feuilleGardes.jsp | 8 +++++ web/WEB-INF/jspf/formulairePompier.jspf | 41 +++++++++++++------------ web/css/mycss.css | 27 ++++++++++++++++ 5 files changed, 59 insertions(+), 21 deletions(-) diff --git a/src/java/bdd/gardeMySQL.java b/src/java/bdd/gardeMySQL.java index cc90924..c82114d 100644 --- a/src/java/bdd/gardeMySQL.java +++ b/src/java/bdd/gardeMySQL.java @@ -36,7 +36,7 @@ public class gardeMySQL { int indiceDateFin = lesDates.length - 1; Pompier lePompier; PompierMySQL pm = new PompierMySQL(); - ArrayList lesPompiers = pm.readLesPompiersCaserne(idCaserne); + ArrayList lesPompiers = pm.readLesPomprangeiersCaserne(idCaserne); for (Pompier unPompier : lesPompiers) { for (Calendar uneDate : lesDates) { for (int unePeriode : lesPeriodes) { diff --git a/src/java/servlet/GardesServlet.java b/src/java/servlet/GardesServlet.java index 3e8fe20..b491698 100644 --- a/src/java/servlet/GardesServlet.java +++ b/src/java/servlet/GardesServlet.java @@ -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); } /** diff --git a/web/WEB-INF/feuilleGardes.jsp b/web/WEB-INF/feuilleGardes.jsp index ffd469d..871d4e8 100644 --- a/web/WEB-INF/feuilleGardes.jsp +++ b/web/WEB-INF/feuilleGardes.jsp @@ -47,6 +47,14 @@ +
+ + Dispo + Indispo + Au travail + De garde : X + +
diff --git a/web/WEB-INF/jspf/formulairePompier.jspf b/web/WEB-INF/jspf/formulairePompier.jspf index fd9530b..77c8c47 100644 --- a/web/WEB-INF/jspf/formulairePompier.jspf +++ b/web/WEB-INF/jspf/formulairePompier.jspf @@ -127,48 +127,51 @@
+ +
- - + + + - - - + + + - + - - - - - - + + + + + + - - - + + + - + - - + +
${uneDate}
${uneP}${uneP}
${ventil.getSalarie().getId()}${ventil.getSalarie().getNom()} ${ventil.getSalarie().getPrenom()}
Dispo Indispo Au travail - + De garde : X
diff --git a/web/css/mycss.css b/web/css/mycss.css index 7f41c78..30f1ce5 100644 --- a/web/css/mycss.css +++ b/web/css/mycss.css @@ -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; +}