</ul> <div class="tab-content"> <div id="film" class="tab-pane fade in active"> <table class="table table-hover"> <thead> <tr> <th>Titre</th> <th>Réalisateur</th> <th>Année de sortie</th> <th>Actions</th> </tr> </thead> <tbody> <?php $listeMovies = $movies->listeFilm(); foreach ($listeMovies as $movie) { echo "<tr>"; echo "<td id='f" . $movie['idMovie'] . "'>" . $movie['titre'] . "</td>"; echo "<td id='a" . $movie['idMovie'] . "'>" . $movie['auteur'] . "</td>"; echo "<td id='y" . $movie['idMovie'] . "'>" . $movie['annee'] . "</td>"; echo "<input id='ds" . $movie['idMovie'] . "' type='hidden' value=\"" . $movie['descShort'] . "\"/>"; echo "<input id='dl" . $movie['idMovie'] . "' type='hidden' value=\"" . $movie['descLong'] . "\"'/>"; echo "<input id='c" . $movie['idMovie'] . "' type='hidden' value=\"" . $movie['idCategorie'] . "\"'/>"; echo "<td>\n <div class='btn-toolbar' role='toolbar'>\n <div class='btn-group' role='group'> \n <button type='button' class='btn btn-default blue' onclick=changeModalEdit(" . $movie['idMovie'] . ") data-toggle='modal' data-target='#editModal'>\n <span class='glyphicon glyphicon-edit' aria-hidden='true'></span>\n </button>\n </div> \n <div class='btn-group' role='group'> \n <button type='button' class='btn btn-default red' onclick=changeModalSuppr(" . $movie['idMovie'] . ") data-toggle='modal' data-target='#supprimerModal'>\n <span class='glyphicon glyphicon-remove' aria-hidden='true'></span>\n </button>\n </div> \n </div>\n </td>"; echo "</tr>"; } ?> </tbody> </table> </div>