From f8cb92828013a2cfe3c35856ed80b5f6eafd94ff Mon Sep 17 00:00:00 2001 From: boutaric Date: Wed, 5 Jun 2024 11:14:54 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20menu=20d=C3=A9roulant=20+=20bouton=20+?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci/application/controllers/Chansons.php | 7 ++ ci/application/controllers/Song.php | 2 +- ci/application/controllers/connexion.php | 14 ++++ ci/application/views/Welcome.php | 26 +++++-- ci/application/views/albums_artist_list.php | 2 +- ci/application/views/albums_list.php | 2 +- ci/application/views/artistes_list.php | 2 +- ci/application/views/layout/connexion.php | 32 ++++++++ ci/application/views/layout/header.php | 38 +++++++--- ci/application/views/song_album_list.php | 9 +-- ci/application/views/song_playlist.php | 2 +- ci/assets/artiste.css | 2 +- ci/assets/bouton.js | 9 --- ci/assets/connexion.css | 83 +++++++++++++++++++++ ci/assets/song.css | 22 +++++- ci/assets/style.css | 29 ++++--- 16 files changed, 230 insertions(+), 51 deletions(-) create mode 100644 ci/application/controllers/connexion.php create mode 100644 ci/application/views/layout/connexion.php create mode 100644 ci/assets/connexion.css diff --git a/ci/application/controllers/Chansons.php b/ci/application/controllers/Chansons.php index 992e9d6..5dab478 100644 --- a/ci/application/controllers/Chansons.php +++ b/ci/application/controllers/Chansons.php @@ -14,4 +14,11 @@ class Albums extends CI_Controller { $this->load->view('layout/footer_chanson'); } + public function view($AlbumsOfArtistId){ + $AlbumsOfArtists = $this->model_music->getAlbumsOfArtist($AlbumsOfArtistId); + $this->load->view('layout/header'); + $this->load->view('albums_artist_list',['AlbumsOfArtists'=>$AlbumsOfArtists]); + $this->load->view('layout/footer'); + } + } diff --git a/ci/application/controllers/Song.php b/ci/application/controllers/Song.php index 77b552a..82d44d3 100644 --- a/ci/application/controllers/Song.php +++ b/ci/application/controllers/Song.php @@ -14,4 +14,4 @@ class Song extends CI_Controller { $this->load->view('song_album_list',['songs'=>$songs]); $this->load->view('layout/footer'); } -} \ No newline at end of file +} diff --git a/ci/application/controllers/connexion.php b/ci/application/controllers/connexion.php new file mode 100644 index 0000000..a7cc2be --- /dev/null +++ b/ci/application/controllers/connexion.php @@ -0,0 +1,14 @@ +load->model('model_music'); + } + public function index(){ + $this->load->view('layout/connexion'); + } + +} diff --git a/ci/application/views/Welcome.php b/ci/application/views/Welcome.php index 8fbee6c..d762ec3 100644 --- a/ci/application/views/Welcome.php +++ b/ci/application/views/Welcome.php @@ -7,22 +7,36 @@
- "; + echo '' . $AlbumsOfArtist->name . ''; echo "
$AlbumsOfArtist->year
"; echo ""; diff --git a/ci/application/views/albums_list.php b/ci/application/views/albums_list.php index ad8709b..20cac90 100644 --- a/ci/application/views/albums_list.php +++ b/ci/application/views/albums_list.php @@ -1,4 +1,4 @@ -
Liste des albums
+
Artists list +
+ + + + + Connexion Spotify + + + +
+ +
+ + diff --git a/ci/application/views/layout/header.php b/ci/application/views/layout/header.php index 6d33305..29698f6 100644 --- a/ci/application/views/layout/header.php +++ b/ci/application/views/layout/header.php @@ -17,20 +17,34 @@ - + Connexion + S'inscrire + + +
-593; - - - \ No newline at end of file + + + diff --git a/ci/application/views/song_album_list.php b/ci/application/views/song_album_list.php index 9c3cc4a..bd87cf4 100644 --- a/ci/application/views/song_album_list.php +++ b/ci/application/views/song_album_list.php @@ -1,15 +1,14 @@ -
Song of the album
+
"; echo "
"; - echo /*anchor("albums/view/{$song->id}",*/"{$song->name}"/*)*/; + echo "{$song->name}"; + echo " "; echo "
"; echo "
"; echo "
"; } ?> -
\ No newline at end of file + diff --git a/ci/application/views/song_playlist.php b/ci/application/views/song_playlist.php index 73ebae0..0054f4a 100644 --- a/ci/application/views/song_playlist.php +++ b/ci/application/views/song_playlist.php @@ -1,4 +1,4 @@ -
Song of the playlist
+