premier test

This commit is contained in:
2026-06-09 13:21:02 +02:00
commit 51a4e76e21
251 changed files with 68974 additions and 0 deletions
+49
View File
@@ -0,0 +1,49 @@
<!DOCTYPE html>
<html>
<head>
<title>Liste des Jeux</title>
</head>
<body>
<h1>Liste des jeux</h1>
<form method="GET" action="<?php echo site_url('game/index'); ?>">
<input type="text" name="search" value="<?php echo $current_search; ?>" placeholder="Rechercher un jeu...">
<button type="submit">Rechercher</button>
<a href="<?php echo site_url('game/index'); ?>">Réinitialiser</a>
</form>
<br>
<p>
Trier par :
<a href="<?php echo site_url('game/index?sort=name&order=ASC&search='.$current_search); ?>">Nom (A-Z)</a> |
<a href="<?php echo site_url('game/index?sort=releaseYear&order=DESC&search='.$current_search); ?>">Année</a>
</p>
<p>
<strong>Filtrer par Genre :</strong>
<?php foreach ($genres as $genre): ?>
<a href="<?php echo site_url('game/index?genre='.$genre['id']); ?>">
<?php echo $genre['description']; ?>
</a> |
<?php endforeach; ?>
</p>
<p>
<strong>Filtrer par Catégorie :</strong>
<?php foreach ($categories as $category): ?>
<a href="<?php echo site_url('game/index?category=' . $category['id']); ?>">
<?php echo $category['description']; ?>
</a> |
<?php endforeach; ?>
</p>
<ul>
<?php foreach ($games as $game): ?>
<li>
<strong><a href="<?php echo site_url('game/detail/' . $game['id']); ?>"><strong><?php echo $game['name']; ?></strong></a></strong>
(<?php echo $game['releaseYear']; ?>)
<br>
</li>
<?php endforeach; ?>
</ul>
</body>
</html>