Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.01 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <?php
  3. include 'ceksudahlogin.php';
  4. ?>
  5. <html>
  6. <head>
  7.     <?php include('include/head.php'); ?>
  8.     <link rel="stylesheet" type="text/css" href="src/plugins/datatables/media/css/jquery.dataTables.css">
  9.     <link rel="stylesheet" type="text/css" href="src/plugins/datatables/media/css/dataTables.bootstrap4.css">
  10. </head>
  11. <body>
  12.    
  13.                 <div class="pd-20 bg-white border-radius-4 box-shadow mb-30">
  14.                 <div class="table-responsive">
  15.                 <button onclick="window.location.href='javascript: closeWin();'">Close "myWindow"</button>
  16.                         <table id="tablemasterpart" class="tablemasterpart stripe hover nowrap">
  17.                             <thead>
  18.                                 <tr>
  19.                                     <th>PartID</th>
  20.                                     <th>PartName</th>
  21.                                     <th>OtherID</th>
  22.                                     <th>TypeInventoryID</th>
  23.                                 </tr>
  24.                             </thead>
  25.                             <tbody>
  26.                             </tbody>
  27.                         </table>
  28.                     </div>
  29.                 </div>
  30.                    
  31.                
  32.     <?php include('include/script.php'); ?>
  33.     <script src="src/plugins/datatables/media/js/jquery.dataTables.min.js"></script>
  34.     <script src="src/plugins/datatables/media/js/dataTables.bootstrap4.js"></script>
  35.     <script src="src/plugins/datatables/media/js/button/dataTables.buttons.js"></script>
  36.     <script src="src/plugins/datatables/media/js/button/buttons.bootstrap4.js"></script>
  37.     <script src="src/plugins/datatables/media/js/button/vfs_fonts.js"></script>
  38.     <script>
  39.         $('document').ready(function(){
  40.             $('.tablemasterpart').DataTable({
  41.                 "processing": true,
  42.                 "serverSide": true,
  43.                 "ajax": "api/ms_part.php",
  44.                 "columns": [
  45.                         {"data": "PartID"},
  46.                         {"data": "PartName"},
  47.                         {"data": "OtherID"},
  48.                         {"data": "TypeInventoryID"}
  49.                     ],
  50.                 autoWidth: false,
  51.                 responsive: true,
  52.                 "lengthMenu": [[5,10, 25, 50], [5,10, 25, 50]],
  53.                 "language": {
  54.                     "info": "_START_-_END_ of _TOTAL_ entries",
  55.                     searchPlaceholder: "Search"
  56.                 },
  57.             });
  58.         });
  59.     function closeWin() {
  60.     window.close();
  61. }
  62.        
  63.     </script>
  64. </body>
  65. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement