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.

161 lines
7.5 KiB

7 years ago
7 years ago
7 years ago
  1. <div class="container">
  2. <div class="page-header">
  3. <h2 class="page-title"><?=$board['brd_title']?></h2>
  4. </div>
  5. <article class="panel panel-default">
  6. <header class="panel-heading">
  7. <h1 class="panel-title"><?=$view['post_title']?></h1>
  8. </header>
  9. <div class="panel-body">
  10. <ul class="post-info">
  11. <dl>
  12. <dt>작성자</dt>
  13. <dd><?=$view['mem_nickname']?></dd>
  14. </dl>
  15. <dl>
  16. <dt>조회수</dt>
  17. <dd><?=$view['post_hit']?></dd>
  18. </dl>
  19. <dl>
  20. <dt>작성일</dt>
  21. <dd><?=$view['post_datetime']?></dd>
  22. </dl>
  23. </ul>
  24. </div>
  25. <!-- START:: 글내용-->
  26. <div class="panel-body">
  27. <?php if( $view['post_status'] == 'Y' ) :
  28. echo display_html_content($view['post_content']);
  29. else : ?>
  30. <p class="alert alert-danger">해당 글은 블라인드 처리된 글입니다.</p>
  31. <?php endif;?>
  32. <div class="sns-share-wrap">
  33. <ul class="sns-share-list">
  34. <li><a href="javascript:;" data-toggle="sns-share" data-service="facebook" data-url="<?=current_url()?>" data-title="<?=$this->site->meta_title?>">페이스북 공유하기</a></li>
  35. <li><a href="javascript:;" data-toggle="sns-share" data-service="google" data-url="<?=current_url()?>" data-title="<?=$this->site->meta_title?>">구글+ 공유하기</a></li>
  36. <li><a href="javascript:;" data-toggle="sns-share" data-service="pinterest" data-url="<?=current_url()?>" data-title="<?=$this->site->meta_title?>">핀터레스트 공유하기</a></li>
  37. <li><a href="javascript:;" data-toggle="sns-share" data-service="kakaostory" data-url="<?=current_url()?>" data-title="<?=$this->site->meta_title?>">카카오 스토리 공유하기</a></li>
  38. <li><a href="javascript:;" data-toggle="sns-share" data-service="band" data-url="<?=current_url()?>" data-title="<?=$this->site->meta_title?>">밴드 공유하기</a></li>
  39. <li><a href="javascript:;" data-toggle="sns-share" data-service="naver" data-url="<?=current_url()?>" data-title="<?=$this->site->meta_title?>">네이버 공유하기</a></li>
  40. <li><a href="javascript:;" data-toggle="sns-share" data-service="line" data-url="<?=current_url()?>" data-title="<?=$this->site->meta_title?>">네이버 라인 공유하기</a></li>
  41. <li><a href="javascript:;" data-toggle="sns-share" data-service="link" data-url="<?=current_url()?>" data-title="<?=$this->site->meta_title?>">현재 링크 복사하기</a></li>
  42. </ul>
  43. </div>
  44. </div>
  45. <!-- END:: 글내용-->
  46. <?php if( count($view['file']) > 0 ) :?>
  47. <!-- START :: 첨부파일 목록 -->
  48. <div class="panel-body">
  49. <h4>첨부파일</h4>
  50. <ul class="nav nav-pills nav-stacked">
  51. <?php foreach($view['file'] as $f) :?>
  52. <li><a href="<?=$f['link']?>"><i class="fa fa-download"></i> <?=$f['att_origin']?> (<?=format_size($f['att_filesize'])?>) <small>다운로드수 : <?=number_format($f['att_downloads'])?></small></a></li>
  53. <?php endforeach;?>
  54. </ul>
  55. </div>
  56. <!-- END :: 첨부파일 목록 -->
  57. <?php endif;?>
  58. <div class="panel-footer">
  59. <div class="pull-left">
  60. <?php if($view['prev']) :?>
  61. <a class="btn btn-sm btn-default" href="<?=$view['prev']['link']?>">이전글</a>
  62. <?php endif;?>
  63. <a class="btn btn-sm btn-default" href="<?=$board['link']['list']?>">목록으로</a>
  64. <?php if($view['next']) :?>
  65. <a class="btn btn-sm btn-default" href="<?=$view['next']['link']?>">다음글</a>
  66. <?php endif;?>
  67. </div>
  68. <div class="pull-right">
  69. <?php if($board['auth']['reply']) :?>
  70. <a class="btn btn-sm btn-default" href="<?=$board['link']['reply']?>">답글</a>
  71. <?php endif;?>
  72. <a class="btn btn-sm btn-default" href="<?=$board['link']['modify']?>">수정</a>
  73. <a class="btn btn-sm btn-danger" href="<?=$board['link']['delete']?>">삭제</a>
  74. </div>
  75. <div class="clearfix"></div>
  76. </div>
  77. </article>
  78. <div class="H10"></div>
  79. <!-- START :: 코멘트 입력 -->
  80. <?=$comment_write?>
  81. <!-- END:: 코멘트 -->
  82. <!-- START :: 코멘트 목록 -->
  83. <?=$comment_list?>
  84. <!-- END:: 코멘트 -->
  85. <div class="H10"></div>
  86. <!-- START :: 게시글 목록-->
  87. <table class="table table-striped">
  88. <thead>
  89. <tr>
  90. <th class="text-center">#</th>
  91. <?php if($use_category) :?>
  92. <th class="text-center">분류</th>
  93. <?php endif;?>
  94. <th class="text-center"> </th>
  95. <th class="text-center">작성자</th>
  96. <th class="text-center">조회수</th>
  97. <th class="text-center">작성일</th>
  98. </tr>
  99. </thead>
  100. <tbody>
  101. <!-- START:: 목록-->
  102. <?php foreach($list['list'] as $post) :?>
  103. <tr>
  104. <td class="text-center">
  105. <?php if($view['post_idx'] == $post['post_idx']) :?>
  106. <?php elseif($post['post_notice']) : ?>
  107. <label class="label label-danger">공지</label>
  108. <?php elseif(strlen($post['post_reply']) > 0) : ?>
  109. <?php else :
  110. echo $post['nums'];
  111. endif;?>
  112. </td>
  113. <?php if($use_category) :?>
  114. <td class="text-center"><?=$post['bca_name']?></td>
  115. <?php endif;?>
  116. <td>
  117. <?php if(strlen($post['post_reply']) >0) :?>
  118. <span style="display:inline-block;width:<?=((strlen($post['post_reply'])-1) * 16)?>px"></span>
  119. <img src="<?=base_url('assets/images/common/icon_reply.gif')?>">
  120. <?php endif;?>
  121. <a href="<?=$post['link']?>"><?=$post['post_title']?></a> <!-- 제목-->
  122. <?php if($post['is_new']) :?><label class="label label-danger label-sm">NEW</label><?php endif;?>
  123. <?php if($post['is_hot']) :?><label class="label label-warning label-sm">HIT</label><?php endif;?>
  124. <?php if($post['post_count_comment']>0) :?><small>(<?=$post['post_count_comment']?>)</small><?php endif;?>
  125. <?php if($post['is_secret']) :?><i class="fa fa-lock"></i><?php endif;?>
  126. </td>
  127. <td class="text-center"><?=$post['mem_nickname']?></td>
  128. <td class="text-center"><?=$post['post_hit']?></td>
  129. <td class="text-center"><?=$post['post_datetime']?></td>
  130. </tr>
  131. <?php endforeach;?>
  132. <!-- END :: 목록-->
  133. <!-- START:: 등록된 글이 없는 경우-->
  134. <?php if(count($list['list'])==0):?>
  135. <tr>
  136. <td colspan="5" class="text-center">등록된 글이 없습니다.</td>
  137. </tr>
  138. <?php endif;?>
  139. <!-- END:: 등록된 글이 없는 경우-->
  140. </tbody>
  141. </table>
  142. <div class="text-center">
  143. <?=$pagination?>
  144. </div>
  145. <!-- END :: 게시글 목록-->
  146. </div>