echo "<img src='" . $jeu->photo . "'>"; } else { echo "<img src='public/img/default.png'>"; } echo '<div class="caption">'; echo '<h4><a href="?r=jeu/displayById&jeu_id=' . $jeu->jeu_id . '">' . $jeu->jeu_nom . '</a>'; echo '</h4>'; echo '<p>Editeur : ' . $jeu->T_R_EDITEUR_EDI->edi_nom . '<br/>Console : ' . $jeu->T_R_CONSOLE_CON->con_nom . '</p>'; echo '</div>'; echo '<div class="ratings">'; ?> <button type="button" value="<?php echo $jeu->jeu_id; ?> " class="btn btn-default addtofav"><?php if (T_E_CLIENT_CLI::isFav($jeu->jeu_id) == true) { echo "<span class='glyphicon glyphicon-star starfav'></span>"; } else { echo "<span class='glyphicon glyphicon-star'></span>"; } ?> </button><?php echo '<button type="button" value="' . $jeu->jeu_id . '" class="btn btn-primary btn-sm addtocart">Ajouter au panier</button>'; echo "<p class='pull-right'><a href='?r=avi/findByGame&id_game=" . $jeu->jeu_id . "'> Avis </a><</p>"; echo '<p><h4>' . $jeu->jeu_prixttc . '€</h4><p>'; echo '</div>'; echo '</div>'; echo '</div>'; } ?> </div>
<?php $client = new T_E_CLIENT_CLI($_SESSION['user']->cli_id); $client->displayModifyInfo();
public function viewOne() { if (isset($_GET["id_cli"])) { $id_cli = $_GET["id_cli"]; $c = new T_E_CLIENT_CLIController(); $c->render("displayById", T_E_CLIENT_CLI::findById($id_cli)); } }
<h2>Chercher un jeu par plateforme</h2> <?php T_E_CLIENT_CLI::displayCartModal(); ?> <link href="public/css/shop-homepage.css" rel="stylesheet"> <table class="table table-condensed"> <form method="post" class="form-inline" action="?r=jeu/findBySelection"> <div class="form-group col-xs-2"> <SELECT class="form-control" name="id_console" > <?php foreach (T_R_CONSOLE_CON::findAll() as $console) { if (isset($_POST["id_console"])) { if ($_POST["id_console"] == $console->con_id) { echo "<option value=" . $console->con_id . " selected>" . $console->con_nom . "</option>"; } else { echo "<option value=" . $console->con_id . ">" . $console->con_nom . "</option>"; } } else { echo "<option value=" . $console->con_id . ">" . $console->con_nom . "</option>"; } } ?> </SELECT> </div> <div class="form-group col-xs-3"> <input type="submit" name ="action" value="Chercher" class="btn btn-primary"> </div> </form>
echo $game->jeu_description; } else { echo "<h5>Pas de description pour ce jeu</h5>"; } ?> </p> <button type="button" value="<?php echo $game->jeu_id; ?> " class="btn btn-primary addtocart pull-right">Ajouter au panier</button> <button type="button" value="<?php echo $game->jeu_id; ?> " class="btn btn-default addtofav"><?php if (T_E_CLIENT_CLI::isFav($game->jeu_id) == true) { echo "<span class='glyphicon glyphicon-star starfav'></span> Favori"; } else { echo "<span class='glyphicon glyphicon-star'></span> Ajouter aux favoris"; } ?> </button> </div> </div> </div> <?php if (!empty($movie)) { ?> <hr> <div class="row"> <div class="col-md-6 col-md-offset-3">