2019-11-10 15:55:06 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once("./assets/php/utils.php");
|
|
|
|
|
|
|
|
if (!is_connected()) {
|
|
|
|
header("location: login.php");
|
|
|
|
}
|
|
|
|
|
|
|
|
$cupboard_list = "";
|
|
|
|
foreach (get_users_cupboards_array() as $row) {
|
2019-11-11 14:42:07 +01:00
|
|
|
$cupboard_list = $cupboard_list . "<tr><td>"
|
|
|
|
. htmlspecialchars($row["name"])
|
|
|
|
. "</td><td>"
|
|
|
|
. htmlspecialchars($row["description"])
|
|
|
|
. "</td></tr>\n";
|
2019-11-10 15:55:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2019-11-11 14:42:07 +01:00
|
|
|
|
2019-11-10 15:55:06 +01:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
2019-11-11 14:42:07 +01:00
|
|
|
<style type="text/css">
|
|
|
|
table,
|
|
|
|
th,
|
|
|
|
td {
|
|
|
|
border: 1px solid #333;
|
|
|
|
}
|
|
|
|
</style>
|
2019-11-10 15:55:06 +01:00
|
|
|
<title>List cupboard</title>
|
|
|
|
</head>
|
2019-11-11 14:42:07 +01:00
|
|
|
|
2019-11-10 15:55:06 +01:00
|
|
|
<body>
|
2019-11-11 14:42:07 +01:00
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Nom
|
|
|
|
</th>
|
|
|
|
<th>
|
|
|
|
Description
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php echo $cupboard_list; ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2019-11-10 15:55:06 +01:00
|
|
|
</body>
|
2019-11-11 14:42:07 +01:00
|
|
|
|
|
|
|
</html>
|