<?php require_once('Connections/koneksi.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

mysql_select_db($database_koneksi, $koneksi);
$query_ppl = "SELECT * FROM sekolah";
$ppl = mysql_query($query_ppl, $koneksi) or die(mysql_error());
$row_ppl = mysql_fetch_assoc($ppl);
$totalRows_ppl = mysql_num_rows($ppl);
?>
<!DOCTYPE html>
<html>

<head>
<title>Sistem PPL</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Fonts -->
<link href='http://fonts.googleapis.com/css?family=Roboto+Condensed:300,400' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,900' rel='stylesheet' type='text/css'>
<!-- CSS Libs -->
<link rel="stylesheet" type="text/css" href="lib/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="lib/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="lib/css/animate.min.css">
<link rel="stylesheet" type="text/css" href="lib/css/bootstrap3/bootstrap-switch.min.css">
<link rel="stylesheet" type="text/css" href="lib/css/checkbox3.min.css">
<link rel="stylesheet" type="text/css" href="lib/css/jquery.dataTables.min.css">
<link rel="stylesheet" type="text/css" href="lib/css/dataTables.bootstrap.css">
<link rel="stylesheet" type="text/css" href="lib/css/select2.min.css">
<!-- CSS App -->
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/themes/flat-blue.css">
<script type="text/javascript" src="./js/pilih.js"></script>
</head>

<body class="flat-blue">
<div class="app-container">
<div class="row content-container">
<nav class="navbar navbar-default navbar-fixed-top navbar-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-expand-toggle">
<i class="fa fa-bars icon"></i>
</button>
<ol class="breadcrumb navbar-breadcrumb">
<li>Pilih Data</li>
<li class="active">Tempat PPL</li>
</ol>
<button type="button" class="navbar-right-expand-toggle pull-right visible-xs">
<i class="fa fa-th icon"></i>
</button>
</div>
<ul class="nav navbar-nav navbar-right">
<button type="button" class="navbar-right-expand-toggle pull-right visible-xs">
<i class="fa fa-times icon"></i>
</button>

</ul>
</div>
</nav>
<div class="side-menu sidebar-inverse">
<nav class="navbar navbar-default" role="navigation">
<div class="side-menu-container">
<div class="navbar-header">
<a class="navbar-brand" href="#">
<span class="logo-mini"><img src="img/logo.png" width="50"/></span>
<div class="title">Sistem PPL</div>
</a>
<button type="button" class="navbar-expand-toggle pull-right visible-xs">
<i class="fa fa-times icon"></i>
</button>
</div>
<ul class="nav navbar-nav">
<li>
<a href="home-mahasiswa.php">
<span class="icon fa fa-tachometer"></span><span class="title">Dashboard</span>
</a>
</li>

<li class="active panel panel-default dropdown">
<a data-toggle="collapse" href="#dropdown-form">
<span class="icon fa fa-file-text-o"></span><span class="title">Pilih Data</span>
</a>
<!-- Dropdown level 1 -->
<div id="dropdown-form" class="panel-collapse collapse">
<div class="panel-body">
<ul class="nav navbar-nav">
<li><a href="data-tempat-ppl.php">Pilih Data Tempat PPL</a></li>

</ul>
</div>
</div>
</li>

<!-- Dropdown-->
<li class="panel panel-default dropdown">
<a data-toggle="collapse" href="#dropdown-example">
<span class="icon fa fa-slack"></span><span class="title">System</span>
</a>
<!-- Dropdown level 1 -->
<div id="dropdown-example" class="panel-collapse collapse">
<div class="panel-body">
<ul class="nav navbar-nav">
<li><a href="index.php">Close</a>
</li>
</ul>
</div>
</div>
</li>

</ul>
</div>
<!-- /.navbar-collapse -->
</nav>
</div>
<!-- Main Content -->
<div class="container-fluid">
<div class="side-body">
<div class="page-title">
<span class="title"></span>
<div class="description"></div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="card">
<div class="card-header">

<div class="card-title">
<div class="title">Pilih Tempat PPL</div>
</div>
</div>
<div class="card-body">
<table class="datatable table table-striped" cellspacing="0" width="100%">
<thead>
<tr>

<th>Nama Sekolah</th>
<th>Action</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Nama Sekolah</th>
<th>Action</th>
</tr>
</tfoot>
<tbody>
<?php
include 'config.php';
$query = mysql_query("select * from sekolah");

$no = 1;
while ($data = mysql_fetch_array($query)) {
?>
<tr>
<td><?php echo $data['nama_sekolah']; ?></td>
<td><?php ?><a type="button" class="btn btn-danger" href="pilih-jurusan.php?nama_sekolah=<?php echo $data['nama_sekolah']; ?>">PILIH</a>
</td>
</tr>
<?php
$no++;
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="app-footer">
<div class="wrapper">
<span class="pull-right">2.1 <a href="#"><i class="fa fa-long-arrow-up"></i></a></span> © 2016 Teknik Informatika.
</div>
</footer>
<div>
<!-- Javascript Libs -->
<script type="text/javascript" src="lib/js/jquery.min.js"></script>
<script type="text/javascript" src="lib/js/bootstrap.min.js"></script>
<script type="text/javascript" src="lib/js/Chart.min.js"></script>
<script type="text/javascript" src="lib/js/bootstrap-switch.min.js"></script>

<script type="text/javascript" src="lib/js/jquery.matchHeight-min.js"></script>
<script type="text/javascript" src="lib/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="lib/js/dataTables.bootstrap.min.js"></script>
<script type="text/javascript" src="lib/js/select2.full.min.js"></script>
<script type="text/javascript" src="lib/js/ace/ace.js"></script>
<script type="text/javascript" src="lib/js/ace/mode-html.js"></script>
<script type="text/javascript" src="lib/js/ace/theme-github.js"></script>
<!-- Javascript -->
<script type="text/javascript" src="js/app.js"></script>
</body>

</html>
<?php
mysql_free_result($ppl);
?>
14660
Please login to answer!
/sangkep/answer/add-json/nogzip/1
/sangkep/answer/send-notification