Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 求高手帮忙调用一下帮简介以及最后发表

[复制链接]
自学屋 发表于 2014-3-23 20:50:57 | 显示全部楼层 |阅读模式
问题描述
适用版本: Discuz! X3
浏览器: IE9 360 
使用模板: 其他模板(请在回帖中说明模板的名称或者是模板的下载地址)
BUG地址: http://www.zixuewu.com
本帖最后由 自学屋 于 2014-3-23 20:52 编辑

求高手帮忙调用一下版块简介以及最后发表


代码如下,我的文件是PHP格式的,不是html的,用别人的模板!

网站地址www.zixuewu.com



要这中效果就行,


代码如下,是PHP的,谢谢啦



  1. <P> <?PHP exit('Access Denied');?>
  2. <!--{template common/header}-->
  3. <!--{if !empty($gid) && $comiis_head==1}-->
  4. <!--{if $gid}--><!--{eval $_G['forum']['fup']=$gid;}--><!--{/if}-->
  5. <!--{eval loadcache('forums');}-->
  6. <!--{eval $comiis_title = $gid ? $_G['cache']['forums'][$gid][name] : $_G['cache']['forums'][$_G['forum']['fup']][name];}-->
  7. <!--{subtemplate common/comiis_header}-->
  8. <div class="wp">
  9. <!--{ad/subnavbanner/a_mu}-->
  10. </div>
  11. <div style="clear:both;"></div>
  12. <!--{/if}-->
  13. <div id="pt" class="bm cl">
  14. <!--{if empty($gid) && $announcements}-->
  15. <div class="y">
  16. <div id="an">
  17. <dl class="cl">
  18. <dt class="z xw1">{lang announcements}: </dt>
  19. <dd>
  20. <div id="anc"><ul id="ancl">$announcements</ul></div>
  21. </dd>
  22. </dl>
  23. </div>
  24. <script type="text/javascript">announcement();</script>
  25. </div>
  26. <!--{/if}-->
  27. <div class="z">
  28. <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><em>&raquo;</em><a href="forum.php">{$_G[setting][navs][2][navname]}</a>$navigation
  29. </div>
  30. <div class="z"><!--{hook/index_status_extra}--></div>
  31. </div>
  32. <!--{if empty($gid)}-->
  33. <!--{ad/text/wp a_t}-->
  34. <!--{/if}-->
  35. <style id="diy_style" type="text/css"></style>
  36. <!--{if empty($gid)}-->
  37. <div class="wp">
  38. <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
  39. </div>
  40. <!--{/if}-->
  41. <!--{if $comiis_forum_ng==1}-->
  42. <script>
  43. function kmtba(o){
  44. for(var i=1;i<=4;i++){
  45. document.getElementById("kmtab"+i).className="switchNavItem";;
  46. document.getElementById("kmbody"+i).className="hidden";
  47. }
  48. document.getElementById("kmtab"+o).className="switchNavItem current";
  49. document.getElementById("kmbody"+o).className="";
  50. }
  51. </script>
  52. <div id="comiis_ng" class='wp fl'>
  53. <div class='bm cl comiis_hw'>
  54. <div class='z comiis_lw'>
  55. <DIV class="bm_h cl comiis_b0"><H3><A href="javascript:;">社区焦点</A></H3></DIV>
  56. <div class='comiis_p9'>
  57. <!--[diy=comiis_gbthot]--><div id="comiis_gbthot" class="area"></div><!--[/diy]-->
  58. </div>
  59. </div>
  60. <div class='y comiis_rw'>
  61. <div class='comiis_r370'>
  62. <DIV class="bm_h cl comiis_lb0" style="background: url({$_G['style']['styleimgdir']}/titlebgs.png) repeat-x;">
  63. <H2>
  64. <UL style="PADDING-LEFT: 5px" id="tabswi1_A" class="tabB">
  65. <DIV class="view-hover">
  66. <ul>
  67. <LI class="switchNavItem current" id='kmtab1' onmouseover='kmtba(1)'><A href="javascript:;">最新发表</A></LI>
  68. <LI class="switchNavItem" id='kmtab2' onmouseover='kmtba(2)'><A href="javascript:;">最新回复</A></LI>
  69. <LI class="switchNavItem" id='kmtab3' onmouseover='kmtba(3)'><A href="javascript:;">社区热帖</A></LI>
  70. <LI class="switchNavItem" id='kmtab4' onmouseover='kmtba(4)'><A href="javascript:;">精华推荐</A></LI>
  71. </ul>
  72. </DIV>
  73. </UL>
  74. </H2>
  75. </DIV>
  76. <div class='comiis_p8'>
  77. <div id='kmbody1'>
  78. <!--[diy=comiis_gbthot02]--><div id="comiis_gbthot02" class="area"></div><!--[/diy]-->
  79. </DIV>
  80. <div id='kmbody2' class='hidden'>
  81. <!--[diy=comiis_gbthot03]--><div id="comiis_gbthot03" class="area"></div><!--[/diy]-->
  82. </DIV>
  83. <div id='kmbody3' class='hidden'>
  84. <!--[diy=comiis_gbthot01]--><div id="comiis_gbthot01" class="area"></div><!--[/diy]-->
  85. </DIV>
  86. <div id='kmbody4' class='hidden'>
  87. <!--[diy=comiis_gbthot04]--><div id="comiis_gbthot04" class="area"></div><!--[/diy]-->
  88. </DIV>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. <div style="clear:both;"></div>
  95. <!--{/if}-->
  96. <div id="ct" class="wp cl{if $_G['setting']['forumallowside']} ct2{/if}">
  97. <!--{if empty($gid)}-->
  98. <div id="chart" class="bm bw0 cl">
  99. <p class="chart z">{lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: <em>$postdata[0]</em><span class="pipe">|</span>{lang index_posts}: <em>$posts</em><span class="pipe">|</span>{lang index_members}: <em>$_G['cache']['userstats']['totalmembers']</em><!--{if $_G['cache']['userstats']['newsetuser']}--><span class="pipe">|</span>{lang welcome_new_members}: <em><a href="home.php?mod=space&username={echo rawurlencode($_G['cache']['userstats']['newsetuser'])}" target="_blank" class="xi2">$_G['cache']['userstats']['newsetuser']</a></em><!--{/if}--></p>
  100. <div class="y">
  101. <!--{hook/index_nav_extra}-->
  102. <!--{if $_G['uid']}--><a href="forum.php?mod=guide&view=my" title="{lang my_posts}" class="xi2">{lang my_posts}</a><!--{/if}--><!--{if !empty($_G['setting']['search']['forum']['status'])}--><!--{if $_G['uid']}--><span class="pipe">|</span><!--{/if}--><a href="forum.php?mod=guide&view=new" title="{lang show_newthreads}" class="xi2">{lang show_newthreads}</a><!--{/if}-->
  103. </div>
  104. </div>
  105. <!--{/if}-->
  106. <!--[diy=diy_chart]--><div id="diy_chart" class="area"></div><!--[/diy]-->
  107. <div class="mn zoxp">
  108. <!--{if !empty($_G['setting']['grid']['showgrid'])}-->
  109. <!-- index four grid -->
  110. <div class="fl bm">
  111. <div class="bm bmw cl">
  112. <div id="category_grid" class="bm_c" >
  113. <table cellspacing="0" cellpadding="0"><tr>
  114. <!--{if !$_G['setting']['grid']['gridtype']}-->
  115. <td valign="top" class="category_l1">
  116. <div class="newimgbox">
  117. <h4><span class="tit_newimg"></span>{lang latest_images}</h4>
  118. <div class="module cl slidebox_grid" style="width:218px">
  119. <script type="text/javascript">
  120. var slideSpeed = 5000;
  121. var slideImgsize = [218,200];
  122. var slideBorderColor = '{$_G['style']['specialborder']}';
  123. var slideBgColor = '{$_G['style']['commonbg']}';
  124. var slideImgs = new Array();
  125. var slideImgLinks = new Array();
  126. var slideImgTexts = new Array();
  127. var slideSwitchColor = '{$_G['style']['tabletext']}';
  128. var slideSwitchbgColor = '{$_G['style']['commonbg']}';
  129. var slideSwitchHiColor = '{$_G['style']['specialborder']}';
  130. {eval $k = 1;}
  131. <!--{loop $grids['slide'] $stid $svalue}-->
  132. slideImgs[<!--{echo $k}-->] = '$svalue[image]';
  133. slideImgLinks[<!--{echo $k}-->] = '{$svalue[url]}';
  134. slideImgTexts[<!--{echo $k}-->] = '$svalue[subject]';
  135. {eval $k++;}
  136. <!--{/loop}-->
  137. </script>
  138. <script language="javascript" type="text/javascript" src="{$_G[setting][jspath]}forum_slide.js?{VERHASH}"></script>
  139. </div>
  140. </div>
  141. </td>
  142. <!--{/if}-->
  143. <td valign="top" class="category_l2">
  144. <div class="subjectbox">
  145. <h4><span class="tit_subject"></span>{lang collection_lastthread}</h4>
  146. <ul class="category_newlist">
  147. <!--{loop $grids['newthread'] $thread}-->
  148. <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  149. <!--{eval $thread[tid]=$thread[closed];}-->
  150. <!--{/if}-->
  151. <li><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']} tip="{lang title}: <strong>$thread[oldsubject]</strong><br/>{lang author}: $thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}: $thread[views]/$thread[replies]" onmouseover="showTip(this)"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
  152. <!--{/loop}-->
  153. </ul>
  154. </div>
  155. </td>
  156. <td valign="top" class="category_l3">
  157. <div class="replaybox">
  158. <h4><span class="tit_replay"></span>{lang show_newthreads}</h4>
  159. <ul class="category_newlist">
  160. <!--{loop $grids['newreply'] $thread}-->
  161. <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  162. <!--{eval $thread[tid]=$thread[closed];}-->
  163. <!--{/if}-->
  164. <li><a href="forum.php?mod=redirect&tid=$thread[tid]&goto=lastpost#lastpost"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']}tip="{lang title}: <strong>$thread[oldsubject]</strong><br/>{lang author}: $thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}: $thread[views]/$thread[replies]" onmouseover="showTip(this)"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
  165. <!--{/loop}-->
  166. </ul>
  167. </div>
  168. </td>
  169. <td valign="top" class="category_l3">
  170. <div class="hottiebox">
  171. <h4><span class="tit_hottie"></span>{lang hot_thread}</h4>
  172. <ul class="category_newlist">
  173. <!--{loop $grids['hot'] $thread}-->
  174. <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  175. <!--{eval $thread[tid]=$thread[closed];}-->
  176. <!--{/if}-->
  177. <li><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']} tip="{lang title}: <strong>$thread[oldsubject]</strong><br/>{lang author}: $thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}: $thread[views]/$thread[replies]" onmouseover="showTip(this)"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
  178. <!--{/loop}-->
  179. </ul>
  180. </div>
  181. </td>
  182. <!--{if $_G['setting']['grid']['gridtype']}-->
  183. <td valign="top" class="category_l4">
  184. <div class="goodtiebox">
  185. <h4><span class="tit_goodtie"></span>{lang post_digest_thread}</h4>
  186. <ul class="category_newlist">
  187. <!--{loop $grids['digest'] $thread}-->
  188. <!--{if !$thread['forumstick'] && $thread['closed'] > 1 && ($thread['isgroup'] == 1 || $thread['fid'] != $_G['fid'])}-->
  189. <!--{eval $thread[tid]=$thread[closed];}-->
  190. <!--{/if}-->
  191. <li><a href="forum.php?mod=viewthread&tid=$thread[tid]&extra=$extra"{if $thread['highlight']} $thread['highlight']{/if}{if $_G['setting']['grid']['showtips']} tip="{lang title}: <strong>$thread[oldsubject]</strong><br/>{lang author}: $thread[author] ($thread[dateline])<br/>{lang show}/{lang reply}: $thread[views]/$thread[replies]" onmouseover="showTip(this)"{else} title="$thread[oldsubject]"{/if}{if $_G['setting']['grid']['targetblank']} target="_blank"{/if}>$thread[subject]</a></li>
  192. <!--{/loop}-->
  193. </ul>
  194. </div>
  195. </td>
  196. <!--{/if}-->
  197. </table>
  198. </div>
  199. </div>
  200. </div>
  201. <!-- index four grid end -->
  202. <!--{/if}-->
  203. <!--{hook/index_top}-->
  204. <!--{if !empty($_G['cache']['heats']['message'])}-->
  205. <div class="bm">
  206. <div class="bm_h cl">
  207. <h2>{lang hotthreads_forum}</h2>
  208. </div>
  209. <div class="bm_c cl">
  210. <div class="heat z">
  211. <!--{loop $_G['cache']['heats']['message'] $data}-->
  212. <dl class="xld">
  213. <dt><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->
  214. <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></dt>
  215. <dd>$data[message]</dd>
  216. </dl>
  217. <!--{/loop}-->
  218. </div>
  219. <ul class="xl xl1 heatl">
  220. <!--{loop $_G['cache']['heats']['subject'] $data}-->
  221. <li><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->· <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></li>
  222. <!--{/loop}-->
  223. </ul>
  224. </div>
  225. </div>
  226. <!--{/if}-->
  227. <!--{hook/index_catlist_top}-->
  228. <div class="fl bm">
  229. <!--{if !empty($collectiondata['follows'])}-->
  230. <!--{eval $forumscount = count($collectiondata['follows']);}-->
  231. <!--{eval $forumcolumns = 4;}-->
  232. <!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->
  233. <div class="bm bmw {if $forumcolumns} flg{/if} cl">
  234. <div class="bm_h cl">
  235. <span class="o">
  236. <img id="category_-1_img" src="{IMGDIR}/$collapse['collapseimg_-1']" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_-1');" />
  237. </span>
  238. <h2><a href="forum.php?mod=collection&op=my">{lang my_order_collection}</a></h2>
  239. </div>
  240. <div id="category_-1" class="bm_c" style="{echo $collapse['category_-1']}">
  241. <table cellspacing="0" cellpadding="0" class="fl_tb">
  242. <tr>
  243. <!--{eval $ctorderid = 0;}-->
  244. <!--{loop $collectiondata['follows'] $key $colletion}-->
  245. <!--{if $ctorderid && ($ctorderid % $forumcolumns == 0)}-->
  246. </tr>
  247. <!--{if $ctorderid < $forumscount}-->
  248. <tr class="fl_row">
  249. <!--{/if}-->
  250. <!--{/if}-->
  251. <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
  252. <div class="fl_icn_g">
  253. <a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}" target="_blank"><img src="{IMGDIR}/forum{if $followcollections[$key]['lastvisit'] < $colletion['lastupdate']}_new{/if}.gif" alt="$colletion[name]" /></a>
  254. </div>
  255. <dl>
  256. <dt><a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}">$colletion[name]</a></dt>
  257. <dd><em>{lang forum_threads}: <!--{echo dnumber($colletion[threadnum])}--></em>, <em>{lang collection_commentnum}: <!--{echo dnumber($colletion[commentnum])}--></em></dd>
  258. <dd>
  259. <!--{if $colletion['lastpost']}-->
  260. <!--{if $forumcolumns < 3}-->
  261. <a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($colletion[lastsubject], 30)}--></a> <cite><!--{date($colletion[lastposttime])}--> <!--{if $colletion['lastposter']}-->$colletion['lastposter']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  262. <!--{else}-->
  263. <a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost">{lang forum_lastpost}: <!--{date($colletion[lastposttime])}--></a>
  264. <!--{/if}-->
  265. <!--{else}-->
  266. {lang never}
  267. <!--{/if}-->
  268. </dd>
  269. <!--{hook/index_followcollection_extra $colletion[ctid]}-->
  270. </dl>
  271. </td>
  272. <!--{eval $ctorderid++;}-->
  273. <!--{/loop}-->
  274. <!--{if ($columnspad = $ctorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width="$forumcolwidth"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
  275. </tr>
  276. </table>
  277. </div>
  278. </div>
  279. <!--{/if}-->
  280. <!--{if empty($gid) && !empty($forum_favlist)}-->
  281. <!--{eval $forumscount = count($forum_favlist);}-->
  282. <!--{eval $forumcolumns = $forumscount > 3 ? ($forumscount == 4 ? 4 : 5) : 1;}-->
  283. <!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->
  284. <div class="bm bmw {if $forumcolumns} flg{/if} cl">
  285. <div class="bm_h cl">
  286. <span class="o">
  287. <img id="category_0_img" src="{IMGDIR}/$collapse['collapseimg_0']" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_0');" />
  288. </span>
  289. <h2><a href="home.php?mod=space&do=favorite&type=forum">{lang forum_myfav}</a></h2>
  290. </div>
  291. <div id="category_0" class="bm_c" style="{echo $collapse['category_0']}">
  292. <table cellspacing="0" cellpadding="0" class="fl_tb">
  293. <tr>
  294. <!--{eval $favorderid = 0;}-->
  295. <!--{loop $forum_favlist $key $favorite}-->
  296. <!--{if $favforumlist[$favorite[id]]}-->
  297. <!--{eval $forum=$favforumlist[$favorite[id]];}-->
  298. <!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->
  299. <!--{if $forumcolumns>1}-->
  300. <!--{if $favorderid && ($favorderid % $forumcolumns == 0)}-->
  301. </tr>
  302. <!--{if $favorderid < $forumscount}-->
  303. <tr class="fl_row">
  304. <!--{/if}-->
  305. <!--{/if}-->
  306. <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
  307. <div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  308. <!--{if $forum[icon]}-->
  309. $forum[icon]
  310. <!--{else}-->
  311. <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  312. <!--{/if}-->
  313. </div>
  314. <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
  315. <dt><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></dt>
  316. <!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: <!--{echo dnumber($forum[threads])}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($forum[posts])}--></em></dd><!--{/if}-->
  317. <dd>
  318. <!--{if $forum['permission'] == 1}-->
  319. {lang private_forum}
  320. <!--{else}-->
  321. <!--{if $forum['redirect']}-->
  322. <a href="$forumurl" class="xi2">{lang url_link}</a>
  323. <!--{elseif is_array($forum['lastpost'])}-->
  324. <!--{if $forumcolumns < 3}-->
  325. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  326. <!--{else}-->
  327. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  328. <!--{/if}-->
  329. <!--{else}-->
  330. {lang never}
  331. <!--{/if}-->
  332. <!--{/if}-->
  333. </dd>
  334. <!--{hook/index_favforum_extra $forum[fid]}-->
  335. </dl>
  336. </td>
  337. <!--{eval $favorderid++;}-->
  338. <!--{else}-->
  339. <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  340. <!--{if $forum[icon]}-->
  341. $forum[icon]
  342. <!--{else}-->
  343. <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  344. <!--{/if}-->
  345. </td>
  346. <td>
  347. <h2><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></h2>
  348. <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
  349. <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
  350. <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
  351. <!--{hook/index_favforum_extra $forum[fid]}-->
  352. </td>
  353. <td class="fl_i">
  354. <!--{if empty($forum[redirect])}--><span class="xi2"><!--{echo dnumber($forum[threads])}--></span><span class="xg1"> / <!--{echo dnumber($forum[posts])}--></span><!--{/if}-->
  355. </td>
  356. <td class="fl_by">
  357. <div>
  358. <!--{if $forum['permission'] == 1}-->
  359. {lang private_forum}
  360. <!--{else}-->
  361. <!--{if $forum['redirect']}-->
  362. <a href="$forumurl" class="xi2">{lang url_link}</a>
  363. <!--{elseif is_array($forum['lastpost'])}-->
  364. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  365. <!--{else}-->
  366. {lang never}
  367. <!--{/if}-->
  368. <!--{/if}-->
  369. </div>
  370. </td>
  371. </tr>
  372. <tr class="fl_row">
  373. <!--{/if}-->
  374. <!--{/if}-->
  375. <!--{/loop}-->
  376. <!--{if ($columnspad = $favorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width="$forumcolwidth"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
  377. </tr>
  378. </table>
  379. </div>
  380. </div>
  381. <!--{ad/intercat/bm a_c/-1}-->
  382. <!--{/if}-->
  383. <!--{loop $catlist $key $cat}-->
  384. <!--{hook/index_catlist $cat[fid]}-->
  385. <div class="bm bmw {if $cat['forumcolumns']} flg{/if} cl">
  386. <div class="bm_h cl">
  387. <span class="o">
  388. <img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_$cat[fid]');" />
  389. </span>
  390. <!--{if $cat['moderators']}--><span class="y">{lang forum_category_modedby}: $cat[moderators]</span><!--{/if}-->
  391. <!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';}-->
  392. <h2><a href="{if !empty($caturl)}$caturl{else}forum.php?gid=$cat[fid]{/if}" style="{if $cat[extra][namecolor]}color: {$cat[extra][namecolor]};{/if}">$cat[name]</a></h2>
  393. </div>
  394. <div id="category_$cat[fid]" class="bm_c" style="{echo $collapse['category_'.$cat[fid]]}">
  395. <table cellspacing="0" cellpadding="0" class="fl_tb">
  396. <tr>
  397. <!--{loop $cat[forums] $forumid}-->
  398. <!--{eval $forum=$forumlist[$forumid];}-->
  399. <!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->
  400. <!--{if $cat['forumcolumns']}-->
  401. <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
  402. </tr>
  403. <!--{if $forum['orderid'] < $cat['forumscount']}-->
  404. <tr class="fl_row">
  405. <!--{/if}-->
  406. <!--{/if}-->
  407. <td class="fl_g" width="$cat[forumcolwidth]">
  408. <div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  409. <!--{if $forum[icon]}-->
  410. $forum[icon]
  411. <!--{else}-->
  412. <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  413. <!--{/if}-->
  414. </div>
  415. <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
  416. <dt><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></dt>
  417. <!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: <!--{echo dnumber($forum[threads])}--></em>, <em>{lang forum_posts}: <!--{echo dnumber($forum[posts])}--></em></dd><!--{/if}-->
  418. <dd>
  419. <!--{if $forum['permission'] == 1}-->
  420. {lang private_forum}
  421. <!--{else}-->
  422. <!--{if $forum['redirect']}-->
  423. <a href="$forumurl" class="xi2">{lang url_link}</a>
  424. <!--{elseif is_array($forum['lastpost'])}-->
  425. <!--{if $cat['forumcolumns'] < 3}-->
  426. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  427. <!--{else}-->
  428. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  429. <!--{/if}-->
  430. <!--{else}-->
  431. {lang never}
  432. <!--{/if}-->
  433. <!--{/if}-->
  434. </dd>
  435. <!--{hook/index_forum_extra $forum[fid]}-->
  436. </dl>
  437. </td>
  438. <!--{else}-->
  439. <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  440. <!--{if $forum[icon]}-->
  441. $forum[icon]
  442. <!--{else}-->
  443. <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  444. <!--{/if}-->
  445. </td>
  446. <td>
  447. <h2><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></h2>
  448. <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
  449. <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
  450. <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
  451. <!--{hook/index_forum_extra $forum[fid]}-->
  452. </td>
  453. <td class="fl_i">
  454. <!--{if empty($forum[redirect])}--><span class="xi2"><!--{echo dnumber($forum[threads])}--></span><span class="xg1"> / <!--{echo dnumber($forum[posts])}--></span><!--{/if}-->
  455. </td>
  456. <td class="fl_by">
  457. <div>
  458. <!--{if $forum['permission'] == 1}-->
  459. {lang private_forum}
  460. <!--{else}-->
  461. <!--{if $forum['redirect']}-->
  462. <a href="$forumurl" class="xi2">{lang url_link}</a>
  463. <!--{elseif is_array($forum['lastpost'])}-->
  464. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  465. <!--{else}-->
  466. {lang never}
  467. <!--{/if}-->
  468. <!--{/if}-->
  469. </div>
  470. </td>
  471. </tr>
  472. <tr class="fl_row">
  473. <!--{/if}-->
  474. <!--{/loop}-->
  475. $cat['endrows']
  476. </tr>
  477. </table>
  478. </div>
  479. </div>
  480. <!--{ad/intercat/bm a_c/$cat[fid]}-->
  481. <!--{/loop}-->
  482. <!--{if !empty($collectiondata['data'])}-->
  483. <!--{eval $forumscount = count($collectiondata['data']);}-->
  484. <!--{eval $forumcolumns = 4;}-->
  485. <!--{eval $forumcolwidth = (floor(100 / $forumcolumns) - 0.1).'%';}-->
  486. <div class="bm bmw {if $forumcolumns} flg{/if} cl">
  487. <div class="bm_h cl">
  488. <span class="o">
  489. <img id="category_-2_img" src="{IMGDIR}/$collapse['collapseimg_-2']" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_-2');" />
  490. </span>
  491. <h2><a href="forum.php?mod=collection">{lang recommend_collection}</a></h2>
  492. </div>
  493. <div id="category_-2" class="bm_c" style="{echo $collapse['category_-2']}">
  494. <table cellspacing="0" cellpadding="0" class="fl_tb">
  495. <tr>
  496. <!--{eval $ctorderid = 0;}-->
  497. <!--{loop $collectiondata['data'] $key $colletion}-->
  498. <!--{if $ctorderid && ($ctorderid % $forumcolumns == 0)}-->
  499. </tr>
  500. <!--{if $ctorderid < $forumscount}-->
  501. <tr class="fl_row">
  502. <!--{/if}-->
  503. <!--{/if}-->
  504. <td class="fl_g"{if $forumcolwidth} width="$forumcolwidth"{/if}>
  505. <div class="fl_icn_g">
  506. <a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}" target="_blank"><img src="{IMGDIR}/forum.gif" alt="$colletion[name]" /></a>
  507. </div>
  508. <dl>
  509. <dt><a href="forum.php?mod=collection&action=view&ctid={$colletion[ctid]}">$colletion[name]</a></dt>
  510. <dd><em>{lang forum_threads}: <!--{echo dnumber($colletion[threadnum])}--></em>, <em>{lang collection_commentnum}: <!--{echo dnumber($colletion[commentnum])}--></em></dd>
  511. <dd>
  512. <!--{if $colletion['lastpost']}-->
  513. <!--{if $forumcolumns < 3}-->
  514. <a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($colletion[lastsubject], 30)}--></a> <cite><!--{date($colletion[lastposttime])}--> <!--{if $colletion['lastposter']}-->$colletion['lastposter']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  515. <!--{else}-->
  516. <a href="forum.php?mod=redirect&tid=$colletion[lastpost]&goto=lastpost#lastpost">{lang forum_lastpost}: <!--{date($colletion[lastposttime])}--></a>
  517. <!--{/if}-->
  518. <!--{else}-->
  519. {lang never}
  520. <!--{/if}-->
  521. </dd>
  522. <!--{hook/index_datacollection_extra $colletion[ctid]}-->
  523. </dl>
  524. </td>
  525. <!--{eval $ctorderid++;}-->
  526. <!--{/loop}-->
  527. <!--{if ($columnspad = $ctorderid % $forumcolumns) > 0}--><!--{echo str_repeat('<td class="fl_g"'.($forumcolwidth ? " width="$forumcolwidth"" : '').'></td>', $forumcolumns - $columnspad);}--><!--{/if}-->
  528. </tr>
  529. </table>
  530. </div>
  531. </div>
  532. <!--{/if}-->
  533. </div>
  534. <!--{hook/index_middle}-->
  535. <div class="wp mtn">
  536. <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
  537. </div>
  538. <!--{if empty($gid) && $_G['setting']['whosonlinestatus']}-->
  539. <div id="online" class="bm oll">
  540. <div class="bm_h">
  541. <!--{if $detailstatus}-->
  542. <span class="o"><a href="forum.php?showoldetails=no#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang spread}" /></a></span>
  543. <h3>
  544. <strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
  545. <span class="xs1">- <strong>$onlinenum</strong> {lang onlines}
  546. - <strong>$membercount</strong> {lang index_members}(<strong>$invisiblecount</strong> {lang index_invisibles}),
  547. <strong>$guestcount</strong> {lang index_guests}
  548. - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
  549. </h3>
  550. <!--{else}-->
  551. <!--{if empty($_G['setting']['sessionclose'])}-->
  552. <span class="o"><a href="forum.php?showoldetails=yes#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_yes.gif" alt="{lang spread}" /></a></span>
  553. <!--{/if}-->
  554. <h3>
  555. <strong>
  556. <!--{if !empty($_G['setting']['whosonlinestatus'])}-->
  557. {lang onlinemember}
  558. <!--{else}-->
  559. <a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a>
  560. <!--{/if}-->
  561. </strong>
  562. <span class="xs1">- {lang total} <strong>$onlinenum</strong> {lang onlines}
  563. <!--{if $membercount}-->- <strong>$membercount</strong> {lang index_members},<strong>$guestcount</strong> {lang index_guests}<!--{/if}-->
  564. - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
  565. </h3>
  566. <!--{/if}-->
  567. </div>
  568. <!--{if $_G['setting']['whosonlinestatus'] && $detailstatus}-->
  569. <dl id="onlinelist" class="bm_c">
  570. <dt class="ptm pbm bbda">$_G[cache][onlinelist][legend]</dt>
  571. <!--{if $detailstatus}-->
  572. <dd class="ptm pbm">
  573. <ul class="cl">
  574. <!--{if $whosonline}-->
  575. <!--{loop $whosonline $key $online}-->
  576. <li title="{lang time}: $online[lastactivity]">
  577. <img src="{STATICURL}image/common/$online[icon]" alt="icon" />
  578. <!--{if $online['uid']}-->
  579. <a href="home.php?mod=space&uid=$online[uid]">$online[username]</a>
  580. <!--{else}-->
  581. $online[username]
  582. <!--{/if}-->
  583. </li>
  584. <!--{/loop}-->
  585. <!--{else}-->
  586. <li style="width: auto">{lang online_only_guests}</li>
  587. <!--{/if}-->
  588. </ul>
  589. </dd>
  590. <!--{/if}-->
  591. </dl>
  592. <!--{/if}-->
  593. </div>
  594. <!--{/if}-->
  595. <!--{if empty($gid) && ($_G['cache']['forumlinks'][0] || $_G['cache']['forumlinks'][1] || $_G['cache']['forumlinks'][2])}-->
  596. <div class="bm lk">
  597. <div class="bm_h"><h2>友情链接</h2></div>
  598. <div id="category_lk" class="bm_c ptm">
  599. <!--{if $_G['cache']['forumlinks'][0]}-->
  600. <ul class="m mbn cl">$_G['cache']['forumlinks'][0]</ul>
  601. <!--{/if}-->
  602. <!--{if $_G['cache']['forumlinks'][1]}-->
  603. <div class="mbn cl">
  604. $_G['cache']['forumlinks'][1]
  605. </div>
  606. <!--{/if}-->
  607. <!--{if $_G['cache']['forumlinks'][2]}-->
  608. <ul class="x mbm cl">
  609. $_G['cache']['forumlinks'][2]
  610. <a href="<A >http://www.zixuewu.com/</A>" target="_blank">电商新闻</a>
  611. </ul>
  612. <!--{/if}-->
  613. </div>
  614. </div>
  615. <!--{/if}-->
  616. <!--{hook/index_bottom}-->
  617. </div>
  618. <!--{if $_G['setting']['forumallowside']}-->
  619. <div id="sd" class="sd">
  620. <!--{hook/index_side_top}-->
  621. <div class="drag">
  622. <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
  623. </div>
  624. <!--{hook/index_side_bottom}-->
  625. </div>
  626. <!--{/if}-->
  627. </div>
  628. <!--{if $_G['group']['radminid'] == 1}-->
  629. <!--{eval helper_manyou::checkupdate();}-->
  630. <!--{/if}-->
  631. <!--{if empty($_G['setting']['disfixednv_forumindex']) }--><script>fixed_top_nv();</script><!--{/if}-->
  632. <!--{template common/footer}--></P>
复制代码

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-12-27 13:43 , Processed in 0.024655 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表