diff options
author | polo <ordipolo@gmx.fr> | 2023-07-27 11:33:52 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2023-07-27 11:33:52 +0200 |
commit | 353a25789d477a0403f0acf35cef158ec8c8e4eb (patch) | |
tree | b3ebc830db9de6baf9ef46f1519633fc968bc5cf /view | |
parent | 3c35bd40e92ef11230d5ad3ea2d9dbe516508eb4 (diff) | |
download | melaine-353a25789d477a0403f0acf35cef158ec8c8e4eb.zip |
float left actualité, validation W3C partie 1
Diffstat (limited to 'view')
-rw-r--r-- | view/accueil.php | 4 | ||||
-rw-r--r-- | view/album.php | 12 | ||||
-rw-r--r-- | view/articlesContent.php | 10 | ||||
-rw-r--r-- | view/backup.php | 30 | ||||
-rw-r--r-- | view/courriel.php | 6 | ||||
-rw-r--r-- | view/discographie.php | 6 | ||||
-rw-r--r-- | view/pageArticlesSimples.php | 20 | ||||
-rw-r--r-- | view/password.php | 45 | ||||
-rw-r--r-- | view/template-formulaires.php | 14 | ||||
-rw-r--r-- | view/template.php | 10 |
10 files changed, 82 insertions, 75 deletions
diff --git a/view/accueil.php b/view/accueil.php index dd4c14a..1e8db56 100644 --- a/view/accueil.php +++ b/view/accueil.php | |||
@@ -4,8 +4,8 @@ | |||
4 | // variable $js | 4 | // variable $js |
5 | ob_start(); | 5 | ob_start(); |
6 | ?> | 6 | ?> |
7 | <script type="text/javascript" src="public/main.js" ></script> | 7 | <script src="public/main.js" ></script> |
8 | <script type="text/javascript" >versMenu();</script> | 8 | <script>versMenu();</script> |
9 | <?php | 9 | <?php |
10 | $js = ob_get_clean(); | 10 | $js = ob_get_clean(); |
11 | 11 | ||
diff --git a/view/album.php b/view/album.php index fe5d8c2..28b1b13 100644 --- a/view/album.php +++ b/view/album.php | |||
@@ -5,15 +5,15 @@ | |||
5 | // utilise discographie.css | 5 | // utilise discographie.css |
6 | ob_start(); | 6 | ob_start(); |
7 | ?> | 7 | ?> |
8 | <link rel="stylesheet" type="text/css" href="public/css/discographie.css" /> | 8 | <link rel="stylesheet" type="text/css" href="public/css/discographie.css"> |
9 | <link rel="stylesheet" type="text/css" href="public/css/donnees_hors_editeur.css" /> | 9 | <link rel="stylesheet" type="text/css" href="public/css/donnees_hors_editeur.css"> |
10 | <?php | 10 | <?php |
11 | $css = ob_get_clean(); | 11 | $css = ob_get_clean(); |
12 | 12 | ||
13 | // variable $js | 13 | // variable $js |
14 | ob_start(); | 14 | ob_start(); |
15 | ?> | 15 | ?> |
16 | <script type="text/javascript" src="public/main.js" ></script> | 16 | <script src="public/main.js" ></script> |
17 | <!-- <script type="text/javascript" src="public/file_upload.js" ></script> --> | 17 | <!-- <script type="text/javascript" src="public/file_upload.js" ></script> --> |
18 | <?php | 18 | <?php |
19 | if(isset($_GET['action']) && $_GET['action'] === 'edition') | 19 | if(isset($_GET['action']) && $_GET['action'] === 'edition') |
@@ -89,7 +89,7 @@ else | |||
89 | ?> | 89 | ?> |
90 | <p> | 90 | <p> |
91 | <a class="infobulle" href="<?= $lien_partage ?>" > | 91 | <a class="infobulle" href="<?= $lien_partage ?>" > |
92 | <img src="public/icone_partager.png" onclick="copierDansPressePapier('<?= $host ?>/<?= $lien_partage ?>')" > | 92 | <img src="public/icone_partager.png" onclick="copierDansPressePapier('<?= $host ?>/<?= $lien_partage ?>')" alt="bouton"> |
93 | <button>Partager</button> | 93 | <button>Partager</button> |
94 | </a> | 94 | </a> |
95 | <?php | 95 | <?php |
@@ -99,11 +99,11 @@ if($_SESSION['admin'] == 1 && (!isset($_GET['action']) || $_GET['action'] !== 'e | |||
99 | { | 99 | { |
100 | ?> | 100 | ?> |
101 | <a class="infobulle" href="index.php?page=album&action=edition&file_code=<?= $fileCode ?>" > | 101 | <a class="infobulle" href="index.php?page=album&action=edition&file_code=<?= $fileCode ?>" > |
102 | <img src="public/icone_modifier.png" > | 102 | <img src="public/icone_modifier.png" alt="bouton"> |
103 | <button>Modifier</button> | 103 | <button>Modifier</button> |
104 | </a> | 104 | </a> |
105 | <a class="infobulle" href="index.php?page=discographie&action=suppression&file_code=<?= $fileCode ?>" onclick="confirmerSuppression()" > | 105 | <a class="infobulle" href="index.php?page=discographie&action=suppression&file_code=<?= $fileCode ?>" onclick="confirmerSuppression()" > |
106 | <img src="public/icone_supprimer.png" > | 106 | <img src="public/icone_supprimer.png" alt="bouton"> |
107 | <button>Supprimer</button> | 107 | <button>Supprimer</button> |
108 | </a> | 108 | </a> |
109 | <?php | 109 | <?php |
diff --git a/view/articlesContent.php b/view/articlesContent.php index 33e50a4..7abc289 100644 --- a/view/articlesContent.php +++ b/view/articlesContent.php | |||
@@ -87,7 +87,7 @@ for($i = 0; $i < $Articles->fileListCount; $i++) | |||
87 | </div> | 87 | </div> |
88 | <p class="boutonArticle" > | 88 | <p class="boutonArticle" > |
89 | <a class="infobulle" href="<?= $lien_partage ?>" > | 89 | <a class="infobulle" href="<?= $lien_partage ?>" > |
90 | <img src="public/icone_partager.png" onclick="copierDansPressePapier('<?= $host ?>/<?= $lien_partage ?>')" > | 90 | <img src="public/icone_partager.png" onclick="copierDansPressePapier('<?= $host ?>/<?= $lien_partage ?>')" alt="bouton"> |
91 | <button>Partager</button> | 91 | <button>Partager</button> |
92 | </a> | 92 | </a> |
93 | <?php | 93 | <?php |
@@ -96,19 +96,19 @@ for($i = 0; $i < $Articles->fileListCount; $i++) | |||
96 | { | 96 | { |
97 | ?> | 97 | ?> |
98 | <a class="infobulle" href="index.php?page=<?= $page ?>&action=editor&file_code=<?= $Articles->fileList[$i]['fileCode'] ?>#<?= $Articles->fileList[$i]['fileCode'] ?>" > | 98 | <a class="infobulle" href="index.php?page=<?= $page ?>&action=editor&file_code=<?= $Articles->fileList[$i]['fileCode'] ?>#<?= $Articles->fileList[$i]['fileCode'] ?>" > |
99 | <img src="public/icone_modifier.png" > | 99 | <img src="public/icone_modifier.png" alt="bouton"> |
100 | <button>Modifier</button> | 100 | <button>Modifier</button> |
101 | </a> | 101 | </a> |
102 | <a class="infobulle" href="index.php?page=<?= $page ?>&action=monter&file_code=<?= $Articles->fileList[$i]['fileCode'] ?>&position=<?= $Articles->fileList[$i]['position'] ?>#<?= $Articles->fileList[$i]['fileCode'] ?>" > | 102 | <a class="infobulle" href="index.php?page=<?= $page ?>&action=monter&file_code=<?= $Articles->fileList[$i]['fileCode'] ?>&position=<?= $Articles->fileList[$i]['position'] ?>#<?= $Articles->fileList[$i]['fileCode'] ?>" > |
103 | <img src="public/icone_monter.png" > | 103 | <img src="public/icone_monter.png" alt="bouton"> |
104 | <button>Monter</button> | 104 | <button>Monter</button> |
105 | </a> | 105 | </a> |
106 | <a class="infobulle" href="index.php?page=<?= $page ?>&action=descendre&file_code=<?= $Articles->fileList[$i]['fileCode'] ?>&position=<?= $Articles->fileList[$i]['position'] ?>#<?= $Articles->fileList[$i]['fileCode'] ?>" > | 106 | <a class="infobulle" href="index.php?page=<?= $page ?>&action=descendre&file_code=<?= $Articles->fileList[$i]['fileCode'] ?>&position=<?= $Articles->fileList[$i]['position'] ?>#<?= $Articles->fileList[$i]['fileCode'] ?>" > |
107 | <img src="public/icone_descendre.png" > | 107 | <img src="public/icone_descendre.png" alt="bouton"> |
108 | <button>Descendre</button> | 108 | <button>Descendre</button> |
109 | </a> | 109 | </a> |
110 | <a class="infobulle" href="index.php?page=<?= $page ?>&action=suppression&file_code=<?= $Articles->fileList[$i]['fileCode'] ?>" onclick="confirmerSuppression()" > | 110 | <a class="infobulle" href="index.php?page=<?= $page ?>&action=suppression&file_code=<?= $Articles->fileList[$i]['fileCode'] ?>" onclick="confirmerSuppression()" > |
111 | <img src="public/icone_supprimer.png" > | 111 | <img src="public/icone_supprimer.png" alt="bouton"> |
112 | <button>Supprimer</button> | 112 | <button>Supprimer</button> |
113 | </a> | 113 | </a> |
114 | </p> | 114 | </p> |
diff --git a/view/backup.php b/view/backup.php index ec2e947..8461543 100644 --- a/view/backup.php +++ b/view/backup.php | |||
@@ -11,9 +11,9 @@ if(isset($erreur) && $erreur == 'data') | |||
11 | <p>La configuration n'est pas terminée, veuillez créer un dossier "data" à la racine du site et lui donner les droits 777 (lecture + écriture + entrer dedans).</p> | 11 | <p>La configuration n'est pas terminée, veuillez créer un dossier "data" à la racine du site et lui donner les droits 777 (lecture + écriture + entrer dedans).</p> |
12 | <p>Ceci peut être réalisé depuis le logiciel FTP que vous avez utilisé pour télécharger le site sur le serveur de votre hébergeur.</p> | 12 | <p>Ceci peut être réalisé depuis le logiciel FTP que vous avez utilisé pour télécharger le site sur le serveur de votre hébergeur.</p> |
13 | <p>Vous devriez également pouvoir utiliser SSH (linux, mac, windows 10/11) ou "putty" (anciens windows) en tapant ces commandes (utilisateur avancé):</p> | 13 | <p>Vous devriez également pouvoir utiliser SSH (linux, mac, windows 10/11) ou "putty" (anciens windows) en tapant ces commandes (utilisateur avancé):</p> |
14 | <p><i>ssh "nom_utilisateur"@"nom_de_domaine"</i><br/> | 14 | <p><i>ssh "nom_utilisateur"@"nom_de_domaine"</i><br> |
15 | <i>cd /chemin/racine/du/site</i> (le dossier "melaine")<br/> | 15 | <i>cd /chemin/racine/du/site</i> (le dossier "melaine")<br> |
16 | <i>mkdir data</i><br/> | 16 | <i>mkdir data</i><br> |
17 | <i>chmod 777 data</i></p> | 17 | <i>chmod 777 data</i></p> |
18 | <p><a href="index.php" >Recharger la page</a></p> | 18 | <p><a href="index.php" >Recharger la page</a></p> |
19 | <?php | 19 | <?php |
@@ -40,7 +40,7 @@ if(isset($_GET['action']) && $_GET['action'] == 'sauvegarde') | |||
40 | ?> | 40 | ?> |
41 | <p>Erreur: la classe ZipArchive est introuvable, la sauvegarde est impossible. L\'extension ZIP de PHP est-elle activée dans le fichier php.ini?</p> | 41 | <p>Erreur: la classe ZipArchive est introuvable, la sauvegarde est impossible. L\'extension ZIP de PHP est-elle activée dans le fichier php.ini?</p> |
42 | <p>Veuillez prévenir l\'administrateur.</p> | 42 | <p>Veuillez prévenir l\'administrateur.</p> |
43 | <p>Vous pouvez aussi récupérer manuellement les fichiers en vous connectant au serveur avec un client FTP, il suffit de récupérer tout le dossier "data".</p><br/> | 43 | <p>Vous pouvez aussi récupérer manuellement les fichiers en vous connectant au serveur avec un client FTP, il suffit de récupérer tout le dossier "data".</p><br> |
44 | <p><a href="index.php" >Retour au site</a></p> | 44 | <p><a href="index.php" >Retour au site</a></p> |
45 | <?php | 45 | <?php |
46 | $erreur = ob_get_clean(); | 46 | $erreur = ob_get_clean(); |
@@ -54,11 +54,11 @@ elseif(isset($_GET['action']) && $_GET['action'] == 'restauration') | |||
54 | ob_start(); | 54 | ob_start(); |
55 | ?> | 55 | ?> |
56 | <h2>Restauration des données à partir d'une sauvegarde.</h2> | 56 | <h2>Restauration des données à partir d'une sauvegarde.</h2> |
57 | <p>Vous devez avoir précédemment créé et téléchargé un fichier dont le nom commence par <i>melaineDATA</i><br/> | 57 | <p>Vous devez avoir précédemment créé et téléchargé un fichier dont le nom commence par <i>melaineDATA</i><br> |
58 | sur la page <i>Sauvegarder les données.</i></p><br/> | 58 | sur la page <i>Sauvegarder les données.</i></p><br> |
59 | 59 | ||
60 | <form method="post" enctype="multipart/form-data" action="index.php?from=<?= $from ?>&action=restauration" > | 60 | <form method="post" enctype="multipart/form-data" action="index.php?from=<?= $from ?>&action=restauration" > |
61 | <input id="archiveUpload" type="file" name="archive" accept=".zip" class="boutonBackup" onchange="sendFileSize();" ><br/> | 61 | <input id="archiveUpload" type="file" name="archive" accept=".zip" class="boutonBackup" onchange="sendFileSize();" ><br> |
62 | 62 | ||
63 | <!-- demande de confirmation en JS au submit --> | 63 | <!-- demande de confirmation en JS au submit --> |
64 | 64 | ||
@@ -71,24 +71,24 @@ elseif(isset($_GET['action']) && $_GET['action'] == 'restauration') | |||
71 | } | 71 | } |
72 | ?> | 72 | ?> |
73 | <!DOCTYPE html> | 73 | <!DOCTYPE html> |
74 | <html lang="fr" > | 74 | <html lang="fr"> |
75 | <head> | 75 | <head> |
76 | <meta charset="utf-8" /> | 76 | <meta charset="utf-8"> |
77 | <title><?= $title ?></title> | 77 | <title><?= $title ?></title> |
78 | <!-- <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> --> | 78 | <!-- <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> --> |
79 | <link rel="icon" type="image/png" href="public/mouette-logo.png" > | 79 | <link rel="icon" type="image/png" href="public/mouette-logo.png"> |
80 | <link rel="stylesheet" type="text/css" href="public/css/normalize.css" /> | 80 | <link rel="stylesheet" type="text/css" href="public/css/normalize.css"> |
81 | <link rel="stylesheet" type="text/css" href="public/css/main.css" /> | 81 | <link rel="stylesheet" type="text/css" href="public/css/main.css"> |
82 | <?php | 82 | <?php |
83 | if(isset($_GET['action']) && $_GET['action'] == 'restauration') | 83 | if(isset($_GET['action']) && $_GET['action'] == 'restauration') |
84 | { | 84 | { |
85 | echo('<script type="text/javascript" src="public/file_upload.js" ></script>'); | 85 | echo('<script src="public/file_upload.js" ></script>'); |
86 | } | 86 | } |
87 | ?> | 87 | ?> |
88 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | 88 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
89 | </head> | 89 | </head> |
90 | <body> | 90 | <body> |
91 | <div id="bloc_page" style="padding: 10px;" > | 91 | <div id="bloc_page" style="padding: 10px;"> |
92 | <?= $content ?> | 92 | <?= $content ?> |
93 | </div> | 93 | </div> |
94 | </body> | 94 | </body> |
diff --git a/view/courriel.php b/view/courriel.php index 8934461..158fcb4 100644 --- a/view/courriel.php +++ b/view/courriel.php | |||
@@ -1,11 +1,11 @@ | |||
1 | <div id="courriel" > | 1 | <div id="courriel" > |
2 | <button ><a href="#bloc_page" >Haut de la page</a></button> | 2 | <button ><a href="#bloc_page" >Haut de la page</a></button> |
3 | <div> | 3 | <div> |
4 | <img src="public/timbre.png" alt="" ><br />Envoyez-moi un courriel à: <img src="public/courriel.png" > | 4 | <img src="public/timbre.png" alt="timbre"><br>Envoyez-moi un courriel à: <img alt="courriel" src="public/courriel.png"> |
5 | </div> | 5 | </div> |
6 | 6 | ||
7 | <div id="courrielJS" > | 7 | <div id="courrielJS" > |
8 | <button onclick="clientCourriel();" >Avec mon logiciel<br />de messagerie</button> | 8 | <button onclick="clientCourriel();" >Avec mon logiciel<br>de messagerie</button> |
9 | <button onclick="copierCourriel();" >Copier l'adresse dans<br />le presse-papier</button> | 9 | <button onclick="copierCourriel();" >Copier l'adresse dans<br>le presse-papier</button> |
10 | </div> | 10 | </div> |
11 | </div> \ No newline at end of file | 11 | </div> \ No newline at end of file |
diff --git a/view/discographie.php b/view/discographie.php index 8d82679..6e560af 100644 --- a/view/discographie.php +++ b/view/discographie.php | |||
@@ -4,8 +4,8 @@ | |||
4 | // variable $css | 4 | // variable $css |
5 | ob_start(); | 5 | ob_start(); |
6 | ?> | 6 | ?> |
7 | <link rel="stylesheet" type="text/css" href="public/css/<?= $page ?>.css" /> | 7 | <link rel="stylesheet" type="text/css" href="public/css/<?= $page ?>.css"> |
8 | <link rel="stylesheet" type="text/css" href="public/css/donnees_hors_editeur.css" /> | 8 | <link rel="stylesheet" type="text/css" href="public/css/donnees_hors_editeur.css"> |
9 | <?php | 9 | <?php |
10 | $css = ob_get_clean(); | 10 | $css = ob_get_clean(); |
11 | 11 | ||
@@ -13,7 +13,7 @@ $css = ob_get_clean(); | |||
13 | // variable $js | 13 | // variable $js |
14 | ob_start(); | 14 | ob_start(); |
15 | ?> | 15 | ?> |
16 | <script type="text/javascript" src="public/main.js" ></script> | 16 | <script src="public/main.js"></script> |
17 | <!-- <script type="text/javascript" src="public/file_upload.js" ></script> --> | 17 | <!-- <script type="text/javascript" src="public/file_upload.js" ></script> --> |
18 | <?php | 18 | <?php |
19 | if(isset($_GET['action']) && $_GET['action'] === 'edition') | 19 | if(isset($_GET['action']) && $_GET['action'] === 'edition') |
diff --git a/view/pageArticlesSimples.php b/view/pageArticlesSimples.php index 95f8c46..8758373 100644 --- a/view/pageArticlesSimples.php +++ b/view/pageArticlesSimples.php | |||
@@ -6,24 +6,24 @@ ob_start(); | |||
6 | if($page == 'menu') | 6 | if($page == 'menu') |
7 | { | 7 | { |
8 | ?> | 8 | ?> |
9 | <link rel="stylesheet" type="text/css" href="public/css/menu.css" /> | 9 | <link rel="stylesheet" type="text/css" href="public/css/menu.css"> |
10 | <?php | 10 | <?php |
11 | } | 11 | } |
12 | else | 12 | else |
13 | { | 13 | { |
14 | ?> | 14 | ?> |
15 | <link rel="stylesheet" type="text/css" href="public/css/pages_articles_simples.css" /> | 15 | <link rel="stylesheet" type="text/css" href="public/css/pages_articles_simples.css"> |
16 | <?php | 16 | <?php |
17 | } | 17 | } |
18 | ?> | 18 | ?> |
19 | <link rel="stylesheet" type="text/css" href="public/css/donnees_hors_editeur.css" /> | 19 | <link rel="stylesheet" type="text/css" href="public/css/donnees_hors_editeur.css"> |
20 | <?php | 20 | <?php |
21 | $css = ob_get_clean(); | 21 | $css = ob_get_clean(); |
22 | 22 | ||
23 | //variable $js | 23 | //variable $js |
24 | ob_start(); | 24 | ob_start(); |
25 | ?> | 25 | ?> |
26 | <script type="text/javascript" src="public/main.js" ></script> | 26 | <script src="public/main.js"></script> |
27 | <?php | 27 | <?php |
28 | if(isset($_GET['action']) && $_GET['action'] == 'editor') | 28 | if(isset($_GET['action']) && $_GET['action'] == 'editor') |
29 | { | 29 | { |
@@ -40,10 +40,10 @@ $js = ob_get_clean(); | |||
40 | if($page == 'archives') | 40 | if($page == 'archives') |
41 | { | 41 | { |
42 | $explications = '<p style="padding: 3px 3px 0 3px; background-color: white;"> | 42 | $explications = '<p style="padding: 3px 3px 0 3px; background-color: white;"> |
43 | <img style="float: right;" src="public/header_images/logo_real.png" /> | 43 | <img style="float: right;" src="public/header_images/logo_real.png"> |
44 | Certains liens vidéos nécessitent le lecteur <a href="https://www.real.com" target="_blank" >Real Player</a> (windows, android et iOS) pour être lus.</p> | 44 | Certains liens vidéos nécessitent le lecteur <a href="https://www.real.com" target="_blank" >Real Player</a> (windows, android et iOS) pour être lus.</p> |
45 | <p> | 45 | <p> |
46 | <img style="float: left;" src="public/header_images/logo_vlc.png" /> | 46 | <img style="float: left;" src="public/header_images/logo_vlc.png"> |
47 | Vous pouvez aussi utiliser le<br/><a href="https://www.videolan.org/vlc/" target="_blank" >lecteur VLC.</a></p>'; | 47 | Vous pouvez aussi utiliser le<br/><a href="https://www.videolan.org/vlc/" target="_blank" >lecteur VLC.</a></p>'; |
48 | $headerImage = '<div class="photo" style="display: flex; height: fit-content;" > | 48 | $headerImage = '<div class="photo" style="display: flex; height: fit-content;" > |
49 | <div class="explications" >' . $explications . '</div> | 49 | <div class="explications" >' . $explications . '</div> |
@@ -66,9 +66,11 @@ echo "\n"; | |||
66 | if($page == 'menu' && !empty($ArticlesContent)) | 66 | if($page == 'menu' && !empty($ArticlesContent)) |
67 | { | 67 | { |
68 | ?> | 68 | ?> |
69 | <h3>Actualité</h3> | 69 | <div> |
70 | <div class="sectionActu" > | 70 | <h3 class="sectionActu">Actualité</h3> |
71 | <?= $ArticlesContent ?> | 71 | <div> |
72 | <?= $ArticlesContent ?> | ||
73 | </div> | ||
72 | </div> | 74 | </div> |
73 | <?php | 75 | <?php |
74 | } | 76 | } |
diff --git a/view/password.php b/view/password.php index 93cae95..6302950 100644 --- a/view/password.php +++ b/view/password.php | |||
@@ -10,9 +10,9 @@ | |||
10 | // insertion du captcha | 10 | // insertion du captcha |
11 | ob_start(); | 11 | ob_start(); |
12 | ?> | 12 | ?> |
13 | <p>Montrez que vous n'êtes pas un robot.<br/> | 13 | <p>Montrez que vous n'êtes pas un robot.<br> |
14 | <label for="captcha" >Combien font <?= $captcha[0] ?> fois <?= $captcha[1] ?>?</label> | 14 | <label for="captcha" >Combien font <?= $captcha[0] ?> fois <?= $captcha[1] ?>?</label> |
15 | <input required type="text" id="captcha" name="captcha" autocomplete="off" size="1" /> | 15 | <input required type="text" id="captcha" name="captcha" autocomplete="off" size="1"> |
16 | </p> | 16 | </p> |
17 | <?php | 17 | <?php |
18 | $captchaHtml = ob_get_clean(); | 18 | $captchaHtml = ob_get_clean(); |
@@ -23,11 +23,11 @@ ob_start(); | |||
23 | ?> | 23 | ?> |
24 | <form class="connexionFormulaire" method="post" action="index.php?page=connexion&from=<?= $_GET['from'] ?>" > | 24 | <form class="connexionFormulaire" method="post" action="index.php?page=connexion&from=<?= $_GET['from'] ?>" > |
25 | <label for="motdepasse" >Mot de passe:</label> | 25 | <label for="motdepasse" >Mot de passe:</label> |
26 | <input type="password" name="motdepasse" autofocus required > | 26 | <input id="motdepasse" type="password" name="motdepasse" autofocus required > |
27 | 27 | ||
28 | <?= $captchaHtml ?> | 28 | <?= $captchaHtml ?> |
29 | 29 | ||
30 | <input type="submit" value="Valider" > | 30 | <input type="submit" value="Valider"> |
31 | </form> | 31 | </form> |
32 | <?php | 32 | <?php |
33 | $formulaireConnexion = ob_get_clean(); | 33 | $formulaireConnexion = ob_get_clean(); |
@@ -37,11 +37,11 @@ ob_start(); | |||
37 | ?> | 37 | ?> |
38 | <form class="connexionFormulaire" method="post" action="index.php" > | 38 | <form class="connexionFormulaire" method="post" action="index.php" > |
39 | <label for="motdepasse" >Mot de passe:</label> | 39 | <label for="motdepasse" >Mot de passe:</label> |
40 | <input type="password" name="motdepasse" autofocus required > | 40 | <input id="motdepasse" type="password" name="motdepasse" autofocus required> |
41 | 41 | ||
42 | <?= $captchaHtml ?> | 42 | <?= $captchaHtml ?> |
43 | 43 | ||
44 | <input type="submit" value="Valider" > | 44 | <input type="submit" value="Valider"> |
45 | </form> | 45 | </form> |
46 | <?php | 46 | <?php |
47 | $formulaireNouveauMDP = ob_get_clean(); | 47 | $formulaireNouveauMDP = ob_get_clean(); |
@@ -51,14 +51,14 @@ $formulaireNouveauMDP = ob_get_clean(); | |||
51 | ob_start(); | 51 | ob_start(); |
52 | ?> | 52 | ?> |
53 | <form class="connexionFormulaire" method="post" action="index.php?from=<?= $_GET['from'] ?>&action=modif_mdp" > | 53 | <form class="connexionFormulaire" method="post" action="index.php?from=<?= $_GET['from'] ?>&action=modif_mdp" > |
54 | <label for="motdepasse" >Ancien mot de passe:</label> | 54 | <label for="ancien_motdepasse" >Ancien mot de passe:</label> |
55 | <input type="password" name="ancienMotdepasse" autofocus required ><br /><br /> | 55 | <input id="ancien_motdepasse" type="password" name="ancienMotdepasse" autofocus required ><br><br> |
56 | <label for="motdepasse" >Nouveau mot de passe:</label> | 56 | <label for="motdepasse" >Nouveau mot de passe:</label> |
57 | <input type="password" name="nouveauMotdepasse" required autocomplete="off" > | 57 | <input id="motdepasse" type="password" name="nouveauMotdepasse" required autocomplete="off"> |
58 | <br /><br /> | 58 | <br><br> |
59 | <input type="submit" value="Valider" > | 59 | <input type="submit" value="Valider" > |
60 | <a href="index.php?page=<?= $_GET['from'] ?>" > | 60 | <a href="index.php?page=<?= $_GET['from'] ?>" > |
61 | <input type="button" value="Annuler" /> | 61 | <input type="button" value="Annuler"> |
62 | </a> | 62 | </a> |
63 | </form> | 63 | </form> |
64 | <?php | 64 | <?php |
@@ -70,17 +70,17 @@ ob_start(); | |||
70 | ?> | 70 | ?> |
71 | <!DOCTYPE html> | 71 | <!DOCTYPE html> |
72 | 72 | ||
73 | <html lang="fr" > | 73 | <html lang="fr"> |
74 | <head> | 74 | <head> |
75 | <meta charset="utf-8" /> | 75 | <meta charset="utf-8"> |
76 | <title><?= $title ?></title> | 76 | <title><?= $title ?></title> |
77 | 77 | ||
78 | <!-- <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> --> | 78 | <!-- <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> --> |
79 | <link rel="icon" type="image/png" href="public/mouette-logo.png" > | 79 | <link rel="icon" type="image/png" href="public/mouette-logo.png"> |
80 | <link rel="stylesheet" type="text/css" href="public/css/normalize.css"> | 80 | <link rel="stylesheet" type="text/css" href="public/css/normalize.css"> |
81 | <link rel="stylesheet" type="text/css" href="public/css/main.css" /> | 81 | <link rel="stylesheet" type="text/css" href="public/css/main.css"> |
82 | <script type="text/javascript" src="public/main.js" ></script> | 82 | <script src="public/main.js" ></script> |
83 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | 83 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
84 | </head> | 84 | </head> |
85 | 85 | ||
86 | <body> | 86 | <body> |
@@ -105,10 +105,10 @@ $warning = '<p class="avertissement" >Rappel de sécurité<br />Vous n\'utilisez | |||
105 | // confirmation modification du mot de passe | 105 | // confirmation modification du mot de passe |
106 | ob_start(); | 106 | ob_start(); |
107 | ?> | 107 | ?> |
108 | <script type="text/javascript" >nouveauMotdepasse('<?= $_GET["from"] ?>');</script> | 108 | <script>nouveauMotdepasse('<?= $_GET["from"] ?>');</script> |
109 | <noscript> | 109 | <noscript> |
110 | <p class="avertissement" >Le mot de passe a été modifié<br /> | 110 | <p class="avertissement" >Le mot de passe a été modifié<br> |
111 | <a href="index.php" >Retour au site.</a><br/></p> | 111 | <a href="index.php" >Retour au site.</a><br></p> |
112 | </noscript> | 112 | </noscript> |
113 | <?php | 113 | <?php |
114 | $message = ob_get_clean(); | 114 | $message = ob_get_clean(); |
@@ -116,12 +116,17 @@ $message = ob_get_clean(); | |||
116 | 116 | ||
117 | // pied de page | 117 | // pied de page |
118 | ob_start(); | 118 | ob_start(); |
119 | if(isset($_GET['page'])) // exclue la "création du mot de passe" | ||
120 | { | ||
119 | ?> | 121 | ?> |
120 | <p class="connexionP connexionFooter" > | 122 | <p class="connexionP connexionFooter" > |
121 | <a href="index.php?from=<?= $_GET['from'] ?>" > | 123 | <a href="index.php?from=<?= $_GET['from'] ?>" > |
122 | <button>Retour au site.</button> | 124 | <button>Retour au site.</button> |
123 | </a> | 125 | </a> |
124 | </p> | 126 | </p> |
127 | <?php | ||
128 | } | ||
129 | ?> | ||
125 | </div> | 130 | </div> |
126 | </body> | 131 | </body> |
127 | </html> | 132 | </html> |
diff --git a/view/template-formulaires.php b/view/template-formulaires.php index fc73a27..b8c6f94 100644 --- a/view/template-formulaires.php +++ b/view/template-formulaires.php | |||
@@ -29,12 +29,12 @@ ob_start(); | |||
29 | <?= $imageFormulaire ?> | 29 | <?= $imageFormulaire ?> |
30 | <p><i>Infos qui seront affichées sur cette page:</i></p> | 30 | <p><i>Infos qui seront affichées sur cette page:</i></p> |
31 | <label for="titre" >Titre</label> | 31 | <label for="titre" >Titre</label> |
32 | <input type="text" name="titre" value="<?= $vignette[0] ?>" required ><br /> | 32 | <input type="text" name="titre" value="<?= $vignette[0] ?>" required><br> |
33 | <label for="annee" >Année</label> | 33 | <label for="annee" >Année</label> |
34 | <input type="text" name="annee" value="<?= $vignette[1] ?>" ><br /> | 34 | <input type="text" name="annee" value="<?= $vignette[1] ?>"><br> |
35 | <label for="pochette" >Pochette du disque (jpg ou png) : <?= $vignette[2] ?></label><br/> | 35 | <label for="pochette" >Pochette du disque (jpg ou png) : <?= $vignette[2] ?></label><br> |
36 | <!-- <input type="file" id="upload" name="upload" > --> | 36 | <!-- <input type="file" id="upload" name="upload" > --> |
37 | <input type="file" name="upload" ><br /><br /><br /> | 37 | <input type="file" name="upload"><br><br><br> |
38 | <?php | 38 | <?php |
39 | $inputsAlbum = ob_get_clean(); | 39 | $inputsAlbum = ob_get_clean(); |
40 | 40 | ||
@@ -53,10 +53,10 @@ if($page === 'discographie' || $page === 'album') | |||
53 | ?> | 53 | ?> |
54 | 54 | ||
55 | <textarea id="editor" name="contenu" ></textarea> | 55 | <textarea id="editor" name="contenu" ></textarea> |
56 | <!-- <input class="boutonSubmitEditeur" type="submit" value="Valider" onclick="filtrerAntislash();"/> --> | 56 | <!-- <input class="boutonSubmitEditeur" type="submit" value="Valider" onclick="filtrerAntislash();"> --> |
57 | <input class="boutonSubmitEditeur" type="submit" value="Valider" /> | 57 | <input class="boutonSubmitEditeur" type="submit" value="Valider"> |
58 | <a class="boutonAnnuler" href="index.php?page=<?= $lienBoutonAnnuler ?>" > | 58 | <a class="boutonAnnuler" href="index.php?page=<?= $lienBoutonAnnuler ?>" > |
59 | <input type="button" value="Annuler" /></a> | 59 | <input type="button" value="Annuler"></a> |
60 | <script> | 60 | <script> |
61 | let editor; // variable utilisable depuis une fonction | 61 | let editor; // variable utilisable depuis une fonction |
62 | 62 | ||
diff --git a/view/template.php b/view/template.php index b86a41c..2a4d182 100644 --- a/view/template.php +++ b/view/template.php | |||
@@ -2,16 +2,16 @@ | |||
2 | 2 | ||
3 | <html lang="fr" > | 3 | <html lang="fr" > |
4 | <head> | 4 | <head> |
5 | <meta charset="utf-8" /> | 5 | <meta charset="utf-8"> |
6 | <title><?= $title ?></title> | 6 | <title><?= $title ?></title> |
7 | 7 | ||
8 | <!-- partie que Melaine doit écrire --> | 8 | <!-- partie que Melaine doit écrire --> |
9 | <meta name="description" content="" /> | 9 | <meta name="description" content=""> |
10 | 10 | ||
11 | <!-- <link rel="shortcut icon" type="image/x-icon" href="public/favicon.ico" /> --> | 11 | <!-- <link rel="shortcut icon" type="image/x-icon" href="public/favicon.ico" /> --> |
12 | <link rel="icon" type="image/png" href="public/mouette-logo.png" > | 12 | <link rel="icon" type="image/png" href="public/mouette-logo.png"> |
13 | <link rel="stylesheet" type="text/css" href="public/css/normalize.css"> | 13 | <link rel="stylesheet" type="text/css" href="public/css/normalize.css"> |
14 | <link rel="stylesheet" type="text/css" href="public/css/main.css" /> | 14 | <link rel="stylesheet" type="text/css" href="public/css/main.css"> |
15 | <?php | 15 | <?php |
16 | if(isset($css)) // fichiers CSS supplémentaires | 16 | if(isset($css)) // fichiers CSS supplémentaires |
17 | { | 17 | { |
@@ -23,7 +23,7 @@ if(isset($js)) // fonctions dans main.js puis appel des fonctions | |||
23 | echo($js); | 23 | echo($js); |
24 | } | 24 | } |
25 | ?> | 25 | ?> |
26 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | 26 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
27 | </head> | 27 | </head> |
28 | 28 | ||
29 | <body> | 29 | <body> |