39 lines
1.5 KiB
PHP
39 lines
1.5 KiB
PHP
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="fr">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<title><?php echo html_escape($game['title']); ?> - Détails</title>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
|
||
|
|
<p><a href="<?php echo site_url('home'); ?>">← Retour à l'accueil</a></p>
|
||
|
|
|
||
|
|
<main style="display: flex; gap: 40px; margin-top: 20px;">
|
||
|
|
|
||
|
|
<section style="max-width: 300px;">
|
||
|
|
<?php if (!empty($game['poster_url'])): ?>
|
||
|
|
<img src="<?php echo html_escape($game['poster_url']); ?>" alt="Jaquette de <?php echo html_escape($game['title']); ?>" style="width: 100%; height: auto; border-radius: 8px;">
|
||
|
|
<?php else: ?>
|
||
|
|
<div style="width: 200px; height: 300px; background: #ccc; display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 8px;">
|
||
|
|
<span>Aucune image<br>disponible</span>
|
||
|
|
</div>
|
||
|
|
<?php endif; ?>
|
||
|
|
</section>
|
||
|
|
|
||
|
|
<section>
|
||
|
|
<h1><?php echo html_escape($game['title']); ?></h1>
|
||
|
|
<ul>
|
||
|
|
<li><strong>Année de sortie :</strong> <?php echo html_escape($game['year']); ?></li>
|
||
|
|
<li><strong>Développeur :</strong>
|
||
|
|
<?php echo !empty($game['developer_name']) ? html_escape($game['developer_name']) : 'Inconnu'; ?>
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
|
||
|
|
<hr>
|
||
|
|
<p style="font-style: italic; color: #666;">Espace administration (Éditer / Supprimer)</p>
|
||
|
|
</section>
|
||
|
|
|
||
|
|
</main>
|
||
|
|
|
||
|
|
</body>
|
||
|
|
</html>
|