Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.21 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. </head>
  9. <body>
  10.     <?php include('include/header.php'); ?>
  11.     <?php include('include/sidebar.php'); ?>
  12.     <div class="main-container">
  13.         <div class="pd-ltr-20">
  14.             <div class="min-height-200px">
  15.                 <div class="page-header">
  16.                     <div class="row">
  17.                         <div class="col-md-6 col-sm-12">
  18.                             <div class="title">
  19.                                 <h4>Form</h4>
  20.                             </div>
  21.                             <nav aria-label="breadcrumb" role="navigation">
  22.                                 <ol class="breadcrumb">
  23.                                     <li class="breadcrumb-item"><a href="index.php">Home</a></li>
  24.                                     <li class="breadcrumb-item active" aria-current="page">Form Request Barang</li>
  25.                                 </ol>
  26.                             </nav>
  27.                         </div>
  28.                     </div>
  29.                 </div>
  30.                 <!-- Default Basic Forms Start -->
  31.                 <div class="pd-20 bg-white border-radius-4 box-shadow mb-30">
  32.                     <div class="clearfix">
  33.                         <div class="pull-left">
  34.                             <h4 class="text-blue">Form Request Barang</h4>
  35.                             <p class="mb-30 font-14">Untuk Semua Part Konsumsi</p>
  36.                         </div>
  37.                     </div>
  38.                     <button type="button" class="btn btn-primary" name="button" onclick="window.location.href='addreqmpro.php'">TAMBAH</button>
  39.                     <button type="button" class="btn btn-warning" disabled="disabled">EDIT</button>
  40.                      <button type="button" class="btn btn-success" disabled="disabled">SAVE</button>
  41.                     <button type="button" class="btn btn-danger" disabled="disabled">DELETE</button>
  42.                     <button type="button" class="btn btn-dark" disabled="disabled">CANCEL</button>
  43.                     <div class="form-group row">
  44.                             <label class="col-sm-12 col-md-2 col-form-label">Request No</label>
  45.                             <div class="col-sm-12 col-md-12 input-group">
  46.                                 <input class="form-control" type="text" name="requestnumber" id="requestnumber" placeholder="Nomor Request">
  47.                                 <button type="button" class="btn btn-primary" name="button" onclick="window.location.href='javascript: buka_popup();'"><i class="icon-copy fa fa-folder-open" aria-hidden="true"></i></button>
  48.                             </div>
  49.                         </div>
  50.                         <div class="form-group row">
  51.                             <label class="col-sm-12 col-md-2 col-form-label">Request Date</label>
  52.                             <div class="col-sm-12 col-md-12">
  53.                                 <input class="form-control date-picker" name="requestdate" placeholder="Select Date" type="text" disabled>
  54.                             </div>
  55.                         </div>
  56.                         <div class="table-responsive">
  57.                         <table class="table table-striped" >
  58.                             <thead>
  59.                                 <tr>
  60.                                     <th >PartID</th>
  61.                                     <th >PartName</th>
  62.                                     <th >LocationID</th>
  63.                                     <th >UnitID</th>
  64.                                     <th >Qty</th>
  65.                                     <th >Note</th>
  66.                                     <th >Hapus</th>
  67.                                 </tr>
  68.                             </thead>
  69.                             <tbody>
  70.                                 </tbody>
  71.                         </table>
  72.                         </div>
  73.                          <button type="button" class="btn btn-success btn-xs" disabled>+</button>
  74.                          </div>
  75.             </div>
  76.                
  77.         </div>
  78.             <?php include('include/footer.php'); ?>
  79.         </div>
  80.     <?php include('include/script.php'); ?>
  81.    
  82.     <script>
  83. child = window.open('datapart.php', 'children', 'width=600, height=300, location=0');
  84.             child.onload = function () {
  85.                
  86.                
  87.                 var table = $(child.document.getElementById('tablemasterpart')).DataTable({
  88.                     "processing": true,
  89.                     "serverSide": true,
  90.                     "ajax": "api/ms_part.php",
  91.                     "columns": [
  92.                         {"data": "PartID"},
  93.                         {"data": "PartName"},
  94.                         {"data": "OtherID"},
  95.                         {"data": "TypeInventoryID"}
  96.                     ],
  97.                     autoWidth: false,
  98.                     responsive: true,
  99.                     "lengthMenu": [[5, 10, 25, 50], [5, 10, 25, 50]],
  100.                     "language": {
  101.                         "info": "_START_-_END_ of _TOTAL_ entries",
  102.                         searchPlaceholder: "Search"
  103.                     },
  104.                 });
  105.                 table.on('select', function () {
  106.                     var rowData = table.rows({selected: true}).data()[0];
  107.                     $('#requestnumber').val(rowData);
  108.                     console.log(rowData);
  109.                 });
  110.            
  111.         }
  112.  
  113.  </script>
  114.  
  115. </body>
  116. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement