better styling so it's clearer
This commit is contained in:
parent
8f2965c051
commit
52e3f7cc66
@ -8,21 +8,48 @@ if (!is_connected()) {
|
|||||||
|
|
||||||
$cupboard_list = "";
|
$cupboard_list = "";
|
||||||
foreach (get_users_cupboards_array() as $row) {
|
foreach (get_users_cupboards_array() as $row) {
|
||||||
$cupboard_list = $cupboard_list . "<p>"
|
$cupboard_list = $cupboard_list . "<tr><td>"
|
||||||
. htmlspecialchars($row["name"]) . "</p>\n";
|
. htmlspecialchars($row["name"])
|
||||||
|
. "</td><td>"
|
||||||
|
. htmlspecialchars($row["description"])
|
||||||
|
. "</td></tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
|
<style type="text/css">
|
||||||
|
table,
|
||||||
|
th,
|
||||||
|
td {
|
||||||
|
border: 1px solid #333;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<title>List cupboard</title>
|
<title>List cupboard</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
Nom
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
Description
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
<?php echo $cupboard_list; ?>
|
<?php echo $cupboard_list; ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user