-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.php
155 lines (140 loc) · 7.06 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
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
<?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 lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<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">
<title>Home - www.petawisataflotim.com - <?php echo $row['desc'];?></title>
<!-- Custom styles for this template -->
<link href="https://getbootstrap.com/docs/4.0/examples/carousel/carousel.css" rel="stylesheet">
</head>
<body>
<header>
<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="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav mr-auto">
<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="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>
</header>
<main role="main">
<div id="myCarousel" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img class="first-slide" src="admin/assets/uploads/logo/<?php echo $row['banner1'];?>" alt="First slide">
<div class="container">
<div class="carousel-caption text-left">
<h2><?php echo $row['caption1'];?></h2>
</div>
</div>
</div>
<div class="carousel-item">
<img class="second-slide" src="admin/assets/uploads/logo/<?php echo $row['banner2'];?>" alt="Second slide">
<div class="container">
<div class="carousel-caption">
<h2><?php echo $row['caption2'];?></h2>
</div>
</div>
</div>
<div class="carousel-item">
<img class="third-slide" src="admin/assets/uploads/logo/<?php echo $row['banner3'];?>" alt="Third slide">
<div class="container">
<div class="carousel-caption text-right">
<h2><?php echo $row['caption3'];?></h2>
</div>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#myCarousel" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#myCarousel" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<!-- Marketing messaging and featurettes
================================================== -->
<!-- Wrap the rest of the page in another container to center all the content. -->
<div class="container marketing">
<!-- Three columns of text below the carousel -->
<div class="row">
<div class="col-lg-4 text-center">
<img class="rounded-circle" src="admin/assets/uploads/logo/<?php echo $row['pic1'];?>" alt="Generic placeholder image" width="140" height="140">
<h2>Wisata</h2>
<p>Destinasi wisata kuliner kekinian yang ada di Jogja. </p>
<p><a class="btn btn-primary" href="wisata.php" role="button">Lanjutkan »</a></p>
</div><!-- /.col-lg-4 -->
<div class="col-lg-4 text-center">
<img class="rounded-circle" src="admin/assets/uploads/logo/<?php echo $row['pic2'];?>" alt="Generic placeholder image" width="140" height="140">
<h2>About</h2>
<p>Tentang aplikasi GIS Wisata Kuliner di Jogja. </p>
<p><a class="btn btn-primary" href="#" role="button">Lanjutkan »</a></p>
</div><!-- /.col-lg-4 -->
<div class="col-lg-4 text-center">
<img class="rounded-circle" src="admin/assets/uploads/logo/<?php echo $row['pic3'];?>" alt="Generic placeholder image" width="140" height="140">
<h2>Admin</h2>
<p>Update informasi wisata kuliner terbaru di Jogja. </p>
<p><a class="btn btn-primary" href="admin/" role="button">Lanjutkan »</a></p>
</div><!-- /.col-lg-3 -->
</div><!-- /.row -->
</div><!-- /.container -->
</br>
<!-- FOOTER -->
<footer class="container">
<!--p class="float-right"><a href="#">Back to top</a></p-->
<p>Copyright © 2018 <?php echo $row['creator'];?>™. All rights reserved.</p>
</footer>
</main>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<!--script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script-->
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery-slim.min.js"><\/script>')</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://getbootstrap.com/docs/4.0/assets/js/vendor/holder.min.js"></script>
</body>
</html>
<?php } ?>