From a4ec6501e9209171569289de8e9b351fe9ad7336 Mon Sep 17 00:00:00 2001 From: vbochet <vbochet@gmail.com> Date: Wed, 27 Apr 2016 16:37:34 +0200 Subject: [PATCH] =?UTF-8?q?Modification=20de=20la=20vue=20du=20d=C3=A9tail?= =?UTF-8?q?=20d'un=20jeu=20pour=20prendre=20en=20compte=20le=20design?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/view/Jeu/display.html | 42 ++++++++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/app/view/Jeu/display.html b/app/view/Jeu/display.html index ca6867c..0d57d2e 100644 --- a/app/view/Jeu/display.html +++ b/app/view/Jeu/display.html @@ -1,18 +1,28 @@ -<!DOCTYPE html> -<html> -<head> - <meta charset="utf-8"/> - <title>Fiche d'un jeu</title> -</head> -<body> - <header> - <h1>Fiche du jeu <?php echo $this->jeu->nom; ?></h1> - </header> - <p><em>Description : </em><?php echo $this->jeu->description; ?></p> - <footer> - <p>Pied de page...</p> - </footer> -</body> +<?php $page_title = "Fiche du jeu ".$this->jeu->nom; + $RACINE = "../.."; ?> +<?php include(ROOT."/app/view/Includes/header.include.html"); ?> + <article> + <h2><?php echo $this->jeu->nom; ?></h2> + <aside class="jeu-image"><img src="<?php echo $RACINE; ?>/app/view/Includes/images/Cosmic_Encounter_(FFG).jpg" alt="Logo du jeu <?php echo $this->jeu->nom; ?>" /> + </aside> + <div class="row"> + <p class="col-7"> + <?php echo $this->jeu->description; ?> + </p> + </div> + </article> -</html> + <div class="classement-card"> + <table class="classement-table"> + <tr><th>N°</th><th colspan="2">Joueur</th><th>Score</th></tr> + <tr><td>1</td><td><a href="profil.html"><img src="<?php echo $RACINE; ?>/app/view/Includes/images/dummy_web_page.jpg" alt="Image de profil de <nom>" class="classement-profil-img"></a></td><td><a href="profil.html">Gaston</a></td><td>3000000</td></tr> + <tr><td>2</td><td><a href="profil.html"><img src="<?php echo $RACINE; ?>/app/view/Includes/images/profil_42.jpg" alt="Image de profil de <nom>" class="classement-profil-img"></a></td><td><a href="profil.html">Laurent</a></td><td>150000</td></tr> + <tr><td>3</td><td><a href="profil.html"><img src="<?php echo $RACINE; ?>/app/view/Includes/images/dummy_web_page.jpg" alt="Image de profil de <nom>" class="classement-profil-img"></a></td><td><a href="profil.html">Jerémy</a></td><td>15200</td></tr> + <tr><td>4</td><td><a href="profil.html"><img src="<?php echo $RACINE; ?>/app/view/Includes/images/profil_42.jpg" alt="Image de profil de <nom>" class="classement-profil-img"></a></td><td><a href="profil.html">Lucas</a></td><td>500</td></tr> + <tr><td>5</td><td><a href="profil.html"><img src="<?php echo $RACINE; ?>/app/view/Includes/images/dummy_web_page.jpg" alt="Image de profil de <nom>" class="classement-profil-img"></a></td><td><a href="profil.html">Christophe</a></td><td>-400</td></tr> + + </table> + </div> + +<?php include(ROOT."/app/view/Includes/footer.include.html"); ?> -- GitLab