-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·68 lines (56 loc) · 2.24 KB
/
index.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<html>
<head>
<meta charset="UTF-8" />
<meta name="author" content="Kévin Le Torc'h & Gwenolé Leroy-Ferrec" />
<title> NAZCA Project C&C SSOS 2018</title>
<link rel="stylesheet" type="text/css" media="screen" href="css/index.css" />
<link rel="stylesheet" href="css/generic-theme.css">
<script src="js/listprofils.js"></script>
</head>
<body id="#page-list">
<!-- Inclusion Header -->
<?php
include("res/header.html");
?>
<!-- Contenu de la page -->
<div class="main-content">
<h2>Accueil > Liste des enregistrements</h2>
<table class="flat-table" id="plist" >
<thead>
<td>#</td>
<td>Enregistrement <a class="button" id="btn-add" href="add.php">Nouveau profil</a></td>
</thead>
<?php
require_once('php/bdd.php');
$db = new BDDIO;
$params = $db->RequestAllParams();
foreach ($params as $param) {
echo '<tr id="'.$param->getId().'">';
echo '<td class="id">' . $param->getId() . '</td>';
echo '<td class="param-item">';
echo '<span>' . $param->getLibelle() . '</span>';
echo '<div>';
echo '<button class="edit-button" id="'.$param->getId().'">🖉</button>';
echo '<button class="delete-button" id="'.$param->getId().'">×</button>';
echo '</div>';
echo '</td>';
echo '</tr>';
}
//Faire des trucs
?>
</table>
</div>
<div class="window screen-centered hidden" id="confirm-delete">
<h3>Supprimer le profil</h3>
<p>Voulez-vous vraiement supprimer ce profil ?</p>
<div class="hbox">
<button id="delete-yes">Oui</button>
<button id="delete-no">Non</button>
</div>
</div>
<!-- Inclusion Footer -->
<?php
include("res/footer.html");
?>
</body>
</html>