From 431972ad4796d137d6bf6f9720ddfb0cd1cb0a8b Mon Sep 17 00:00:00 2001 From: Sewaaa Date: Tue, 2 Jan 2024 13:12:31 +0100 Subject: [PATCH] linked to view_patient --- .../java/controller/view_patientServlet.java | 42 +++++++++++++++++ src/main/webapp/CSS/homeTherapist.css | 6 ++- src/main/webapp/JSP/homeTherapist.jsp | 47 ++----------------- src/main/webapp/JSP/testTable.jsp | 10 ---- src/main/webapp/JSP/view_patient.jsp | 9 ++++ 5 files changed, 59 insertions(+), 55 deletions(-) create mode 100644 src/main/java/controller/view_patientServlet.java create mode 100644 src/main/webapp/JSP/view_patient.jsp diff --git a/src/main/java/controller/view_patientServlet.java b/src/main/java/controller/view_patientServlet.java new file mode 100644 index 0000000..867d92e --- /dev/null +++ b/src/main/java/controller/view_patientServlet.java @@ -0,0 +1,42 @@ +package controller; + +import model.entity.User; +import model.entity.UserInfo; +import model.service.personalinfo.PersonalInfo; + +import javax.servlet.ServletException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; +import java.io.IOException; +import java.util.ArrayList; + +public class view_patientServlet { + + + + public view_patientServlet() { + super(); + + } + + protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + + HttpSession session = request.getSession(); + + model.service.user.UserData userService = new model.service.user.UserData(); + model.service.personalinfo.PersonalInfo piService= new PersonalInfo(); + + + response.sendRedirect("JSP/view_patient.jsp"); + + } + + + protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + + doGet(request, response); + } + + +} diff --git a/src/main/webapp/CSS/homeTherapist.css b/src/main/webapp/CSS/homeTherapist.css index aa8e693..26e867c 100644 --- a/src/main/webapp/CSS/homeTherapist.css +++ b/src/main/webapp/CSS/homeTherapist.css @@ -1,3 +1,7 @@ +.hoverable-row:hover { + background-color: #e6f7ff; /* Cambia il colore di sfondo quando il mouse passa sopra */ + cursor: pointer; /* Cambia il cursore quando il mouse passa sopra */ +} #searchInput { padding: 8px; @@ -11,7 +15,7 @@ .table-container { - max-height: 350px; + max-height: 500px; overflow-y: auto; } diff --git a/src/main/webapp/JSP/homeTherapist.jsp b/src/main/webapp/JSP/homeTherapist.jsp index 7b0b565..3f6425d 100644 --- a/src/main/webapp/JSP/homeTherapist.jsp +++ b/src/main/webapp/JSP/homeTherapist.jsp @@ -40,56 +40,15 @@ SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); for(UserInfo u: list_user){ %> - - - <%=u.getFirstname()%> <%=u.getLastname()%> - <%= sdf.format(u.getActivationDate()) %> - -
72%
- - - - - - <%=u.getFirstname()%> <%=u.getLastname()%> - <%= sdf.format(u.getActivationDate()) %> - -
72%
- - - - - <%=u.getFirstname()%> <%=u.getLastname()%> - <%= sdf.format(u.getActivationDate()) %> - -
72%
- - - - - <%=u.getFirstname()%> <%=u.getLastname()%> - <%= sdf.format(u.getActivationDate()) %> - -
72%
- - - - - <%=u.getFirstname()%> <%=u.getLastname()%> - <%= sdf.format(u.getActivationDate()) %> - -
72%
- - - + + - <%=u.getFirstname()%> <%=u.getLastname()%> + <%=u.getFirstname()%> <%=u.getLastname()%> <%= sdf.format(u.getActivationDate()) %>
72%
- <% } } diff --git a/src/main/webapp/JSP/testTable.jsp b/src/main/webapp/JSP/testTable.jsp index 9bec059..2b6bd2e 100644 --- a/src/main/webapp/JSP/testTable.jsp +++ b/src/main/webapp/JSP/testTable.jsp @@ -79,16 +79,6 @@ -