Gusraiii

indexx

Apr 1st, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. <div class="container-fluid">
  2. <ol class="breadcrumb">
  3. <li class="breadcrumb-item">
  4. <a href="#">Pelanggan</a>
  5. </li>
  6. <li class="breadcrumb-item active">Data Pelanggan</li>
  7. </ol>
  8. <div class="card mb-3">
  9. <div class="card-header">
  10. <i class="fa fa-list"></i>Pelanggan
  11. <?php echo anchor('Pelanggan/tambah','Tambah Pelanggan',array('class'=>'btn btn-primary')) ?>
  12. </div>
  13. <div class="card-body table-responsive">
  14. <div class="table-responsive">
  15. <table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
  16. <thead>
  17. <tr>
  18. <th>No</th>
  19. <th>Nama Pelanggan</th>
  20. <th>Jenis Kelamin</th>
  21. <th>Alamat</th>
  22. <th>No Telpon</th>
  23. <th>Aksi</th>
  24. </tr>
  25. </thead>
  26. <tfoot>
  27. <tr>
  28. <th>No</th>
  29. <th>Nama Pelanggan</th>
  30. <th>Jenis Kelamin</th>
  31. <th>Alamat</th>
  32. <th>No Telpon</th>
  33. <th>Aksi</th>
  34. </tr>
  35. </tfoot>
  36. <tbody>
  37. <?php $no=1 ?>
  38. <?php foreach ($pelanggan as $item) : ?>
  39. <tr>
  40. <td><?php echo $no ?></td>
  41. <td><?php echo $item->nama_pelanggan ?></td>
  42. <td><?php echo $item->kelamin ?></td>
  43. <td><?php echo $item->alamat ?></td>
  44. <td><?php echo $item->no_telpon ?></td>
  45. <td>
  46. <a href="<?php echo site_url('Pelanggan/edit/'.$item->kode_pelanggan) ?>" class="btn btn-sm btn-outline-secondary"
  47. style="padding-bottom: 0px; padding-top: 0px;">
  48. Edit
  49. <span class="btn-label btn-label-right"><i class="fa fa-edit"></i></span>
  50. </a>
  51. <?php echo form_open('Pelanggan/hapus/'.$item->kode_pelanggan) ?>
  52. <button type="submit" class="btn btn-sm btn-outline-danger" style="padding-bottom: 0px; padding-top: 0px;"
  53. onclick="return confirm('Anda Yakin Ingin Menghapus?');">
  54. Delete
  55. <span class="btn-label btn-label-right"><i class="fa fa-trash"></i></span>
  56. </button>
  57. <?php echo form_close() ?>
  58. </td>
  59. </tr>
  60. <?php $no++ ?>
  61. <?php endforeach; ?>
  62. </tbody>
  63. </table>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
Add Comment
Please, Sign In to add comment