Gestion playlist et css

This commit is contained in:
2024-06-18 20:28:49 +02:00
parent a47749459f
commit 2daa74732b
9 changed files with 142 additions and 109 deletions

View File

@@ -7,34 +7,13 @@
<button type="submit">Rechercher et Ajouter</button>
</form>
<!-- Section pour afficher les résultats de la recherche -->
<?php if (!empty($searchResults)): ?>
<section class="search-results">
<h5>Résultats de la recherche :</h5>
<ul>
<?php foreach($searchResults as $song): ?>
<li>
<?= $song->name; ?>
<!-- Formulaire pour ajouter la chanson à la playlist -->
<form action="<?= site_url('playlist/add_song'); ?>" method="post" style="display:inline;">
<input type="hidden" name="playlistId" value="<?= $playlistId; ?>">
<input type="hidden" name="songId" value="<?= $song->id; ?>">
<button type="submit">Ajouter</button>
</form>
</li>
<?php endforeach; ?>
</ul>
</section>
<p>Test</p>
<?php endif; ?>
<!-- Section pour afficher les chansons de son playlist -->
<?php if (!empty($songs)): ?>
<section class="current-songs">
<h5>Chansons actuelles :</h5>
<ul>
<?php foreach($songs as $song): ?>
<li>
<li class="play">
<?= $song->name; ?>
<!-- Formulaire pour supprimer la chanson de la playlist -->
<form action="<?= site_url('playlist/remove_song'); ?>" method="post" style="display:inline;">