diff options
| author | polo <ordipolo@gmx.fr> | 2021-08-10 02:11:20 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2021-08-10 02:11:20 +0200 |
| commit | 0d2fd7a0a53c527d3f6f112a149960a52c1082e1 (patch) | |
| tree | b1d459b68da7d1a0a38574c8014a6a25c86bd56e /view/melaine.php | |
| parent | 86c2a611e55c9e35384febecf34964e214c0296e (diff) | |
| download | melaine-0d2fd7a0a53c527d3f6f112a149960a52c1082e1.tar.gz melaine-0d2fd7a0a53c527d3f6f112a149960a52c1082e1.tar.bz2 melaine-0d2fd7a0a53c527d3f6f112a149960a52c1082e1.zip | |
disco
Diffstat (limited to 'view/melaine.php')
| -rw-r--r-- | view/melaine.php | 13 |
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 |
| 5 | ob_start(); | 5 | ob_start(); |
| 6 | ?> | 6 | ?> |
| @@ -18,7 +18,7 @@ ob_start(); | |||
| 18 | if(isset($_GET['action']) && $_GET['action'] == 'editor') | 18 | if(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(); | |||
| 44 | ob_start(); | 44 | ob_start(); |
| 45 | if($_SESSION['admin'] == 1) | 45 | if($_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 | <!-- 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 | } |
