twig
This commit is contained in:
@@ -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 l’utilisateur <?= $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');
|
||||
|
||||
Reference in New Issue
Block a user