diff options
Diffstat (limited to 'view/album.php')
| -rw-r--r-- | view/album.php | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/view/album.php b/view/album.php index e2989dc..f0fd807 100644 --- a/view/album.php +++ b/view/album.php | |||
| @@ -88,23 +88,20 @@ else | |||
| 88 | // modifier ouvre l'éditeur, supprimer renvoie vers la discographie | 88 | // modifier ouvre l'éditeur, supprimer renvoie vers la discographie |
| 89 | if($_SESSION['admin'] == 1 && (!isset($_GET['action']) || $_GET['action'] !== 'edition')) | 89 | if($_SESSION['admin'] == 1 && (!isset($_GET['action']) || $_GET['action'] !== 'edition')) |
| 90 | { | 90 | { |
| 91 | $lien_partage = 'index.php?page=' . $page . '&file_code=' . $fileCode; | ||
| 92 | global $host; | ||
| 91 | ?> | 93 | ?> |
| 92 | <p> | 94 | <p> |
| 95 | <a href="<?= $lien_partage ?>" > | ||
| 96 | <img src="public/icone_partager.png" onclick="copierDansPressePapier('<?= $host ?>/<?= $lien_partage ?>')" > | ||
| 97 | </a> | ||
| 93 | <a href="index.php?page=album&action=edition&file_code=<?= $fileCode ?>" > | 98 | <a href="index.php?page=album&action=edition&file_code=<?= $fileCode ?>" > |
| 94 | <img src="public/icone_modifier.png" > | 99 | <img src="public/icone_modifier.png" > |
| 95 | </a> | 100 | </a> |
| 96 | <a href="index.php?page=discographie&action=suppression&file_code=<?= $fileCode ?>" onclick="confirmerSuppression()" > | 101 | <a href="index.php?page=discographie&action=suppression&file_code=<?= $fileCode ?>" onclick="confirmerSuppression()" > |
| 97 | <img src="public/icone_supprimer.png" > | 102 | <img src="public/icone_supprimer.png" > |
| 98 | </a> | 103 | </a> |
| 99 | <a class="linkAlbumHTML" href="index.php?page=discographie" >Retour à la discographie</a> | 104 | <button><a href="index.php?page=discographie" >Retour page discographie</a></button> |
| 100 | </p> | ||
| 101 | <?php | ||
| 102 | } | ||
| 103 | else | ||
| 104 | { | ||
| 105 | ?> | ||
| 106 | <p> | ||
| 107 | <a class="linkAlbumHTML" href="index.php?page=discographie" >Retour à la discographie</a> | ||
| 108 | </p> | 105 | </p> |
| 109 | <?php | 106 | <?php |
| 110 | } | 107 | } |
