-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
352 lines (315 loc) · 15.6 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
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
<?php
require 'admin/koneksi.php';
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Blog Sederhana Tapi Nyata Boy</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Style Blog Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template,
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" />
<script type="applijewelleryion/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<link rel="icon" type="image/x-icon" href="images/favicon2.ico">
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<!-- Custom Theme files -->
<link href='//fonts.googleapis.com/css?family=Raleway:400,600,700' rel='stylesheet' type='text/css'>
<link href="css/style.css" rel='stylesheet' type='text/css' />
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<!-- animation-effect -->
<link href="css/animate.min.css" rel="stylesheet">
<script src="js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!-- //animation-effect -->
</head>
<body>
<div class="header" id="ban">
<div class="container">
<div class="head-left wow fadeInLeft animated animated" data-wow-delay=".5s" style="visibility: visible; animation-delay: 0.5s; animation-name: fadeInLeft;">
<div class="header-search">
<div class="search">
<input class="search_box" type="checkbox" id="search_box">
<label class="icon-search" for="search_box"><span class="glyphicon glyphicon-search" aria-hidden="true"></span></label>
<div class="search_form">
<form action="#" method="post">
<input type="text" name="Search" placeholder="Search...">
<input type="submit" value="Send">
</form>
</div>
</div>
</div>
</div>
<div class="header_right wow fadeInLeft animated animated" data-wow-delay=".5s" style="visibility: visible; animation-delay: 0.5s; animation-name: fadeInLeft;">
<nav class="navbar navbar-default">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse nav-wil" id="bs-example-navbar-collapse-1">
<nav class="link-effect-7" id="link-effect-7">
<ul class="nav navbar-nav">
<li class="active act"><a href="index.php">Home</a></li>
<li><a href="about.php">About</a></li>
<!-- <li><a href="features.html">Features</a></li>
<li><a href="travel.html">Travel</a></li>
<li><a href="fashion.html">Fashion</a></li>
<li><a href="music.html">Music</a></li> -->
<li><a href="contact.php">Contact</a></li>
<li><a href="admin/index.php">Login</a></li>
</ul>
</nav>
</div>
<!-- /.navbar-collapse -->
</nav>
</div>
<div class="nav navbar-nav navbar-right social-icons wow fadeInRight animated animated" data-wow-delay=".5s" style="visibility: visible; animation-delay: 0.5s; animation-name: fadeInRight;">
<ul>
<li><a href="#"> </a></li>
<li><a href="#" class="pin"> </a></li>
<li><a href="#" class="in"> </a></li>
<li><a href="#" class="be"> </a></li>
<li><a href="#" class="vimeo"> </a></li>
</ul>
</div>
<div class="clearfix"> </div>
</div>
</div>
<!--start-main-->
<div class="header-bottom">
<div class="container">
<div class="logo wow fadeInDown" data-wow-duration=".8s" data-wow-delay=".2s">
<h1><a href="index.html">STYLE BLOG</a></h1>
<p><label class="of"></label>LET'S MAKE A PERFECT STYLE<label class="on"></label></p>
</div>
</div>
</div>
<!-- banner -->
<div class="banner">
<div class="container">
<h2>Learning By Doing, Learning By Teaching</h2>
<p>Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make Lorem Ipsum has been the industry's standard dummy text ever since the 1500s</p>
<a href="singlepage.html">READ MORE</a>
</div>
</div>
<div class="services w3l wow fadeInDown" data-wow-duration=".8s" data-wow-delay=".2s">
<div class="container">
<div class="grid_3 grid_5">
<div class="bs-example bs-example-tabs" role="tabpanel" data-example-id="togglable-tabs">
<ul id="myTab" class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#expeditions" id="expeditions-tab" role="tab" data-toggle="tab" aria-controls="expeditions" aria-expanded="true">FASHION</a></li>
<li role="presentation" class=""><a href="#safari" role="tab" id="safari-tab" data-toggle="tab" aria-controls="safari">TRAVEL</a></li>
<li role="presentation" class=""><a href="#trekking" role="tab" id="trekking-tab" data-toggle="tab" aria-controls="trekking">MUSIC</a></li>
</ul>
<div id="myTabContent" class="tab-content">
<div role="tabpanel" class="tab-pane fade" id="expeditions" aria-labelledby="expeditions-tab">
<div class="col-md-4 col-sm-5 tab-image">
<img src="images/f2.jpg" class="img-responsive" alt="Wanderer">
</div>
<div class="col-md-4 col-sm-5 tab-image">
<img src="images/f4.jpg" class="img-responsive" alt="Wanderer">
</div>
<div class="col-md-4 col-sm-5 tab-image">
<img src="images/f3.jpg" class="img-responsive" alt="Wanderer">
</div>
<div class="clearfix"></div>
</div>
<div role="tabpanel" class="tab-pane fade" id="safari" aria-labelledby="safari-tab">
<div class="col-md-4 col-sm-5 tab-image">
<img src="images/t1.jpg" class="img-responsive" alt="Wanderer">
</div>
<div class="col-md-4 col-sm-5 tab-image">
<img src="images/t2.jpg" class="img-responsive" alt="Wanderer">
</div>
<div class="col-md-4 col-sm-5 tab-image">
<img src="images/t3.jpg" class="img-responsive" alt="Wanderer">
</div>
<div class="clearfix"></div>
</div>
<div role="tabpanel" class="tab-pane fade active in" id="trekking" aria-labelledby="trekking-tab">
<div class="col-md-4 col-sm-5 tab-image">
<img src="images/m2.jpg" class="img-responsive" alt="Wanderer">
</div>
<div class="col-md-4 col-sm-5 tab-image">
<img src="images/m1.jpg" class="img-responsive" alt="Wanderer">
</div>
<div class="col-md-4 col-sm-5 tab-image">
<img src="images/m3.jpg" class="img-responsive" alt="Wanderer">
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- technology-left -->
<div class="technology">
<div class="container">
<div class="col-md-9 technology-left">
<div class="tech-no">
<!-- technology-top -->
<div class="tc-ch wow fadeInDown" data-wow-duration=".8s" data-wow-delay=".2s">
<?php
$sql = mysqli_query($koneksi, "SELECT * FROM berita B JOIN admin A ON B.id = A.id ORDER BY B.id ASC LIMIT 1");
while($data= mysqli_fetch_array($sql)):
?>
<div class="tch-img">
<a href="singlepage.html"><img src="admin/asset/images/<?php echo $data['gambar']; ?>" class="img-responsive" alt=""></a>
</div>
<h3><a href="singlepage.html"><?php echo $data['judul_berita']; ?></a></h3>
<h6>BY <a href="singlepage.html"><?php echo $data['nama_lengkap']; ?> </a><?php echo $data['tanggal']; ?>.</h6>
<p><?php echo substr($data['isi_berita'], 0,220) ?>.</p>
<?php endwhile; ?>
<div class="bht1">
<a href="singlepage.html">Continue Reading</a>
</div>
<div class="soci">
<ul>
<li class="hvr-rectangle-out"><a class="fb" href="#"></a></li>
<li class="hvr-rectangle-out"><a class="twit" href="#"></a></li>
<li class="hvr-rectangle-out"><a class="goog" href="#"></a></li>
<li class="hvr-rectangle-out"><a class="pin" href="#"></a></li>
<li class="hvr-rectangle-out"><a class="drib" href="#"></a></li>
</ul>
</div>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
<!-- technology-top -->
<!-- technology-top -->
<div class="w3ls">
<div class="clearfix"></div>
</div>
<!-- technology-top -->
<?php
$sql = mysqli_query($koneksi, "SELECT berita.*, kategori.nama as nama_kategori, admin.nama_lengkap as nama_lengkap FROM berita JOIN kategori ON kategori.id = berita.id_kategori JOIN admin ON admin.id = admin.id ORDER BY berita.tanggal DESC");
while($data= mysqli_fetch_array($sql)):
?>
<div class="wthree">
<div class="col-md-6 wthree-left wow fadeInDown" data-wow-duration=".8s" data-wow-delay=".2s">
<div class="tch-img">
<a href="singlepage.html"><img src="admin/asset/images/<?php echo $data['gambar']; ?>" class="img-responsive" alt=""></a>
</div>
</div>
<div class="col-md-6 wthree-right wow fadeInDown" data-wow-duration=".8s" data-wow-delay=".2s">
<h3><a href="singlepage.php?id=<?php echo $data['id']; ?>"><?php echo $data['judul_berita']; ?></a></h3>
<h6>BY <a href="singlepage.php?id=<?php echo $data['id']; ?>"><?php echo $data['nama_lengkap']; ?> </a><?php echo $data['tanggal']; ?>.</h6>
<p><?php echo substr($data['isi_berita'], 0,220) ?>.</p>
<h6>#<a href="kategori.php?id=<?php echo $data['id_kategori']; ?>"><?php echo $data['nama_kategori']; ?></a></h6>
<div class="bht1">
<a href="singlepage.php?id=<?php echo $data['id']; ?>">Read More</a>
</div>
<div class="soci">
<ul>
<li class="hvr-rectangle-out"><a class="twit" href="#"></a></li>
<li class="hvr-rectangle-out"><a class="pin" href="#"></a></li>
</ul>
</div>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
</div>
<?php endwhile; ?>
</div>
</div>
<!-- technology-right -->
<div class="col-md-3 technology-right">
<div class="blo-top1">
<div class="tech-btm">
<div class="search-1 wow fadeInDown" data-wow-duration=".8s" data-wow-delay=".2s">
<form action="#" method="post">
<input type="search" name="Search" value="Search" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Search';}" required="">
<input type="submit" value=" ">
</form>
</div>
<h4>Popular Posts </h4>
<?php
$sql = mysqli_query($koneksi, "SELECT * FROM berita ORDER BY id ASC LIMIT 5");
while($data= mysqli_fetch_array($sql)):
?>
<div class="blog-grids wow fadeInDown" data-wow-duration=".8s" data-wow-delay=".2s">
<div class="blog-grid-left">
<a href="singlepage.php?id=<?php echo $data['id']; ?>"></a><img src="admin/asset/images/<?php echo $data['gambar']; ?>" class="img-responsive" alt=""></a>
</div>
<div class="blog-grid-right">
<h5><a href="singlepage.html"><?php echo $data['judul_berita']; ?></a> </h5>
</div>
<div class="clearfix"> </div>
</div>
<?php endwhile; ?>
<div class="insta wow fadeInDown" data-wow-duration=".8s" data-wow-delay=".2s">
<h4>Instagram</h4>
<ul>
<li><a href="singlepage.html"><img src="images/t1.jpg" class="img-responsive" alt=""></a></li>
<li><a href="singlepage.html"><img src="images/m1.jpg" class="img-responsive" alt=""></a></li>
<li><a href="singlepage.html"><img src="images/f1.jpg" class="img-responsive" alt=""></a></li>
<li><a href="singlepage.html"><img src="images/m2.jpg" class="img-responsive" alt=""></a></li>
<li><a href="singlepage.html"><img src="images/f2.jpg" class="img-responsive" alt=""></a></li>
<li><a href="singlepage.html"><img src="images/t2.jpg" class="img-responsive" alt=""></a></li>
<li><a href="singlepage.html"><img src="images/f3.jpg" class="img-responsive" alt=""></a></li>
<li><a href="singlepage.html"><img src="images/t3.jpg" class="img-responsive" alt=""></a></li>
<li><a href="singlepage.html"><img src="images/m3.jpg" class="img-responsive" alt=""></a></li>
</ul>
</div>
<p>Lorem ipsum ex vix illud nonummy, novum tation et his. At vix scripta patrioque scribentur, at pro</p>
<div class="twt">
<iframe id="twitter-widget-0" scrolling="no" frameborder="0" allowtransparency="true" class="twitter-hashtag-button twitter-hashtag-button-rendered twitter-tweet-button" title="Twitter Tweet Button" src="https://platform.twitter.com/widgets/tweet_button.b7de008f493a5185d8df1aedd62d77c6.en.html#button_hashtag=TwitterStories&dnt=false&id=twitter-widget-0&lang=en&original_referer=https%3A%2F%2Fp.w3layouts.com%2Fdemos%2Fduplex%2Fweb%2F&size=l&time=1467721486626&type=hashtag" style="position: static; visibility: visible; width: 166px; height: 28px;" data-hashtag="TwitterStories"></iframe>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
<!-- technology-right -->
</div>
</div>
<div class="footer">
<div class="container">
<div class="col-md-4 footer-left wow fadeInDown" data-wow-duration=".8s" data-wow-delay=".2s">
<h4>About Me</h4>
<p>Consectetur adipisicing Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod .</p>
<img src="images/t4.jpg" class="img-responsive" alt="">
<div class="bht1">
<a href="singlepage.html">Read More</a>
</div>
</div>
<div class="col-md-4 footer-middle wow fadeInDown" data-wow-duration=".8s" data-wow-delay=".2s">
<h4>Latest Tweet</h4>
<div class="mid-btm">
<p>Sed do eiusmod tempor Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod .</p>
<a href="https://w3layouts.com/">https://w3layouts.com/</a>
</div>
<p>Consectetur adipisicing Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod .</p>
<a href="https://w3layouts.com/">https://w3layouts.com/</a>
</div>
<div class="col-md-4 footer-right wow fadeInDown" data-wow-duration=".8s" data-wow-delay=".2s">
<h4>Newsletter</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt</p>
<div class="name">
<form action="#" method="post">
<input type="text" placeholder="Your Name" required="">
<input type="text" placeholder="Your Email" required="">
<input type="submit" value="Subscribed Now">
</form>
</div>
<div class="clearfix"> </div>
</div>
<div class="clearfix"></div>
</div>
</div>
<div class="copyright wow fadeInDown" data-wow-duration=".8s" data-wow-delay=".2s">
<div class="container">
<p>© 2017 Style Blog. All rights reserved | Design by <a href="http://amcc.or.id/">W3layouts | ❤ Divisi Web Programming <img src="images/favicon.ico"> | Rega Syahfika</a></p>
</div>
</div>
</body>
</html>