-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
106 lines (97 loc) · 4.34 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
<?php
// Kode Program untuk mengkoneksikan ke DB, Daftar Supplier, Daftar Barang, dan Mutasi Barang.
include_once 'koneksi.php';
$barang = mysqli_query($koneksi, "SELECT * FROM m_item");
$banyakbarang = mysqli_num_rows($barang);
$supplier = mysqli_query($koneksi, "SELECT * FROM m_supplier");
$banyaksupplier = mysqli_num_rows($supplier);
$mutasi = mysqli_query($koneksi, "SELECT * FROM m_mutasi");
$banyakmutasi = mysqli_num_rows($mutasi);
?>
<!DOCTYPE html>
<html>
<head>
<title>StockGudang - Kelola gudang barang anda dengan cepat</title>
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<link rel="stylesheet" href="assets/css/style.css">
<link rel="stylesheet" href="assets/fonts/css/font-awesome.min.css">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-white">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href="#"><img src="assets/img/warehouse.png" alt="" style="max-width: 55px;"></a>
<div class="collapse navbar-collapse" id="navbar">
<!-- Ini Kodingan Navbar (Navigation Bar) -->
<ul class="navbar-nav mr-auto mt-2 mt-lg-0">
<li class="nav-item active">
<a class="nav-link" href="index.php">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="supplier.php">Data Supplier</a>
</li>
<li class="nav-item">
<a class="nav-link" href="barang.php">Barang Masuk</a>
</li>
<li class="nav-item">
<a class="nav-link" href="mutasi.php">Barang Keluar</a>
</li>
</ul>
</div>
</nav>
<br><br>
<!-- Ini Kodingan Untuk Kasih Penjelasan Fitur Apa Saja didalam Aplikasi Website ini -->
<div class="container">
<div class="card-group">
<div class="card">
<img class="card-img-top" src="assets/img/barang.gif" alt="Card image cap" style="max-width: 700px; margin: auto; margin-top:20px;">
<div class="card-body">
<h5 class="card-title" align="center">Barang Masuk</h5>
<p class="card-text">Menu ini berisi daftar barang dan menu CRUD barang. Total barang yang saat ini ada yaitu <b><?php echo $banyakbarang; ?> Barang</b></p>
</div>
</div>
<div class="card">
<img class="card-img-top" src="assets/img/supplier.gif" alt="Card image cap" style="max-width: 700px; margin: auto; margin-top:20px;">
<div class="card-body">
<h5 class="card-title" align="center">Data Supplier</h5>
<p class="card-text">Menu ini berisi daftar supplier dan menu CRUD supplier. Banyak supplier yang sudah terdaftar yaitu <b><?php echo $banyaksupplier; ?> Supplier</b></p>
</div>
</div>
<div class="card">
<img class="card-img-top" src="assets/img/mutasi.gif" alt="Card image cap" style="max-width: 700px; margin: auto; margin-top:20px;">
<div class="card-body">
<h5 class="card-title" align="center">Barang Keluar</h5>
<p class="card-text">Menu ini adalah menu mutasi dimana data keluarnya barang dicatat. Total mutasi yang sudah dilakukan yaitu <b><?php echo $banyakmutasi; ?> kali mutasi</b></p>
</div>
</div>
</div>
</div>
<!-- Ini Kodingan Footer -->
<div class="container-fluid fixed-bottom bg-light" style=" color: #999;">
<div class="row">
<div class="col-sm-12">
<p align="center">© 2023 PT. CMA. ALL RIGHTS RESERVED.</p>
</div>
</div>
</div>
<script src="assets/js/jquery.js"></script>
<script src="assets/js/popper.js"></script>
<script src="assets/js/script.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
</body>
</html>
<script>
// Blokir klik kanan
document.addEventListener('contextmenu', function(e) {
e.preventDefault();
alert("Klik kanan dinonaktifkan!");
});
// Blokir tombol pintas inspect element
document.addEventListener('keydown', function(e) {
if (e.key === 'F12' || (e.ctrlKey && e.shiftKey && e.key === 'I')) {
e.preventDefault();
alert("Inspect Element dinonaktifkan!");
}
});
</script>