30 lines
985 B
PHP
30 lines
985 B
PHP
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="fr">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<title>Résultats de recherche pour "<?php echo html_escape($search_keyword); ?>"</title>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
|
||
|
|
<p><a href="<?php echo site_url('home'); ?>">← Retour à l'accueil</a></p>
|
||
|
|
|
||
|
|
<h1>Résultats pour : "<?php echo html_escape($search_keyword); ?>"</h1>
|
||
|
|
|
||
|
|
<?php if (empty($games)): ?>
|
||
|
|
<p>Aucun jeu vidéo ne correspond à votre recherche.</p>
|
||
|
|
<?php else: ?>
|
||
|
|
<p><strong><?php echo count($games); ?></strong> jeu(x) trouvé(s) :</p>
|
||
|
|
<ul>
|
||
|
|
<?php foreach ($games as $game): ?>
|
||
|
|
<li>
|
||
|
|
<a href="<?php echo site_url('game/detail/' . $game['gameId']); ?>">
|
||
|
|
<strong><?php echo html_escape($game['title']); ?></strong>
|
||
|
|
</a>
|
||
|
|
(<?php echo html_escape($game['year']); ?>)
|
||
|
|
</li>
|
||
|
|
<?php endforeach; ?>
|
||
|
|
</ul>
|
||
|
|
<?php endif; ?>
|
||
|
|
|
||
|
|
</body>
|
||
|
|
</html>
|