madeslimacek6

bundle_script.php

Jun 24th, 2019
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.33 KB | None | 0 0
  1.  
  2.     <!-- jQuery 2.1.4 -->
  3.     <script src="../aset/plugins/jQuery/jQuery-2.1.4.min.js"></script>
  4.     <!-- Bootstrap 3.3.5 -->
  5.     <script src="../aset/bootstrap/js/bootstrap.min.js"></script>
  6.     <!-- DataTables -->
  7.     <script src="../aset/plugins/datatables/jquery.dataTables.min.js"></script>
  8.     <script src="../aset/plugins/datatables/dataTables.bootstrap.min.js"></script>
  9.     <!-- SlimScroll -->
  10.     <script src="../aset/plugins/slimScroll/jquery.slimscroll.min.js"></script>
  11.     <!-- FastClick -->
  12.     <script src="../aset/plugins/fastclick/fastclick.min.js"></script>
  13.     <!-- AdminLTE App -->
  14.     <script src="../aset/dist/js/app.min.js"></script>
  15.     <!-- Daterange Picker -->
  16.     <script src="../aset/plugins/daterangepicker/moment.min.js"></script>
  17.     <script src="../aset/plugins/daterangepicker/daterangepicker.js"></script>
  18.     <script src="../aset/plugins/select2/select2.full.min.js"></script>
  19.     <script src="../aset/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
  20.     <!-- page script -->
  21.     <script>
  22.       $(function () {  
  23.         // Daterange Picker
  24.         $('#Tanggal_Lahir').daterangepicker({
  25.             singleDatePicker: true,
  26.             showDropdowns: true,
  27.             format: 'YYYY-MM-DD'
  28.         });
  29.        
  30.           // Data Table
  31.         $("#data").dataTable({
  32.             scrollX: true
  33.         });    
  34.       });
  35.     </script>
  36.    
  37.     <!-- Date Time Picker -->
  38.     <script>
  39.         $(function (){
  40.             $('#Jam_Mulai').datetimepicker({
  41.                 format: 'HH:mm'
  42.             });
  43.            
  44.             $('#Jam_Selesai').datetimepicker({
  45.                 format: 'HH:mm'
  46.             });
  47.         });
  48.     </script>
  49.    
  50.     <!-- Javascript Edit-->
  51.     <script type="text/javascript">
  52.         $(document).ready(function () {
  53.        
  54.         // Dosen
  55.         $(".open_modal").click(function(e) {
  56.             var m = $(this).attr("id");
  57.                 $.ajax({
  58.                     url: "dosen_modal_edit.php",
  59.                     type: "GET",
  60.                     data : {NIP: m,},
  61.                     success: function (ajaxData){
  62.                     $("#ModalEditDosen").html(ajaxData);
  63.                     $("#ModalEditDosen").modal('show',{backdrop: 'true'});
  64.                     }
  65.                 });
  66.             });
  67.        
  68.         // Mahasiswa
  69.         $(".open_modal").click(function(e) {
  70.             var m = $(this).attr("id");
  71.                 $.ajax({
  72.                     url: "mahasiswa_modal_edit.php",
  73.                     type: "GET",
  74.                     data : {NIM: m,},
  75.                     success: function (ajaxData){
  76.                     $("#ModalEditMahasiswa").html(ajaxData);
  77.                     $("#ModalEditMahasiswa").modal('show',{backdrop: 'true'});
  78.                     }
  79.                 });
  80.             });
  81.            
  82.         // Ruangan
  83.         $(".open_modal").click(function(e) {
  84.             var m = $(this).attr("id");
  85.                 $.ajax({
  86.                     url: "ruangan_modal_edit.php",
  87.                     type: "GET",
  88.                     data : {Kode_Ruangan: m,},
  89.                     success: function (ajaxData){
  90.                     $("#ModalEditRuangan").html(ajaxData);
  91.                     $("#ModalEditRuangan").modal('show',{backdrop: 'true'});
  92.                     }
  93.                 });
  94.             });
  95.  
  96.         // Matakuliah
  97.         $(".open_modal").click(function(e) {
  98.             var m = $(this).attr("id");
  99.                 $.ajax({
  100.                     url: "matakuliah_modal_edit.php",
  101.                     type: "GET",
  102.                     data : {Kode_Matakuliah: m,},
  103.                     success: function (ajaxData){
  104.                     $("#ModalEditMatakuliah").html(ajaxData);
  105.                     $("#ModalEditMatakuliah").modal('show',{backdrop: 'true'});
  106.                     }
  107.                 });
  108.             });
  109.            
  110.         // Jurusan
  111.         $(".open_modal").click(function(e) {
  112.             var m = $(this).attr("id");
  113.                 $.ajax({
  114.                     url: "jurusan_modal_edit.php",
  115.                     type: "GET",
  116.                     data : {Kode_Jurusan: m,},
  117.                     success: function (ajaxData){
  118.                     $("#ModalEditJurusan").html(ajaxData);
  119.                     $("#ModalEditJurusan").modal('show',{backdrop: 'true'});
  120.                     }
  121.                 });
  122.             });
  123.            
  124.         // Jenjang
  125.         $(".open_modal").click(function(e) {
  126.             var m = $(this).attr("id");
  127.                 $.ajax({
  128.                     url: "jenjang_modal_edit.php",
  129.                     type: "GET",
  130.                     data : {Kode_Jenjang: m,},
  131.                     success: function (ajaxData){
  132.                     $("#ModalEditJenjang").html(ajaxData);
  133.                     $("#ModalEditJenjang").modal('show',{backdrop: 'true'});
  134.                     }
  135.                 });
  136.             });
  137.            
  138.         // Jadwal
  139.         $(".open_modal").click(function(e) {
  140.             var m = $(this).attr("id");
  141.                 $.ajax({
  142.                     url: "jadwal_modal_edit.php",
  143.                     type: "GET",
  144.                     data : {Id_Jadwal: m,},
  145.                     success: function (ajaxData){
  146.                     $("#ModalEditJadwal").html(ajaxData);
  147.                     $("#ModalEditJadwal").modal('show',{backdrop: 'true'});
  148.                     }
  149.                 });
  150.             });
  151.         });
  152.     </script>
  153.    
  154.     <!-- Javascript Delete -->
  155.     <script>
  156.         function confirm_delete(delete_url){
  157.             $("#modal_delete").modal('show', {backdrop: 'static'});
  158.             document.getElementById('delete_link').setAttribute('href', delete_url);
  159.         }
  160.     </script>
Advertisement
Add Comment
Please, Sign In to add comment