Advertisement
Guest User

Untitled

a guest
Sep 1st, 2019
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 KB | None | 0 0
  1. <tbody id='hki_1'>
  2. <?php
  3. $sql = "select * from tb_3b5 where master_id={$master_id} and header_code like 'hki-1'";
  4.  
  5. $no = 1;
  6. $que = $this->db->query($sql);
  7.  
  8. if (is_array($tabel_3b5))
  9. foreach ($tabel_3b5 as $t3b5) : ?>
  10. <tr>
  11. <td><?php echo $no++ ?></td>
  12. <td><?php echo $t3b5->judul ?></td>
  13. <td><?php echo $t3b5->tahun ?></td>
  14. <td><?php echo $t3b5->keterangan ?></td>
  15. <td onclick="javascript: return confirm('Apakah anda ingin menghapus?')">
  16. <?php echo anchor(
  17. 'tabel_3b5/hapus/' . $t3b5->id_3b5,
  18. '<div class="btn btn-danger btn-sm"><i class="fa fa-trash"></i></div>'
  19. ) ?>
  20. </td>
  21. <td>
  22. <?php echo anchor(
  23. 'tabel_3b5/edit/' . $t3b5->id_3b5,
  24. '<div class="btn btn-primary btn-sm"><i class="fa fa-edit"></i></div>'
  25. ) ?>
  26. </td>
  27. </tr>
  28.  
  29. <?php endforeach; ?>
  30. </tbody>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement