ajout fichier css + php, fusion - correction beug php

This commit is contained in:
2024-06-04 15:00:24 +02:00
parent e1831b92e8
commit ee261d214e
27 changed files with 240 additions and 430 deletions

View File

@@ -1,15 +1,16 @@
<h5>Albums of the artist</h5>
<section class="list">
<?php
foreach($AlbumsOfArtist as $AlbumOfArtists){
echo "<div><article>";
echo "<header class='short-text'>";
echo anchor("albums/view/{$AlbumOfArtists->id}","{$AlbumOfArtists->name}");
echo "<br>";
echo "</header>";
echo "</article></div>";
}
?>
</section>
<h5>Liste des albums</h5>
<section class="container">
<?php
foreach ($AlbumsOfArtists as $AlbumsOfArtist) {
echo "<div class='album'><article>";
echo "<header class='album-title'>";
echo anchor("albums/view/{$AlbumsOfArtist->id}", "{$AlbumsOfArtist->name}");
echo "<br>";
echo "</header>";
echo '<img src="data:image/jpeg;base64,' . base64_encode($AlbumsOfArtist->jpeg) . '" alt="' . $AlbumsOfArtist->name . '" />';
echo "<footer class='short-text'>$AlbumsOfArtist->year</footer>";
echo "</article></div>";
}
?>
</section>