Repository navigation
Expand file tree
/
Copy pathinscrits.php
More file actions
88 lines (70 loc) · 2.52 KB
/
Copy pathinscrits.php
File metadata and controls
88 lines (70 loc) · 2.52 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
//$status = session_status();
//if ( ($status == PHP_SESSION_NONE) ||(isset($_SESSION['id_profils']) && $_SESSION['id_profils'] != 1))
//header("Location:/chrono/");
//print '<pre>';
//print_r($status); die;
require_once 'header.php';
use classes\models as dao;
require_once 'classes/cls.userManager.php';
$userManager = new dao\UserManager();
$aUsers = $userManager->getAllUsers();
?>
<div class="container" style="padding-top :30px;">
<div class="row">
<div class="">
<div class="panel panel-info">
<div class="panel-heading">Liste des inscrits</div>
<div class="panel-body panel-collapse collapse in table-responsive">
<table id="liste_users" class="table table-striped" width="100%" cellspacing="0">
<thead>
<tr>
<th> Nom</th>
<th> Prenom</th>
<th> Mail</th>
<th> Telephone</th>
<th> Pays</th>
<th> Ville</th>
<th> Date</th>
<th> Etat</th>
<th> Profil</th>
<th> Actions</th>
</tr>
</thead>
<tbody>
<?php
foreach ((array)$aUsers as $id => $user) :
$lignes ='<tr id="'.$id.'">';
$lignes .='<td>'.$user['nom'].'</td>';
$lignes .='<td>'.$user['prenom'].'</td>';
$lignes .='<td>'.$user['mail'].'</td>';
$lignes .='<td>'.$user['telephone'].'</td>';
$lignes .='<td>'.$user['pays'].'</td>';
$lignes .='<td>'.$user['ville'].'</td>';
$lignes .='<td>'.$user['date_inscription'].'</td>';
$lignes .='<td>'.$user['etat'].'</td>';
$lignes .='<td>'.$user['profil'].'</td>';
$lignes .='<td><a href="#">Modifier</a> <a href="#">supprimer</a></td>';
$lignes .='</tr>';
echo $lignes;
endforeach; ?>
</tbody>
</table>
</div>
</div> <!-- div class col -->
</div>
</div>
<script type="text/javascript">
$("#liste_users").DataTable({
"language": {
"lengthMenu": "Afficher _MENU_ lignes par page",
"zeroRecords": "Aucune ligne à afficher - Désolé",
"info": "Affichage page _PAGE_ sur _PAGES_",
"infoEmpty": "No records available",
"infoFiltered": "(filtered from _MAX_ total records)"
},
});
</script>
<?php
require_once 'footer.php';
?>