-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgroup.php
More file actions
142 lines (110 loc) · 3.9 KB
/
Copy pathgroup.php
File metadata and controls
142 lines (110 loc) · 3.9 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?php
$page_title = 'User Management';
require_once('includes/load.php');
page_require_level(1);
$all_groups = find_all('user_groups');
?>
<?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-default">
<!-- Heading -->
<div class="panel-heading">
<div class="">
<img src="libs/logos/table-logo/user.png" alt="inventory-logo">
<span class="reportHeading">User Group</span>
</div>
<div class="">
</div>
</div>
<!-- Body -->
<div class="panel-body">
<table class="table table-bordered">
<thead>
<tr>
<th style="width: 5%;">#</th>
<th style="width: 30%;">Group Name</th>
<th style="width: 30%;">Group Level</th>
<th style="width: 20%;">Status</th>
<th style="width: 20%;">Actions</th>
</tr>
</thead>
<tbody>
<?php foreach($all_groups as $a_group): ?>
<tr>
<td ><?php echo count_id();?></td>
<td><?php echo remove_junk(ucwords($a_group['group_name']))?></td>
<td >
<?php echo remove_junk(ucwords($a_group['group_level']))?>
</td>
<td >
<?php if($a_group['group_status'] === '1'): ?>
<span class="active-indicator"><?php echo "Active"; ?></span>
<?php else: ?>
<span class="deactive-indicator"><?php echo "Deactive"; ?></span>
<?php endif;?>
</td>
<td class="text-center">
<div class="btn-group edit-dlt-btn-group">
<a href="edit_group.php?id=<?php echo (int)$a_group['id'];?>" class="editBtn" data-toggle="tooltip" title="Edit">
<p>Edit <img src="libs/logos/table-logo/edit.png" alt="edit-logo"></p>
</a>
<a href="delete_group.php?id=<?php echo (int)$a_group['id'];?>" class="categoryDeleteBtn" data-toggle="tooltip" title="Remove">
<img src="libs/logos/table-logo/delete.png" alt="delete-logo">
</a>
</div>
</td>
</tr>
<?php endforeach;?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- ADD POPUP -->
<div class="addNewgGroupPopUpWap display">
<div class="newgroupPopHeadWrap">
<div class="iconHeadGroup">
<img src="libs/logos/table-logo/inventory.png" alt="logo">
<div class="addPopGroupTitle">Add User Group</div>
</div>
<div class="addNewGroupContent">
<div class="addNewForm">
<form method="post" action="add_group.php">
<div class="inputGrup">
<label for="name" class="control-label">Group Name</label>
<input type="name" class="form-control" name="group-name">
</div>
<div class="inputGrup">
<label for="level" class="control-label">Group Level</label>
<input type="number" class="form-control" name="group-level">
</div>
<div class="inputGrup">
<label for="status">Status</label>
<select class="form-control" name="status">
<option value="1">Active</option>
<option value="0">Deactive</option>
</select>
</div>
<div class="buttonGroup">
<div>
<div class="cancelBtn">
<button type="button">Cancel</button>
</div>
<div class="submitbtn">
<button type="submit" name="add" class="btn btn-info">Update</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<?php include_once('layouts/footer.php'); ?>