You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
2.4 KiB

7 years ago
7 years ago
7 years ago
  1. <div class="page-header">
  2. <h1 class="page-title">팝업 관리<small>사이트 관리 &gt; 팝업관리</small></h1>
  3. </div>
  4. <div class="H10"></div>
  5. <div class="ax-button-group">
  6. <div class="left">
  7. <h4>팝업 관리</h4>
  8. </div>
  9. <div class="right">
  10. <a class="btn btn-secondary" href="<?=base_url('admin/management/popup_form')?>"><i class="far fa-plus-circle"></i> 신규 팝업 등록</a>
  11. </div>
  12. </div>
  13. <div data-ax5grid>
  14. <table>
  15. <thead>
  16. <tr>
  17. <th>번호</th>
  18. <th>팝업 종류</th>
  19. <th>팝업 이름</th>
  20. <th>팝업 너비</th>
  21. <th>팝업 높이</th>
  22. <th>표시 시작</th>
  23. <th>표시 종류</th>
  24. <th>상태</th>
  25. <th>관리</th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. <?php foreach($popup_list['list'] as $row) :?>
  30. <tr>
  31. <td class="text-center W100"><?=$row['nums']?></td>
  32. <td class="text-center W100"><?=$row['pop_type']=='N'?'팝업레이어':'팝업창'?></td>
  33. <td class="text-left"><?=$row['pop_title']?></td>
  34. <td class="text-center W100"><?=$row['pop_width']?></td>
  35. <td class="text-center W100"><?=$row['pop_height']?></td>
  36. <td class="text-center W200"><?=$row['pop_start']?></td>
  37. <td class="text-center W200"><?=$row['pop_end']?></td>
  38. <td class="text-center W100">
  39. <?php if( strtotime($row['pop_start']) <= time() && strtotime($row['pop_end']) >= time()) :?>
  40. <label class="label label-success">표시중</label>
  41. <?php else :?>
  42. <label class="label label-default"> 표시중</label>
  43. <?php endif;?>
  44. </td>
  45. <td class="text-center W150">
  46. <a class="btn btn-default btn-xs" href="<?=base_url('admin/management/popup_form/'.$row['pop_idx'])?>"><i class="far fa-pencil"></i> 수정</a>
  47. <a class="btn btn-danger btn-xs" onclick="return confirm('해당 팝업을 삭제하시겠습니까?');" href="<?=base_url('admin/management/popup_delete/'.$row['pop_idx'])?>"><i class="far fa-trash"></i> 삭제</a>
  48. </td>
  49. </tr>
  50. <?php endforeach;?>
  51. <?php if(count($popup_list['list']) <=0) :?>
  52. <tr>
  53. <td colspan="9" class="empty">등록된 팝업이 없습니다.</td>
  54. </tr>
  55. <?php endif;?>
  56. </tbody>
  57. </table>
  58. </div>