-
Notifications
You must be signed in to change notification settings - Fork 0
/
historique.php
41 lines (36 loc) · 1.1 KB
/
historique.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
<?php
include_once 'autoload.php';
$historiqueRepository = new HistoriqueRepository();
$historiques = $historiqueRepository->findAll();
$pageTitle = 'Historique';
include_once 'fragments/header.php';
if(!isset($_SESSION['user'])) header('location:login.php');
?>
<form class="container" >
<table class="table">
<tr>
<th scope="col">Email</th>
<th scope="col">Date</th>
<th scope="col">Operation</th>
<th scope="col">CIN</th>
<th scope="col">Details</th>
</tr>
<?php
foreach($historiques as $historique){
?>
<tr class="table-active">
<form method="post" action="modifierOnClick.php">
<td ><?= $historique->email ?></td>
<td><?= $historique->date ?></td>
<td><?= $historique->operation ?></td>
<td><?= $historique->cin ?>
<td><?= $historique->details ?></td>
</form>
<?php
}
?>
</tr>
</table>
</form>
</body>
</html>