From 1768f21e8659d33e8dc32f617b936ff80f4cc9ba Mon Sep 17 00:00:00 2001 From: boutaric Date: Wed, 5 Jun 2024 13:51:23 +0200 Subject: [PATCH] css pour playlist + php --- ci/application/controllers/Albums.php | 5 +- ci/application/controllers/Playlist.php | 8 ++-- ci/application/views/create_playlist.php | 16 +++---- ci/application/views/layout/footer.php | 1 + ci/application/views/layout/header.php | 1 + ci/application/views/playlist_list.php | 15 +++--- ci/application/views/song_album_list.php | 2 +- ci/assets/album.css | 2 +- ci/assets/playlist.css | 59 ++++++++++++++++++++++++ ci/assets/style.css | 8 +--- 10 files changed, 84 insertions(+), 33 deletions(-) create mode 100644 ci/assets/playlist.css diff --git a/ci/application/controllers/Albums.php b/ci/application/controllers/Albums.php index 5e832c0..0200e56 100644 --- a/ci/application/controllers/Albums.php +++ b/ci/application/controllers/Albums.php @@ -20,11 +20,8 @@ class Albums extends CI_Controller { if (empty($songs)) { $songs = []; } - - log_message('debug', 'Songs: ' . print_r($songs, true)); - $this->load->view('layout/header'); - $this->load->view('song_album_list', ['songs' => $songs]); + $this->load->view('song_album_list', ['songs' => $songs, 'album' => $album]); $this->load->view('layout/footer'); } } diff --git a/ci/application/controllers/Playlist.php b/ci/application/controllers/Playlist.php index 4af69bb..00b3648 100644 --- a/ci/application/controllers/Playlist.php +++ b/ci/application/controllers/Playlist.php @@ -10,16 +10,16 @@ class Playlist extends CI_Controller { public function index(){ $playlists = $this->model_music->getPlaylist(); - //$this->load->view('layout/header_album'); + // $this->load->view('layout/header'); $this->load->view('playlist_list', ['playlists' => $playlists]); - //$this->load->view('layout/footer_album'); + $this->load->view('layout/footer'); } public function view(){ $playlists = $this->model_music->deletePlaylist(); //$this->load->view('layout/header_album'); $this->load->view('playlist_list', ['playlists' => $playlists]); - //$this->load->view('layout/footer_album'); + $this->load->view('layout/footer'); } public function SongPlaylist($playlist_id){ @@ -37,6 +37,8 @@ class Playlist extends CI_Controller { public function MenuCreate() { //$this->load->view('layout/header_album'); $this->load->view('create_playlist'); + $this->load->view('layout/footer'); + } public function createPlaylistController() { diff --git a/ci/application/views/create_playlist.php b/ci/application/views/create_playlist.php index 27ee44b..ce0be49 100644 --- a/ci/application/views/create_playlist.php +++ b/ci/application/views/create_playlist.php @@ -1,10 +1,6 @@ -
Créer une nouvelle Playlist
- - -
- - - -
\ No newline at end of file +
Créer une nouvelle Playlist
+
+ + + +
diff --git a/ci/application/views/layout/footer.php b/ci/application/views/layout/footer.php index 3e5cdea..f5253c0 100644 --- a/ci/application/views/layout/footer.php +++ b/ci/application/views/layout/footer.php @@ -4,6 +4,7 @@ MUSIC APP +