summaryrefslogtreecommitdiff
path: root/view/melaine.php
diff options
context:
space:
mode:
Diffstat (limited to 'view/melaine.php')
-rw-r--r--view/melaine.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/view/melaine.php b/view/melaine.php
index debd4e3..4b3b818 100644
--- a/view/melaine.php
+++ b/view/melaine.php
@@ -1,6 +1,6 @@
1<?php 1<?php
2// view/melaine.php 2// view/melaine.php
3// 3
4// variable $css 4// variable $css
5ob_start(); 5ob_start();
6?> 6?>
@@ -18,7 +18,7 @@ ob_start();
18if(isset($_GET['action']) && $_GET['action'] == 'editor') 18if(isset($_GET['action']) && $_GET['action'] == 'editor')
19{ 19{
20 20
21 // bibliothèques JS ckeditor et ckfinder 21 // bibliothèques JS ckeditor
22?> 22?>
23 <script src="lib/ckeditor5/build/ckeditor.js"></script> 23 <script src="lib/ckeditor5/build/ckeditor.js"></script>
24<?php 24<?php
@@ -44,7 +44,7 @@ $header = ob_get_clean();
44ob_start(); 44ob_start();
45if($_SESSION['admin'] == 1) 45if($_SESSION['admin'] == 1)
46{ 46{
47 // éditeur 47 // à la place du bouton après rechargement
48 if(isset($_GET['action']) && $_GET['action'] == 'editor' && !isset($_GET['article'])) 48 if(isset($_GET['action']) && $_GET['action'] == 'editor' && !isset($_GET['article']))
49 { 49 {
50 echo("<p>Rédiger un nouvel article</p>"); 50 echo("<p>Rédiger un nouvel article</p>");
@@ -101,6 +101,13 @@ foreach ($articles as $article)
101 <a href="index.php?page=melaine&action=editor&article=<?= $j ?>#article<?= $j ?>" > 101 <a href="index.php?page=melaine&action=editor&article=<?= $j ?>#article<?= $j ?>" >
102 Modifier cet article 102 Modifier cet article
103 </a> 103 </a>
104 &nbsp;<!-- un espace -->
105 <!-- <button>
106 Supprimer cet article
107 </button> -->
108 <a href="index.php?page=melaine&action=suppression&article=<?= $j ?>" onclick="confirmerSuppression('<?= $page_actuelle ?>')" >
109 Supprimer cet article
110 </a>
104 </p> 111 </p>
105 <?php 112 <?php
106 } 113 }