session_start(); require 'src/classAlbum.php'; require 'include/header.php'; ?> <div class="container"> <div id="margin_bottom"> <div class="row"> <div class="col-lg-12"> <h1 class="page-header">Liste des enregistrements <small><?php $codeMusicien = $_GET["code"]; $con = new classAlbum("ETD", "ETD"); $con->album($codeMusicien); ?> </small> </h1> </div> </div> <div id="margin_bottom"> <?php $codeAlbum = $_GET["code"]; $con = new classAlbum("ETD", "ETD"); $con->listeEnregistrement($codeAlbum); ?> </div> </div> </div> <?php require 'include/footer.php';
<div class="row"> <div class="col-lg-12"> <h2 class="center">Veuillez entrer une année de recherche</h2> </div> </div> <form class="form-signin" method="post" action="albumAnnee.php" > <label class="sr-only">Année naissance</label> <input name="anneeRecherche" type="text" id="inputAnneeRecherche" class="form-control" placeholder="Année recherche" required autofocus> <button class="btn btn-lg btn-primary btn-block" type="submit">Envoyer</button> </form> <div id="margin_bottom"></div> <?php if (isset($_POST['anneeRecherche'])) { $con = new classAlbum("ETD", "ETD"); $anneeRecherche = $_POST['anneeRecherche']; $con->listeAlbumAnnee($anneeRecherche); } ?> </div> </div> <?php require 'include/footer.php';
<option>Salsa</option> <option>Afrique</option> <option>Rai</option> <option>Rap</option> <option>Hip-Hop</option> <option>Musique Sacrée</option> <option>Soundtrack</option> <option>Otario</option> <option>Comedy</option> <option>Musique ancienne</option> <option>Inconnu</option> </select> <button class="btn btn-lg btn-primary btn-block" type="submit">Séléctionner</button> </form> <div id="margin_bottom"></div> <?php if (isset($_POST['genre'])) { $con = new classAlbum("ETD", "ETD"); $genre = $_POST['genre']; $con->listeAlbumGenre($genre); } ?> </div> </div> <?php require 'include/footer.php';
<?php session_start(); if (!isset($_SESSION["NOM_USER"])) { header("Location: connexion.php"); } require 'src/classAlbum.php'; $con = new classAlbum("ETD", "ETD"); //Gestion du panier $panier = $_SESSION["PANIER"]; if (isset($_POST["Code_Album"])) { //Recherche $trouve = false; $i = 0; while (!$trouve && $i < count($panier)) { if ($_POST["Code_Album"] == $panier[$i][0]) { if ($panier[$i][1] > 1) { $panier[$i][1]--; } else { unset($panier[$i]); //On supprime l'article $panier = array_values($panier); //On ré-index le panier } $trouve = true; } $i++; } $_SESSION["PANIER"] = $panier; } //
<?php } ?> <div class="row"> <div class="col-lg-12"> <h1 class="page-header">Liste des albums de <small><?php $codeMusicien = $_GET["code"]; $con = new classMusicien("ETD", "ETD"); $con->musicien($codeMusicien); ?> </small> </h1> </div> </div> <div id="margin_bottom"> <?php $codeMusicien = $_GET["code"]; $type = $_GET["type"]; $con = new classAlbum("ETD", "ETD"); $con->listeAlbum($codeMusicien, $type); $pdo = null; ?> </div> </div> </div> </div> </div> <?php require 'include/footer.php';