Algaza

Result.php

Mar 1st, 2018
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.11 KB | None | 0 0
  1. <table class="table table-bordered table-striped">
  2.     <thead>
  3.     <tr>
  4.         <th>No</th>
  5.         <th>Tanggal</th>
  6.         <th>Kode Penjualan</th>
  7.         <th>Nama Pelanggan</th>
  8.         <th>Total Harga</th>
  9.     </tr>
  10.     </thead>
  11.     <tbody>
  12.     <?php
  13.     $no=1;
  14.     if(isset($dt_result)){
  15.         foreach($dt_result as $row){
  16.             ?>
  17.             <tr class="gradeX">
  18.                 <td><?php echo $no++; ?></td>
  19.                 <td><?php echo date("d M Y",strtotime($row->tanggal_penjualan)); ?></td>
  20.                 <td><?php echo $row->kd_penjualan; ?></td>
  21.                 <td><?php echo $row->nm_pelanggan; ?></td>
  22.                 <td><?php echo currency_format($row->total_harga); ?></td>
  23.             </tr>
  24.             <tr>
  25.                 <td colspan="4" style="text-align: center; background: #49afcd"><strong>Total Seluruh Penjualan</strong></td>
  26.                 <td><?= currency_format($row->total_all)?></td>
  27.             </tr>
  28.         <?php }
  29.     }
  30.     ?>
  31.     </tbody>
  32. </table>
  33.  
  34. <hr/>
  35.  
  36. <button class="btn pull-right" onclick="print()">
  37.     <i class="icon-print"></i> Print
  38. </button>
Advertisement
Add Comment
Please, Sign In to add comment