SAE_2.02/CodeIgniter-3.1.13/application/views/artists_list.php

29 lines
1.1 KiB
PHP
Raw Normal View History

2024-05-22 20:03:53 +02:00
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?php echo base_url('assets/css/artists_list'); ?>">
<title>Liste des Artistes - Onzeur</title>
</head>
<body>
<div class="artist-list-container">
<h1>Liste des Artistes</h1>
<div class="sort-options">
<a href="<?php echo site_url('artiste/list_artists?order=ASC'); ?>">Trier par ordre alphabétique</a> |
<a href="<?php echo site_url('artiste/list_artists?order=DESC'); ?>">Trier par ordre inverse</a>
</div>
<ul class="artist-list">
<?php foreach($artists as $artist): ?>
<li>
<div class="artist-details">
<h2><?php echo $artist->name; ?></h2>
<p><a href="<?php echo site_url('artiste/'.$artist->id); ?>">Voir les détails</a></p>
</div>
</li>
<?php endforeach; ?>
</ul>
</div>
</body>
</html>