Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table class="table">
- <thead>
- <tr>
- <th>NO</th>
- <th>JUDUL</th>
- <th>KATEGORI</th>
- <th>DESKRIPSI</th>
- <th>GAMBAR</th>
- <th>ACTION</th>
- </tr>
- </thead>
- <tbody>
- <?php
- $galeri = $this->Galeri_m->select_db();
- $no = 1;
- foreach ($galeri as $row ) {
- ?>
- <tr>
- <th scope="row"><?php echo $no++;?></th>
- <td><?php echo $row->judul_foto;?></td>
- <td><img src="<?php echo base_url();?>assets/images/<?php echo $row->foto;?>" style="width: 80px"></td>
- <td><?php echo $row->ket_foto;?></td>
- <td>
- <a class="btn btn-info" href="<?php echo site_url('galeri/select_by/'.$row->id_galeri);?>">EDIT</a>
- <a class="btn btn-danger" href="<?php echo site_url('galeri/delete/'.$row->id_galeri);?>" onclick="return confirm('Apakah Anda Ingin Menghapus Data Ini??')">DELETE</a>
- </td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement