| Server IP : 104.21.80.248 / Your IP : 172.71.28.155 Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30 System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586 User : SYSTEM ( 0) PHP Version : 5.6.30 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Inetpub/www/news/ |
Upload File : |
<?php include("header.php");
?>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:25px;
top:10px;
width:100px;
height:99px;
z-index:1;
}
-->
</style>
<?php
// Create the function, so you can use it
function isMobile() {
return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
}
// If the user is on a mobile device, redirect them
if(isMobile()) {} else {
echo "<div id='Layer1'><a href='index.php'><img src='images/logo.png'></a></div>";
}
?>
<script src="bootstrap/js/jquery-3.2.1.min.js"></script>
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
<script src="bootstrap/js/jquery.dataTables.min.js"></script>
<script src="bootstrap/js/dataTables.bootstrap.min.js"></script>
<link rel="stylesheet" href="bootstrap/css/dataTables.bootstrap.min.css" />
<script src="bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" language="javascript" >
$(document).ready(function() {
var dataTable = $('#datatable1').DataTable( {
"processing": true,
"serverSide": true,
"pageLength": 10,
"pagingType": "full_numbers",
"ordering": true,
"order": [[0, "desc"]],
"columnDefs": [ {
"targets": 0,
"orderable": false,
"searchable": false
} ],
"ajax":{
url :"fetchpostall.php", // json datasource
type: "post", // method , by default get
error: function(){ // error handling
$(".datatable1-error").php("");
$("#datatable1").append('<tbody class="datatable1-error"><tr><th colspan="3">ไม่พบข้อมูลในฐานข้อมูล</th></tr></tbody>');
$("#datatable1_processing").css("display","none");
}
}
} );
} );
</script>
</head>
<body>
<div class="col-sm-12">
<table id="datatable1" class="table table-hover table-datatable table-striped table-bordered">
<thead>
<tr>
<th width="30">ที่</th>
<th>เรื่อง</th>
<th width="110">โรงเรียน</th>
<th width="50">เปิดอ่าน</th>
</tr>
</thead>
</table>
</div>
</body>
<?php include("footer.php"); ?>