PageRenderTime 24ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/upload/template/bbs/cate_run.htm

https://gitlab.com/wuhang2003/phpwind
HTML | 160 lines | 131 code | 0 blank | 29 comment | 0 complexity | 3b3c41ccdc6b381a24f064bc73148f36 MD5 | raw file
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <template source='TPL:common.head' load='true' />
  5. <link href="{@theme:css}/forum.css?v={@NEXT_RELEASE}" rel="stylesheet" />
  6. </head>
  7. <body>
  8. <pw-start/>
  9. <div class="wrap">
  10. <template source='TPL:common.header' load='true' />
  11. <div class="main_wrap">
  12. <pw-tpl id="main_segment"/>
  13. <div class="bread_crumb">
  14. {@$headguide|html}<!--# if ($tab == 'digest') { #--><em>&gt;</em><a href="{@url:bbs/cate/run?fid=$fid&tab=digest}">精华</a><!--#}#-->
  15. </div>
  16. <pw-tpl id="cateTop_segment"/>
  17. <div class="main cc">
  18. <div class="main_body">
  19. <div class="main_content">
  20. <pw-tpl id="first_segment"/>
  21. <template source='widget_forum' load='true' />
  22. <pw-tpl id="cate_middle"/>
  23. <div class="box_wrap thread_page J_check_wrap">
  24. <nav>
  25. <div class="content_nav" id="hashpos_ttype">
  26. <!--# $_urladd_ = $tab ? '&tab=' . $tab : ''; #-->
  27. <div class="content_filter"><a href="{@url:bbs/cate/run?fid=$fid}{$_urladd_}{@$defaultOrderby == 'lastpost' ? '&orderby=postdate' : ''}" class="{@Pw::isCurrent($orderby == 'postdate')}">最新发帖</a><span>|</span><a href="{@url:bbs/cate/run?fid=$fid}{$_urladd_}{@$defaultOrderby == 'lastpost' ? '' : '&orderby=lastpost'}" class="{@Pw::isCurrent($orderby != 'postdate')}">最后回复</a></div>
  28. <ul class="cc">
  29. <li class="{@Pw::isCurrent(!$tab)}"><a href="{@url:bbs/cate/run?fid=$fid}">全部</a></li>
  30. <li class="{@Pw::isCurrent('digest' == $tab)}"><a href="{@url:bbs/cate/run?fid=$fid&tab=digest}">精华</a></li>
  31. </ul>
  32. </div>
  33. </nav>
  34. <!--# if ($threaddb) { #-->
  35. <div class="thread_posts_list">
  36. <table width="100%" id="J_posts_list" summary="帖子列表">
  37. <!--# $tpc_topped = 0; #-->
  38. <!--# foreach ($threaddb as $key => $value) { #-->
  39. <!--# if ($tpc_topped && !isset($value['issort'])) { #-->
  40. <tr>
  41. <td colspan="3" class="tac ordinary">普通主题</td>
  42. </tr>
  43. <!--# } #-->
  44. <tr>
  45. <td class="author"><a class="J_user_card_show" data-uid="{$value['created_userid']}" href="{@url:space/index/run?uid=$value['created_userid']}"><img class="J_avatar" src="{@Pw::getAvatar($value['created_userid'], 'small')}" data-type="small" width="45" height="45" alt="{$value['created_username']}的头像" /></a></td>
  46. <td class="subject">
  47. <p class="title">
  48. <!--# if ($operateThread) { #-->
  49. <input class="J_check" name="" type="checkbox" value="{$value['tid']}" />
  50. <!--# } #-->
  51. <a href="{@url:bbs/read/run?tid=$value['tid']&fid=$value['fid']}" target="_blank"><span class="posts_icon"><i class="icon_{$value['icon']}" title="{$icon[$value['icon']]} 新窗口打开"></i></span></a>
  52. <a href="{@url:bbs/read/run?tid=$value['tid']&fid=$value['fid']}" class="st" style="{$value['highlight_style']}">{@Pw::substrs($value['subject'],$numofthreadtitle)}</a>
  53. <hook class='$threadList' name='createHtmlAfterSubject' args="array($value)" /><!--# if ($value['ifupload']) { #--><span class="posts_icon"><i class="icon_{$uploadIcon[$value['ifupload']]}" title="{$icon[$uploadIcon[$value['ifupload']]]}"></i></span><!--# } #-->
  54. </p>
  55. <p class="info">
  56. 楼主<a class="J_user_card_show" data-uid="{$value['created_userid']}" href="{@url:space/index/run?uid=$value['created_userid']}">{$value['created_username']}</a><span><!--# echo Pw::time2str($value['created_time'], 'Y-m-d');#--></span>
  57. 最后回复<a href="{@url:space/index/run?uid=$value['lastpost_userid']}">{$value['lastpost_username']}</a><span><a href="{@url:bbs/read/run?tid=$value['tid']&fid=$value['fid']&page=e}#a" rel="nofollow"><!--# echo Pw::time2str($value['lastpost_time'], 'm-d H:i');#--></a></span>
  58. </p>
  59. </td>
  60. <td class="num">
  61. <span><em>{$value['replies']}</em>回复</span>
  62. <span><em>{$value['hits']}</em>浏览</span>
  63. </td>
  64. </tr>
  65. <!--# $tpc_topped = isset($value['issort']); #-->
  66. <!--# } #-->
  67. </table>
  68. </div>
  69. <!--# if ($operateThread) { #-->
  70. <div class="management mb10 J_post_manage_col" data-role="list">
  71. <label class="mr10"><input class="J_check_all" type="checkbox">全选</label>
  72. <!--# if ($operateThread['topped']) { #--><a href="{@url:bbs/manage/topped}">置顶</a><!--# } #-->
  73. <!--# if ($operateThread['digest']) { #--><a href="{@url:bbs/manage/digest}">精华</a><!--# } #-->
  74. <!--# if ($operateThread['highlight']) { #--><a href="{@url:bbs/manage/highlight}">加亮</a><!--# } #-->
  75. <!--# if ($operateThread['up']) { #--><a href="{@url:bbs/manage/up}">提前</a><!--# } #-->
  76. <!--# if ($operateThread['type']) { #--><a href="{@url:bbs/manage/type}">分类</a><!--# } #-->
  77. <!--# if ($operateThread['move']) { #--><a href="{@url:bbs/manage/move}">移动</a><!--# } #-->
  78. <!--# if ($operateThread['copy']) { #--><a href="{@url:bbs/manage/copy}">复制</a><!--# } #-->
  79. <!--# if ($operateThread['unite']) { #--><a href="{@url:bbs/manage/unite}">合并</a><!--# } #-->
  80. <!--# if ($operateThread['lock']) { #--><a href="{@url:bbs/manage/lock}">锁定</a><!--# } #-->
  81. <!--# if ($operateThread['down']) { #--><a href="{@url:bbs/manage/down}">压帖</a><!--# } #-->
  82. <!--# if ($operateThread['delete']) { #--><a href="{@url:bbs/manage/delete}">删除</a><!--# } #-->
  83. </div>
  84. <!--# } #-->
  85. <div class="pages_wrap cc">
  86. <page tpl="TPL:common.page" page="$page" per="$perpage" count="$count" total="$totalpage" url="bbs/cate/run?fid=$fid" args="$urlargs"/>
  87. </div>
  88. <!--# } else { #-->
  89. <div class="not_content">
  90. <!--# if ($tab == 'digest') { #-->
  91. 啊哦该分类暂没有精华帖
  92. <!--# } elseif ($type) { #-->
  93. 啊哦该分类暂没有任何内容
  94. <!--# } else { #-->
  95. 啊哦该分类暂没有任何内容
  96. <!--# } #-->
  97. </div>
  98. <!--# } #-->
  99. </div>
  100. <pw-tpl id="cate_bottom"/>
  101. <section class="face_list" style="display:none;">
  102. <h2 class="hd"><a href="#" class="fr fn">查看更多&gt;&gt;</a>当前在线</h2>
  103. <article class="ct">
  104. <ul class="cc">
  105. <!--#$online = Wekit::load('SRV:online.srv.PwOnlineCountService');#-->
  106. <!--#$list = $online->getLastVisitor($pwforum->fid);#-->
  107. <!--#foreach ($list as $value){ #-->
  108. <li><a href="#"><img src="{@G:url.images}/face/face_small.jpg" width="48" height="48" alt="{$value['username']}"><br />{$value['username']}</a></li>
  109. <!--# } #-->
  110. </ul>
  111. </article>
  112. </section>
  113. </div>
  114. </div>
  115. <div class="main_sidebar">
  116. <template source='TPL:common.sidebar_2' load='true' />
  117. </div>
  118. </div>
  119. <!--# if ($operateThread) { #-->
  120. <div id="J_post_manage_main" class="core_pop_wrap J_post_manage_pop" style="display:none;position:fixed;_position:absolute;">
  121. <div class="core_pop">
  122. <div style="width:415px;">
  123. <div class="pop_top"><a href="#" id="J_post_manage_close" class="pop_close">关闭</a><strong class="mr5">帖子操作</strong>(已选中&nbsp;<span class="red" id="J_post_checked_count">1</span>&nbsp;&nbsp;&nbsp;<a href="" class="s4" id="J_post_manage_checkall" data-type="check">全选</a>)</div>
  124. <div class="pop_cont">
  125. <div class="pop_operat_list">
  126. <ul class="cc J_post_manage_col" data-role="list">
  127. <!--# if ($operateThread['topped']) { #--><li><a href="{@url:bbs/manage/topped}">置顶</a></li><!--# } #-->
  128. <!--# if ($operateThread['digest']) { #--><li><a href="{@url:bbs/manage/digest}">精华</a></li><!--# } #-->
  129. <!--# if ($operateThread['highlight']) { #--><li><a href="{@url:bbs/manage/highlight}">加亮</a></li><!--# } #-->
  130. <!--# if ($operateThread['up']) { #--><li><a href="{@url:bbs/manage/up}">提前</a></li><!--# } #-->
  131. <!--# if ($operateThread['type']) { #--><li><a href="{@url:bbs/manage/type}">分类</a></li><!--# } #-->
  132. <!-- <li><a href="{@url:bbs/manage/topped}">印戳</a></li> -->
  133. <!--# if ($operateThread['move']) { #--><li><a href="{@url:bbs/manage/move}">移动</a></li><!--# } #-->
  134. <!--# if ($operateThread['copy']) { #--><li><a href="{@url:bbs/manage/copy}">复制</a></li><!--# } #-->
  135. <!--# if ($operateThread['unite']) { #--><li><a href="{@url:bbs/manage/unite}">合并</a></li><!--# } #-->
  136. <!--# if ($operateThread['lock']) { #--><li><a href="{@url:bbs/manage/lock}">锁定</a></li><!--# } #-->
  137. <!--# if ($operateThread['down']) { #--><li><a href="{@url:bbs/manage/down}">压帖</a></li><!--# } #-->
  138. <!--# if ($operateThread['delete']) { #--><li><a href="{@url:bbs/manage/delete}">删除</a></li><!--# } #-->
  139. </ul>
  140. </div>
  141. </div>
  142. </div>
  143. </div>
  144. </div>
  145. <!--# } #-->
  146. </div>
  147. <template source='TPL:common.footer' load='true' />
  148. </div>
  149. <script>
  150. Wind.use('jquery', 'global', function(){
  151. <!--# if(!$is_design) { #-->
  152. <!--# if ($operateThread) { #-->
  153. Wind.js(GV.JS_ROOT +'pages/bbs/threadManage.js?v=' + GV.JS_VERSION);
  154. <!--# } #-->
  155. <!--# } #-->
  156. });
  157. </script>
  158. <pw-end/>
  159. </body>
  160. </html>