-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
93 lines (77 loc) · 2.82 KB
/
index.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
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
<?php
include ("header.php");
include ("menu.php");
require ("functions.php");
if(isset($_GET["delete"])){
deleteUser(htmlentities(strip_tags(trim($_GET["delete"]))));
}
?>
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card">
<div class="card-header">
<h3 class="card-title">List User Hotspot</h3>
</div>
<!-- /.card-header -->
<div class="card-body">
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>username</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
<?php
$datas = showUser();
foreach ($datas as $data) :
?>
<tr>
<td><?= $data["username"] ;?></td>
<td class="project-actions text-right">
<a class="btn btn-primary btn-sm" href="view_user.php?id=<?= $data["id"]; ?>">
<i class="fas fa-folder">
</i>
View
</a>
<a class="btn btn-primary btn-sm" href="add_access.php?add=<?= $data["id"]; ?>">
<i class="fas fa-folder">
</i>
Add Access
</a>
<a class="btn btn-info btn-sm" href="reset.php?reset=<?= $data['id'];?>">
<i class="fas fa-pencil-alt">
</i>
Reset Password
</a>
<a class="btn btn-danger btn-sm" href="index.php?delete=<?= $data['id'];?>" onclick="return confirm('Are you sure want to delete ?')">
<i class="fas fa-trash">
</i>
Delete
</a>
</td>
</tr>
<?php endforeach; ?>
<tbody>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<!-- /.col -->
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<?php
include ("footer.php");
?>