From cd5289e37013a64bd4ff51ab7e7707b781bba987 Mon Sep 17 00:00:00 2001 From: "victor.soulier" Date: Sun, 19 Nov 2023 18:36:01 +0100 Subject: [PATCH] ADD : template penduscore --- project/src/config/config.php | 3 +- project/src/templates/jouer.html | 19 -------- project/src/templates/pendu.html | 67 +++++++++++++++++++++++++++ project/src/templates/penduScore.html | 49 ++++++++++++++++++++ 4 files changed, 118 insertions(+), 20 deletions(-) delete mode 100644 project/src/templates/jouer.html create mode 100644 project/src/templates/pendu.html create mode 100644 project/src/templates/penduScore.html diff --git a/project/src/config/config.php b/project/src/config/config.php index effc792..7923968 100644 --- a/project/src/config/config.php +++ b/project/src/config/config.php @@ -8,6 +8,7 @@ $config = [ "mdp" =>''], "templates" => ["index" => 'vues/index.php', "pseudo" => 'pseudo.html', - "jouer" => "jouer.html"] + "pendu" => "pendu.html", + "penduScore" => 'penduScore.html'] ]; ?> \ No newline at end of file diff --git a/project/src/templates/jouer.html b/project/src/templates/jouer.html deleted file mode 100644 index 26adedb..0000000 --- a/project/src/templates/jouer.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - - Saisir Pseudo - - - -
- {% if dVue is defined %} -

Jeu : {{ dVue.nomJeu }}

-

Pseudo : {{ dVue.pseudo }}

-

Difficulte : {{ dVue.libelleDifficulte }}

- {% endif %} -
- - - - \ No newline at end of file diff --git a/project/src/templates/pendu.html b/project/src/templates/pendu.html new file mode 100644 index 0000000..0860aea --- /dev/null +++ b/project/src/templates/pendu.html @@ -0,0 +1,67 @@ + + + + + Pendu + + + + + +


+ +
+

+
+
+ {% if dVue.decouvert is defined %} +
+

+ {{dVue.decouvert}} +

+
+
+ {% endif %} + {% if dVue.essaisRestant is defined %} +

Il vous reste {{dVue.essaisRestant}} essais

+ {% endif %} + {% if dVue.lettresUtilisees is defined %} +
Lettres utilisées
+
+ {%for lettre in dVue.lettresUtilisees %} + {{lettre}}  + {% endfor %} +
+ {% endif %} + Votre lettre + {% if dVueErreur|length > 0 %} +
+
Erreur :
+ {% for erreur in dVueErreur %} +

{{erreur}}

+ {% endfor %} +
+ {% endif %} +
+ +
+
+ + +
+
+ + + + \ No newline at end of file diff --git a/project/src/templates/penduScore.html b/project/src/templates/penduScore.html new file mode 100644 index 0000000..f771300 --- /dev/null +++ b/project/src/templates/penduScore.html @@ -0,0 +1,49 @@ + + + + + Pendu - Score + + + + + +


+ +
+ {% if dVue.messageScore is defined %} +

{{dVue.messageScore}}

+ {% endif %} + + {% if dVue.nbTours is defined and dVue.nbFails is defined %} +

Vous avez fais {{dVue.nbTours}} essais et {{dVue.nbFails}} erreur(s)

+ {% endif %} + + {% if dVue.scientifique is defined %} +

Le scientifique a trouvé été {{dVue.scientifique.prenom}} {{dVue.scientifique.nom}}

+
+

Voici quelques informations à son sujet

+

Né(e) le : {{dVue.scientifique.dateNaiss}}

+

Sexe : {{dVue.scientifique.sexe}}

+

Domaine : {{dVue.scientifique.thematique}}

+

{{dVue.scientifique.descriptif}}

+
+ {% endif %} + + Retour à l'accueil +
+ + + + \ No newline at end of file