2024-06-04 15:00:24 +02:00
|
|
|
<section class="artiste">
|
2024-05-23 11:41:06 +02:00
|
|
|
<?php
|
2024-05-30 16:14:38 +02:00
|
|
|
foreach($artistes as $artiste){
|
2024-06-06 10:47:55 +02:00
|
|
|
echo "<form action='" . base_url("index.php/artistes/addSongOfArtistToPlaylist") . "' method='post'>";
|
|
|
|
echo anchor("artistes/view/{$artiste->id}", "{$artiste->name}");
|
|
|
|
echo "<select name='playlist'>";
|
|
|
|
foreach ($playlists as $playlist) {
|
|
|
|
echo "<option value='{$playlist->id}'>{$playlist->name}</option>";
|
|
|
|
}
|
|
|
|
echo "</select>";
|
|
|
|
echo "<input type='hidden' name='artistId' value='{$artiste->id}' />"; // Utilisez l'identifiant de l'artiste ici
|
|
|
|
echo "<button type='submit' class='add-to-playlist'>+</button>";
|
|
|
|
echo "</form>";
|
|
|
|
echo "<br>";
|
2024-05-23 11:41:06 +02:00
|
|
|
}
|
|
|
|
?>
|
2024-06-06 10:47:55 +02:00
|
|
|
</section>
|