Test pages * 1/?
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<h2>Songs</h2>
|
||||
<ul>
|
||||
<?php foreach ($songs as $song): ?>
|
||||
<li><?= $song->trackName ?></li>
|
||||
<li><?= anchor("music/song/{$song->trackId}", $song->trackName) ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</body>
|
||||
|
@@ -5,8 +5,12 @@
|
||||
</head>
|
||||
<body>
|
||||
<h1><?= $artist->artistName ?></h1>
|
||||
<p><strong>Genre:</strong> <?= $artist->genreName ?></p>
|
||||
<img src="data:image/jpeg;base64,<?= base64_encode($artist->jpeg) ?>" alt="<?= $artist->artistName ?> Photo">
|
||||
<?php if (!empty($artist->genreName)): ?>
|
||||
<p><strong>Genre:</strong> <?= $artist->genreName ?></p>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($artist->jpeg)): ?>
|
||||
<img src="data:image/jpeg;base64,<?= base64_encode($artist->jpeg) ?>" alt="<?= $artist->artistName ?> Photo">
|
||||
<?php endif; ?>
|
||||
|
||||
<h2>Albums</h2>
|
||||
<ul>
|
||||
|
13
application/views/song_details.php
Normal file
13
application/views/song_details.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><?= $song->songName ?> - Details</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1><?= $song->songName ?></h1>
|
||||
<p><strong>Album:</strong> <?= anchor("albums/view/{$song->trackId}", $song->albumName) ?> (<?= $song->year ?>)</p>
|
||||
<p><strong>Artist:</strong> <?= $song->artistName ?></p>
|
||||
<p><strong>Genre:</strong> <?= $song->genreName ?></p>
|
||||
<img src="data:image/jpeg;base64,<?= base64_encode($song->jpeg) ?>" alt="<?= $song->albumName ?> Cover">
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user