2024-05-30 16:14:38 +02:00
|
|
|
<?php
|
2024-06-05 14:57:43 +02:00
|
|
|
|
|
|
|
echo "<div class='playlist-container'>";
|
2024-06-03 18:44:18 +02:00
|
|
|
echo "<form action='" . base_url("index.php/playlist/MenuCreate/") . "' method='post'>";
|
2024-06-05 13:51:23 +02:00
|
|
|
echo "<button type='submit' class='create-button'>Create</button>";
|
2024-06-03 18:44:18 +02:00
|
|
|
echo "</form>";
|
2024-05-30 16:14:38 +02:00
|
|
|
foreach($playlists as $playlist){
|
2024-06-05 13:51:23 +02:00
|
|
|
echo "<div class='playlist-item'>";
|
2024-05-30 16:14:38 +02:00
|
|
|
echo "<header class='short-text'>";
|
2024-06-05 13:51:23 +02:00
|
|
|
echo anchor("playlist/SongPlaylist/{$playlist->id}","<h3>{$playlist->name}</h3>");
|
2024-06-03 17:52:42 +02:00
|
|
|
echo "<form action='" . base_url("index.php/playlist/delete/{$playlist->id}") . "' method='post'>";
|
2024-06-05 13:51:23 +02:00
|
|
|
echo "<button type='submit' class='delete-button'>Delete</button>";
|
2024-06-03 15:02:52 +02:00
|
|
|
echo "</form>";
|
2024-05-30 16:14:38 +02:00
|
|
|
echo "</header>";
|
2024-06-05 13:51:23 +02:00
|
|
|
echo "</div>";
|
2024-05-30 16:14:38 +02:00
|
|
|
}
|
2024-06-05 13:51:23 +02:00
|
|
|
echo "</div>";
|
2024-05-30 16:14:38 +02:00
|
|
|
?>
|