Gestion playlist et css
This commit is contained in:
@@ -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;">
|
||||
|
Reference in New Issue
Block a user