-
Notifications
You must be signed in to change notification settings - Fork 0
/
role.php
50 lines (40 loc) · 1.2 KB
/
role.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
<?php include('header.php'); ?>
<?php include('left_sidebar.php'); ?>
<div class="container-fluid">
<div class="row">
<h1 class="text-center">Role</h1>
<div class="">
<a class="btn btn-primary" href="add_role.php">Add Role</a>
<table id="example" class="display" style="width:100%">
<thead>
<tr>
<th>Name</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php
$allRoles = $core->allRole();
foreach ($allRoles as $role) {
?>
<tr>
<td><?= $role->name ;?></td>
<td>
<a class="btn btn-danger" onclick="return confirm('Are you sure you want to delete this user?');" href="?delRoleid=<?= $role->id ;?>"><span class="glyphicon glyphicon-remove"></span></a>
</td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<th>Name</th>
<th>Action</th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
<?php include('footer.php'); ?>