-
Notifications
You must be signed in to change notification settings - Fork 0
/
umkm.php
190 lines (168 loc) · 10.5 KB
/
umkm.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
<?php
include 'koneksi.php';
$data = mysqli_query($koneksi, "select * from pengaturan WHERE id='1' ");
while ($d = mysqli_fetch_array($data)) {
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- my css -->
<link rel="stylesheet" href="css/style.css">
<!-- font -->
<link href="https://fonts.googleapis.com/css2?family=Viga&display=swap" rel="stylesheet">
<title><?php echo $d['nama_desa']; ?></title>
</head>
<body>
<!-- navbar -->
<section class="navbar navbar-expand-lg " style="background-color:<?php echo $d['bg_warna']; ?>">
<div class="container">
<a class="navbar-brand" style="color:<?php echo $d['text_warna']; ?>"><?php echo $d['nama_desa']; ?></a>
<button class=" navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon">
<i class="fa fa-navicon" style="color:<?php echo $d['text_warna']; ?>; font-size:20px;"></i>
</span>
</button>
<div class=" collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav">
<a class="nav-link" href="index.php" style="color:<?php echo $d['text_warna']; ?>">Home</a>
<li class="nav-item dropdown">
<a class=" nav-link dropdown-toggle" style="color:<?php echo $d['text_warna']; ?>" href="#" id="navbarDarkDropdownMenuLink" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Wisata
</a>
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDarkDropdownMenuLink">
<li><a class="dropdown-item" href="wisata_alam.php">Alam</a></li>
<li><a class="dropdown-item" href="wisata_religi.php">Religi</a></li>
<li><a class="dropdown-item" href="wisata_budaya.php">Budaya</a></li>
</ul>
</li>
<a class="nav-link" href="galeri.php" style="color:<?php echo $d['text_warna']; ?>">Galeri</a>
<a class="nav-link" href="kegiatan.php" style="color:<?php echo $d['text_warna']; ?>">Kegiatan</a>
<a class=" nav-link" href="Paket_wisata.php" style="color:<?php echo $d['text_warna']; ?>">Paket Wisata</a>
<a class=" nav-link" href="umkm.php" style="color:<?php echo $d['text_warna']; ?>">UMKM Desa</a>
</div>
</div>
</div>
</section><?php } ?>
<!-- navbar end -->
<div class="container mt-5 mb-5">
<div class="text-center mt-5 mb-5">
<h2>UMKM Desa</h2>
</div>
<div class="d-flex justify-content-center row">
<div class="col-md-10">
<?php
$batas = 5;
$halaman = isset($_GET['halaman']) ? (int)$_GET['halaman'] : 1;
$halaman_awal = ($halaman > 1) ? ($halaman * $batas) - $batas : 0;
$previous = $halaman - 1;
$next = $halaman + 1;
$data = mysqli_query($koneksi, "select * from umkm");
$jumlah_data = mysqli_num_rows($data);
$total_halaman = ceil($jumlah_data / $batas);
$data_pegawai = mysqli_query($koneksi, "select * from umkm limit $halaman_awal, $batas");
$nomor = $halaman_awal + 1;
while ($data1 = mysqli_fetch_array($data_pegawai)) {
?>
<div class="row p-2 bg-white border rounded mb-3">
<div class="col-md-3 mt-1"><img class="img-fluid img-responsive rounded product-image" src="images/<?php echo $data1['gambar'] ?>"></div>
<div class="col-md-6 mt-1">
<h4><?php echo $data1['nama'] ?></h4>
<p class="text-justify mb-0"><?php echo $data1['deskripsi'] ?></p><br>
</div>
<div class="align-items-center align-content-center col-md-3 border-left mt-5">
<div class="d-flex flex-row align-items-center mt-3">
<h5 class="mr-1"><?php echo $data1['harga'] ?></h5>
</div>
<div class="d-flex flex-column mt-4"><a class="btn btn-success btn-sm mt-2" type="button" href="https://wa.me/<?php echo $data1['no_wa'] ?>">Pesan Via Whatsapp</a></div>
</div>
</div>
<?php } ?>
<nav>
<ul class="pagination justify-content-center">
<li class="page-item">
<a class="page-link bg-light" <?php if ($halaman > 1) {
echo "href='?halaman=$previous'";
} ?>>Previous</a>
</li>
<?php
for ($x = 1; $x <= $total_halaman; $x++) {
?>
<li class="page-item"><a class="page-link bg-light" href="?halaman=<?php echo $x ?>"><?php echo $x; ?></a></li>
<?php
}
?>
<li class="page-item">
<a class="page-link bg-light" <?php if ($halaman < $total_halaman) {
echo "href='?halaman=$next'";
} ?>>Next</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<!-- FOOTER -->
<?php
include 'koneksi.php';
$data = mysqli_query($koneksi, "select * from pengaturan WHERE id='1' ");
while ($data2 = mysqli_fetch_array($data)) {
?>
<div class="container-fluid " style="background-color:<?php echo $data2['bg_warna']; ?>">
<footer class="row row-cols-5 py-5 border-top">
<div class=" col ">
<a class=" navbar-brand" style="color:<?php echo $data2['text_warna']; ?>"><?php echo $data2['nama_desa']; ?></a>
<p style="color:<?php echo $data2['text_warna']; ?>">© 2021 VIII DEV</p>
<a href=" <?php echo $data2['facebook']; ?>" class="fa fa-facebook"></a>
<a href="<?php echo $data2['instagram']; ?>" class="fa fa-instagram"></a>
</div>
<div class="col">
</div>
<div class="col">
<h5 style="color:<?php echo $data2['text_warna']; ?>;font-weight:bold;font-style:italic;">Tentang Kami</h5>
<ul class="nav flex-column ">
<li class="nav-item mb-2 "><a href="index.php" class="nav-link p-0" style="color:<?php echo $data2['text_warna']; ?>">Profil desa</a>
</li>
<li class=" nav-item mb-2"><a href="galeri.php" class="nav-link p-0" style="color:<?php echo $data2['text_warna']; ?>">galeri</a></li>
<li class=" nav-item mb-2"><a href="kegiatan.php" class="nav-link p-0" style="color:<?php echo $data2['text_warna']; ?>">Kegiatan</a></li>
</ul>
</div>
<div class="col">
<h5 style="color:<?php echo $data2['text_warna']; ?>;font-weight:bold;font-style:italic;">Potensi Desa</h5>
<ul class="nav flex-column ">
<li class="nav-item mb-2"><a href="wisata_alam.php" class="nav-link p-0" style="color:<?php echo $data2['text_warna']; ?>">wisata
alam</a></li>
<li class="nav-item mb-2"><a href="wisata_religi.php" class="nav-link p-0" style="color:<?php echo $data2['text_warna']; ?>">wisata
religi</a></li>
<li class="nav-item mb-2"><a href="wisata_budaya.php" class="nav-link p-0 " style="color:<?php echo $data2['text_warna']; ?>">wisata
Budaya</a></li>
<li class="nav-item mb-2"><a href="umkm.php" class="nav-link p-0" style="color:<?php echo $data2['text_warna']; ?>">UMKM</a></li>
<li class="nav-item mb-2"><a href="Paket_wisata.php" class="nav-link p-0" style="color:<?php echo $data2['text_warna']; ?>">paket
wisata</a></li>
</ul>
</div>
</footer>
</div>
<!-- footer end -->
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj" crossorigin="anonymous">
</script>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-eMNCOe7tC1doHpGoWe/6oMVemdAVTMs2xqW4mwXrXsW0L84Iytr2wi5v2QjrP/xp" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-cn7l7gDp0eyniUwwAZgrzD06kc/tftFf19TOAs2zVinnD/C7E91j9yyk5//jjpt/" crossorigin="anonymous"></script>
-->
</body>
<?php
}
?>
</html>