Ajout search bar , genre...
This commit is contained in:
12
application/views/artists_name.php
Normal file
12
application/views/artists_name.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<h5>Artists list</h5>
|
||||
<section class="list">
|
||||
<?php
|
||||
foreach($artists as $artist){
|
||||
echo "<div><article>";
|
||||
echo "<header class='short-text'>";
|
||||
echo anchor("artist/view/{$artist->artistId}","{$artist->artistName}");
|
||||
echo "</header></article></div>";
|
||||
}
|
||||
?>
|
||||
</section>
|
||||
|
@@ -27,6 +27,31 @@
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<form methode="GET">
|
||||
<select name="artist" id="artist">
|
||||
<option value=''>Tous</option>
|
||||
<?php foreach($artistes as $artiste){
|
||||
echo "<option value='{$artiste->name}'>{$artiste->name}</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
||||
<select name="genre" id="genre">
|
||||
<option value=''>Tous</option>
|
||||
<?php foreach($genres as $genre){
|
||||
echo "<option value='{$genre->name}'>{$genre->name}</option>";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
||||
<select name="order" id="order">
|
||||
<option value="">Ordre :</option>
|
||||
<option value="asc">Croissant</option>
|
||||
<option value="desc">Decroissant</option>
|
||||
</select>
|
||||
<button type="submit">Envoyer</button>
|
||||
</form>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
16
application/views/musiques_name.php
Normal file
16
application/views/musiques_name.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<h5>Musiques List</h5>
|
||||
<section class="list">
|
||||
<?php
|
||||
foreach($musics as $music){
|
||||
echo "<div><article>";
|
||||
echo "<header class='short-text'>";
|
||||
echo anchor("albums/view/{$music->trackId}","{$music->trackName}");
|
||||
echo "</header>";
|
||||
echo '<img src="data:image/jpeg;base64,'.base64_encode($music->jpeg).'" />';
|
||||
|
||||
echo "<footer class='short-text'>{$music->year} - {$music->artistName}</footer>
|
||||
</article></div>";
|
||||
}
|
||||
?>
|
||||
</section>
|
||||
|
Reference in New Issue
Block a user