$unModele->renseigner("candidat", "numclient");
        $unCandidat = new Candidat();
        $unCandidat->renseigner($_POST);
        $tab = $unCandidat->serialiser();
        $unModele->insert($tab);
        $notif = "Nouveau client ajouté.";
    } else {
        $notif = "Client déjà enregistré";
    }
}
$resultats = $unModele->selectAll();
$Chaine = "<table class='table table-striped'>\n\t\t\t\t\t\t<tr><td> Numero Client</td><td>Nom Client</td><td> Prenom Client</td><td>Adresse Client</td>\n\t\t\t\t\t\t<td>Date de naissance</td><td>Telephone Client</td><td>Mail Client</td><td>Date d'inscription</td>\n\t\t\t\t\t\t<td>Mode de facturation</td><td>Catégorie</td><td>Actions</td></tr>";
foreach ($resultats as $unresultat) {
    $unCandidat = new Candidat();
    $unCandidat->renseigner($unresultat);
    $Chaine .= "<tr>" . $unCandidat->afficher();
    $Chaine .= "<td>" . "<a href='Controleur_gestion_candidat.php?action=1&id=" . $unCandidat->getNumClient() . "'><img src='../Images/poubelle.jpg' weight=20 height=20/></a>" . "<a href='Controleur_gestion_candidat.php?action=2&id=" . $unCandidat->getNumClient() . "'><img src='../Images/voir.jpg' weight=20 height=20/></a>" . "<a href='Controleur_gestion_candidat.php?action=3&id=" . $unCandidat->getNumClient() . "'><img src='../Images/crayon.jpg' weight=20 height=20/></a>" . "</td></tr>";
}
$Chaine .= "</table>";
$modif = "";
$chaine = "";
if (isset($_GET['action'])) {
    $action = $_GET['action'];
    $id = $_GET['id'];
    switch ($action) {
        case 1:
            $unModele->delete($id);
            header('Location: Controleur_gestion_candidat.php');
            break;
        case 2:
            $uneResultat = $unModele->selectwhere($id);