Advertisement
timonte

transaksi

Apr 25th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. <h4><i class="fa fa-shopping-cart"></i> Data Transaksi</h4>
  2. <hr />
  3. <br />
  4. <div class="row">
  5. <table class="bordered responsive-table col m10 s12">
  6. <thead>
  7. <tr>
  8. <th width="5%" class="center">#</th>
  9. <th width="30%" class="center">Id Transaksi</th>
  10. <th width="15%" class="center">Tanggal Pesan</th>
  11. <th width="15%" class="center">Batas Bayar</th>
  12. <th width="15%" class="center">Total Biaya</th>
  13. <th width="10%" class="center">Status</th>
  14. <th width="15%" class="center">opsi</th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. <?php
  19. $tody = (abs(strtotime(date("Y-m-d"))));
  20. $i = 1;
  21. foreach ($get->result() as $key) :
  22. ?>
  23.  
  24. <tr>
  25. <td class="center"><?= $i++; ?></td>
  26. <td class="center"><?= $key->id_order; ?></td>
  27. <td class="center"><?= date("d M Y", strtotime($key->tgl_pesan)); ?></td>
  28. <td class="center"><?= date("d M Y", strtotime($key->bts_bayar)); ?></td>
  29. <td style="text-align:right">Rp. <?= number_format($key->total,0, ',', '.') ?>,-</td>
  30. <td class="center">
  31. <?php
  32. $batas = (abs(strtotime($key->bts_bayar)));
  33.  
  34. if ($today > $batas && $key->status == 'belum'){
  35. echo 'kedaluarsa';
  36. }else{
  37. echo ucfirst($key->status);
  38. }
  39. ?>
  40. </td>
  41. <td><?= $i++; ?></td>
  42. </tr>
  43.  
  44. <?php endforeach; ?>
  45. </tbody>
  46. </table>
  47. </div>
  48. <br />
  49. <div class="right">
  50. <button type="button" class="btn red" onclick="window.history.go(-1)">Kembali</button>
  51. </div>
  52. <br/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement