ajout tout les morceau d'un artiste
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
|
||||
<section class="artiste">
|
||||
<?php
|
||||
foreach($artistes as $artiste){
|
||||
//echo "<div><article>";
|
||||
//echo "<header class='short-text'>";
|
||||
echo anchor("artistes/view/{$artiste->id}","{$artiste->name}");
|
||||
echo "<br>";
|
||||
echo "</header>";
|
||||
//echo "<footer class='short-text'>{$artistes->year} - {$artistes->artistName}</footer>
|
||||
//</article></div>";
|
||||
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>";
|
||||
}
|
||||
?>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user