-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
63 lines (60 loc) · 2.57 KB
/
index.php
File metadata and controls
63 lines (60 loc) · 2.57 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
<?php
include "inc/header.php";
include "lib/User.php";
Session::checkSession();
$user = new User();
?>
<?php
$loginmsg = Session::get("loginmsg");
if (isset($loginmsg)) {
echo $loginmsg;
}
Session::set("loginmsg", NULL);
?>
<div class="row">
<div class="col-md-12">
<div class="panel-wrap">
<div class="pane-heading">
<h4>User List <span class="float-right"><strong>Wellcome ! </strong>
<?php
$username = Session::get("username");
if (isset($username)) {
echo $username;
}
?>
</span></h4>
</div>
<div class="panel-body">
<table style="border-collapse:collapse; width:100%">
<tr>
<th style="width:20%">Serial</th>
<th style="width:20%">Name</th>
<th style="width:20%">Username</th>
<th style="width:20%">Email Address</th>
<th style="width:20%">Action</th>
</tr>
<?php
$userData = $user->userData();
if ($userData) {
$i = 0;
foreach($userData as $sData){
$i++;
?>
<tr>
<td><?php echo $i; ?></td>
<td><?php echo $sData['name']; ?></td>
<td><?php echo $sData['username']; ?></td>
<td><?php echo $sData['email']; ?></td>
<td><a class="btn btn-primary" href="profile.php?id=<?php echo $sData['id']; ?>">View</a></td>
</tr>
<?php } } else {?>
<tr>
<td colspan="5"><h2>Sorry ! Not user Data found...</h2></td>
</tr>
<?php } ?>
</table>
</div>
</div>
</div>
</div>
<?php include "inc/footer.php" ?>