-
Notifications
You must be signed in to change notification settings - Fork 0
/
detail.php
146 lines (137 loc) · 6.17 KB
/
detail.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
<?php
require 'functions/koneksi.php';
require 'functions/function.php';
$id = $_GET['id'];
$barang = query("SELECT * FROM barang WHERE id_barang = $id")[0];
?>
<!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">
<link rel="icon" type="image/x-icon" href="assets/img/logo.png">
<!-- bootstrap -->
<link rel="stylesheet" href="assets/bootstrap-5.1.3-dist/css/bootstrap.min.css">
<!-- icon -->
<link rel="stylesheet" href="assets/fontawesome-free-5.15.4-web/css/all.min.css">
<!-- css -->
<link rel="stylesheet" href="assets/css/style-detail.css">
<title>Waroutfit — Detail produk</title>
</head>
<body>
<!-- navbar -->
<nav class="navbar navbar-expand-lg navbar-light fixed-top shadow-sm">
<div class="container-fluid">
<a class="navbar-brand fw-bold" href="index.php"><span>WAR</span>OUTFIT</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="index.php">Beranda</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">Kategori</a>
<ul class="dropdown-menu dropdown-menu-light" aria-labelledby="navbarDropdown">
<li><a class="dropdown-item" href="pakaian.php">Pakaian</a></li>
<li><a class="dropdown-item" href="aksesoris.php">Aksesoris</a></li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link" href="shop.php">Shop</a>
</li>
</ul>
<ul class="navbar-nav ms-auto mb-2 text-center mb-lg-0">
<li class="nav-item">
<a href="signup.php" class="nav-link">Daftar</a>
</li>
<li class="nav-item">
<a href="login.php" class="nav-link">Login</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- detail produk -->
<section id="detail">
<div class="container-fluid">
<div class="row mb-3">
<div class="col p-3">
<h3 class="fw-normal">Detail Produk</h3>
</div>
</div>
<div class="row mb-5">
<div class="col-md-2"></div>
<!-- Gambar Produk -->
<div class="col-md-4 mb-3">
<img src="assets/img-barang/<?= $barang["gambar"]; ?>" width="200" height="200" class="img-fluid rounded shadow-sm" alt="">
</div>
<!-- Keterangan Produk -->
<div class="col-md-4 mt-1">
<table class="table">
<tr>
<th>Kode Produk</th>
<td><?= $barang["kode_barang"]; ?></td>
</tr>
<tr>
<th>Nama Produk</th>
<td class="text-capitalize"><?= $barang["nama_barang"]; ?></td>
</tr>
<tr>
<th>Kategori</th>
<td class="text-capitalize"><?= $barang["kategori"]; ?></td>
</tr>
<tr>
<th>Stok</th>
<td><?= $barang["stok"]; ?></td>
</tr>
<tr>
<th>Harga Produk</th>
<td><?= rupiah($barang["harga"]); ?></td>
</tr>
</table>
</div>
<div class="col-md-2"></div>
</div>
</div>
</section>
<!-- footer -->
<footer class="container-fluid text-dark p-3">
<div class="row mt-3 mb-3">
<div class="col-lg-3 footer-logo">
<img src="assets/img/logo.png" class="img-fluid" alt="">
</div>
<div class="col-lg-3 mb-3">
<h6 class="fw-bold">Sosial Media Kami</h6>
<div class="d-flex footer-sosmed">
<div class="p-2"><a href="#"><i class="fab fa-instagram"></i></a></div>
<div class="p-2"><a href="#"><i class="fab fa-facebook"></i></a></div>
<div class="p-2"><a href="#"><i class="fab fa-twitter"></i></a></div>
<div class="p-2"><a href="#"><i class="fas fa-envelope"></i></a></div>
</div>
</div>
<div class="layanan col-lg-3">
<h6 class="fw-bold">Layanan</h6>
<ul class="list-unstyled">
<li><a href="">Pusat Bantuan</a></li>
<li><a href="">Cara Pembelian</a></li>
<li><a href="">Pengembalian jika ada masalah</a></li>
</ul>
</div>
<div class="col-lg-3 footer-about">
<h6 class="fw-bold">Tentang Kami</h6>
<p>Waroenk Outfit adalah website toko online yang menjual berbagai produk pakaian maupun aksesoris</p>
</div>
</div>
<div class="text-center footer-copy mt-3">
<p>© Copyright Waroenk Outfit - All Rights Reserved</p>
</div>
</footer>
<!-- assets -->
<script src="assets/js/jquery-3.6.0.min.js"></script>
<script src="assets/js/script.js"></script>
<script src="assets/bootstrap-5.1.3-dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>