Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <tbody id='hki_1'>
- <?php
- $sql = "select * from tb_3b5 where 1 and header_code like 'hki-1'";
- $no = 1;
- $que = $this->db->query($sql);
- if (is_array($tabel_3b5))
- foreach ($tabel_3b5 as $t3b5) : ?>
- <tr>
- <td><?php echo $no++ ?></td>
- <td><?php echo $t3b5->judul ?></td>
- <td><?php echo $t3b5->tahun ?></td>
- <td><?php echo $t3b5->keterangan ?></td>
- <td onclick="javascript: return confirm('Apakah anda ingin menghapus?')">
- <?php echo anchor(
- 'tabel_3b5/hapus/' . $t3b5->id_3b5,
- '<div class="btn btn-danger btn-sm"><i class="fa fa-trash"></i></div>'
- ) ?>
- </td>
- <td>
- <?php echo anchor(
- 'tabel_3b5/edit/' . $t3b5->id_3b5,
- '<div class="btn btn-primary btn-sm"><i class="fa fa-edit"></i></div>'
- ) ?>
- </td>
- </tr>
- <?php endforeach; ?>
- </tbody>
- <tbody id='hki_2'>
- <?php
- $sql = "select * from tb_3b5 where 1 and header_code like 'hki-2'";
- $no = 1;
- $que = $this->db->query($sql);
- if (is_array($tabel_3b5))
- foreach ($tabel_3b5 as $t3b5) : ?>
- <tr>
- <td><?php echo $no++ ?></td>
- <td><?php echo $t3b5->judul ?></td>
- <td><?php echo $t3b5->tahun ?></td>
- <td><?php echo $t3b5->keterangan ?></td>
- <td onclick="javascript: return confirm('Apakah anda ingin menghapus?')">
- <?php echo anchor(
- 'tabel_3b5/hapus/' . $t3b5->id_3b5,
- '<div class="btn btn-danger btn-sm"><i class="fa fa-trash"></i></div>'
- ) ?>
- </td>
- <td>
- <?php echo anchor(
- 'tabel_3b5/edit/' . $t3b5->id_3b5,
- '<div class="btn btn-primary btn-sm"><i class="fa fa-edit"></i></div>'
- ) ?>
- </td>
- </tr>
- <?php endforeach; ?>
- </tbody>
- <tbody id='hki_3'>
- <?php
- $sql = "select * from tb_3b5 where 1 and header_code like 'hki-3'";
- $no = 1;
- $que = $this->db->query($sql);
- if (is_array($tabel_3b5))
- foreach ($tabel_3b5 as $t3b5) : ?>
- <tr>
- <td><?php echo $no++ ?></td>
- <td><?php echo $t3b5->judul ?></td>
- <td><?php echo $t3b5->tahun ?></td>
- <td><?php echo $t3b5->keterangan ?></td>
- <td onclick="javascript: return confirm('Apakah anda ingin menghapus?')">
- <?php echo anchor(
- 'tabel_3b5/hapus/' . $t3b5->id_3b5,
- '<div class="btn btn-danger btn-sm"><i class="fa fa-trash"></i></div>'
- ) ?>
- </td>
- <td>
- <?php echo anchor(
- 'tabel_3b5/edit/' . $t3b5->id_3b5,
- '<div class="btn btn-primary btn-sm"><i class="fa fa-edit"></i></div>'
- ) ?>
- </td>
- </tr>
- <?php endforeach; ?>
- </tbody>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement