From 9d492207b09f789b554d377370e63e9bc5797f59 Mon Sep 17 00:00:00 2001 From: boutaric Date: Wed, 5 Jun 2024 14:57:43 +0200 Subject: [PATCH] correction beug header + footer + css & php pour les playlist --- ci/application/controllers/Albums.php | 2 +- ci/application/controllers/Playlist.php | 6 +- ci/application/views/Welcome.php | 1 + ci/application/views/layout/header copy.php | 2 +- ci/application/views/playlist_list.php | 5 +- ci/assets/connexion.css | 84 ++------------------- ci/assets/playlist.css | 29 ++++--- ci/assets/style.css | 5 +- 8 files changed, 33 insertions(+), 101 deletions(-) diff --git a/ci/application/controllers/Albums.php b/ci/application/controllers/Albums.php index 0200e56..e33d9c4 100644 --- a/ci/application/controllers/Albums.php +++ b/ci/application/controllers/Albums.php @@ -21,7 +21,7 @@ class Albums extends CI_Controller { $songs = []; } $this->load->view('layout/header'); - $this->load->view('song_album_list', ['songs' => $songs, 'album' => $album]); + $this->load->view('song_album_list', ['songs' => $songs]); $this->load->view('layout/footer'); } } diff --git a/ci/application/controllers/Playlist.php b/ci/application/controllers/Playlist.php index 00b3648..e774b21 100644 --- a/ci/application/controllers/Playlist.php +++ b/ci/application/controllers/Playlist.php @@ -10,14 +10,14 @@ class Playlist extends CI_Controller { public function index(){ $playlists = $this->model_music->getPlaylist(); - // $this->load->view('layout/header'); + $this->load->view('layout/header'); $this->load->view('playlist_list', ['playlists' => $playlists]); $this->load->view('layout/footer'); } public function view(){ $playlists = $this->model_music->deletePlaylist(); - //$this->load->view('layout/header_album'); + $this->load->view('layout/header'); $this->load->view('playlist_list', ['playlists' => $playlists]); $this->load->view('layout/footer'); } @@ -35,7 +35,7 @@ class Playlist extends CI_Controller { } public function MenuCreate() { - //$this->load->view('layout/header_album'); + $this->load->view('layout/header'); $this->load->view('create_playlist'); $this->load->view('layout/footer'); diff --git a/ci/application/views/Welcome.php b/ci/application/views/Welcome.php index d762ec3..c6ad400 100644 --- a/ci/application/views/Welcome.php +++ b/ci/application/views/Welcome.php @@ -4,6 +4,7 @@ SpotiFly +
diff --git a/ci/application/views/layout/header copy.php b/ci/application/views/layout/header copy.php index 29698f6..5959d0d 100644 --- a/ci/application/views/layout/header copy.php +++ b/ci/application/views/layout/header copy.php @@ -9,7 +9,7 @@ -
+