function displayGridAllMovies() { ?> <!-- div contenant la liste des films--> <div id="films" class="panel panel-default"> <!-- Table --> <table class="table"> <thead> <tr> <th>Titre</th> <th>Réalisateur</th> <th>Année de sortie</th> <th>Actions</th> </tr> </thead> <?php foreach (Movies::getMovies() as $m) { ?> <tr> <td><a href=".?page=movie&id=<?php echo $m->id; ?> "><?php echo escape($m->title); ?> </a></td> <td> <?php echo escape($m->director); ?> </td> <td> <?php echo $m->year; ?> </td> <td> <a class="btn btn-info btn-xs" href=".?page=edit&id=<?php echo escape($m->id); ?> " title="Editer" role="button"><span class="glyphicon glyphicon-edit"></span></a> <a class="btn btn-danger btn-xs" href=".?page=delete&id=<?php echo escape($m->id); ?> " title="Supprimer" role="button"><span class="glyphicon glyphicon-remove"></span></a> </tr> <?php } ?> </table> </div> <?php }