2024-05-20 18:18:00 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="fr">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2024-05-22 20:59:59 +02:00
|
|
|
<link rel="stylesheet" href="<?php echo base_url('assets/css/album_view.css'); ?>">
|
2024-05-20 18:18:00 +02:00
|
|
|
<title><?php echo $album->name; ?> - Details</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="album-details">
|
|
|
|
<h1><?php echo $album->name; ?></h1>
|
2024-05-20 22:42:38 +02:00
|
|
|
|
2024-05-20 18:18:00 +02:00
|
|
|
<p><strong>Artiste :</strong> <?php echo $album->artistName; ?></p>
|
|
|
|
<p><strong>Année :</strong> <?php echo $album->year; ?></p>
|
|
|
|
<p><strong>Genre :</strong> <?php echo $album->genreName; ?></p>
|
|
|
|
<img src="data:image/jpeg;base64,<?php echo base64_encode($album->jpeg); ?>" alt="Image d'album">
|
|
|
|
|
|
|
|
<?php if (!empty($album->tracks)): ?>
|
|
|
|
<h2>Musiques</h2>
|
|
|
|
<ul>
|
|
|
|
<?php foreach ($album->tracks as $track): ?>
|
|
|
|
<li>
|
|
|
|
<strong><?php echo $track->diskNumber . '.' . $track->number; ?>:</strong> <?php echo $track->songName; ?> (<?php echo gmdate("i:s", $track->duration); ?>)
|
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
|
|
|
<?php else: ?>
|
|
|
|
<p>Aucune musique n'est disponible dans cette album...</p>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|