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

31 lines
760 B
PHP
Raw Normal View History

2024-06-05 11:14:54 +02:00
2024-06-03 15:02:52 +02:00
<section class="list">
<?php
2024-06-11 16:12:33 +02:00
$i = 0;
foreach($songs as $song){
echo "<div><article>";
echo "<header class='short-text'>";
$i = $i+1;
$minutes = floor($song->duration/60);
$secondes = $song->duration %60;
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-11 16:12:33 +02:00
}
2024-06-03 15:02:52 +02:00
?>
2024-06-11 16:12:33 +02:00
</section>