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.

91 lines
4.3 KiB

7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
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">FAQ 관리</h1>
  3. </div>
  4. <div class="row">
  5. <div class="col-sm-5">
  6. <div class="ax-button-group">
  7. <div class="left">
  8. <h4>FAQ 분류</h4>
  9. </div>
  10. <div class="right">
  11. <button type="button" class="btn btn-default" onclick="faq.category.form();"><i class="far fa-plus-circle"></i> 분류 추가</button>
  12. </div>
  13. </div>
  14. <div class="grid">
  15. <table>
  16. <thead>
  17. <tr>
  18. <th class="W20"></th>
  19. <th>분류이름</th>
  20. <th class="W50">등록</th>
  21. <th class="W125">관리</th>
  22. </tr>
  23. </thead>
  24. <tbody data-toggle="sortable" data-key="fac_idx" data-sort="fac_sort" data-table="faq_category">
  25. <?php foreach($faq_category['list'] as $row) :?>
  26. <tr class="<?=isset($fac_idx)&&$fac_idx==$row['fac_idx']?'active':''?>">
  27. <td class="text-center"><span class="move-grip"></span><input type="hidden" name="fac_idx[]" value="<?=$row['fac_idx']?>"></td>
  28. <td class=""><i class="far <?=isset($fac_idx)&&$fac_idx==$row['fac_idx']?'fa-folder-open':'fa-folder'?>"></i>&nbsp;<a href="<?=base_url('admin/management/faq/'.$row['fac_idx'])?>"><?=$row['fac_title']?></a></td>
  29. <td class="text-right W50"><?=number_format($row['fac_count'])?></td>
  30. <td class="text-center">
  31. <button type="button" class="btn btn-default btn-sm MR5" onclick="faq.category.form('<?=$row['fac_idx']?>');"><i class="far fa-pencil"></i> 수정</button>
  32. <button type="button" class="btn btn-danger btn-sm" onclick="faq.category.remove('<?=$row['fac_idx']?>');"><i class="far fa-trash"></i> 삭제</button>
  33. </td>
  34. </tr>
  35. <?php endforeach;?>
  36. <?php if(count($faq_category['list']) == 0) :?>
  37. <tr>
  38. <td colspan="4" class="empty">등록된 FAQ 분류가 없습니다.</td>
  39. </tr>
  40. <?php endif;?>
  41. </tbody>
  42. </table>
  43. </div>
  44. </div>
  45. <div class="col-sm-7">
  46. <?php if($fac_idx) :?>
  47. <div class="ax-button-group">
  48. <div class="left">
  49. <h4>[<?=$faq_group['fac_title']?>] 내용 관리</h4>
  50. </div>
  51. <div class="right">
  52. <button type="button" class="btn btn-default" onclick="faq.form('<?=$fac_idx?>');"><i class="far fa-plus-circle"></i> FAQ 추가</button>
  53. </div>
  54. </div>
  55. <div class="grid">
  56. <table>
  57. <thead>
  58. <tr>
  59. <th class="W20"></th>
  60. <th>FAQ 제목</th>
  61. <th class="W150">관리</th>
  62. </tr>
  63. </thead>
  64. <tbody data-toggle="sortable" data-key="faq_idx" data-sort="faq_sort" data-table="faq">
  65. <?php foreach($faq_list['list'] as $row) :?>
  66. <tr>
  67. <td class="text-center"><span class="move-grip"></span><input type="hidden" name="faq_idx[]" value="<?=$row['faq_idx']?>"></td>
  68. <td><?=$row['faq_title']?></td>
  69. <td class="text-center W150">
  70. <button type="button" class="btn btn-default btn-sm" onclick="faq.form('<?=$row['fac_idx']?>','<?=$row['faq_idx']?>');"><i class="far fa-pencil"></i> 수정</button>
  71. <button type="button" class="btn btn-danger btn-sm" onclick="faq.remove('<?=$row['faq_idx']?>');"><i class="far fa-trash"></i> 삭제</button>
  72. </td>
  73. </tr>
  74. <?php endforeach;?>
  75. <?php if(count($faq_list['list']) == 0) :?>
  76. <tr>
  77. <td colspan="3" class="empty">등록된 FAQ가 없습니다.</td>
  78. </tr>
  79. <?php endif;?>
  80. </tbody>
  81. </table>
  82. </div>
  83. <?php endif;?>
  84. </div>
  85. </div>