forked from siamon123/warehouse-inventory-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
users.php
45 lines (45 loc) · 1.39 KB
/
users.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
<?php
require_once('includes/load.php');
if (!$session->isUserLoggedIn(true)) { redirect('index.php', false);}
$all_users = all_users();
?>
<?php include_once('layouts/header.php'); ?>
<div class="row">
<div class="col-md-12">
<?php echo display_msg($msg); ?>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="panel panel-info">
<div class="panel-body">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Name </th>
<th>Username</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<?php foreach($all_users as $a_user): ?>
<tr>
<td><?php echo remove_junk(ucwords($a_user['name']))?></td>
<td><?php echo remove_junk(ucwords($a_user['username']))?></td>
<td>
<a href="edit_user.php?id=<?php echo (int)$a_user['id'];?>" class="btn btn-warning btn-xs" title="Edit">
<span class="glyphicon glyphicon-edit"></span>
</a>
<a href="delete_user.php?id=<?php echo (int)$a_user['id'];?>" class="btn btn-danger btn-xs" title="Edit">
<span class="glyphicon glyphicon-trash"></span>
</a>
</td>
</tr>
<?php endforeach;?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?php include_once('layouts/footer.php'); ?>