This repository has been archived by the owner on Jun 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
profile.php
67 lines (58 loc) · 1.9 KB
/
profile.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
include 'view/header.php';
session_cek();
$groups = tampil_group();
?>
<div class="row">
<!--sidenav-->
<?php
include 'view/sidenav.php';
?>
<!--main content-->
<div class="col s12 m8">
<h4 style="margin-bottom: 30px;">Hotspot Users Profile</h4>
<div class="row" id="data-table">
<div class="row" >
<table class="responsive-table striped" id="table_id" width="100%" cellspacing="0" data-page-length='5'>
<thead>
<tr>
<th>No</th>
<th>Nama Profile</th>
<th>Attribut</th>
<th>Hapus</th>
</tr>
</thead>
<tbody>
<?php
$i = 1;
foreach($groups as $group){
?>
<tr id="data_<?= $group['groupname']?>">
<td><?= $i++ ?></td>
<td> <?= $group['groupname'] ?> </td>
<td> <?php
$groupattrs = tampil_group_attribute($group['groupname']);
foreach($groupattrs as $atts){
echo atts_convert($atts['attribute'],$atts['value']).'<br>';
}
?> </td>
<td> <a href="profile_edit.php?name=<?= $group['groupname'] ?>" title="Edit"><i class="material-icons">mode_edit</i></a>
<a href="#" class="hapusGroup" data-id="<?= $group['groupname']?>" data-postid="<?= $group['groupname']?>" title="Hapus"><i class="material-icons">clear</i></a>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
<div class="fixed-action-btn" style="bottom: 25px; right: 24px;">
<a class="btn-floating btn-large red" href="profile_tambah.php">
<i class="material-icons">add_circle_outline</i>
</a>
</div>
</div>
</div>
<?php
include 'view/footer.php';
?>