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.

106 lines
4.2 KiB

7 years ago
  1. <div class="container">
  2. <div class="page-header">
  3. <h1 class="page-title"><?=$board['brd_title']?></h1>
  4. <!-- START :: 게시판 RSS-->
  5. <div class="pull-right">
  6. <a href="<?=$board['link']['rss']?>" target="_blank"><i class="fa fa-rss"></i> <?=$board['link']['rss']?></a>
  7. </div>
  8. <!-- END :: 게시판 RSS-->
  9. </div>
  10. <?php if($category_list) :?>
  11. <ul class="board-category">
  12. <li><a href="<?=$board['link']['base_url']?>">전체 보기</a></li>
  13. <?php foreach($category_list as $cate) :?>
  14. <li>
  15. <a href="<?=$cate['link']?>"><?=$cate['bca_name']?></a>
  16. <ul>
  17. <?php foreach($cate['items'] as $subcate) :?>
  18. <li><a href="<?=$subcate['link']?>"><?=$subcate['bca_name']?></a></li>
  19. <?php endforeach;?>
  20. </ul>
  21. </li>
  22. <?php endforeach;?>
  23. </ul>
  24. <div class="H30"></div>
  25. <?php endif;?>
  26. <table class="table table-striped">
  27. <thead>
  28. <tr>
  29. <th class="text-center">#</th>
  30. <?php if($use_category) :?>
  31. <th class="text-center">분류</th>
  32. <?php endif;?>
  33. <th class="text-center"> </th>
  34. <th class="text-center">작성자</th>
  35. <th class="text-center">조회수</th>
  36. <th class="text-center">작성일</th>
  37. </tr>
  38. </thead>
  39. <tbody>
  40. <!-- START:: 목록-->
  41. <?php foreach($list['list'] as $post) :?>
  42. <tr>
  43. <td class="text-center">
  44. <?php if($post['post_notice']) : ?>
  45. <label class="label label-danger">공지</label>
  46. <?php elseif(strlen($post['post_reply']) > 0) : ?>
  47. <?php else :
  48. echo $post['nums'];
  49. endif;?>
  50. </td>
  51. <?php if($use_category) :?>
  52. <td class="text-center"><?=$post['bca_name']?></td>
  53. <?php endif;?>
  54. <td>
  55. <?php if(strlen($post['post_reply']) >0) :?>
  56. <span style="display:inline-block;width:<?=((strlen($post['post_reply'])-1) * 16)?>px"></span>
  57. <img src="<?=base_url('assets/images/common/icon_reply.gif')?>">
  58. <?php endif;?>
  59. <a href="<?=$post['link']?>"><?=$post['post_title']?></a> <!-- 제목-->
  60. <?php if($post['is_new']) :?><label class="label label-danger label-sm">NEW</label><?php endif;?>
  61. <?php if($post['is_hot']) :?><label class="label label-warning label-sm">HIT</label><?php endif;?>
  62. <?php if($post['post_count_comment']>0) :?><small>(<?=$post['post_count_comment']?>)</small><?php endif;?>
  63. <?php if($post['is_secret']) :?><i class="fa fa-lock"></i><?php endif;?>
  64. </td>
  65. <td class="text-center"><?=$post['mem_nickname']?></td>
  66. <td class="text-center"><?=$post['post_hit']?></td>
  67. <td class="text-center"><?=$post['post_datetime']?></td>
  68. </tr>
  69. <?php endforeach;?>
  70. <!-- END :: 목록-->
  71. <!-- START:: 등록된 글이 없는 경우-->
  72. <?php if(count($list['list'])==0):?>
  73. <tr>
  74. <td colspan="5" class="text-center">등록된 글이 없습니다.</td>
  75. </tr>
  76. <?php endif;?>
  77. <!-- END:: 등록된 글이 없는 경우-->
  78. </tbody>
  79. </table>
  80. <div class="clearfix">
  81. <div class="pull-left">
  82. <?=form_open(NULL, array("method"=>"get","class"=>"form-inline"))?>
  83. <select name="scol" class="form-control">
  84. <option value="title" <?=$scol=='title'?'selected':''?>>제목</option>
  85. <option value="nickname" <?=$scol=='nickname'?'selected':''?>>닉네임</option>
  86. </select>
  87. <input class="form-control" name="stxt" value="<?=$stxt?>">
  88. <button type="submit" class="btn btn-default">검색</button>
  89. <?=form_close()?>
  90. </div>
  91. <div class="pull-right">
  92. <?php if($board['auth']['write']) :?>
  93. <a class="btn btn-primary" href="<?=$board['link']['write']?>">글쓰기</a>
  94. <?php endif;?>
  95. </div>
  96. </div>
  97. <div class="text-center">
  98. <?=$pagination?>
  99. </div>
  100. </div>