Advertisement
dirlan

index.php

Mar 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.05 KB | None | 0 0
  1. <?php
  2.  
  3. // if(!isset($_SESSION['userakses'])) {
  4. //     session_start();
  5. //     }
  6. // if ($_SESSION['userakses']=="") {
  7. //   header('location:index.php?panggil=login');
  8. // }
  9.  
  10. error_reporting(E_ALL ^ (E_NOTICE | E_WARNING));
  11.  ?>
  12.  
  13. <!DOCTYPE html>
  14. <html lang="en">
  15.  
  16.     <head>
  17.  
  18.         <meta charset="utf-8">
  19.         <meta http-equiv="X-UA-Compatible" content="IE=edge">
  20.         <meta name="viewport" content="width=device-width, initial-scale=1">
  21.         <title>Serah Terima</title>
  22.  
  23.         <!-- CSS -->
  24.         <!-- <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:400,100,300,500"> -->
  25.         <link rel="stylesheet" href="plugin/jquery-ui-1.12.1/jquery-ui.css">
  26.         <link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
  27.         <link rel="stylesheet" href="assets/font-awesome/css/font-awesome.min.css">
  28.         <link rel="stylesheet" href="assets/css/form-elements.css">
  29.         <link rel="stylesheet" href="assets/css/style.css">
  30.         <link rel="stylesheet" href="plugin/dataTables/datatables.min.css">
  31.         <link href="plugin/datepicker-1.6.4/css/bootstrap-datepicker3.css" rel="stylesheet">
  32.  
  33.         <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  34.         <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  35.         <!--[if lt IE 9]>
  36.             <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
  37.             <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
  38.         <![endif]-->
  39.  
  40.         <!-- Favicon and touch icons -->
  41.         <link rel="shortcut icon" href="assets/ico/favicon.png">
  42.         <link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/ico/apple-touch-icon-144-precomposed.png">
  43.         <link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
  44.         <link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
  45.         <link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
  46.  
  47.     </head>
  48.  
  49.     <body>
  50.         <div>
  51.             <?php
  52.                 include 'pages.php';
  53.              ?>
  54.         </div>
  55.        
  56.  
  57.         <!-- Javascript -->
  58.         <script src="assets/js/jquery-3.3.1.js"></script>
  59.         <script src="plugin/jquery-ui-1.12.1/jquery-ui.js"></script>
  60.         <script src="assets/bootstrap/js/bootstrap.min.js"></script>
  61.         <script src="assets/js/jquery.backstretch.min.js"></script>
  62.         <script src="assets/js/retina-1.1.0.min.js"></script>
  63.         <script src="assets/js/scripts.js"></script>
  64.         <!-- <script src="assets/js/jquery.autocomplete.min.js"></script> -->
  65.         <script src="plugin/typehead.js"></script>
  66.         <script src="plugin/dataTables/datatables.min.js"></script>
  67.         <!-- <script src="plugin/dataTables/dataTables.bootstrap.min.js"></script> -->
  68.         <script src="plugin/datepicker-1.6.4/js/bootstrap-datepicker.js"></script>
  69.         <script>
  70.             $(document).ready(function() {
  71.                 var table = $('#dataTables-example').DataTable( {
  72.                     fixedHeader: true
  73.                 } );
  74.              
  75.                 var visible = true;
  76.                 var tableContainer = $(table.table().container());
  77.              
  78.                 $('#toggle').on( 'click', function () {
  79.                     tableContainer.css( 'display', visible ? 'none' : 'block' );
  80.                     table.fixedHeader.adjust();
  81.              
  82.                     visible = ! visible;
  83.                 } );
  84.             } );
  85.  
  86.  
  87.  
  88.           // $(document).ready(function () {
  89.           // $('#dataTables-example').dataTable();
  90.           // });
  91.         </script>
  92.         <!-- menampilkan nama -->
  93.         <script type="text/javascript">
  94.             // var f=jQuery.noConflict();
  95.  
  96.             $(document).ready(function(){
  97.  
  98.              $('#nik').change(function(){    // KETIKA ISI DARI FIEL 'NPM' BERUBAH MAKA ......
  99.               var nikfromfield = $('#nik').val();  // AMBIL isi dari fiel NPM masukkan variabel 'npmfromfield'
  100.               $.ajax({        // Memulai ajax
  101.                 method: "POST",      
  102.                 url: "ajaxrespon.php",    // file PHP yang akan merespon ajax
  103.                 data: { nik: nikfromfield}   // data POST yang akan dikirim
  104.               })
  105.                 .done(function( hasilajax ) {   // KETIKA PROSES Ajax Request Selesai
  106.                     $('#nama').val(hasilajax);  // Isikan hasil dari ajak ke field 'nama'
  107.                 });
  108.              })
  109.             });
  110.         </script>
  111.        
  112.         <!-- menampilkan list ip -->
  113.         <script type="text/javascript">
  114.             $(document).ready(function(){
  115.                 /* .ip merupakan class pada inputan IP */
  116.                 $(document).on('keydown', '.ip', function() {
  117.                    
  118.                     var id = this.id;
  119.                     var splitid = id.split('_');
  120.                     var index = splitid[1];
  121.  
  122.                     $( '#'+id ).autocomplete({
  123.                         source: function( request, response ) {
  124.                             $.ajax({
  125.                                 url: "source.php",
  126.                                 type: 'post',
  127.                                 dataType: "json",
  128.                                 data: {
  129.                                     search: request.term,request:1
  130.                                 },
  131.                                 success: function( data ) {
  132.                                     response( data );
  133.                                 }
  134.                             });
  135.                         }
  136.                         });
  137.                     });
  138.                 });
  139.         </script>
  140.  
  141.         <!-- tab -->
  142.         <script>
  143.           $( function() {
  144.             $( "#tabs" ).tabs();
  145.           } );
  146.         </script>
  147.  
  148.         <script>
  149.         $(function(){
  150.             $(document).on('click','.edit-record',function(e){
  151.                 e.preventDefault();
  152.                 $("#myModal").modal('show');
  153.                 $.post('plugin/detail.php',
  154.                     {id:$(this).attr('data-id')},
  155.                     function(html){
  156.                         $(".modal-body").html(html);
  157.                     }  
  158.                 );
  159.             });
  160.         });
  161.     </script>
  162.  
  163.     <script type="text/javascript">
  164.         $(document).ready(function(){
  165.             $(".tip-top").tooltip({
  166.                 placement : 'top'
  167.             });
  168.             $(".tip-right").tooltip({
  169.                 placement : 'right'
  170.             });
  171.             $(".tip-bottom").tooltip({
  172.                 placement : 'bottom'
  173.             });
  174.             $(".tip-left").tooltip({
  175.                 placement : 'left'
  176.             });
  177.         });
  178.     </script>
  179.     <script type="text/javascript">
  180.         $(document).ready(function () {
  181.           $('.tanggal').datepicker({
  182.             format: "yyyy-mm-dd",
  183.             autoclose:true
  184.           });
  185.         });
  186.     </script>
  187.     </body>
  188. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement