Ledger Nano X - The secure hardware wallet
SHARE
TWEET

print.php

Adiatma Sep 16th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php ob_start() ?>
  2. <html>
  3. <head>
  4.   <title>Cetak PDF</title>
  5.   <style>
  6.     table {
  7.       border-collapse:collapse;
  8.       table-layout:fixed;width: 630px;
  9.     }
  10.     table td {
  11.       word-wrap:break-word;
  12.       width: 20%;
  13.     }
  14.   </style>
  15. </head>
  16. <body>
  17.     <b><?php echo $ket; ?></b><br /><br />
  18.    
  19.   <table border="1" cellpadding="8">
  20.   <tr>
  21.     <th>Tanggal</th>
  22.     <th>Kode Transaksi</th>
  23.     <th>Barang</th>
  24.     <th>Jumlah</th>
  25.     <th>Total Harga</th>
  26.   </tr>
  27.     <?php
  28.     if( ! empty($transaksi)){
  29.       $no = 1;
  30.       foreach($transaksi as $data){
  31.             $tgl = date('d-m-Y', strtotime($data->tgl));
  32.         echo "<tr>";
  33.         echo "<td>".$tgl."</td>";
  34.         echo "<td>".$data->kode."</td>";
  35.         echo "<td>".$data->barang."</td>";
  36.         echo "<td>".$data->jumlah."</td>";
  37.         echo "<td>".$data->total_harga."</td>";
  38.         echo "</tr>";
  39.         $no++;
  40.       }
  41.     }
  42.     ?>
  43.   </table>
  44. </body>
  45. </html>
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