playlist suite

This commit is contained in:
2024-06-03 15:02:52 +02:00
parent f1638ed865
commit 0e5002ce82
4 changed files with 57 additions and 1 deletions

View File

@@ -3,7 +3,14 @@
foreach($playlists as $playlist){
echo "<div><article>";
echo "<header class='short-text'>";
echo anchor("playlists/view/{$playlist->id}","{$playlist->name}");
echo anchor("playlist/SongPLaylist/{$playlist->id}","{$playlist->name}");
//bouton supprimer playlist
echo "<form action='".site_url('playlist/view')."' method='post'style='display:inline;'>";
echo "<input type='hidden' name='playlist_id' value='{$playlist->id}'>";
echo "<button type='submit'>Supprimer PLaylistn</button>";
echo "</form>";
echo "<br>";
echo "</header>";
echo "</article></div>";

View File

@@ -0,0 +1,14 @@
<h5>Song of the playlist</h5>
<section class="list">
<?php
foreach($songPlaylists as $songPlaylist){
echo "<div><article>";
echo "<header class='short-text'>";
echo "{$songPlaylist->name}";
echo "<br>";
echo "</header>";
echo "</article></div>";
}
?>
</section>