3_3_forum_guide.tpl.php 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('guide');
  2. 0
  3. || checktplrefresh('./template/wfdsoft_jiaohu/forum/guide.htm', './template/wfdsoft_jiaohu/forum/guide_list_row.htm', 1524125830, '3', './data/template/3_3_forum_guide.tpl.php', './template/wfdsoft_jiaohu', 'forum/guide')
  4. ;?><?php include template('common/header'); ?><style type="text/css">
  5. .xl2 { background: url(<?php echo IMGDIR;?>/vline.png) repeat-y 50% 0; }
  6. .xl2 li { width: 49.9%; }
  7. .xl2 li em { padding-right: 10px; }
  8. .xl2 .xl2_r em { padding-right: 0; }
  9. .xl2 .xl2_r i { padding-left: 10px; }
  10. </style>
  11. <div id="pt" class="bm cl">
  12. <div class="z">
  13. <a href="./" class="nvhm" title="首页"><?php echo $_G['setting']['bbname'];?></a><?php if(helper_access::check_module('guide')) { ?><em>&raquo;</em><a href="forum.php?mod=guide&amp;view=index">导读</a><?php } ?><?php echo $navigation;?>
  14. </div>
  15. </div>
  16. <div class="boardnav padding15 backfff mb10">
  17. <div id="ct" class="wp cl<?php if($_G['forum']['allowside']) { ?> ct2<?php } ?>"<?php if($leftside) { ?> style="margin-left:<?php echo $_G['leftsidewidth_mwidth'];?>px"<?php } ?>>
  18. <div class="mn">
  19. <ul id="thread_types" class="ttp bm cl wk_bmcl">
  20. <li <?php echo $currentview['hot'];?>><a href="forum.php?mod=guide&amp;view=hot">最新热门</a></li>
  21. <li <?php echo $currentview['digest'];?>><a href="forum.php?mod=guide&amp;view=digest">最新精华</a></li>
  22. <li <?php echo $currentview['new'];?>><a href="forum.php?mod=guide&amp;view=new">最新回复</a></li>
  23. <li <?php echo $currentview['newthread'];?>><a href="forum.php?mod=guide&amp;view=newthread">最新发表</a></li>
  24. <li <?php echo $currentview['sofa'];?>><a href="forum.php?mod=guide&amp;view=sofa">抢沙发</a></li>
  25. <li <?php echo $currentview['my'];?>><a id="filter_special" href="forum.php?mod=guide&amp;view=my" onmouseover="showMenu(this.id)">我的帖子</a></li>
  26. <?php if(!empty($_G['setting']['pluginhooks']['guide_nav_extra'])) echo $_G['setting']['pluginhooks']['guide_nav_extra'];?>
  27. </ul>
  28. <?php if(!empty($_G['setting']['pluginhooks']['guide_top'])) echo $_G['setting']['pluginhooks']['guide_top'];?>
  29. <?php if($view == 'index') { if(is_array($data)) foreach($data as $key => $list) { ?><div class="bm bmw">
  30. <div class="bm_h">
  31. <a href="forum.php?mod=guide&amp;view=<?php echo $key;?>" class="y xi2">更多 &raquo;</a>
  32. <h2>
  33. <?php if($key == 'hot') { ?>最新热门<?php } elseif($key == 'digest') { ?>最新精华<?php } elseif($key == 'newthread') { ?>最新发表<?php } elseif($key == 'new') { ?>最新回复<?php } elseif($key == 'my') { ?>我的帖子<?php } ?>
  34. </h2>
  35. </div>
  36. <div class="bm_c">
  37. <div class="xl xl2 cl">
  38. <?php if($list['threadcount']) { ?>
  39. <?php $i=0;?> <?php if(is_array($list['threadlist'])) foreach($list['threadlist'] as $thread) { ?> <?php $i++;$newtd=$i%2;?> <li<?php if(!$newtd) { ?> class="xl2_r"<?php } ?>>
  40. <em>
  41. <?php if($key == 'hot') { ?><span class="xi1"><?php echo $thread['heats'];?>人参与</span><?php } ?>
  42. <?php if($key == 'new') { ?><?php echo $thread['lastpost'];?><?php } ?>
  43. </em>
  44. <i>&middot; <a href="forum.php?mod=viewthread&amp;tid=<?php echo $thread['tid'];?>&amp;<?php if($_GET['archiveid']) { ?>archiveid=<?php echo $_GET['archiveid'];?>&amp;<?php } ?>extra=<?php echo $extra;?>"<?php echo $thread['highlight'];?> target="_blank"><?php echo $thread['subject'];?></a></i>&nbsp;<span class="xg1"><a href="forum.php?mod=forumdisplay&amp;fid=<?php echo $thread['fid'];?>" target="_blank"><?php echo $list['forumnames'][$thread['fid']]['name'];?></a></span>
  45. </li>
  46. <?php } ?>
  47. <?php } else { ?>
  48. <p class="emp">暂时还没有帖子</p>
  49. <?php } ?>
  50. </div>
  51. </div>
  52. </div>
  53. <?php } } else { if(is_array($data)) foreach($data as $key => $list) { ?><div id="threadlist" class="tl bm bmw wk_ddbmw"<?php if($_G['uid']) { ?> style="position: relative;"<?php } ?>>
  54. <div class="th" style="display:none;">
  55. <table cellspacing="0" cellpadding="0">
  56. <tr>
  57. <th colspan="2">
  58. 标题
  59. <?php if($view == 'my') { ?>
  60. &nbsp;&nbsp;&nbsp;
  61. <a href="forum.php?mod=guide&amp;view=my&amp;type=thread" <?php echo $orderactives['thread'];?>>主题</a><span class="pipe">|</span>
  62. <a href="forum.php?mod=guide&amp;view=my&amp;type=reply" <?php echo $orderactives['reply'];?>>回复</a><span class="pipe">|</span>
  63. <a href="forum.php?mod=guide&amp;view=my&amp;type=postcomment" <?php echo $orderactives['postcomment'];?>>点评</a><span class="pipe">|</span>
  64. <?php if($viewtype != 'postcomment') { ?>
  65. <a href="#" onclick="var displayvalue = $('searchbody').style.display == 'none' ? '' : 'none';$('searchbody').style.display=displayvalue; return false;">筛选</a>
  66. <?php } } ?>
  67. </th>
  68. <td class="by">版块/群组</td>
  69. <td class="by">作者</td>
  70. <td class="num">回复/查看</td>
  71. <td class="by">最后发表</td>
  72. </tr>
  73. <?php if($view == 'my') { ?>
  74. <tbody class="bw0_all" id="searchbody"<?php if(!$searchbody) { ?> style="display: none"<?php } ?>>
  75. <tr>
  76. <th colspan="6">&nbsp;
  77. <form method="get" action="forum.php">
  78. <input type="hidden" name="mod" value="guide">
  79. <input type="hidden" name="view" value="my">
  80. <input type="hidden" name="type" value="<?php echo $viewtype;?>">
  81. <?php if($viewtype != 'postcomment') { ?>
  82. 状态:
  83. <select name="filter" id="filter">
  84. <option value="">全部</option><?php if(is_array($filter_array)) foreach($filter_array as $fkey => $name) { ?><option value="<?php echo $fkey;?>" <?php if($fkey == $_GET['filter']) { ?>selected<?php } ?>><?php echo $name;?></option>
  85. <?php } ?>
  86. </select>
  87. 选择版块:
  88. <select name="fid" id="forumlist">
  89. <option value="0">全部</option>
  90. <?php echo $forumlist;?>
  91. </select>
  92. <?php } if($viewtype == 'thread') { ?>
  93. &nbsp; 关键字: <input type="text" id="searchmypost" class="px vm" name="searchkey" size="20" value="<?php echo $searchkey;?>" >
  94. <?php } ?><button class="pn vm"><em>搜索</em></button>
  95. </form>
  96. </th>
  97. </tr>
  98. </tbody>
  99. <?php } ?>
  100. </table>
  101. </div>
  102. <div class="bm_c wk_ddbm_c">
  103. <div id="forumnew" style="display:none"></div>
  104. <table cellspacing="0" cellpadding="0"> <?php if($list['threadcount']) { if(is_array($list['threadlist'])) foreach($list['threadlist'] as $key => $thread) { ?><tbody id="<?php echo $thread['id'];?>">
  105. <tr>
  106. <td class="icon">
  107. <a href="home.php?mod=space&amp;uid=<?php echo $thread['authorid'];?>" class="w_uid"><?php echo avatar($thread[authorid],small);?></a>
  108. </td>
  109. <td class="icn">
  110. <a href="forum.php?mod=viewthread&amp;tid=<?php echo $thread['icontid'];?>&amp;<?php if($_GET['archiveid']) { ?>archiveid=<?php echo $_GET['archiveid'];?>&amp;<?php } ?>extra=<?php echo $extra;?>" title="<?php if($thread['displayorder'] == 1) { ?>本版置顶主题 - <?php } if($thread['displayorder'] == 2) { ?>分类置顶主题 - <?php } if($thread['displayorder'] == 3) { ?>全局置顶主题 - <?php } if($thread['displayorder'] == 4) { ?>多版置顶主题 - <?php } if($thread['folder'] == 'lock') { ?>关闭的主题 - <?php } if($thread['special'] == 1) { ?>投票 - <?php } if($thread['special'] == 2) { ?>商品 - <?php } if($thread['special'] == 3) { ?>悬赏 - <?php } if($thread['special'] == 4) { ?>活动 - <?php } if($thread['special'] == 5) { ?>辩论 - <?php } if($thread['folder'] == "new") { ?>有新回复 - <?php } ?>
  111. 新窗口打开" target="_blank">
  112. <?php if($thread['folder'] == 'lock') { ?>
  113. <img src="<?php echo IMGDIR;?>/folder_lock.gif" />
  114. <?php } elseif($thread['special'] == 1) { ?>
  115. <img src="<?php echo IMGDIR;?>/pollsmall.gif" alt="投票" />
  116. <?php } elseif($thread['special'] == 2) { ?>
  117. <img src="<?php echo IMGDIR;?>/tradesmall.gif" alt="商品" />
  118. <?php } elseif($thread['special'] == 3) { ?>
  119. <img src="<?php echo IMGDIR;?>/rewardsmall.gif" alt="悬赏" />
  120. <?php } elseif($thread['special'] == 4) { ?>
  121. <img src="<?php echo IMGDIR;?>/activitysmall.gif" alt="活动" />
  122. <?php } elseif($thread['special'] == 5) { ?>
  123. <img src="<?php echo IMGDIR;?>/debatesmall.gif" alt="辩论" />
  124. <?php } elseif(in_array($thread['displayorder'], array(1, 2, 3, 4))) { ?>
  125. <img src="<?php echo IMGDIR;?>/pin_<?php echo $thread['displayorder'];?>.gif" alt="<?php echo $_G['setting']['threadsticky'][3-$thread['displayorder']];?>" />
  126. <?php } else { ?>
  127. <img src="<?php echo IMGDIR;?>/folder_<?php echo $thread['folder'];?>.gif" />
  128. <?php } ?>
  129. </a>
  130. </td>
  131. <th class="<?php echo $thread['folder'];?>">
  132. <span class="w_bkmc">[<a href="forum.php?mod=forumdisplay&amp;fid=<?php echo $thread['fid'];?>" target="_blank"><?php echo $list['forumnames'][$thread['fid']]['name'];?></a>]</span>
  133. <?php if(!$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])) { $thread[tid]=$thread[closed];?><?php } ?>
  134. <?php echo $thread['typehtml'];?> <?php echo $thread['sorthtml'];?>
  135. <?php if($thread['moved']) { ?>
  136. 移动:<?php $thread[tid]=$thread[closed];?><?php } ?>
  137. <a href="forum.php?mod=viewthread&amp;tid=<?php echo $thread['tid'];?>&amp;<?php if($_GET['archiveid']) { ?>archiveid=<?php echo $_GET['archiveid'];?>&amp;<?php } ?>extra=<?php echo $extra;?>" target="_blank" class="xst" ><?php echo $thread['subject'];?></a><?php if($_G['setting']['threadhidethreshold'] && $thread['hidden'] >= $_G['setting']['threadhidethreshold']) { ?>&nbsp;<span class="xg1">隐藏</span>&nbsp;<?php } if($view == 'hot') { ?>&nbsp;<span class="xi1"><?php echo $thread['heats'];?>人参与</span>&nbsp;<?php } if($thread['icon'] >= 0) { ?>
  138. <img src="<?php echo STATICURL;?>image/stamp/<?php echo $_G['cache']['stamps'][$thread['icon']]['url'];?>" alt="<?php echo $_G['cache']['stamps'][$thread['icon']]['text'];?>" align="absmiddle" />
  139. <?php } if($thread['rushreply']) { ?>
  140. <img src="<?php echo IMGDIR;?>/rushreply_s.png" alt="抢楼" align="absmiddle" />
  141. <?php } if($stemplate && $sortid) { ?><?php echo $stemplate[$sortid][$thread['tid']];?><?php } if($thread['readperm']) { ?> - [阅读权限 <span class="xw1"><?php echo $thread['readperm'];?></span>]<?php } if($thread['price'] > 0) { if($thread['special'] == '3') { ?>
  142. - <span class="xi1">[悬赏 <span class="xw1"><?php echo $thread['price'];?></span> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['2']]['unit'];?><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['2']]['title'];?>]</span>
  143. <?php } else { ?>
  144. - [售价 <span class="xw1"><?php echo $thread['price'];?></span> <?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['unit'];?><?php echo $_G['setting']['extcredits'][$_G['setting']['creditstransextra']['1']]['title'];?>]
  145. <?php } } elseif($thread['special'] == '3' && $thread['price'] < 0) { ?>
  146. - [已解决]
  147. <?php } if($thread['attachment'] == 2) { ?>
  148. <img src="<?php echo STATICURL;?>image/filetype/image_s.gif" alt="attach_img" title="图片附件" align="absmiddle" />
  149. <?php } elseif($thread['attachment'] == 1) { ?>
  150. <img src="<?php echo STATICURL;?>image/filetype/common.gif" alt="attachment" title="附件" align="absmiddle" />
  151. <?php } if($thread['digest'] > 0 && $filter != 'digest') { ?>
  152. <img src="<?php echo IMGDIR;?>/digest_<?php echo $thread['digest'];?>.gif" align="absmiddle" alt="digest" title="精华 <?php echo $thread['digest'];?>" />
  153. <?php } if($thread['displayorder'] == 0) { if($thread['recommendicon'] && $filter != 'recommend') { ?>
  154. <img src="<?php echo IMGDIR;?>/recommend_<?php echo $thread['recommendicon'];?>.gif" align="absmiddle" alt="recommend" title="评价指数 <?php echo $thread['recommends'];?>" />
  155. <?php } if($thread['heatlevel']) { ?>
  156. <img src="<?php echo IMGDIR;?>/hot_<?php echo $thread['heatlevel'];?>.gif" align="absmiddle" alt="heatlevel" title="<?php echo $thread['heatlevel'];?> 热度" />
  157. <?php } if($thread['rate'] > 0) { ?>
  158. <img src="<?php echo IMGDIR;?>/agree.gif" align="absmiddle" alt="agree" title="帖子被加分" />
  159. <?php } elseif($thread['rate'] < 0) { ?>
  160. <img src="<?php echo IMGDIR;?>/disagree.gif" align="absmiddle" alt="disagree" title="帖子被减分" />
  161. <?php } } if($thread['replycredit'] > 0) { ?>
  162. - <span class="xi1">[回帖奖励 <strong> <?php echo $thread['replycredit'];?></strong> ]</span>
  163. <?php } if($thread['multipage']) { ?>
  164. <span class="tps"><?php echo $thread['multipage'];?></span>
  165. <?php } if($thread['weeknew']) { ?>
  166. <a href="forum.php?mod=redirect&amp;tid=<?php echo $thread['tid'];?>&amp;goto=lastpost#lastpost" class="xi1">New</a>
  167. <?php } if(!$thread['forumstick'] && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])) { if($thread['related_group'] == 0 && $thread['closed'] > 1) { $thread[tid]=$thread[closed];?><?php } } ?>
  168. <div class="clear"></div>
  169. <div class="wk_ddlb_yh">
  170. <span>
  171. 作者 :
  172. <?php if($thread['authorid'] && $thread['author']) { ?>
  173. <a href="home.php?mod=space&amp;uid=<?php echo $thread['authorid'];?>" c="1"><?php echo $thread['author'];?></a><?php if(!empty($verify[$thread['authorid']])) { ?> <?php echo $verify[$thread['authorid']];?><?php } ?>
  174. <?php } else { ?>
  175. <?php echo $_G['setting']['anonymoustext'];?>
  176. <?php } ?>
  177. <span class="pipe"></span>
  178. <span<?php if($thread['istoday']) { ?> class="xi1"<?php } ?>><?php echo $thread['dateline'];?></span>
  179. </span>
  180. <span class="pipe">|</span>
  181. <span>
  182. 最后发表 :
  183. <?php if($thread['lastposter']) { ?><a href="<?php if($thread['digest'] != -2) { ?>home.php?mod=space&username=<?php echo $thread['lastposterenc'];?><?php } else { ?>forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>&page=<?php echo max(1, $thread['pages']);; } ?>" c="1"><?php echo $thread['lastposter'];?></a><?php } else { ?><?php echo $_G['setting']['anonymoustext'];?><?php } ?>
  184. <span class="pipe"></span>
  185. <a href="<?php if($thread['digest'] != -2) { ?>forum.php?mod=redirect&tid=<?php echo $thread['tid'];?>&goto=lastpost<?php echo $highlight;?>#lastpost<?php } else { ?>forum.php?mod=viewthread&tid=<?php echo $thread['tid'];?>&page=<?php echo max(1, $thread['pages']);; } ?>"><?php echo $thread['lastpost'];?></a>
  186. </div>
  187. </th>
  188. <td class="by">
  189. <span class="ico_reply"><a href="forum.php?mod=viewthread&amp;tid=<?php echo $thread['tid'];?>&amp;extra=<?php echo $extra;?>"><?php if($thread['replies']) { ?><?php echo $thread['replies'];?><?php } else { ?>0<?php } ?></a></span>
  190. </td>
  191. <td class="by">
  192. <span class="ico_see"><?php if($thread['isgroup'] != 1) { ?><?php echo $thread['views'];?><?php } else { ?><?php echo $groupnames[$thread['tid']]['views'];?><?php } ?></span>
  193. </td>
  194. </tr>
  195. </tbody>
  196. <?php if($view == 'my' && $viewtype=='reply' && !empty($tids[$thread['tid']])) { ?>
  197. <tbody class="bw0_all">
  198. <tr>
  199. <td class="icn">&nbsp;</td>
  200. <td colspan="5"><?php if(is_array($tids[$thread['tid']])) foreach($tids[$thread['tid']] as $pid) { $post = $posts[$pid];?><div class="tl_reply pbm xg1"><a href="forum.php?mod=redirect&amp;goto=findpost&amp;ptid=<?php echo $thread['tid'];?>&amp;pid=<?php echo $pid;?>" target="_blank"><?php if($post['message']) { ?><?php echo $post['message'];?><?php } else { ?>...<?php } ?></a></div>
  201. <?php } ?>
  202. </td>
  203. </tr>
  204. </tbody>
  205. <tr><td colspan="6"></td></tr>
  206. <?php } if($view == 'my' && $viewtype=='postcomment') { ?>
  207. <tr>
  208. <td class="icn">&nbsp;</td>
  209. <td colspan="5" class="xg1"><?php echo $thread['comment'];?></td>
  210. </tr>
  211. <?php } } } else { ?>
  212. <tbody class="bw0_all"><tr><th colspan="5"><p class="emp">暂时还没有帖子</p></th></tr></tbody>
  213. <?php } ?></table>
  214. </div>
  215. </div>
  216. <?php } ?>
  217. <div class="bm bw0 pgs cl">
  218. <?php echo $multipage;?>
  219. <span class="pgb y"><a href="forum.php?mod=guide">导读首页</a></span>
  220. </div>
  221. <?php } ?>
  222. <?php if(!empty($_G['setting']['pluginhooks']['guide_bottom'])) echo $_G['setting']['pluginhooks']['guide_bottom'];?>
  223. </div>
  224. </div>
  225. </div>
  226. <?php if(!IS_ROBOT) { ?>
  227. <div id="filter_special_menu" class="p_pop" style="display:none">
  228. <ul>
  229. <li><a href="home.php?mod=space&amp;do=poll&amp;view=me" target="_blank">投票</a></li>
  230. <li><a href="home.php?mod=space&amp;do=trade&amp;view=me" target="_blank">商品</a></li>
  231. <li><a href="home.php?mod=space&amp;do=reward&amp;view=me" target="_blank">悬赏</a></li>
  232. <li><a href="home.php?mod=space&amp;do=activity&amp;view=me" target="_blank">活动</a></li>
  233. </ul>
  234. </div>
  235. <?php } include template('common/footer'); ?>