css menu create + playlist
This commit is contained in:
parent
906c5abf52
commit
253fd100d8
@ -23,7 +23,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
|||||||
| a PHP script and you can easily do that on your own.
|
| a PHP script and you can easily do that on your own.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
$config['base_url'] = '/~brigitte/SAEWEB2.2/ci/';
|
$config['base_url'] = '/~boutaric/SAEWEB2.2/ci/';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
@ -24,6 +24,7 @@ class Playlist extends CI_Controller {
|
|||||||
|
|
||||||
public function SongPlaylist($playlist_id){
|
public function SongPlaylist($playlist_id){
|
||||||
$songPlaylists = $this->model_music->getSongOfPlaylist($playlist_id);
|
$songPlaylists = $this->model_music->getSongOfPlaylist($playlist_id);
|
||||||
|
$songs = $this->model_music->getSongOfAlbum($playlist_id);
|
||||||
$playlists = $this->model_music->getPlaylist(); // Récupère toutes les playlists
|
$playlists = $this->model_music->getPlaylist(); // Récupère toutes les playlists
|
||||||
$id_playlist = null; // Initialise $id_playlist à null
|
$id_playlist = null; // Initialise $id_playlist à null
|
||||||
foreach ($playlists as $playlist_item) {
|
foreach ($playlists as $playlist_item) {
|
||||||
@ -32,7 +33,7 @@ class Playlist extends CI_Controller {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->load->view('song_playlist', ['songPlaylists' => $songPlaylists, 'id_playlist' => $id_playlist]);
|
$this->load->view('song_playlist', ['songPlaylists' => $songPlaylists, 'id_playlist' => $id_playlist, 'songs'=>$songs]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function delete($playlist_id) {
|
public function delete($playlist_id) {
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<main class='container'>
|
<main class='container'>
|
||||||
<header class="navbar">
|
<header class="navbar">
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<img src="assets/img/Logo1.png" alt="SpotiFly">
|
<img src=<?= base_url('assets/img/Logo1.png') ?> alt="SpotiFly">
|
||||||
</div>
|
</div>
|
||||||
<nav class="menu">
|
<nav class="menu">
|
||||||
<ul>
|
<ul>
|
||||||
@ -47,7 +47,7 @@
|
|||||||
</header>
|
</header>
|
||||||
<div id="Page">
|
<div id="Page">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<img src="assets/img/logo_page.png" alt="SpotiFly">
|
<img src=<?= base_url('assets/img/logo_page.png') ?> alt="SpotiFly">
|
||||||
<div class="text-page">
|
<div class="text-page">
|
||||||
<h2>SpotiFly : envole-toi au rythme de la musique !</h2>
|
<h2>SpotiFly : envole-toi au rythme de la musique !</h2>
|
||||||
</div>
|
</div>
|
||||||
@ -66,7 +66,7 @@
|
|||||||
</section>
|
</section>
|
||||||
<section id="product" class="box">
|
<section id="product" class="box">
|
||||||
<div class="box-img">
|
<div class="box-img">
|
||||||
<img src="assets/img/argent.png" alt="Description de l'image 3">
|
<img src=<?= base_url('assets/img/argent.png') ?> alt="Description de l'image 2">
|
||||||
<div class="text-content">
|
<div class="text-content">
|
||||||
<h2>La Cognition</h2>
|
<h2>La Cognition</h2>
|
||||||
<p>Découvrez notre nouveaux cube v3 qui peut avoir la voix de votre choix.</p>
|
<p>Découvrez notre nouveaux cube v3 qui peut avoir la voix de votre choix.</p>
|
||||||
@ -76,7 +76,7 @@
|
|||||||
</section>
|
</section>
|
||||||
<section id="sale" class="box">
|
<section id="sale" class="box">
|
||||||
<div class="box-content">
|
<div class="box-content">
|
||||||
<img src="assets/img/Statistique.png" alt="Description de l'image 4">
|
<img src=<?= base_url('assets/img/Statistique.png') ?> alt="Description de l'image 2">
|
||||||
<div class="text-content">
|
<div class="text-content">
|
||||||
<h2>Statistiques</h2>
|
<h2>Statistiques</h2>
|
||||||
<p>"Découvrez les statistiques de notre application de musique : des millions d'utilisateurs s'immergent dans une expérience audio immersive, créant des milliers de playlists et explorant une multitude de genres musicaux, tout en bénéficiant d'un mois gratuit dès l'abonnement !"</p>
|
<p>"Découvrez les statistiques de notre application de musique : des millions d'utilisateurs s'immergent dans une expérience audio immersive, créant des milliers de playlists et explorant une multitude de genres musicaux, tout en bénéficiant d'un mois gratuit dès l'abonnement !"</p>
|
||||||
@ -105,19 +105,19 @@
|
|||||||
<div class="logo-reseaux">
|
<div class="logo-reseaux">
|
||||||
<p>
|
<p>
|
||||||
<a href="https://www.instagram.com/" target="_blank" class="social-icon">
|
<a href="https://www.instagram.com/" target="_blank" class="social-icon">
|
||||||
<img src="assets/img/Instagram.png" alt="Logo Instagram">
|
<img src=<?= base_url('assets/img/Instagram.png') ?> alt="Description de l'image 2">
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<a href="https://www.X.com/" target="_blank" class="social-icon">
|
<a href="https://www.X.com/" target="_blank" class="social-icon">
|
||||||
<img src="assets/img/twitter.png" alt="Logo X">
|
<img src=<?= base_url('assets/img/twitter.png') ?> alt="Description de l'image 2">
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-logo">
|
<div class="footer-logo">
|
||||||
<img src="assets/img/SpotiFly.png" alt="SpotiFly Logo">
|
<img src=<?= base_url('assets/img/SpotiFly.png') ?> alt="Description de l'image 2">
|
||||||
<p>© 2024 SpotiFly.</p>
|
<p>© 2024 SpotiFly.</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -1,6 +1,27 @@
|
|||||||
<h5 class="playlist-title">Créer une nouvelle Playlist</h5>
|
<div class="content">
|
||||||
|
<section id="about" class="box">
|
||||||
|
<div class="box-content">
|
||||||
|
<img src=<?= base_url('assets/img/musique.png') ?> alt="Description de l'image 2">
|
||||||
|
<div class="text-content">
|
||||||
|
<h2>Créer une nouvelle Playlist</h2>
|
||||||
<form action="<?= base_url('index.php/playlist/createPlaylistController') ?>" method="post" class="playlist-form">
|
<form action="<?= base_url('index.php/playlist/createPlaylistController') ?>" method="post" class="playlist-form">
|
||||||
<label for="name_playlist" class="playlist-label">Nom de la Playlist:</label>
|
<label for="name_playlist" class="playlist-label">Nom de la Playlist:</label>
|
||||||
<input type="text" name="name_playlist" id="name_playlist" class="playlist-input" required>
|
<input type="text" name="name_playlist" id="name_playlist" class="playlist-input" required>
|
||||||
<button type="submit" name="submit" class="playlist-button">Créer</button>
|
<button type="submit" name="submit" class="playlist-button">Créer</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section id="product" class="box">
|
||||||
|
<div class="box-img">
|
||||||
|
<img src=<?= base_url('assets/img/musique1.png') ?> alt="Description de l'image 2">
|
||||||
|
<div class="text-content">
|
||||||
|
<h2>Créer une playlist aléatoire</h2>
|
||||||
|
<form action="<?= base_url('index.php/playlist/createPlaylistController') ?>" method="post" class="playlist-form">
|
||||||
|
<label for="name_playlist" class="playlist-label">Nom de la Playlist:</label>
|
||||||
|
<input type="text" name="name_playlist" id="name_playlist" class="playlist-input" required>
|
||||||
|
<button type="submit" name="submit" class="playlist-button">Créer</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
@ -28,19 +28,19 @@
|
|||||||
<div class="logo-reseaux">
|
<div class="logo-reseaux">
|
||||||
<p>
|
<p>
|
||||||
<a href="https://www.instagram.com/" target="_blank" class="social-icon">
|
<a href="https://www.instagram.com/" target="_blank" class="social-icon">
|
||||||
<img src="../assets/img/Instagram.png" alt="Logo Instagram">
|
<img src=<?= base_url('assets/img/Instagram.png') ?> alt="Description de l'image 2">
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<a href="https://www.X.com/" target="_blank" class="social-icon">
|
<a href="https://www.X.com/" target="_blank" class="social-icon">
|
||||||
<img src="../assets/img/twitter.png" alt="Logo X">
|
<img src=<?= base_url('assets/img/twitter.png') ?> alt="Description de l'image 2">
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-logo">
|
<div class="footer-logo">
|
||||||
<img src="../assets/img/SpotiFly.png" alt="SpotiFly Logo">
|
<img src=<?= base_url('assets/img/SpotiFly.png') ?> alt="Description de l'image 2">
|
||||||
<p>© 2024 SpotiFly.</p>
|
<p>© 2024 SpotiFly.</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -12,12 +12,12 @@
|
|||||||
<body>
|
<body>
|
||||||
<main class='contain'>
|
<main class='contain'>
|
||||||
<header class="navbar">
|
<header class="navbar">
|
||||||
|
<img src=<?= base_url('assets/img/Logo1.png') ?> alt="Description de l'image 2">
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
<img src="../assets/img/Logo1.png" alt="SpotiFly">
|
|
||||||
</div>
|
</div>
|
||||||
<nav class="menu">
|
<nav class="menu">
|
||||||
<ul>
|
<ul>
|
||||||
<li><?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/','Home'); ?></li>
|
<li><?= anchor('https://dwarves.iut-fbleau.fr/~boutaric/SAEWEB2.2/ci/','Home'); ?></li>
|
||||||
<li class="menu_déroulant"><?= anchor('albums','Albums'); ?>
|
<li class="menu_déroulant"><?= anchor('albums','Albums'); ?>
|
||||||
<div class="menu_déroulant_content">
|
<div class="menu_déroulant_content">
|
||||||
<?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/index.php/Song/view/196','New Masters'); ?>
|
<?= anchor('https://dwarves.iut-fbleau.fr/~brigitte/SAEWEB2.2/ci/index.php/Song/view/196','New Masters'); ?>
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
<section class="list">
|
<section class="list">
|
||||||
<?php
|
<?php
|
||||||
$i = 0;
|
$i = 0;
|
||||||
echo '<img src="data:image/jpeg;base64,' . base64_encode($album->jpeg) . '" alt="' . $album->name . '" />';
|
|
||||||
echo "<footer class='short-text'>{$album->year} - {$album->artistName}</footer>";
|
|
||||||
foreach($songs as $song){
|
foreach($songs as $song){
|
||||||
echo "<div><article>";
|
echo "<div><article>";
|
||||||
echo "<header class='short-text'>";
|
echo "<header class='short-text'>";
|
||||||
|
@ -1,6 +1,14 @@
|
|||||||
|
|
||||||
<section class="list">
|
<section class="list">
|
||||||
<?php
|
<?php
|
||||||
|
$i = 0;
|
||||||
|
foreach($songs as $song){
|
||||||
|
echo "<div><article>";
|
||||||
|
echo "<header class='short-text'>";
|
||||||
|
$i = $i+1;
|
||||||
|
$minutes = floor($song->duration/60);
|
||||||
|
$secondes = $song->duration %60;
|
||||||
|
echo "{$i} - {$song->name} : {$minutes} min {$secondes} sec";
|
||||||
foreach($songPlaylists as $songPlaylist){
|
foreach($songPlaylists as $songPlaylist){
|
||||||
echo "<div><article>";
|
echo "<div><article>";
|
||||||
echo "<header class='short-text'>";
|
echo "<header class='short-text'>";
|
||||||
@ -12,6 +20,11 @@ foreach($songPlaylists as $songPlaylist){
|
|||||||
echo "</header>";
|
echo "</header>";
|
||||||
echo "</article></div>";
|
echo "</article></div>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -40,3 +40,4 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
BIN
ci/assets/img/musique.png
Normal file
BIN
ci/assets/img/musique.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
BIN
ci/assets/img/musique1.png
Normal file
BIN
ci/assets/img/musique1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
Loading…
Reference in New Issue
Block a user