Advertisement
Guest User

application\views\page\dokumenter\list.php

a guest
Feb 20th, 2020
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. .<div class="row">
  2. <div class="col-md-12 col-lg-12 mt-1">
  3. <?php echo $this->session->flashdata('message'); ?>
  4. <div class="card">
  5. <div class="card-header">
  6. <div class="card-title"><?php if (isset($head)) {
  7. echo $head;
  8. } ?></div>
  9. <div class="card-options">
  10. <a class="btn btn-sm btn-primary" href="<?php echo base_url('dokumenter/').'add' ?>"><i class="fa fa-plus"></i> Tambah Video</a>
  11. </div>
  12. </div>
  13. <div class="card-body">
  14. <div class="table-responsive">
  15. <table id="example" class="table table-striped table-bordered text-nowrap w-100">
  16. <thead>
  17. <tr>
  18. <th scope="col" class="border-top-0"><strong>No</strong></th>
  19. <th scope="col" class="border-top-0"><strong>Tema Video</strong></th>
  20. <th scope="col" class="border-top-0"><strong>Jenis</strong></th>
  21. <th scope="col" class="border-top-0"><strong>Tahun</strong></th>
  22. <th scope="col" class="border-top-0"><strong>Produksi</strong></th>
  23. <th scope="col" class="border-top-0"><strong>Video Details</strong></th>
  24. </tr>
  25. </thead>
  26. <tbody>
  27. <?php foreach ($doc as $data) { ?>
  28. <tr>
  29. <th width="10px"><?php echo ++$start ?></th>
  30. <td width="10px"><?php echo $data->judul; ?></td>
  31. <td width="10px"><?php
  32. if($data->jenis == '1' || $data->jenis == 'Film Koleksi Bioling')
  33. {
  34. echo "Film Koleksi Bioling";
  35. }
  36. elseif ($data->jenis == '2' || $data->jenis == 'Video Lainnya')
  37. {
  38. echo "Video Lainnya";
  39. }
  40. elseif ($data->jenis == '3' || $data->jenis == 'Video WBTB')
  41. {
  42. echo "Video WBTB";
  43. }
  44. elseif ($data->jenis == '4' || $data->jenis == 'Video Dokumenter')
  45. {
  46. echo "Video Dokumenter";
  47. }
  48.  
  49. ?></td>
  50. <td width="10px"><?php echo $data->tahun; ?></td>
  51. <td width="10px">
  52. <a class="btn btn-sm btn-primary" href="<?php echo base_url('dokumenter/update/'). $data->id_dok; ?>"><i class="fa fa-edit"></i> </a>
  53. <a class="btn btn-sm btn-danger" href="<?php echo base_url('dokumenter/remove/'). $data->id_dok; ?>"><i class="fa fa-trash"></i> </a>
  54. </td>
  55. <td width="10px">
  56. <?php if ($data->youtube_link == ''): ?>
  57. <a class="btn btn-sm btn-warning" href="#"><i class="fa fa-close"></i> Belum Ada Video</a>
  58. <?php else: ?>
  59. <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>
  60.  
  61. <?php endif; ?>
  62. </td>
  63.  
  64. </tr>
  65. <?php } ?>
  66. </tbody>
  67. </table>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement