-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata_admin.php
More file actions
84 lines (78 loc) · 3.22 KB
/
data_admin.php
File metadata and controls
84 lines (78 loc) · 3.22 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
<?php
include 'functions.php';
session_start();
if(!isset($_SESSION["admin"])){
header("Location:login.php");
exit;
}
$pustakawan = query("SELECT * FROM pustakawan");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Librarow</title>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="css/admin_page.css">
</head>
<body style="background-color: #D0D0D0;">
<!-- Navbar -->
<nav class="navbar sticky-top navbar-expand-sm navbar-dark" style="background-color: #D0EFFF;">
<div class="container-fluid">
<a class="navbar-brand" href="login.php">LIBRAROW</a>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link" href="admin_page.php">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="user_logout.php" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Logout" data-bs-animation="true">Logout</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container mt-5">
<div class="row">
<div class="col">
<div class="card">
<div class="card-header">
Data Admin
</div>
<div class="card-body">
<table class="table table-bordered table-striped">
<thead class="table-primary">
<tr>
<th scope="col">No</th>
<th scope="col">Foto</th>
<th scope="col">Nama</th>
<th scope="col">Username</th>
<th scope="col">Email</th>
<th scope="col">Password</th>
</tr>
</thead>
<tbody>
<?php $i = 1; ?>
<?php foreach ($pustakawan as $lib) : ?>
<tr>
<th scope="row"><?= $i; ?></th>
<td><?= $lib["foto"] ?></td>
<td><?= $lib["nama"] ?></td>
<td><?= $lib["username"] ?></td>
<td><?= $lib["email"] ?></td>
<td><?= $lib["password"] ?></td>
</tr>
<?php $i++; ?>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<script src="bootstrap/js/bootstrap.bundle.min.js"></script>
</body>
</html>