<?php
session_start();
if (empty($_SESSION['namauser']) AND empty($_SESSION['passuser'])){
echo "<script>window.alert('you have to login first');
window.location=('../index.php')</script>";
}
else{
?>
<html>
<head>
<title><?php include "../cf/ttl.php"; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script type="text/javascript" src="../cf/dropdown-menu/jquery-1.8.3.min.js"></script>
<script type="text/javascript" language="javascript" src="../cf/js/jquery.js"></script>
<script type="text/javascript" language="javascript" src="../cf/js/jquery.dataTables.js"></script>
<link rel="nofollow" type="text/css" href=''>
<link rel="nofollow" href=''>
<style type="text/css" title="currentStyle">
@import "../cf/css/demo_table_jui.css";
@import "../cf/css/jquery-ui-1.8.4.custom.css";
</style>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
oTable = $('#example').dataTable({
"bJQueryUI": true,
"sPaginationType": "full_numbers",
"bProcessing": true,
"bServerSide": true,
<!-- sort kolom klasifikasi dan uraian -->
<!-- "aaSorting": [[1, "asc"], [2, "desc"] ], -->
"aaSorting": [[1, "asc"]],
"sAjaxSource": "../aa/script/jsondata.php"
});
} );
</script>
</head>
<body>
<header id="header">
<?php include "../cf/header.php"; ?>
</header>
<div class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="navbar-collapse collapse">
<?php include "atas.php"; ?>
</div>
</div>
</div>
<h1 class="page-title">JSON LIST DATA</h1>
<table cellpadding="0" cellspacing="0" class="display" id="example">
<thead>
<tr>
<th>No</th>
<th width="3%">Kode Klasifikasi</th>
<th width="35%">Uraian</th>
<th width="17%">Tanggal Dokumen</th>
<th>Kurun Waktu</th>
<th>Kondisi Arsip</th>
<th>Gedung</th>
<th>Lemari</th>
<th>Baris</th>
<th>Boks</th>
<th>Detail Arsip</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="11" class="dataTables_empty">Loading data from server</td>
</tr>
</tbody>
</table>
<br /><br />
</div>
<footer><?php include "../cf/ft.php"; ?></footer>
<script src="../cf/js/bootstrap.min.js"></script>
</body>
</html>
<?php } ?>