Finalisation des vues de consultation et integration des liens entre jeux categories et genres
This commit is contained in:
@@ -9,14 +9,22 @@
|
||||
<h1>Bienvenue sur l'application Jeux Vidéo</h1>
|
||||
|
||||
<main style="display: flex; gap: 50px;">
|
||||
<section style="margin-bottom: 30px; background: #f4f4f4; padding: 15px; border-radius: 5px;">
|
||||
<h2>Rechercher un jeu vidéo</h2>
|
||||
<form action="<?php echo site_url('home/search'); ?>" method="GET">
|
||||
<input type="text" name="keyword" placeholder="Ex: Zelda, Mario..." required style="padding: 8px; width: 250px;">
|
||||
<button type="submit" style="padding: 8px 15px;">Rechercher</button>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>Nos Catégories</h2>
|
||||
<ul>
|
||||
<?php foreach ($categories as $category): ?>
|
||||
<li>
|
||||
<a href="<?php echo site_url('category/view/' . $category['id']); ?>">
|
||||
<?php echo html_escape($category['name']); ?>
|
||||
</a>
|
||||
<a href="<?php echo site_url('category/view/' . $category['categoryId']); ?>">
|
||||
<?php echo html_escape($category['name']); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
@@ -27,12 +35,12 @@
|
||||
<ul>
|
||||
<?php foreach ($genres as $genre): ?>
|
||||
<li>
|
||||
<a href="<?php echo site_url('genre/view/' . $genre['id']); ?>">
|
||||
<a href="<?php echo site_url('genre/view/' . $genre['genreId']); ?>">
|
||||
<?php echo html_escape($genre['name']); ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user