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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

网站老是自动刷新,求老大帮看看代码

[复制链接]
hzq20008 发表于 2012-4-13 11:50:41 | 显示全部楼层 |阅读模式
discuz.htm
  1. <!--{subtemplate common/header}-->


  2. <div id="pt" class="bm cl">
  3. <!--{if empty($gid) && $announcements}-->
  4. <div class="y">
  5. <div id="an">
  6. <dl class="cl">
  7. <dt class="z xw1">{lang announcements}: </dt>
  8. <dd>
  9. <div id="anc" class="xi2"><ul id="ancl">$announcements</ul></div>
  10. </dd>
  11. </dl>
  12. </div>
  13. <script type="text/javascript">announcement();</script>
  14. </div>
  15. <!--{/if}-->
  16. <div class="z">
  17. <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
  18. </div>
  19. <div class="z"><!--{hook/index_status_extra}--></div>
  20. </div>


  21. <!--{if empty($gid)}-->
  22. <!--{ad/text/wp a_t}-->
  23. <!--{/if}-->

  24. <style id="diy_style" type="text/css"></style>

  25. <!--{if empty($gid)}-->
  26. <div class="wp">
  27. <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
  28. </div>
  29. <!--{/if}-->

  30. <div id="ct" class="wp cl{if $_G['setting']['forumallowside']} ct2{/if}">
  31. <!--{if empty($gid)}-->
  32. <div id="chart" class="bm bw0 cl">
  33. <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>
  34. <div class="y">|</span>
  35. <!--{if $_G['uid']}--><a href="home.php?mod=space&uid=$_G['uid']&do=thread&view=me" title="{lang my_posts}" class="xi2">{lang my_posts}</a><span class="pipe">|</span><!--{/if}--><!--{if !empty($_G['setting']['search']['forum']['status'])}--><a href="search.php?mod=forum&srchfrom=$newthreads&searchsubmit=yes" title="{lang show_newthreads}" class="xi2">{lang show_newthreads}</a><!--{/if}-->
  36. </div>
  37. </div>
  38. <!--{/if}-->

  39. <div class="mn">
  40. <!--{hook/index_top}-->

  41. <!--{if !empty($_G['cache']['heats']['message'])}-->
  42. <div class="bm">
  43. <div class="bm_h cl">
  44. <h2>{lang hotthreads_forum}</h2>
  45. </div>
  46. <div class="bm_c cl">
  47. <div class="heat z">
  48. <!--{loop $_G['cache']['heats']['message'] $data}-->
  49. <dl class="xld">
  50. <dt><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->
  51. <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></dt>
  52. <dd>$data[message]</dd>
  53. </dl>
  54. <!--{/loop}-->
  55. </div>
  56. <ul class="xl xl1 heatl">
  57. <!--{loop $_G['cache']['heats']['subject'] $data}-->
  58. <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>
  59. <!--{/loop}-->
  60. </ul>
  61. </div>
  62. </div>
  63. <!--{/if}-->

  64. <div class="fl bm">
  65. <!--{loop $catlist $key $cat}-->
  66. <div class="bm bmw {if $cat['forumcolumns']} flg{/if} cl">
  67. <div class="bm_h cl">
  68. <span class="o">
  69. <img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_$cat[fid]');" />
  70. </span>
  71. <!--{if $cat['moderators']}--><span class="y">{lang forum_category_modedby}: $cat[moderators]</span><!--{/if}-->
  72. <!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';}-->
  73. <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>
  74. </div>
  75. <div id="category_$cat[fid]" class="bm_c" style="$collapse['category_'.$cat[fid]]">
  76. <table cellspacing="0" cellpadding="0" class="fl_tb">
  77. <tr>
  78. <!--{loop $cat[forums] $forumid}-->
  79. <!--{eval $forum=$forumlist[$forumid];}-->
  80. <!--{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'];}-->
  81. <!--{if $cat['forumcolumns']}-->
  82. <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
  83. </tr>
  84. <!--{if $forum['orderid'] < $cat['forumscount']}-->
  85. <tr class="fl_row">
  86. <!--{/if}-->
  87. <!--{/if}-->
  88. <td class="fl_g" width="$cat[forumcolwidth]" style="padding:10px 5px; ">
  89. <script language="javascript">
  90. function forumbackshow(id){
  91. document.getElementById(id).style.background="#f8f8f8";
  92. }
  93. function forumbackout(id){
  94. document.getElementById(id).style.background="";
  95. }
  96. function showgoto() {
  97. var i, args=showgoto.arguments; document.showgtvlaue = false;
  98. for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
  99. }
  100. </script>
  101. <!--/***************************************************************************/-->
  102. <div id="showback_$forum[fid]" style="border:1px solid #ccc; cursor:default;" onmouseover="forumbackshow('showback_$forum[fid]')" onmouseout="forumbackout('showback_$forum[fid]')" ondblclick="showgoto('parent','forum.php?mod=forumdisplay&fid=$forum[fid]');return document.showgtvlaue" title="">
  103. <div style="padding:5px; ">
  104. <style>
  105. .ficodiv {float:left;}
  106. .ficodiv,.ficodiv img{width:27px; height:32px; overflow:hidden; margin-top:2px; margin-right:5px;}
  107. .f_ttdiv {height:56px; line-height:20px;overflow:hidden;}
  108. .f_name {height:20px; overflow:hidden;}
  109. .f_name small{float:right;color:#aaa;}
  110. .f_name small span{color:#f30;}
  111. .f_name a span{font-size:14px;}
  112. .f_lyhp {float:left;}
  113. .f_lyhp {color:#999;}
  114. .f_bkjs {height:20px; line-height:18px; overflow:hidden;color:#888;}
  115. .f_tzmh {padding:5px; height:18px; line-height:20px; overflow:hidden;}
  116. </style>
  117. <div class="ficodiv">
  118. <!--{if $forum[icon]}-->
  119. $forum[icon]
  120. <!--{else}-->
  121. <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}>
  122. <img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" />
  123. </a>
  124. <!--{/if}-->
  125. </div>

  126. <div class="f_ttdiv" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
  127. <div class="f_name" title="$forum[name]">
  128. <small>
  129. <!--{if $forum[todayposts] && !$forum['redirect']}-->
  130. (今日:<span title="{lang forum_todayposts}">$forum[todayposts]</span>)
  131. <!--{/if}-->
  132. </small>
  133. <a href="$forumurl" {if $forum[redirect]}target="_blank"{/if}{if $forum[extra][namecolor]} style="color:{$forum[extra][namecolor]};"{/if}>
  134. <span>$forum[name]</span>
  135. </a>
  136. </div>
  137. <div class="f_name">
  138. <!--{if empty($forum[redirect])}-->
  139. <div class="f_lyhp">
  140. <span>主题:</span><em style="color:#f60;">$forum[threads]</em>
  141. </div><div style="float:left;">
  142. <span>帖子:</span><em style="color:#090;">$forum[posts]</em>
  143. <!--{if $forum[moderators]}-->
  144. <span id="default{$forum['fid']}" class="showmenu" onmouseover="showMenu(this.id);">版主</span>
  145. <ul id="default{$forum['fid']}_menu" class="p_pop" style="display:none;"><!--{echo str_replace(array(',',' c="1"'),'',$forum[moderators]);}--></ul><!--{else}-->
  146. 版主空缺
  147. <!--{/if}-->
  148. </div>
  149. <!--{/if}-->
  150. </div>
  151. <div class="f_bkjs">
  152. <!--{if $forum[description]}-->
  153. <span tabindex="$forum[description]">$forum[description]</span>
  154. <!--{else}-->
  155. <a href="/forum-52-1.html"><b style="color:#f30;">点击申请版主</b></a>
  156. <!--{/if}-->
  157. </div>
  158. </div>
  159. </div>
  160. <!--/******************帖子美化*************************************/-->
  161. <div class="f_tzmh">
  162. <!--{if $forum['redirect']}-->
  163. <a href="$forumurl" class="xi2">{lang url_link}</a>
  164. <!--{elseif is_array($forum['lastpost'])}-->
  165. <b style="color:#f30;">New</b>
  166. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2">
  167. <!--{echo cutstr($forum[lastpost][subject], 48)}-->
  168. </a>
  169. <!--{else}-->
  170. <b style="color:#d60; margin-right:5px;">Null</b>暂无主题, <a href="forum.php?mod=post&action=newthread&fid=$forum[fid]">抢先发表</a>!
  171. <!--{/if}-->
  172. </div>
  173. </div>
  174. <!--/*****************结束***********************************/-->
  175. </td>
  176. <!--{else}-->
  177. <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  178. <!--{if $forum[icon]}-->
  179. $forum[icon]
  180. <!--{else}-->
  181. <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  182. <!--{/if}-->
  183. </td>
  184. <td>
  185. <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>
  186. <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
  187. <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
  188. <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
  189. </td>
  190. <td class="fl_i">
  191. <!--{if empty($forum[redirect])}--><span class="xi2">$forum[threads]</span><span class="xg1"> / $forum[posts]</span><!--{/if}-->
  192. </td>
  193. <td class="fl_by">
  194. <div>
  195. <!--{if $forum['permission'] == 1}-->
  196. {lang private_forum}
  197. <!--{else}-->
  198. <!--{if $forum['redirect']}-->
  199. <a href="$forumurl" class="xi2">{lang url_link}</a>
  200. <!--{elseif is_array($forum['lastpost'])}-->
  201. <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>
  202. <!--{else}-->
  203. {lang never}
  204. <!--{/if}-->
  205. <!--{/if}-->
  206. </div>
  207. </td>
  208. </tr>
  209. <tr class="fl_row">
  210. <!--{/if}-->
  211. <!--{/loop}-->
  212. $cat['endrows']
  213. </tr>
  214. </table>
  215. </div>
  216. </div>
  217. <!--{ad/intercat/bm a_c/$cat[fid]}-->
  218. <!--{/loop}-->
  219. </div>

  220. <!--{hook/index_middle}-->
  221. <div class="wp mtn">
  222. <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
  223. </div>

  224. <!--{if empty($gid) && $_G['setting']['whosonlinestatus']}-->
  225. <div id="online" class="bm oll">
  226. <div class="bm_h">
  227. <!--{if $detailstatus}-->
  228. <span class="o"><a href="forum.php?showoldetails=no#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang spread}" /></a></span>
  229. <h3>
  230. <strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
  231. <span class="xs1">- <strong>$onlinenum</strong> {lang onlines}
  232. - <strong>$membercount</strong> {lang index_members}(<strong>$invisiblecount</strong> {lang index_invisibles}),
  233. <strong>$guestcount</strong> {lang index_guests}
  234. - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
  235. </h3>
  236. <!--{else}-->
  237. <span class="o"><a href="forum.php?showoldetails=yes#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_yes.gif" alt="{lang spread}" /></a></span>
  238. <h3>
  239. <strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
  240. <span class="xs1">- {lang total} <strong>$onlinenum</strong> {lang onlines}
  241. - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
  242. </h3>
  243. <!--{/if}-->
  244. </div>
  245. <!--{if $_G['setting']['whosonlinestatus'] && $detailstatus}-->
  246. <dl id="onlinelist" class="bm_c">
  247. <dt class="ptm pbm bbda">$_G[cache][onlinelist][legend]</dt>
  248. <!--{if $detailstatus}-->
  249. <dd class="ptm pbm">
  250. <ul class="cl">
  251. <!--{if $whosonline}-->
  252. <!--{loop $whosonline $key $online}-->
  253. <li title="{lang time}: $online[lastactivity]">
  254. <img src="{STATICURL}image/common/$online[icon]" alt="icon" />
  255. <!--{if $online['uid']}-->
  256. <a href="home.php?mod=space&uid=$online[uid]">$online[username]</a>
  257. <!--{else}-->
  258. $online[username]
  259. <!--{/if}-->
  260. </li>
  261. <!--{/loop}-->
  262. <!--{else}-->
  263. <li style="width: auto">{lang online_only_guests}</li>
  264. <!--{/if}-->
  265. </ul>
  266. </dd>
  267. <!--{/if}-->
  268. </dl>
  269. <!--{/if}-->
  270. </div>
  271. <!--{/if}-->

  272. <!--{if empty($gid) && ($_G['cache']['forumlinks'][0] || $_G['cache']['forumlinks'][1] || $_G['cache']['forumlinks'][2])}-->
  273. <div class="bm lk">
  274. <div id="category_lk" class="bm_c ptm">
  275. <!--{if $_G['cache']['forumlinks'][0]}-->
  276. <ul class="m mbn cl">$_G['cache']['forumlinks'][0]</ul>
  277. <!--{/if}-->
  278. <!--{if $_G['cache']['forumlinks'][1]}-->
  279. <div class="mbn cl">
  280. $_G['cache']['forumlinks'][1]
  281. </div>
  282. <!--{/if}-->
  283. <!--{if $_G['cache']['forumlinks'][2]}-->
  284. <ul class="x mbm cl">
  285. $_G['cache']['forumlinks'][2]
  286. </ul>
  287. <!--{/if}-->
  288. </div>
  289. </div>
  290. <!--{/if}-->

  291. <!--{hook/index_bottom}-->
  292. </div>

  293. <!--{if $_G['setting']['forumallowside']}-->
  294. <div id="sd" class="sd">
  295. <!--{hook/index_side_top}-->
  296. <div class="drag">
  297. <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
  298. </div>
  299. <!--{hook/index_side_bottom}-->
  300. </div>
  301. <!--{/if}-->
  302. </div>

  303. <!--{subtemplate common/footer}-->
复制代码
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-4-27 23:06 , Processed in 0.091118 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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