-
Notifications
You must be signed in to change notification settings - Fork 6
/
wisata.php
135 lines (123 loc) · 5.25 KB
/
wisata.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
<?php
include 'json.php';
include 'config.php';
//fetch table rows from mysql db
$sql = "SELECT *
FROM setting";
$result = mysqli_query($connection, $sql) or die("Error in Selecting " . mysqli_error($connection));
//create an array
$emparray = array();
while($row =mysqli_fetch_assoc($result))
{
?>
<!DOCTYPE html>
<html>
<head>
<title>Peta Wisata - petawisataflotim.com - <?php echo $row['desc'];?></title>
<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">
<link rel="stylesheet" href="https://bootswatch.com/4/cosmo/bootstrap.min.css">
<!-- Custom styles for this template -->
<link href="https://getbootstrap.com/docs/4.0/examples/jumbotron/jumbotron.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap-example.min.css" />
<!-- Add fancyBox main JS and CSS files -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.3.5/jquery.fancybox.min.js"></script>
<link rel="shortcut icon" href="admin/favicon.ico">
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-primary">
<a class="navbar-brand" href="index.php"><?php echo $row['judul'];?></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarsExampleDefault">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="index.php">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item active">
<a class="nav-link" href="wisata.php">Peta Wisata Kuliner</a>
</li>
<li class="nav-item">
<a class="nav-link" href="admin/" target=_blank>Login</a>
</li>
</ul>
</div>
</nav>
<main role="main">
<div class="bh-sl-container">
<div class="jumbotron jumbotron-fluid">
<div class="container">
<div class="bh-sl-form-container">
<form id="bh-sl-user-location" class="form-inline" method="post" action="#" role="form">
<div class="form-input form-group">
<label for="bh-sl-address">Masukkan Alamat :</label>
<input class="form-control" type="text" id="bh-sl-address" name="bh-sl-address" />
<button id="bh-sl-submit" class="btn btn-primary" type="submit" role="button">Cari</button>
</div>
</form>
</div>
</div>
</div>
<div id="bh-sl-map-container" class="bh-sl-map-container">
<div class="container-fluid">
<div id="map-results-container" class="row">
<div id="bh-sl-map" class="bh-sl-map col-md-9"></div>
<div class="bh-sl-loc-list col-md-3">
<ul class="list list-unstyled"></ul>
</div>
</div>
</div>
</div>
</div>
</main>
<hr>
<footer class="container">
<p>Copyright © 2018. <?php echo $row['creator'];?>. All rights reserved.</p>
</footer>
<script src="https://code.jquery.com/jquery-3.3.1.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>
<script src="assets/js/libs/handlebars.min.js"></script>
<script src="https://maps.google.com/maps/api/js?key=AIzaSyDMeO2oiY_VGtnR9yZOdvH8bLWyD3FXycc&language=id®ion=ID"></script>
<script src="assets/js/plugins/storeLocator/jquery.storelocator.js"></script>
<script>
$(function() {
$('#bh-sl-map-container').storeLocator({
distanceAlert : 60,
dataType: 'json',
dataLocation: 'data/wisata.json',
slideMap : false,
// ==== hapus comment 3 baris code di bawah ini, untuk mendisable autogeocode ===
//defaultLoc: true,
//defaultLat: '-7.795580',
//defaultLng : '110.369490',
// ==============================================================================
autoGeocode: true, // untuk mendeteksi lokasi user secara realtime
storeLimit : -1,
lengthUnit : 'km',
mapSettings : {
//mapTypeId: google.maps.MapTypeId.ROADMAP,
zoom : 13
},
// Language options
addressErrorAlert : 'Alamat tidak dapat ditemukan',
autoGeocodeErrorAlert : 'Pendeteksian lokasi Anda secara otomatis tidak berhasil. Silahkan masukkan alamat.',
distanceErrorAlert : 'Sayang sekali, lokasi terdekat yang Anda cari lebih dari ',
kilometerLang : 'kilometer',
kilometersLang : 'kilometer',
mileLang : 'mil',
milesLang : 'mil',
noResultsTitle : 'Tidak ada hasil',
noResultsDesc : 'Tidak ada lokasi yang dtemukan dengan Alamat yang Anda berikan.',
nextPage : 'Lanjut »',
prevPage : '« Kembali',
});
});
</script>
</body>
</html>
<?php } ?>