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.

99 lines
4.0 KiB

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