This commit is contained in:
2024-10-11 17:15:04 +02:00
parent a390944917
commit fdc4037786
11 changed files with 163 additions and 138 deletions

View File

@@ -21,29 +21,9 @@ if (isset($_GET['id']) && !empty($_GET['id'])) {
header('Location: index.php');
}
require_once('close.php');
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Détails de l'utilisateur</title>
<link rel="stylesheet" href="style/style.css" />
</head>
<body>
<div>
<h1>Détails pour lutilisateur <?= $user['login'] ?></h1>
<p>ID : <?= $user['id'] ?></p>
<p>Login : <?= $user['login'] ?></p>
<p>FirstName : <?= $user['firstname'] ?></p>
<p>LastName : <?= $user['lastname'] ?></p>
<p>Role : <?= $user['role'] ?></p>
<p>
<button onclick="window.location.href='edit.php?id=<?= $user['id'] ?>'">Modifier</button>
<button onclick="window.location.href='delete.php?id=<?= $user['id'] ?>'">Supprimer</button>
</p>
</div>
</body>
$vue = "details.twig";
$donnees = array("user" => $user);
</html>
require_once('modele/twig.php');