/
users.php
35 lines (33 loc) · 965 Bytes
/
users.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
//Insersion des fichiers ".php"
require_once 'mysql.inc.php';
require_once 'DbFunctions.php';
require_once 'DisplayFunctions.php';
$tabUser = GetUsers();
$tableHTMLUsers = AssocToHtml($tabUser);
?>
<!DOCTYPE html>
<html>
<head>
<title>Accueil</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<?php require_once 'header.php'; ?>
<body>
<div id="corpsForm">
<div id="insideCorpsForm">
<?php
if (isset($_GET['id'])) {
$tableHTMLUser = TableUsersToHtmlUser($_GET['id'], $tabUser);
echo $tableHTMLUser;
} else {
echo $tableHTMLUsers;
}
?>
</div>
<a href="index.php">Accueil</a>
</div>
</body>
</html>