diff options
Diffstat (limited to 'view/articlesContent.php')
-rw-r--r-- | view/articlesContent.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/view/articlesContent.php b/view/articlesContent.php index c07ba75..4762f8e 100644 --- a/view/articlesContent.php +++ b/view/articlesContent.php | |||
@@ -22,9 +22,11 @@ if($_SESSION['admin'] == 1) | |||
22 | ?> | 22 | ?> |
23 | <div> | 23 | <div> |
24 | <p class="boutonArticle boutonNouvelArticle" > | 24 | <p class="boutonArticle boutonNouvelArticle" > |
25 | <a href="index.php?page=<?= $page ?>&action=editor" > | 25 | <button> |
26 | <span>Nouvel article</span> | 26 | <a href="index.php?page=<?= $page ?>&action=editor" > |
27 | </a> | 27 | Nouvel article |
28 | </a> | ||
29 | </button> | ||
28 | </p> | 30 | </p> |
29 | <?php | 31 | <?php |
30 | } | 32 | } |
@@ -81,9 +83,14 @@ for($i = 0; $i < $Articles->fileListCount; $i++) | |||
81 | // bouton | 83 | // bouton |
82 | if($_SESSION['admin'] == 1) | 84 | if($_SESSION['admin'] == 1) |
83 | { | 85 | { |
86 | $lien_partage = 'index.php?page=' . $page . '#' . $Articles->fileList[$i]['fileCode']; | ||
87 | global $host; | ||
84 | ?> | 88 | ?> |
85 | </div> | 89 | </div> |
86 | <p class="boutonArticle" > | 90 | <p class="boutonArticle" > |
91 | <a href="<?= $lien_partage ?>" > | ||
92 | <img src="public/icone_partager.png" onclick="copierDansPressePapier('<?= $host ?>/<?= $lien_partage ?>')" > | ||
93 | </a> | ||
87 | <a href="index.php?page=<?= $page ?>&action=editor&file_code=<?= $Articles->fileList[$i]['fileCode'] ?>#<?= $Articles->fileList[$i]['fileCode'] ?>" > | 94 | <a href="index.php?page=<?= $page ?>&action=editor&file_code=<?= $Articles->fileList[$i]['fileCode'] ?>#<?= $Articles->fileList[$i]['fileCode'] ?>" > |
88 | <img src="public/icone_modifier.png" ></a> | 95 | <img src="public/icone_modifier.png" ></a> |
89 | <a href="index.php?page=<?= $page ?>&action=monter&file_code=<?= $Articles->fileList[$i]['fileCode'] ?>&position=<?= $Articles->fileList[$i]['position'] ?>#<?= $Articles->fileList[$i]['fileCode'] ?>" > | 96 | <a href="index.php?page=<?= $page ?>&action=monter&file_code=<?= $Articles->fileList[$i]['fileCode'] ?>&position=<?= $Articles->fileList[$i]['position'] ?>#<?= $Articles->fileList[$i]['fileCode'] ?>" > |