This commit is contained in:
2024-06-14 14:56:16 +02:00
parent 2640d39a4f
commit 8dea4d69b3
4 changed files with 64 additions and 8 deletions

View File

@@ -0,0 +1,16 @@
<h5>Détail de l'Album :</h5>
<section class="track-list">
<?php
if(!empty($tracks)) {
foreach($tracks as $track){
echo "<div><article>";
echo "<header class='track-id'>Id : {$track->number}</header>";
echo "<div class='track-name'>Nom : {$track->songName}</div>";
echo "<footer class='track_time'>Durée (en secondes) : {$track->duration}</footer>";
echo "</article></div>";
}
} else {
echo "<p>Aucune piste trouvée pour cet album.</p>";
}
?>
</section>