diff options
author | polo <ordipolo@gmx.fr> | 2022-03-01 04:02:05 +0100 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2022-03-01 04:02:05 +0100 |
commit | 2ac4254829fb27d878044978e4e89f15eeeddd23 (patch) | |
tree | d6ae70410566884d8bf567b0934cdaee5133a5a1 /view/template.php | |
parent | abd968a1c573b1862bd0728f0b7b6a88e307900a (diff) | |
download | melaine-2ac4254829fb27d878044978e4e89f15eeeddd23.zip |
factorisation et pages manquantes
Diffstat (limited to 'view/template.php')
-rw-r--r-- | view/template.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/view/template.php b/view/template.php index 4cf0e52..0b084f6 100644 --- a/view/template.php +++ b/view/template.php | |||
@@ -45,7 +45,7 @@ echo($content); | |||
45 | <?php | 45 | <?php |
46 | 46 | ||
47 | // section courriel sur toutes les pages sauf accueil | 47 | // section courriel sur toutes les pages sauf accueil |
48 | if($page_actuelle != "accueil") | 48 | if($page != "accueil") |
49 | { | 49 | { |
50 | echo "\n"; | 50 | echo "\n"; |
51 | require("view/courriel.php"); | 51 | require("view/courriel.php"); |
@@ -57,7 +57,7 @@ if($_SESSION['admin'] == 0) | |||
57 | { | 57 | { |
58 | ?> | 58 | ?> |
59 | <div id="lienModeAdmin" > | 59 | <div id="lienModeAdmin" > |
60 | <p><a href="index.php?page=connexion&from=<?= $page_actuelle ?>" >Mode Administrateur</a></p> | 60 | <p><a href="index.php?page=connexion&from=<?= $page ?>" >Mode Administrateur</a></p> |
61 | </div> | 61 | </div> |
62 | <?php | 62 | <?php |
63 | } | 63 | } |
@@ -72,14 +72,14 @@ if($_SESSION['admin'] == 1) | |||
72 | <div id="modeAdmin" > | 72 | <div id="modeAdmin" > |
73 | <p>Vous êtes en mode administrateur. | 73 | <p>Vous êtes en mode administrateur. |
74 | <!-- <button id="boutonOptions" >Options</button> --> | 74 | <!-- <button id="boutonOptions" >Options</button> --> |
75 | <button><a href="index.php?page=<?= $page_actuelle ?>&action=deconnexion" >Déconnexion</a></button> | 75 | <button><a href="index.php?page=<?= $page ?>&action=deconnexion" >Déconnexion</a></button> |
76 | </p> | 76 | </p> |
77 | <div id="options" > | 77 | <div id="options" > |
78 | <button class="boutonBackup" ><a href="index.php?from=<?= $page_actuelle ?>&action=modif_mdp" > | 78 | <button class="boutonBackup" ><a href="index.php?from=<?= $page ?>&action=modif_mdp" > |
79 | Changer de mot de passe</a></button> | 79 | Changer de mot de passe</a></button> |
80 | <button class="boutonBackup" ><a href="index.php?from=<?= $page_actuelle ?>&action=sauvegarde" > | 80 | <button class="boutonBackup" ><a href="index.php?from=<?= $page ?>&action=sauvegarde" > |
81 | Sauvegarder les données</a></button> | 81 | Sauvegarder les données</a></button> |
82 | <button class="boutonBackup" ><a href="index.php?from=<?= $page_actuelle ?>&action=restauration" >Les restaurer avec une sauvegarde</a></button> | 82 | <button class="boutonBackup" ><a href="index.php?from=<?= $page ?>&action=restauration" >Les restaurer avec une sauvegarde</a></button> |
83 | <button class="boutonBackup" ><a href="data/melainePHP.zip" > | 83 | <button class="boutonBackup" ><a href="data/melainePHP.zip" > |
84 | Télécharger le code PHP | 84 | Télécharger le code PHP |
85 | </a></button> | 85 | </a></button> |