2024-06-17 22:08:57 +02:00
|
|
|
<title>SpotiFly</title>
|
2024-06-03 15:02:52 +02:00
|
|
|
<section class="list">
|
|
|
|
<?php
|
2024-06-11 16:12:33 +02:00
|
|
|
$i = 0;
|
2024-06-12 14:57:59 +02:00
|
|
|
/*foreach($songs as $song){
|
2024-06-11 16:12:33 +02:00
|
|
|
echo "<div><article>";
|
|
|
|
echo "<header class='short-text'>";
|
|
|
|
$i = $i+1;
|
|
|
|
$minutes = floor($song->duration/60);
|
|
|
|
$secondes = $song->duration %60;
|
2024-06-12 14:57:59 +02:00
|
|
|
echo "{$i} - {$song->name} : {$minutes} min {$secondes} sec"; */
|
2024-06-03 15:02:52 +02:00
|
|
|
foreach($songPlaylists as $songPlaylist){
|
|
|
|
echo "<div><article>";
|
|
|
|
echo "<header class='short-text'>";
|
2024-06-05 17:38:12 +02:00
|
|
|
echo "<form action='" . base_url("index.php/Playlist/deleteSong/{$id_playlist -> id}/{$songPlaylist-> name}") . "' method='post'>";
|
2024-06-03 15:02:52 +02:00
|
|
|
echo "{$songPlaylist->name}";
|
2024-06-05 17:38:12 +02:00
|
|
|
echo "<button type='submit' class='delete-button'>Delete</button>";
|
|
|
|
echo "</form>";
|
2024-06-03 16:10:43 +02:00
|
|
|
echo "<br>";
|
2024-06-03 15:02:52 +02:00
|
|
|
echo "</header>";
|
|
|
|
echo "</article></div>";
|
|
|
|
}
|
2024-06-12 14:57:59 +02:00
|
|
|
|
2024-06-03 15:02:52 +02:00
|
|
|
?>
|
2024-06-11 16:12:33 +02:00
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|