From a1b797a1c5b4385b9278b6ba8de2f53672413e30 Mon Sep 17 00:00:00 2001 From: brigitte Date: Mon, 10 Jun 2024 18:14:32 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20dans=20les=20playlist=20seulement=20si?= =?UTF-8?q?=20connect=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci/application/views/albums_artist_list.php | 21 +++++++++++-------- ci/application/views/albums_list.php | 22 ++++++++++++-------- ci/application/views/artistes_list.php | 19 ++++++++++------- ci/application/views/song_album_list.php | 23 ++++++++++++--------- 4 files changed, 49 insertions(+), 36 deletions(-) diff --git a/ci/application/views/albums_artist_list.php b/ci/application/views/albums_artist_list.php index 25754ec..d987737 100644 --- a/ci/application/views/albums_artist_list.php +++ b/ci/application/views/albums_artist_list.php @@ -4,21 +4,24 @@ foreach ($AlbumsOfArtists as $AlbumsOfArtist) { echo "
"; echo "
"; + echo anchor("albums/view/{$AlbumsOfArtist->id}", "{$AlbumsOfArtist->name}"); echo "
"; echo "
"; echo '' . $AlbumsOfArtist->name . ''; echo "
$AlbumsOfArtist->year
"; // Ajout du formulaire pour ajouter toutes les chansons de l'album à une playlist - echo "
"; - echo ""; - echo ""; - echo ""; - echo "
"; + if ($this->session->userdata('logged')): + echo "
"; + echo ""; + echo ""; + echo ""; + echo "
"; + endif; echo "
"; } diff --git a/ci/application/views/albums_list.php b/ci/application/views/albums_list.php index ff62cad..2a2aab0 100644 --- a/ci/application/views/albums_list.php +++ b/ci/application/views/albums_list.php @@ -4,18 +4,22 @@ foreach($albums as $album){ echo "
"; echo "
"; + echo anchor("albums/view/{$album->id}", "{$album->name}"); echo "
"; echo '' . $album->name . ''; echo "
{$album->year} - {$album->artistName}
"; - echo "
"; - echo ""; - echo ""; - echo ""; - echo "
"; + + if ($this->session->userdata('logged')): + echo "
"; + echo ""; + echo ""; + echo ""; + echo "
"; + endif; echo "
"; } ?> diff --git a/ci/application/views/artistes_list.php b/ci/application/views/artistes_list.php index fbbb2f8..86abc47 100644 --- a/ci/application/views/artistes_list.php +++ b/ci/application/views/artistes_list.php @@ -3,14 +3,17 @@ foreach($artistes as $artiste){ echo "
"; echo anchor("artistes/view/{$artiste->id}", "{$artiste->name}"); - echo ""; - echo ""; // Utilisez l'identifiant de l'artiste ici - echo ""; - echo "
"; + + if ($this->session->userdata('logged')): + echo ""; + echo ""; // Utilisez l'identifiant de l'artiste ici + echo ""; + echo ""; + endif; echo "
"; } ?> diff --git a/ci/application/views/song_album_list.php b/ci/application/views/song_album_list.php index 170f6b7..00b74c9 100644 --- a/ci/application/views/song_album_list.php +++ b/ci/application/views/song_album_list.php @@ -2,17 +2,20 @@
"; - echo "
"; - echo "
"; + echo "
"; echo "{$song->name} "; - echo ""; - echo ""; - echo ""; - echo ""; + + if ($this->session->userdata('logged')): + echo "
"; + echo ""; + echo ""; + echo ""; + echo "
"; + endif; echo "
"; echo "
"; echo "
";