-
Notifications
You must be signed in to change notification settings - Fork 1
/
data-sekolah-kabupaten.php
111 lines (103 loc) · 3.54 KB
/
data-sekolah-kabupaten.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
<?php
include "koneksi.php";
$id = $_GET['id'];
$query = mysqli_query($conn, "SELECT * FROM profil WHERE kab = $id");
$qd = mysqli_query($conn, "SELECT kab FROM profil WHERE kab = $id");
$qf = mysqli_fetch_array($qd, MYSQLI_BOTH);
$kq = mysqli_query($conn, "SELECT profil.kab, kabupaten.id, kabupaten.kabupaten FROM profil JOIN kabupaten WHERE kabupaten.id= $qf[kab]");
$ka = mysqli_fetch_array($kq, MYSQLI_BOTH);
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Data Pokok Pendidikan Muhammadiyah</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]-->
<link rel="stylesheet" type="text/css" href="admin/bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" type="text/css" href="admin/dist/css/AdminLTE.css"/>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="assets/css/main.css"/>
<!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]-->
</head>
<body class="landing">
<!--<a href="admin">LOGIN</a>-->
<section id="header">
<?php include "navbar.php" ?>
</section>
<section id="content " class="container main">
<div class="row content">
<div class="col-md-12 ">
<ol class="breadcrumb">
<li><a href="index.php">Home</a></li>
<li><a href="data-sekolah.php">Data Sekolah</a></li>
<?php echo "<li>"; echo "$ka[kabupaten]";; ?></li>
</ol>
<div class="box box-info">
<div class="box-header">
<h2 class="box-title"><b>Data Sekolah</b></h2>
</div>
<div class="box-body">
<table id='data-sekolah' class="table-responsive">
<thead>
<tr>
<th>No</th>
<th>NPSN</th>
<th>Nama Sekolah</th>
<th>Jenjang</th>
<th>Akreditasi</th>
<th>Alamat</th>
</tr>
</thead>
<tbody>
<?php
$i = 1;
while($sekolah = mysqli_fetch_array($query, MYSQLI_BOTH)){
echo "
<tr>
<td>$i</td>
<td>$sekolah[npsn]</td>
<td><a href='profil-sekolah.php?npsn=$sekolah[npsn]'>$sekolah[nama_sekolah]</a></td>
<td>$sekolah[jenjang]</td>
<td>$sekolah[akreditasi]</td>
<td>$sekolah[alamat]</td>
</tr>
";
$i++;
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
<!-- Scripts -->
<style type="text/css">
.paginate_button{
padding: 0 !important;
margin-top: 20px;
}
</style>
<script src="assets/js/jquery.min.js"></script>
<script src="admin/bootstrap/js/bootstrap.js"></script>
<script src="assets/js/jquery.dropotron.min.js"></script> <!-- THIS -->
<script src="assets/js/jquery.scrollgress.min.js"></script> <!-- THIS -->
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script> <!-- THIS -->
<!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]-->
<script src="assets/js/main.js"></script>
<script src="admin/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="admin/plugins/datatables/dataTables.bootstrap.min.js"></script>
<script type="text/javascript">
$(function(){
$('#data-sekolah').DataTable({
'paging' : true,
'searching' : true,
'info' : true
});
});
</script>
</body>
</html>