-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcrud.php
149 lines (115 loc) · 5.12 KB
/
crud.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Kota Wisata Batu</title>
<meta content="" name="description">
<meta content="" name="keywords">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
<!-- Vendor CSS Files -->
<link href="assets/vendor/aos/aos.css" rel="stylesheet">
<link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
<link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
<link href="assets/vendor/glightbox/css/glightbox.min.css" rel="stylesheet">
<link href="assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet">
<!-- Template Main CSS File -->
<link href="assets/css/style.css" rel="stylesheet">
</head>
<body>
<!-- ======= Header ======= -->
<header id="header" class="fixed-top">
<div class="container d-flex align-items-center justify-content-between">
<div class="logo">
<h1 class="text-light"><a href="index.html"><span>Batu</span></a></h1>
<!-- Uncomment below if you prefer to use an image logo -->
<!-- <a href="index.html"><img src="assets/img/logo.png" alt="" class="img-fluid"></a>-->
</div>
<nav id="navbar" class="navbar">
<ul>
<li><a class="nav-link scrollto" href="index.php">Home</a></li>
<li><a class="nav-link scrollto active" href="places.php">Places</a></li>
<li><a class="nav-link scrollto " href="maps.php">Maps</a></li>
<li><a class="nav-link scrollto" href="aboutus.html">About Us</a></li>
</ul>
<button type="button" class="btn btn-primary ms-3" style="border-radius: 50px;"> Login</button>
<i class="bi bi-list mobile-nav-toggle"></i>
</nav><!-- .navbar -->
</div>
</header><!-- End Header -->
<main id="main">
<!-- ======= Team Section ======= -->
<section id="peta" class="">
<div class="container">
<div class="section-title" data-aos="fade-in" data-aos-delay="100">
<h2>Places</h2>
</div>
<div class="row">
<div class="col-8">
<a href=" {{asset('tambah')}}" class="btn btn-danger"><i class="fas fa-plus"></i></i> Tambah</a>
</div>
<div class="col-4">
<form class="d-flex justify-content-end pt-2 pb-2">
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-primary me-2" type="submit"><i class="fas fa-search"></i></button>
<button class="btn btn-success me-2" type="submit"><i class="fas fa-sync-alt"></i></button>
</form>
</div>
</div>
<!-- search -->
<!-- table -->
<?php require("koneksi.php"); ?>
<table class="table table-striped">
<thead>
<tr>
<th scope="col">No</th>
<th scope="col">Nama</th>
<th scope="col">Alamat</th>
<th scope="col">Longitude</th>
<th scope="col">Latitude</th>
<th scope="col " colspan="3">Aksi</th>
</tr>
</thead>
<tbody>
<?php
$query1 = "SELECT * FROM tempat_wisata";
$sql1 = mysqli_query($con, $query1);
while ($row = mysqli_fetch_array($sql1)) {
echo "<tr><th>" . $row['id'] . "</th>
<td>" . $row['nama'] . "</td>
<td>" . $row['alamat'] . "</td>
<td>" . $row['longitude'] . "</td>
<td>" . $row['latitude'] . "</td>
<td> <a href='http://localhost/UAS-GIS/proses_delete.php?id_del=" . $row['id'] . "'
class = 'btn btn-danger'>Delete</a></td>";
}
?>
</tbody>
</table>
</div>
</section><!-- End Team Section -->
</main><!-- End #main -->
<!-- ======= Footer ======= -->
<footer id="footer">
<div class="container">
<div class="copyright">
© Copyright 2021<strong><span> GIS - UIN Malang</span></strong>. All Rights Reserved
</div>
</div>
</footer><!-- End Footer -->
<a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a>
<!-- Vendor JS Files -->
<script src="assets/vendor/aos/aos.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/vendor/glightbox/js/glightbox.min.js"></script>
<script src="assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
<script src="assets/vendor/php-email-form/validate.js"></script>
<script src="assets/vendor/purecounter/purecounter.js"></script>
<script src="assets/vendor/swiper/swiper-bundle.min.js"></script>
<!-- Template Main JS File -->
<script src="assets/js/main.js"></script>
<!-- Tes Ibram -->
</body>
</html>