-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.php
525 lines (451 loc) · 21.2 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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>SIG SEKOLAH</title>
<meta content="" name="description">
<meta content="" name="keywords">
<!-- Favicons -->
<link href="assets/img/logo1.png" rel="icon">
<link href="assets/img/logo.png" rel="apple-touch-icon">
<!-- 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/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/vendor/icofont/icofont.min.css" rel="stylesheet">
<link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
<link href="assets/vendor/remixicon/remixicon.css" rel="stylesheet">
<link href="assets/vendor/venobox/venobox.css" rel="stylesheet">
<link href="assets/vendor/owl.carousel/assets/owl.carousel.min.css" rel="stylesheet">
<link href="assets/vendor/aos/aos.css" rel="stylesheet">
<!-- Template Main CSS File -->
<link href="assets/css/style.css" rel="stylesheet">
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<!-- =======================================================
* Template Name: Bethany - v2.2.0
* Template URL: https://bootstrapmade.com/bethany-free-onepage-bootstrap-theme/
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
======================================================== -->
</head>
<body>
<!-- ======= Header ======= -->
<header id="header" class="fixed-top d-flex align-items-center">
<div class="container">
<div class="header-container d-flex align-items-center">
<div class="logo mr-auto">
<h1 class="text-light"><a href="index.php"><span>SIG</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 class="nav-menu d-none d-lg-block">
<ul>
<li class="active"><a href="#header">Home</a></li>
<li><a href="#about">Tentang Kami</a></li>
<li><a href="#services">Peta</a></li>
<li><a href="#portfolio">Data Instansi</a></li>
<!-- <li><a href="#team">Team</a></li> -->
<li><a href="#contact">Kontak Kami</a></li>
<!-- <li class="drop-down"><a href="detail/detailsekolah.php">Login</a>
<ul>
<li><a href="#">Login</a></li> -->
<!-- <li class="drop-down"><a href="#">Drop Down 2</a>
<ul>
<li><a href="#">Deep Drop Down 1</a></li>
<li><a href="#">Deep Drop Down 2</a></li>
<li><a href="#">Deep Drop Down 3</a></li>
<li><a href="#">Deep Drop Down 4</a></li>
<li><a href="#">Deep Drop Down 5</a></li>
</ul>
</li> -->
<!-- <li><a href="#">Register</a></li> -->
<!-- <li><a href="#">Drop Down 4</a></li>
<li><a href="#">Drop Down 5</a></li> -->
<!-- </ul> -->
</li>
<li class="get-started"><a href="#about">Mulai</a></li>
</ul>
</nav><!-- .nav-menu -->
</div><!-- End Header Container -->
</div>
</header><!-- End Header -->
<!-- ======= Hero Section ======= -->
<section id="hero" class="d-flex align-items-center">
<div class="container text-center position-relative" data-aos="fade-in" data-aos-delay="200">
<h1>Sistem Informasi Geografis</h1>
<h1>SMA & SMK Negeri</h1>
<h2>Di Surabaya</h2>
<a href="#about" class="btn-get-started scrollto">Mulai</a>
</div>
</section><!-- End Hero -->
<main id="main">
<!-- ======= Clients Section ======= -->
<section id="clients" class="clients">
<div class="container">
<div class="row">
<div class="col-md-12 col-lg-3 d-flex align-items-center" data-aos="zoom-in" data-aos-delay="100">
<img src="assets/img/clients/client-1.png" class="img-fluid" alt="" style="opacity: 0;">
</div>
</div>
</div>
</section><!-- End Clients Section -->
<!-- ======= About Section ======= -->
<section id="about" class="about">
<div class="container">
<div class="row content">
<div class="col-lg-6" data-aos="fade-right" data-aos-delay="100">
<h2>SIG SMA & SMK NEGERI SURABAYA</h2>
<h3>Sistem informasi ini merupakan aplikasi pemetaan geografis sekolah menengah di wilayah Surabaya. Aplikasi ini memuat informasi dan lokasi dari SMA dan SMK di Surabaya.</h3>
</div>
<div class="col-lg-6 pt-4 pt-lg-0" data-aos="fade-left" data-aos-delay="200">
<p>
Dalam aplikasi pemetaan geografis sekolah menengah ini memuat informasi dan lokasi dari SMA dan SMK di Surabaya. Pemetaan diambil dari data lokasi Google Maps dan data dari website masing" sekolah. Aplikasi ini memuat sejumlah informasi mengenai :
</p>
<ul>
<li><i class="ri-check-double-line"></i> Sekolah Menengah Atas Negeri</li>
<li><i class="ri-check-double-line"></i> Sekolah Menengah Kejuruan Negeri</li>
</ul>
<p class="font-italic">
Informasi dapat berubah sewaktu-waktu
</p>
</div>
</div>
</div>
</section><!-- End About Section -->
<!-- ======= Counts Section ======= -->
<section id="counts" class="counts">
<div class="container">
<div class="row counters">
<div class="col-lg-3 col-6 text-center" style="opacity: 0;">
<span data-toggle="counter-up">232</span>
<p>Clients</p>
</div>
<?php
include_once "countsma.php";
$obj = json_decode($data);
$sman="";
foreach($obj->results as $item){
$sman.=$item->sma;
}
?>
<div class="col-lg-3 col-6 text-center">
<span data-toggle="counter-up"><?php echo $sman; ?></span>
<p>Sekolah Menengah Atas</p>
</div>
<?php
include_once "countsmk.php";
$obj2 = json_decode($data);
$smkn="";
foreach($obj2->results as $item2){
$smkn.=$item2->smk;
}
?>
<div class="col-lg-3 col-6 text-center">
<span data-toggle="counter-up"><?php echo $smkn; ?></span>
<p>Sekolah Menengah Kejuruan</p>
</div>
<div class="col-lg-3 col-6 text-center" style="opacity: 0;">
<span data-toggle="counter-up">15</span>
<p>Hard Workers</p>
</div>
</div>
</div>
</section><!-- End Counts Section -->
<!-- ======= Cta Section ======= -->
<section id="cta" class="cta">
<div class="container">
<div class="text-center" data-aos="zoom-in">
<h3>SIG</h3>
<p> Detail sekolah menengah negeri di Surabaya</p>
<a class="cta-btn" href="#portfolio">Lihat Detail</a>
</div>
</div>
</section><!-- End Cta Section -->
<!-- ======= Services Section ======= -->
<section id="services" class="services section-bg">
<div class="container">
<div class="text-center" data-aos="zoom-in">
<h3 style="font-weight: bold; text-transform: uppercase;">Peta</h3>
</div>
<div class="panel-body" style="align-content: center;">
<div id="map" style="width:100%;height:480px;"></div>
<script src="https://maps.googleapis.com/maps/api/js?libraries=places&key=AIzaSyAh0M3vKIhVO26dTSA_UMx-x2dl1JKlanb"></script>
<script type="text/javascript">
function initialize() {
var mapOptions = {
zoom: 12.5,
center: new google.maps.LatLng(-7.261184839447646, 112.74293031897085),
disableDefaultUI: false
};
var mapElement = document.getElementById('map');
var map = new google.maps.Map(mapElement, mapOptions);
setMarkers(map, officeLocations);
}
var officeLocations = [
<?php
$data = file_get_contents('http://localhost:8080/sig-sma/ambildata.php');
$no=1;
if(json_decode($data,true)){
$obj = json_decode($data);
foreach($obj->results as $item){
?>
[<?php echo $item->id_instansi ?>,'<?php echo $item->nama_instansi ?>','<?php echo $item->alamat ?>', <?php echo $item->longitude ?>, <?php echo $item->latitude ?>],
<?php
}
}
?>
];
function setMarkers(map, locations)
{
var globalPin = 'img/marker.png';
for (var i = 0; i < locations.length; i++) {
var office = locations[i];
var myLatLng = new google.maps.LatLng(office[4], office[3]);
var infowindow = new google.maps.InfoWindow({content: contentString});
var contentString =
'<div id="content">'+
'<div id="siteNotice">'+
'</div>'+
'<h5 id="firstHeading" class="firstHeading">'+ office[1] + '</h5>'+
'<div id="bodyContent">'+
'<a href=detail.php?id='+office[0]+'>Info Detail</a>'+
'</div>'+
'</div>';
var marker = new google.maps.Marker({
position: myLatLng,
map: map,
title: office[1],
icon:'img/marker.png'
});
google.maps.event.addListener(marker, 'click', getInfoCallback(map, contentString));
}
}
function getInfoCallback(map, content) {
var infowindow = new google.maps.InfoWindow({content: content});
return function() {
infowindow.setContent(content);
infowindow.open(map, this);
};
}
initialize();
</script>
</div>
</div>
</section><!-- End Services Section -->
<!-- ======= Contact Section ======= -->
<section id="portfolio" class="contact">
<div class="container">
<div class="row">
<div class="col-lg-3" data-aos="fade-right">
<div class="section-title">
<h2>Data SMA SMK</h2>
<p>Halaman ini memuat informasi SMA dan SMA di Surabaya. </p>
</div>
</div>
<div class="col-lg-9" data-aos="fade-up" data-aos-delay="100">
<div class="col-md-12">
<div class="panel panel-info panel-dashboard">
<div class="panel-heading centered">
<h2 class="panel-title"><strong> - <?php echo 'Informasi instansi' ?> - </strong></h2>
</div>
<div class="panel-body">
<table class="table table-bordered table-striped table-admin">
<thead>
<tr>
<th width="5%">No.</th>
<th width="30%">Nama Sekolah</th>
<th width="10%">NPSN</th>
<th width="30%">Alamat</th>
<th width="20%">Website</th>
<th width="20%">Aksi</th>
</tr>
</thead>
<tbody>
<?php
$data = file_get_contents('http://localhost:8080/sig-sma/ambildata.php');
$no=1;
if(json_decode($data,true)){
$obj = json_decode($data);
foreach($obj->results as $item){
?>
<tr>
<td><?php echo $no; ?></td>
<td><?php echo $item->nama_instansi; ?></td>
<td><?php echo $item->NPSN; ?></td>
<td><?php echo $item->alamat; ?></td>
<td><a href="https://<?php echo $item->website; ?>" target="_blank"><?php echo $item->website; ?></a></td>
<td class="ctr">
<div class="btn-group">
<a href="detail.php?id=<?php echo $item->id_instansi; ?>" rel="tooltip" data-original-title="Lihat File" data-placement="top" class="btn btn-primary">
<i class="fa fa-map-marker"> </i> Detail dan Lokasi</a>
</div>
</td>
</tr>
<?php $no++; }}
else{
echo "data tidak ada.";
} ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section><!-- End Contact Section -->
<!-- ======= Contact Section ======= -->
<section id="contact" class="contact">
<div class="container">
<div class="row">
<div class="col-lg-4" data-aos="fade-right">
<div class="section-title">
<h2>Kontak Kami</h2>
<p>Halaman ini memuat informasi pengembang serta masukan kritik dan saran dari pengguna apabila ditemukan masalah. </p>
</div>
</div>
<div class="col-lg-8" data-aos="fade-up" data-aos-delay="100">
<!-- <iframe style="border:0; width: 100%; height: 270px;" id="map-canvas"></iframe> -->
<div class="info mt-4">
<i class="icofont-google-map"></i>
<h4>Lokasi:</h4>
<p>Jl. Ketintang, Ketintang, Kec. Gayungan, Kota SBY, Indonesia 60231</p>
</div>
<div class="row">
<div class="col-lg-6 mt-4">
<div class="info">
<i class="icofont-envelope"></i>
<h4>Email:</h4>
<p>[email protected]</p>
</div>
</div>
<div class="col-lg-6">
<div class="info w-100 mt-4">
<i class="icofont-phone"></i>
<h4>Telepon:</h4>
<p>+62 895 0987 6543</p>
</div>
</div>
</div>
<form action="forms/contact.php" method="post" role="form" class="php-email-form mt-4">
<div class="form-row">
<div class="col-md-6 form-group">
<input type="text" name="name" class="form-control" id="name" placeholder="Nama anda" data-rule="minlen:4" data-msg="Masukkan sedikitnya 4 karakter" />
<div class="validate"></div>
</div>
<div class="col-md-6 form-group">
<input type="email" class="form-control" name="email" id="email" placeholder="Email anda" data-rule="email" data-msg="Masukkan email yang valid" />
<div class="validate"></div>
</div>
</div>
<div class="form-group">
<input type="text" class="form-control" name="subject" id="subject" placeholder="Subjek" data-rule="minlen:4" data-msg="Masukkan setidaknya 8 karakter" />
<div class="validate"></div>
</div>
<div class="form-group">
<textarea class="form-control" name="message" rows="5" data-rule="required" data-msg="Masukkan pesan untuk kami" placeholder="Pesan"></textarea>
<div class="validate"></div>
</div>
<div class="mb-3">
<div class="loading">Memuat</div>
<div class="error-message"></div>
<div class="sent-message">Pesan anda telah terkirim. Terimakasih!</div>
</div>
<div class="text-center"><button type="submit">Kirim pesan</button></div>
</form>
</div>
</div>
</div>
</section><!-- End Contact Section -->
</main><!-- End #main -->
<!-- ======= Footer ======= -->
<footer id="footer">
<div class="footer-top">
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-6 footer-contact">
<h3>SIG</h3>
<p>
Jl. Ketintang, Ketintang <br>
Gayungan, SBY 60231<br>
Indonesia <br><br>
<strong>Phone:</strong> +62 895 0987 6543<br>
<strong>Email:</strong> [email protected]<br>
</p>
</div>
<div class="col-lg-2 col-md-6 footer-links">
<h4>Link bantuan</h4>
<ul>
<li><i class="bx bx-chevron-right"></i> <a href="#">Home</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">About us</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Maps</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Terms of service</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Privacy policy</a></li>
</ul>
</div>
<div class="col-lg-3 col-md-6 footer-links">
<h4>Data</h4>
<ul>
<li><i class="bx bx-chevron-right"></i> <a href="#">SMA Negeri</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">SMK Negeri</a></li>
<!-- <li><i class="bx bx-chevron-right"></i> <a href="#">Product Management</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Marketing</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Graphic Design</a></li> -->
</ul>
</div>
<div class="col-lg-4 col-md-6 footer-newsletter">
<h4>Ikuti info terbaru</h4>
<p>Subscribe email</p>
<form action="" method="post">
<input type="email" name="email"><input type="submit" value="Subscribe">
</form>
</div>
</div>
</div>
</div>
<div class="container d-md-flex py-4">
<div class="mr-md-auto text-center text-md-left">
<div class="copyright">
© Copyright <strong><span>SIG SMA&SMK</span></strong>.
</div>
<div class="credits">
<!-- All the links in the footer should remain intact. -->
<!-- You can delete the links only if you purchased the pro version. -->
<!-- Licensing information: https://bootstrapmade.com/license/ -->
<!-- Purchase the pro version with working PHP/AJAX contact form: https://bootstrapmade.com/bethany-free-onepage-bootstrap-theme/ -->
<!-- Designed by <a href="https://bootstrapmade.com/">BootstrapMade</a> -->
</div>
</div>
<div class="social-links text-center text-md-right pt-3 pt-md-0">
<a href="#" class="twitter"><i class="bx bxl-twitter"></i></a>
<a href="#" class="facebook"><i class="bx bxl-facebook"></i></a>
<a href="#" class="instagram"><i class="bx bxl-instagram"></i></a>
<a href="#" class="google-plus"><i class="bx bxl-skype"></i></a>
<a href="#" class="linkedin"><i class="bx bxl-linkedin"></i></a>
</div>
</div>
</footer><!-- End Footer -->
<a href="#" class="back-to-top"><i class="icofont-simple-up"></i></a>
<!-- Vendor JS Files -->
<script src="assets/vendor/jquery/jquery.min.js"></script>
<script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="assets/vendor/jquery.easing/jquery.easing.min.js"></script>
<script src="assets/vendor/php-email-form/validate.js"></script>
<script src="assets/vendor/waypoints/jquery.waypoints.min.js"></script>
<script src="assets/vendor/counterup/counterup.min.js"></script>
<script src="assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
<script src="assets/vendor/venobox/venobox.min.js"></script>
<script src="assets/vendor/owl.carousel/owl.carousel.min.js"></script>
<script src="assets/vendor/aos/aos.js"></script>
<!-- Template Main JS File -->
<script src="assets/js/main.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-hover-dropdown.js"></script>
<script src="js/script.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/datatable-bootstrap.js"></script>
</body>
</html>