SAEWEB2.2/ci/application/views/playlist_list.php

22 lines
885 B
PHP
Raw Normal View History

2024-05-30 16:14:38 +02:00
<?php
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-06 10:59:12 +02:00
echo "<button type='submit' class='delete-button'>supprimer</button>";
echo "</form>";
echo "<form action='" . base_url("index.php/playlist/duplicate/{$playlist->id}") . "' method='post'>";
echo "<button type='submit' class='delete-button'>dupliquer</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
?>