-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
314 lines (239 loc) · 15.5 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
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
<?php
session_start();
include('function.php');
if (!isset($_SESSION['login'])) {
header("Location: login.php");
exit;
}
$query = "SELECT *FROM barang";
$result = mysqli_query($conn,$query);
?>
<!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, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>SISTEM INFORMASI LOGISTIK DINAS KESEHATAN</title>
<link rel="icon" href="img/dinkes.png">
<!-- My CSS -->
<link href="css/index.css" rel="stylesheet" />
<!-- data table -->
<link rel="stylesheet" type="text/css" href="js/DataTables-1.10.23/css/dataTables.bootstrap4.min.css"/>
<!-- font awesome -->
<script src="fontawesome-free-5.15.2-web/js/all.min.js" crossorigin="anonymous"></script>
</head>
<body class="sb-nav-fixed" style="font-family: roboto ;">
<nav class="sb-topnav navbar navbar-expand navbar-dark bg-dark" >
<a class="navbar-brand" href="index.php">Dinkes Sumbar</a>
<button class="btn btn-link btn-lg order-1 order-lg-0" id="sidebarToggle" href="#"><i class="fas fa-bars"></i></button>
<!-- awal dropdown -->
<!-- <ul class="navbar-nav ml-auto ml-md-0">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" id="userDropdown" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fas fa-bell "></i></a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="userDropdown">
<a class="dropdown-item" href="kelolaakun.php">Haloo</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="logout.php">Logout</a>
</div>
</li>
</ul> -->
<!-- akhir dropdown -->
<!-- Navbar Search-->
<div class="d-none d-md-inline-block form-inline ml-auto mr-0 mr-md-3 my-2 my-md-0">
<!-- <div class="input-group">
<input class="form-control" name="cari" type="text" placeholder="Cari barang.." aria-label="Search" aria-describedby="basic-addon2" autocomplete="off" />
<div class="input-group-append">
<button class="btn btn-primary" type="submit" name="menucari"><i class="fas fa-search"></i></button>
</div>
</div> -->
</div>
<!-- Navbar-->
<!-- Alarm -->
<ul class="navbar-nav ml-auto ml-md-0">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle " id="userDropdown" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" >
<i class="fas fa-bell fa-fw "></i>
<span>
<span class="badge badge-pill badge-danger" style=" color: white;"><?= nilai_alarm(); ?></span>
<span class="sr-only">unread messages</span>
</span>
</a>
<div class="dropdown-menu dropdown-menu-right p-1" style="max-height: 300px; overflow: auto; border-radius: 5px;" aria-labelledby="userDropdown">
<?= alarm(); ?>
<!-- <a class="dropdown-item" href="#">Activity Log</a> -->
</div>
</li>
</ul>
<!-- Alarm -->
<ul class="navbar-nav ml-auto ml-md-0">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" id="userDropdown" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fas fa-user fa-fw"></i></a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="userDropdown">
<a class="dropdown-item" href="kelolaakun.php">Kelola akun</a>
<!-- <a class="dropdown-item" href="#">Activity Log</a> -->
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="logout.php">Logout</a>
</div>
</li>
</ul>
</nav>
<div id="layoutSidenav">
<div id="layoutSidenav_nav">
<nav class="sb-sidenav accordion sb-sidenav-dark" id="sidenavAccordion" >
<div class="sb-sidenav-menu">
<div class="nav">
<!-- <div class="sb-sidenav-menu-heading">Core</div> -->
<a class="nav-link" href="index.php">
<div class="sb-nav-link-icon"><i class="fa fa-home"></i></div>
Beranda
</a>
<!-- awal data barang -->
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseLayouts" aria-expanded="false" aria-controls="collapseLayouts">
<div class="sb-nav-link-icon"><i class="fas fa-list"></i></div>
Data Barang
<div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
</a>
<div class="collapse" id="collapseLayouts" aria-labelledby="headingOne" data-parent="#sidenavAccordion">
<nav class="sb-sidenav-menu-nested nav">
<a class="nav-link " href="obat.php"> Barang</a>
<a class="nav-link" href="expired.php"> Barang Kadaluarsa</a>
</nav>
</div>
<!-- akhir data barang -->
<!-- awal transaksi -->
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseLayouts2" aria-expanded="false" aria-controls="collapseLayouts">
<div class="sb-nav-link-icon"><i class="fas fa-list"></i></div>
Data Transaksi
<div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
</a>
<div class="collapse" id="collapseLayouts2" aria-labelledby="headingOne" data-parent="#sidenavAccordion">
<nav class="sb-sidenav-menu-nested nav">
<a class="nav-link" href="barangmasuk.php"> <i class="fas fa-plus-square mr-1"></i>Barang Masuk</a>
<a class="nav-link" href="barangkeluar.php"> <i class="fas fa-minus-square mr-1"></i> Barang Keluar</a>
</nav>
</div>
<!-- akhir transaksi -->
<!-- awal Laporan barang -->
<div class="sb-sidenav-menu-heading">Laporan</div>
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseLayouts4" aria-expanded="false" aria-controls="collapseLayouts">
<div class="sb-nav-link-icon"><i class="fas fa-envelope"></i></div>
Laporan Barang
<div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
</a>
<div class="collapse" id="collapseLayouts4" aria-labelledby="headingOne" data-parent="#sidenavAccordion">
<nav class="sb-sidenav-menu-nested nav">
<a class="nav-link " href="laporan_barang.php"><i class="fas fa-layer-group mr-1"></i> Laporan Periode </a>
</nav>
</div>
<!-- akhir Laporan barang -->
<div class="sb-sidenav-menu-heading">Pengaturan</div>
<!-- awal data barang -->
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseLayouts3" aria-expanded="false" aria-controls="collapseLayouts">
<div class="sb-nav-link-icon"><i class="fas fa-cog"></i></div>
Kategori Barang
<div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
</a>
<div class="collapse" id="collapseLayouts3" aria-labelledby="headingOne" data-parent="#sidenavAccordion">
<nav class="sb-sidenav-menu-nested nav">
<a class="nav-link " href="jenis_barang.php"><i class="fas fa-layer-group mr-1"></i> Jenis Barang</a>
<a class="nav-link " href="sumber.php"><i class="fas fa-comment-dollar mr-1"></i> Sumber Anggaran</a>
<a class="nav-link " href="satuan.php"><i class="fab fa-unity mr-1"></i> Satuan Barang</a>
<a class="nav-link " href="program.php"><i class="fas fa-address-book mr-1"> </i> Program </a>
</nav>
</div>
<!-- akhir data barang -->
</div>
</div>
<div class="sb-sidenav-footer">
<div class="small">Nama pengguna</div>
<?= user(); ?>
</div>
</nav>
</div>
<div id="layoutSidenav_content" style="background-image: url('img/back2.jpg');
background-size: cover; background-position: 100px -50px;">
<main>
<!-- awal kontent -->
<div id="content" class="p-4 p-md-5 pt-5 " >
<div class="container " style="border-radius: 10px; ">
<div class="row">
<div class="col">
<div class="logo-besar">
<!-- AWal jam digital -->
<div class="jam-digital-malasngoding text-right">
<div class="kotak">
<a id="jam"></a>
<a >:</a>
<a id="menit"></a>
<a >:</a>
<a id="detik"></a>
</div>
</div>
<!-- akhir jam digital -->
<h1 class="text-center " style="text-shadow: 1px 1px white; font-size: 6rem; ">Sistem Informasi Logistik </h1>
</div>
<div class="card-group" style="margin-top: 12%;font-family: caviar dreams ">
<div class="card mr-2 ml-1 shadow-lg" style="border-radius: 20px;">
<a href="obat.php"><img src="img/gambar_obat.jpeg" class="card-img-top" height="180">
<div class="card-body">
<h5 class="card-title text-center">Obat</h5>
<p class="card-text"></p>
<p class="card-text"><small class="text-muted"></small></p>
</div>
</a>
</div>
<div class="card mr-2 ml-1 shadow-lg" style="border-radius: 20px;">
<a href="barangmasuk.php"><img src="img/gambar_alkes.jpg" class="card-img-top" height="180">
<div class="card-body">
<h5 class="card-title text-center">Barang masuk</h5>
<p class="card-text"></p>
<p class="card-text"><small class="text-muted"></small></p>
</div>
</a>
</div>
<div class="card mr-2 ml-1 shadow-lg" style="border-radius: 20px;">
<a href="barangkeluar.php"><img src="img/gambar_vaksin.jpg" class="card-img-top" height="180">
<div class="card-body">
<h5 class="card-title text-center">Barang keluar</h5>
<p class="card-text"></p>
<p class="card-text"><small class="text-muted"></small></p>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- akhir kontent -->
</main>
<footer class="py-4 bg-light mt-auto">
<div class="container-fluid">
<div class="d-flex align-items-center justify-content-between small">
<div class="text-muted">Copyright © Dinas Kesehatan Provinsi Sumatera Barat 2021</div>
<div>
<a href="#">Privacy Policy</a>
·
<a href="#">Terms & Conditions</a>
</div>
</div>
</div>
</footer>
</div>
</div>
<!-- Jquery -->
<script src="js/jquery/jquery-3.5.1.js" crossorigin="anonymous"></script>
<!-- akhir Jquery -->
<!-- Css Js Bootsrap 4 -->
<script src="css/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
<!--My Js -->
<script src="assets/demo/datatables-demo.js"></script>
<!-- akhir My Js -->
<!-- data table -->
<script type="text/javascript" src="js/datatables.min.js" crossorigin="anonymous"></script>
<script src="js/dataTables-1.10.23/js/dataTables.bootstrap4.min.js" crossorigin="anonymous"></script>
</body>
</html>