JezK
Edit File: pemesanan.php
<?php // start session session_start(); // set time for session timeout $currentTime = time() + 25200; $expired = 3600; // if session not set go to login page if(!isset($_SESSION['user'])){ header("location:index.php"); } // if current time is more than session timeout back to login page if($currentTime > $_SESSION['timeout']){ session_destroy(); header("location:index.php"); } // destroy previous session timeout and create new one unset($_SESSION['timeout']); $_SESSION['timeout'] = $currentTime + $expired; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="css/font-awesome.min.css"> <link rel="stylesheet" href="css/bootstrap.css"> <link rel="stylesheet" href="css/custom.css"> <title>Pharisee</title> <link rel="icon" href="./images/icons/favicon.png" type="image/icon type"> </head> <style> #vendor_list_filter{ text-align: right !important; } </style> <body> <div id="container"> <?php include('public/menubar.php'); ?> <?php // include('public/pemesanan_table.php'); ?> <?php include('public/order_table.php'); ?> <?php include('public/footer.php'); ?> </div> <script src="css/js/jquery.min.js"></script> <script src="css/js/bootstrap.min.js"></script> <!-- <script type="text/javascript" src="css/js/datatables.min.js"></script> --> <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.11.0/datatables.min.css"/> <script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.11.0/datatables.min.js"></script> <script type="application/javascript"> $(document).ready(function (e) { $('#vendor_list').DataTable({ "bSort": true, "order": [] }); // window.setTimeout(function() { // $(".alert").fadeTo(500, 0).slideUp(500, function(){ // $(this).remove(); // }); // }, 2000); }); </script> <script type="text/javascript"> // For demo to fit into DataTables site builder... $('#vendor_list') .removeClass( 'display' ) .addClass('table table-striped table-bordered'); </script> </body> </html>