" method="post"> <div class="form-group"> <label class="control-label col-sm-3" for="titre">Titre:</label> <div class="col-sm-7"> <input type="text" class="form-control" name="titre" placeholder="Titre du film..." required value="<?php echo $film['title']; ?> " /> </div> </div> <div class="form-group"> <label class="control-label col-sm-3" for="categorie">Catégorie:</label> <div class="col-sm-7"> <select class="form-control" name="categorie" required> <?php $categories = Categorie::getListeCategorie(); foreach ($categories as $cat) { if ($film['categorie'] == $cat['nom']) { echo "<option selected value='" . $cat['nom'] . "'>" . $cat['nom'] . "</option>"; } else { echo "<option value='" . $cat['nom'] . "'>" . $cat['nom'] . "</option>"; } } ?> </select> </div> </div> <div class="form-group"> <label class="control-label col-sm-3" for="realisateurs">Réalisateur(s):</label> <div class="col-sm-7"> <input type="text" class="form-control" name="realisateurs" placeholder="Réalisateur(s) du film..." required value="<?php
<?php $path = ""; require $path . "includes/session.php"; require $path . "Modele/Film.class.php"; require $path . "Modele/Categorie.class.php"; ?> <html> <?php require $path . "includes/header.php"; ?> <body> <?php require $path . "includes/navbar.php"; $listeCategorie = Categorie::getListeCategorie(); ?> <div class="container"> <div class="jumbotron"> <div class="filtre"> <a class="btn btn-primary" href="index.php">FILTRE</a> <?php foreach ($listeCategorie as $categorie) { if (isset($_GET['filtres'])) { if ($_GET['filtres'] == $categorie['nom']) { ?> <input type="radio" checked onclick="<?php echo "window.location.href='index.php?filtres=" . $categorie['nom'] . "'"; ?> ">