vraiment bon travail

This commit is contained in:
2024-06-17 15:10:10 +02:00
parent 17a95f32ce
commit be76f14c4a
5 changed files with 126 additions and 37 deletions

View File

@@ -1,15 +1,14 @@
<h5>Albums list</h5>
<section class="list">
<?php
foreach($albums as $album){
echo "<div><article>";
echo "<header class='short-text'>";
echo anchor("albums/view/{$album->id}","{$album->name}");
echo "</header>";
echo '<img src="data:image/jpeg;base64,'.base64_encode($album->jpeg).'" />';
echo "<footer class='short-text'>{$album->year} - {$album->artistName}</footer>
</article></div>";
echo "<div><article>";
echo "<header class='short-text'>";
echo anchor("music/view/{$album->id}", "{$album->name}");
echo "</header>";
echo '<img src="data:image/jpeg;base64,'.base64_encode($album->jpeg).'" />';
echo "<footer class='short-text'>{$album->year} - {$album->artistName}</footer>
</article></div>";
}
?>
</section>