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.

40 lines
1.5 KiB

  1. <form class="form-inline" autocomplete="off" method="get" accept-charset="UTF-8">
  2. <select class="form-control">
  3. <option value="title">질문제목</option>
  4. <option value="name">질문자</option>
  5. </select>
  6. <input class="form-control" required>
  7. <button class="btn btn-default"><i class="fal fa-search"></i> 검색하기</button>
  8. </form>
  9. <table class="table">
  10. <thead>
  11. <tr>
  12. <th>순번</th>
  13. <th>질문유형</th>
  14. <th>질문제목</th>
  15. <th>질문자</th>
  16. <th>답변여부</th>
  17. <th>작성일시</th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. <?php if(count($lists) == 0) :?>
  22. <tr>
  23. <td colspan="5" class="text-center empty">등록된 질문이 없습니다.</td>
  24. </tr>
  25. <?php endif;?>
  26. <?php foreach($lists as $row):?>
  27. <tr>
  28. <td class="text-right"><?=$row['nums']?></td>
  29. <td class="text-right"><?=$row['qnc_title']?></td>
  30. <td class="text-left">
  31. <a href="<?=base_url('customer/qna/'.$row['qna_idx'])?>"><i class="fal fa-lock"></i> <?=$row['qna_title']?></a>
  32. </td>
  33. <td class="text-center"><?=$row['qna_name']?></td>
  34. <td class="text-center"><?=$row['is_answered']?'답변완료':'미답변'?></td>
  35. <td class="text-center"><?=$row['reg_datetime']?></td>
  36. </tr>
  37. <?php endforeach;?>
  38. </tbody>
  39. </table>
  40. <div class="text-center"><?=$pagination?></div>
  41. <a href="<?=base_url('customer/qna/write')?>"><i class="fal fa-pencil"></i> 질문작성하기</a>