Advertisement
kura2yamato

perbaikan 97d

Sep 1st, 2019
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <tbody id='hki_1'>
  2.                             <?php
  3.                             $sql = "select * from tb_3b5 where  1 and header_code like 'i";
  4.  
  5.                             $no = 1;
  6.                             $que = $this->db->query($sql);
  7.                             $tabel_3b5 = $que->result();
  8.  
  9.                             if (is_array($tabel_3b5))
  10.                                 foreach ($tabel_3b5 as $t3b5) : ?>
  11.                                 <tr>
  12.                                     <td><?php echo $no++ ?></td>
  13.                                     <td><?php echo $t3b5->judul ?></td>
  14.                                     <td><?php echo $t3b5->tahun ?></td>
  15.                                     <td><?php echo $t3b5->keterangan ?></td>
  16.                                     <td onclick="javascript: return confirm('Apakah anda ingin menghapus?')">
  17.                                         <?php echo anchor(
  18.                                                 'tabel_3b5/hapus/' . $t3b5->id_3b5,
  19.                                                 '<div class="btn btn-danger btn-sm"><i class="fa fa-trash"></i></div>'
  20.                                             ) ?>
  21.                                     </td>
  22.                                     <td>
  23.                                         <?php echo anchor(
  24.                                                 'tabel_3b5/edit/' . $t3b5->id_3b5,
  25.                                                 '<div class="btn btn-primary btn-sm"><i class="fa fa-edit"></i></div>'
  26.                                             ) ?>
  27.                                     </td>
  28.                                 </tr>
  29.  
  30.                             <?php endforeach; ?>
  31.                         </tbody>
  32. <tbody id='hki_2'>
  33.                             <?php
  34.                             $sql = "select * from tb_3b5 where  1 and header_code like 'ii'";
  35.  
  36.                             $no = 1;
  37.                             $que = $this->db->query($sql);
  38.                             $tabel_3b5 = $que->result();
  39.  
  40.                             if (is_array($tabel_3b5))
  41.                                 foreach ($tabel_3b5 as $t3b5) : ?>
  42.                                 <tr>
  43.                                     <td><?php echo $no++ ?></td>
  44.                                     <td><?php echo $t3b5->judul ?></td>
  45.                                     <td><?php echo $t3b5->tahun ?></td>
  46.                                     <td><?php echo $t3b5->keterangan ?></td>
  47.                                     <td onclick="javascript: return confirm('Apakah anda ingin menghapus?')">
  48.                                         <?php echo anchor(
  49.                                                 'tabel_3b5/hapus/' . $t3b5->id_3b5,
  50.                                                 '<div class="btn btn-danger btn-sm"><i class="fa fa-trash"></i></div>'
  51.                                             ) ?>
  52.                                     </td>
  53.                                     <td>
  54.                                         <?php echo anchor(
  55.                                                 'tabel_3b5/edit/' . $t3b5->id_3b5,
  56.                                                 '<div class="btn btn-primary btn-sm"><i class="fa fa-edit"></i></div>'
  57.                                             ) ?>
  58.                                     </td>
  59.                                 </tr>
  60.  
  61.                             <?php endforeach; ?>
  62.                         </tbody>
  63. <tbody id='hki_3'>
  64.                             <?php
  65.                             $sql = "select * from tb_3b5 where  1 and header_code like 'iii'";
  66.  
  67.                             $no = 1;
  68.                             $que = $this->db->query($sql);
  69.                             $tabel_3b5 = $que->result();
  70.  
  71.                             if (is_array($tabel_3b5))
  72.                                 foreach ($tabel_3b5 as $t3b5) : ?>
  73.                                 <tr>
  74.                                     <td><?php echo $no++ ?></td>
  75.                                     <td><?php echo $t3b5->judul ?></td>
  76.                                     <td><?php echo $t3b5->tahun ?></td>
  77.                                     <td><?php echo $t3b5->keterangan ?></td>
  78.                                     <td onclick="javascript: return confirm('Apakah anda ingin menghapus?')">
  79.                                         <?php echo anchor(
  80.                                                 'tabel_3b5/hapus/' . $t3b5->id_3b5,
  81.                                                 '<div class="btn btn-danger btn-sm"><i class="fa fa-trash"></i></div>'
  82.                                             ) ?>
  83.                                     </td>
  84.                                     <td>
  85.                                         <?php echo anchor(
  86.                                                 'tabel_3b5/edit/' . $t3b5->id_3b5,
  87.                                                 '<div class="btn btn-primary btn-sm"><i class="fa fa-edit"></i></div>'
  88.                                             ) ?>
  89.                                     </td>
  90.                                 </tr>
  91.  
  92.                             <?php endforeach; ?>
  93.                         </tbody>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement