summaryrefslogtreecommitdiff
path: root/view/connexion.php
diff options
context:
space:
mode:
Diffstat (limited to 'view/connexion.php')
-rw-r--r--view/connexion.php62
1 files changed, 62 insertions, 0 deletions
diff --git a/view/connexion.php b/view/connexion.php
new file mode 100644
index 0000000..2187ecf
--- /dev/null
+++ b/view/connexion.php
@@ -0,0 +1,62 @@
1<?php
2// view/connexion.php
3//
4// ce fichier contient le HTML de deux pages du site:
5// - connexion au mode admin
6// - changement de mot de passe
7
8// formulaire connexion
9ob_start();
10?>
11 <form class="connexionFormulaire" method="post" action="index.php?page=connexion&from=<?= $_GET['from'] ?>" >
12 <label for="motdepasse" >Mot de passe:</label>
13 <input type="password" name="motdepasse" autofocus required >
14 <input type="submit" value="Valider" >
15 </form>
16<?php
17$formulaireConnexion = ob_get_clean();
18
19// formulaire changement de mot de passe
20// vérification de l'ancien et choix du nouveau à taper deux fois dont une à l'aveugle
21ob_start();
22?>
23
24<?php
25$formulaireNouveauMDP = ob_get_clean();
26
27// en-tête
28ob_start();
29?>
30<!DOCTYPE html>
31
32<html lang="fr" >
33 <head>
34 <meta charset="utf-8" />
35 <title><?= $title ?></title>
36
37 <!-- <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> -->
38 <link rel="icon" type="image/png" href="public/mouette-logo.png" >
39 <link rel="stylesheet" type="text/css" href="public/normalize.css">
40 <link rel="stylesheet" type="text/css" href="public/accueil.css" />
41 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
42 </head>
43
44 <body>
45 <div id="bloc_page" >
46 <h2 class="connexionTitre" ><?= $title ?></h2>
47 <p class="connexionTitre" ><?= $subHeading ?></p>
48<?php
49$header = ob_get_clean();
50
51// pied de page
52ob_start();
53?>
54 <p class="connexionFooter" >
55 <i>N'oubliez de cliquer sur "déconnexion" quand vous aurez fini.</i><br />
56 <a href="index.php?page=<?= $_GET['from'] ?>" >Retour à la page précédente</a>
57 </p>
58 </div>
59 </body>
60</html>
61<?php
62$footer = ob_get_clean(); \ No newline at end of file