From 2e5367ebd8e449e33a84eef68f5d3ae343abf08d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luc=C3=A0s?= Date: Sat, 20 Apr 2024 22:10:37 +0200 Subject: [PATCH] draft(DevWeb): Profile page --- S2/DevWeb/Projet/pom.xml | 12 +++ .../src/main/webapp/WEB-INF/pages/profile.jsp | 92 ++++++++++++++++++- .../webapp/WEB-INF/tags/forms/profile.tag | 5 + 3 files changed, 105 insertions(+), 4 deletions(-) create mode 100644 S2/DevWeb/Projet/src/main/webapp/WEB-INF/tags/forms/profile.tag diff --git a/S2/DevWeb/Projet/pom.xml b/S2/DevWeb/Projet/pom.xml index 53366c8..5d5e03b 100644 --- a/S2/DevWeb/Projet/pom.xml +++ b/S2/DevWeb/Projet/pom.xml @@ -18,6 +18,18 @@ + + jakarta.servlet.jsp.jstl + jakarta.servlet.jsp.jstl-api + 3.0.0 + + + + jakarta.el + jakarta.el-api + 5.0.1 + + jakarta.platform jakarta.jakartaee-web-api diff --git a/S2/DevWeb/Projet/src/main/webapp/WEB-INF/pages/profile.jsp b/S2/DevWeb/Projet/src/main/webapp/WEB-INF/pages/profile.jsp index f448f96..d8a378c 100644 --- a/S2/DevWeb/Projet/src/main/webapp/WEB-INF/pages/profile.jsp +++ b/S2/DevWeb/Projet/src/main/webapp/WEB-INF/pages/profile.jsp @@ -1,16 +1,100 @@ -<%@ page import="uppa.project.database.pojo.User" %> <%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> + <%@taglib prefix="layout" tagdir="/WEB-INF/tags/layouts" %> <%@taglib prefix="component" tagdir="/WEB-INF/tags/components" %> <%@taglib prefix="form" tagdir="/WEB-INF/tags/forms" %> -<% User user = (User) session.getAttribute("user"); %> -
- <%-- TODO: Profil--%> + +
+ +
+ + +
+
+ + +
+
+ + Changer le mot de passe +
+
+ + +
+
+ + +
+
+ +
+ + +
+
+
+ +
+ +

Statistiques globales

+
+
+
+

Parties

+

${user.nbPlayedGame}

+
+
+
+
+

Victoires

+

${user.nbWin}

+
+
+
+
+

Clics corrects

+

${user.nbRightClicks}

+
+
+
+
+

Clics rapides

+

${user.nbRapidClicks}

+
+
+
+ +<%-- TODO: Tableau des 10 dernières parties--%> + +

10 dernières parties

+ + + + + + + + + + + + + + + + + + +
DateVictoireScore
${game.createdAt}${game.winner}${game.score}Voir
+ + +
diff --git a/S2/DevWeb/Projet/src/main/webapp/WEB-INF/tags/forms/profile.tag b/S2/DevWeb/Projet/src/main/webapp/WEB-INF/tags/forms/profile.tag new file mode 100644 index 0000000..c0dc0c9 --- /dev/null +++ b/S2/DevWeb/Projet/src/main/webapp/WEB-INF/tags/forms/profile.tag @@ -0,0 +1,5 @@ +<%@tag description="form/profile" pageEncoding="UTF-8" %> + +
+ +
\ No newline at end of file