SHARE
TWEET

Untitled

a guest Feb 19th, 2020 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. include'../library/config.php';
  3. include'../content/function.php';
  4. $pl =query("SELECT * FROM project_list INNER JOIN status ON status.id_status = project_list.id_status ORDER BY project_list.id_projek DESC");
  5. header("Content-type: application/x-msdownload");
  6. header("Content-Disposition: attachment; filename=report.xls");
  7.  
  8. ?>
  9. <style type="text/css">
  10.    img,
  11.    table,
  12.    tr,
  13.    td
  14.    {
  15.       vertical-align: center;
  16.    }
  17.    .re
  18.    {
  19.       font-size:30px;
  20.    }
  21.    .duk
  22.    {
  23.       font-size:18px;
  24.    }
  25.    .si
  26.    {
  27.       text-align:left;
  28.    }
  29.    h1{
  30.       text-align: center;
  31.    }
  32. </style>
  33. <center>
  34.    <div class="re">LAPORAN DATA BARANG</div>
  35.    <div class="duk">PT SUPERNOVA FLEXIBLE PACKAGING</div>
  36.    <div class="duk">MANUFACTURING & CONVERTING OF SPECIALITY FLEXIBLE PACKAGING</div>
  37.    <div class="si">Tanggal : <?php echo Date('d F Y');?></div>
  38. </center>
  39.  
  40. <h1>REKAP DATA BARANG</h1>
  41.  
  42.  
  43. <table class="table table-striped table-hover table-bordered table-responsive">
  44.       <thead>
  45.          <tr>
  46.                   <th>NO.</th>
  47.                   <th>Area / Mesin</th>
  48.                   <th>Judul Projek</th>
  49.                   <th>Uraian Progress</th>
  50.                   <th>Nomor WO</th>
  51.                   <th>Nomor PR</th>
  52.                   <th>Tanggal Mulai</th>
  53.                   <th>Tanggal Selesai</th>
  54.                   <th>Status</th>
  55.          </tr>
  56.       </thead>
  57.       <tbody>
  58.          
  59.          <?php $i = 1; ?>
  60.          <?php foreach ( $pl as $data ) : ?>
  61.       <tr>
  62.          <td><?= $i ?></td>
  63.                   <td><?= $data['area_mesin'] ?></td>
  64.                   <td><?= $data['judul_projek'] ?></td>
  65.                   <td><?= $data['uraian_progress'] ?></td>
  66.                   <td><?= $data['nomor_wo'] ?></td>
  67.                   <td><?= $data['nomor_pr'] ?></td>
  68.                   <td><?= $data['tanggal_mulai'] ?></td>
  69.                   <td><?= $data['tanggal_selesai'] ?></td>
  70.                   <td><?= $data['nama_status'] ?></td>
  71.                   <td>
  72.      </tr>
  73.          <?php $i++; ?>
  74.          <?php endforeach; ?>
  75.    </tbody>
  76. </table>
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99. <style type="text/css">
  100.    img,
  101.    table,
  102.    tr,
  103.    td
  104.    {
  105.       vertical-align: center;
  106.    }
  107.    .re
  108.    {
  109.       font-size:30px;
  110.    }
  111.    .duk
  112.    {
  113.       font-size:18px;
  114.    }
  115.    .si
  116.    {
  117.       text-align:left;
  118.    }
  119.    h1{
  120.       text-align: center;
  121.    }
  122. </style>
  123. <center>
  124.  <div class="duk">Office & Factory :</div>
  125.  <div class="duk">Jl. Industri Selatan Blok LL No.1 Jababeka II, Cikarang, Bekasi 17550 - Indonesia</div>
  126.  <div class="duk">Phone : (62-21)989 31969 (Hunting ) Fax : (62-21) 898 31967</div>
  127. </center>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top