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.

90 lines
4.1 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. <div class="page-header">
  2. <h1 class="page-title">게시판 관리</h1>
  3. </div>
  4. <div data-ax5grid>
  5. <table>
  6. <thead>
  7. <tr>
  8. <th>번호</th>
  9. <th>고유키</th>
  10. <th>게시판 이름</th>
  11. <th>목록 스킨</th>
  12. <th>페이지당 </th>
  13. <th>등록된 </th>
  14. <th>카테고리</th>
  15. <th>답글</th>
  16. <th>댓글</th>
  17. <th>목록</th>
  18. <th>첨부파일</th>
  19. <th>내용</th>
  20. <th>쓰기</th>
  21. <th>관리</th>
  22. </tr>
  23. </thead>
  24. <tbody>
  25. <?php foreach($board_list['list'] as $brd) :?>
  26. <tr>
  27. <td class="text-center"><?=$brd['nums']?></td>
  28. <td class="text-center"><?=$brd['brd_key']?></td>
  29. <td class="text-center"><?=$brd['brd_title']?><a class="btn btn-default btn-sm ML10" data-toggle="tooltip" title="게시판 바로가기" target="_blank" href="<?=base_url('board/'.$brd['brd_key'])?>"><i class="far fa-external-link-square"></i></a></td>
  30. <td class="text-center"><?=$brd['brd_skin_l']?></td>
  31. <td class="text-center"><?=$brd['brd_page_limit']=='Y'?$brd['brd_page_rows']:'미사용'?></td>
  32. <td class="text-center"><?=number_format($brd['brd_count_post'])?></td>
  33. <td class="text-center"><?=$brd['brd_use_category']=='Y'?'사용':'미사용'?></td>
  34. <td class="text-center"><?=$brd['brd_use_reply']=='Y'?'사용':'미사용'?></td>
  35. <td class="text-center"><?=$brd['brd_use_comment']=='Y'?'사용':'미사용'?></td>
  36. <td class="text-center"><?=$brd['brd_use_attach']=='Y'?'사용':'미사용'?></td>
  37. <td class="text-center"><?=$brd['brd_lv_list']?></td>
  38. <td class="text-center"><?=$brd['brd_lv_read']?></td>
  39. <td class="text-center"><?=$brd['brd_lv_write']?></td>
  40. <td class="text-center">
  41. <?php if($brd['brd_use_category']=='Y') :?>
  42. <a class="btn btn-default" href="<?=base_url('admin/board/category/'.$brd['brd_key'])?>" data-toggle="tooltip" title="카테고리 관리"><i class="far fa-sitemap"></i></a>
  43. <?php endif;?>
  44. <button class="btn btn-default" data-button="copy-board" data-key="<?=$brd['brd_key']?>" data-toggle="tooltip" title="게시판 복사"><i class="far fa-copy"></i></button>
  45. <a class="btn btn-default" href="<?=base_url('admin/board/form/'.$brd['brd_key'])?>" data-toggle="tooltip" title="정보 수정"><i class="far fa-pencil"></i></a>
  46. <a class="btn btn-danger" href="<?=base_url('admin/board/remove/'.$brd['brd_key'])?>" onclick="return confirm('해당 게시판을 삭제하시겠습니까?');" data-toggle="tooltip" title="게시판 삭제"><i class="far fa-trash"></i></a>
  47. </td>
  48. </tr>
  49. <?php endforeach;?>
  50. <?php if(count($board_list['list']) == 0) :?>
  51. <tr>
  52. <td colspan="14" class="empty">등록된 게시판이 없습니다.</td>
  53. </tr>
  54. <?php endif;?>
  55. </tbody>
  56. </table>
  57. </div>
  58. <div class="ax-button-group ax-button-group-bottom">
  59. <div class="right">
  60. <a href="<?=base_url('admin/board/form')?>" class="btn btn-default"><i class="far fa-plus-circle"></i> 게시판 추가하기</a>
  61. </div>
  62. </div>
  63. <script>
  64. $(document).ready(function(){
  65. $('[data-toggle="tooltip"]').tooltip();
  66. $('[data-button="copy-board"]').click(function(){
  67. var brd_key = $(this).data('key');
  68. APP.MODAL.callback = function() {
  69. location.reload();
  70. };
  71. APP.MODAL.open({
  72. iframe : {
  73. url : '/admin/board/board_copy/'+brd_key,
  74. param : {
  75. brd_key : brd_key
  76. }
  77. },
  78. header : {
  79. title : '게시판 복사하기'
  80. },
  81. width:400,
  82. height:300
  83. });
  84. });
  85. });
  86. </script>