2024-05-30 13:49:35 +02:00
|
|
|
|
2024-05-20 22:42:38 +02:00
|
|
|
<div class="artist-details">
|
|
|
|
<h1>Détails de l'artiste <?php echo $artiste->name; ?></h1>
|
2024-05-22 22:05:48 +02:00
|
|
|
<p><strong>Genre le plus utilisé :</strong> <?php echo $mostUsedGenre->genreName; ?></p>
|
2024-05-20 22:42:38 +02:00
|
|
|
<h2>Albums de <?php echo $artiste->name; ?></h2>
|
|
|
|
<ul class="albums-list">
|
|
|
|
<?php foreach($albums as $album): ?>
|
|
|
|
<li>
|
|
|
|
<div class="album-details">
|
|
|
|
<h3><?php echo $album->name; ?></h3>
|
|
|
|
<p><strong>Année :</strong> <?php echo $album->year; ?></p>
|
|
|
|
<p><strong>Genre :</strong> <?php echo $album->genreName; ?></p>
|
|
|
|
<?php if (!empty($album->jpeg)): ?>
|
|
|
|
<img src="data:image/jpeg;base64,<?php echo base64_encode($album->jpeg); ?>" alt="Couverture de l'album">
|
|
|
|
<?php else: ?>
|
|
|
|
<span class="no-cover">Aucune couverture disponible</span>
|
|
|
|
<?php endif; ?>
|
2024-05-22 22:05:48 +02:00
|
|
|
<!-- Liste des musiques de l'album -->
|
|
|
|
<ul class="songs-list">
|
|
|
|
<?php foreach($album->tracks as $track): ?>
|
|
|
|
<li>
|
2024-05-27 23:09:07 +02:00
|
|
|
<span><strong><?php echo $track->number . '.' . $track->diskNumber; ?></strong></span>
|
2024-05-22 22:05:48 +02:00
|
|
|
<span><?php echo $track->songName; ?></span>
|
2024-05-27 23:09:07 +02:00
|
|
|
<span><strong><?php echo gmdate("i:s", $track->duration); ?></strong></span>
|
2024-05-22 22:05:48 +02:00
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
|
|
|
</ul>
|
2024-05-20 22:42:38 +02:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</body>
|