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
/
user.php
68 lines (59 loc) · 1.93 KB
/
user.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
68
<?php
include 'view/header.php';
session_cek();
$users = tampil_users();
?>
<div class="row">
<!--sidenav-->
<?php
include 'view/sidenav.php';
?>
<!--main content-->
<div class="col s12 m8">
<h4 style="margin-bottom: 30px;">Hotspot Users</h4>
<div class="row" style="margin-bottom:50px;">
<a href="user_import.php" class="waves-effect waves-light btn">Import</a>
<!--<a class="waves-effect waves-light btn">Export</a>-->
</div>
<div class="row" id="data-table">
<div class="row" >
<table class="responsive-table highlight" id="table_id" width="100%" cellspacing="0" data-page-length='10'>
<thead>
<tr>
<th>No</th>
<th>Username</th>
<th>Password</th>
<th>Profile</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
<?php
$i = 1;
foreach($users as $user){
?>
<tr id="data_<?= $user['username']?>">
<td> <?= $i++; ?> </td>
<td> <?= $user['username'] ?> </td>
<td> <?= $user['value'] ?> </td>
<td> <?= tampil_group_by($user['username']) ?> </td>
<td> <a href="user_edit.php?id=<?= $user['id'] ?>" title="Edit"><i class="material-icons">mode_edit</i></a>
<a href="#" class="hapusUser" data-id="<?= $user['username']?>" data-postid="<?= $user['username']?>" 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="user_tambah.php">
<i class="material-icons">add_circle_outline</i>
</a>
</div>
</div>
</div>
<?php
include 'view/footer.php';
?>