<form method="POST" action="?route=kernel_utilisateur_liste"> <?php $class = 'table table-bordered table-hover datatable'; $id = 'example2'; $tablHead = ['Login', 'Mot de passe', 'Secteur', 'Entreprise', 'Modification', 'Annuler']; $tablNomColonne = ['login', 'password', 'label', 'libelle']; $tablButton = ['<button type="submit" name="modifier" class="btn btn-app"><i class="fa fa-check"></i> Modifier </button>']; $requeteTable = 'SELECT login, password, utilisateurtype.label, organisation.libelle FROM utilisateur, utilisateurtype, organisation WHERE utilisateur.utilisateurtype_id=utilisateurtype.id AND utilisateur.entreprise_id=organisation.id'; $tabl = Connexion::table($requeteTable); $tableau = new Table($tabl, $tablHead, $id, $class, $tablNomColonne); if (isset($_POST['login'])) { $tableau->tableModif(); $tableau->affichTable(); } else { $tableau->creaTableModif(); $tableau->affichTable(); } ?> </form> <table id="example2" class="table table-bordered table-hover datatable"> <thead> <tr> <th>Login</th> <th>Mot de passe</th> <th>Secteur</th> <th>Entreprise</th> <th>Modification</th> <th>Supression</th>