Files
SAe-PHP-S2/application/views/album_details.php
2024-06-04 23:26:09 +02:00

21 lines
636 B
PHP

<!DOCTYPE html>
<html>
<head>
<title><?= $album->albumName ?> - Details</title>
</head>
<body>
<h1><?= $album->albumName ?></h1>
<p><strong>Artist:</strong> <?= $album->artistName ?></p>
<p><strong>Genre:</strong> <?= $album->genreName ?></p>
<p><strong>Year:</strong> <?= $album->year ?></p>
<img src="data:image/jpeg;base64,<?= base64_encode($album->jpeg) ?>" alt="<?= $album->albumName ?> Cover">
<h2>Songs</h2>
<ul>
<?php foreach ($songs as $song): ?>
<li><?= anchor("music/song/{$song->trackId}", $song->trackName) ?></li>
<?php endforeach; ?>
</ul>
</body>
</html>