Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .<div class="row">
- <div class="col-md-12 col-lg-12 mt-1">
- <?php echo $this->session->flashdata('message'); ?>
- <div class="card">
- <div class="card-header">
- <div class="card-title"><?php if (isset($head)) {
- echo $head;
- } ?></div>
- <div class="card-options">
- <a class="btn btn-sm btn-primary" href="<?php echo base_url('dokumenter/').'add' ?>"><i class="fa fa-plus"></i> Tambah Video</a>
- </div>
- </div>
- <div class="card-body">
- <div class="table-responsive">
- <table id="example" class="table table-striped table-bordered text-nowrap w-100">
- <thead>
- <tr>
- <th scope="col" class="border-top-0"><strong>No</strong></th>
- <th scope="col" class="border-top-0"><strong>Tema Video</strong></th>
- <th scope="col" class="border-top-0"><strong>Jenis</strong></th>
- <th scope="col" class="border-top-0"><strong>Tahun</strong></th>
- <th scope="col" class="border-top-0"><strong>Produksi</strong></th>
- <th scope="col" class="border-top-0"><strong>Video Details</strong></th>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($doc as $data) { ?>
- <tr>
- <th width="10px"><?php echo ++$start ?></th>
- <td width="10px"><?php echo $data->judul; ?></td>
- <td width="10px"><?php
- if($data->jenis == '1' || $data->jenis == 'Film Koleksi Bioling')
- {
- echo "Film Koleksi Bioling";
- }
- elseif ($data->jenis == '2' || $data->jenis == 'Video Lainnya')
- {
- echo "Video Lainnya";
- }
- elseif ($data->jenis == '3' || $data->jenis == 'Video WBTB')
- {
- echo "Video WBTB";
- }
- elseif ($data->jenis == '4' || $data->jenis == 'Video Dokumenter')
- {
- echo "Video Dokumenter";
- }
- ?></td>
- <td width="10px"><?php echo $data->tahun; ?></td>
- <td width="10px">
- <a class="btn btn-sm btn-primary" href="<?php echo base_url('dokumenter/update/'). $data->id_dok; ?>"><i class="fa fa-edit"></i> </a>
- <a class="btn btn-sm btn-danger" href="<?php echo base_url('dokumenter/remove/'). $data->id_dok; ?>"><i class="fa fa-trash"></i> </a>
- </td>
- <td width="10px">
- <?php if ($data->youtube_link == ''): ?>
- <a class="btn btn-sm btn-warning" href="#"><i class="fa fa-close"></i> Belum Ada Video</a>
- <?php else: ?>
- <a class="btn btn-sm btn-info" href="https://www.youtube.com/watch?v=<?php echo $data->youtube_link; ?>" target="_blank" ><i class="fa fa-youtube-play"></i> Putar</a>
- <?php endif; ?>
- </td>
- </tr>
- <?php } ?>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement