📄 thread.htm
字号:
<!--<?php print <<<EOT
-->
<div class="t3" style="margin:8px auto"><table width="100%" cellspacing="0" cellpadding="0" align="center">
<tr><td>$msg_guide <a href="rss.php?fid=$fid" target="_blank" title="RSS订阅本版面最新帖子"><img align="absmiddle" src="$imgpath/$stylepath/rss.png" /></a></td></tr>
</table></div>
$forumlist
<!--ads begin-->
<!--
EOT;
if($advertdb[text]){print <<<EOT
-->
<div class="t" style="margin-top:8px"><table width="100%" cellspacing="0" cellpadding="0" align="center">
<!--
EOT;
$id=0;
foreach($advertdb[text] as $key => $value){
if($id==0){print <<<EOT
-->
<tr class="tr3">
<!--
EOT;
}$id++;print <<<EOT
-->
<td width="25%" class="t_one black y-style">$value[code]</td>
<!--
EOT;
if($id==4){
$id=0;
print <<<EOT
-->
</tr>
<!--
EOT;
}}if($advertdb[text] && $id && $id<4){
for($i=$id;$i<4;$i++){print <<<EOT
-->
<td width="25%"><br /></td>
<!--
EOT;
}print <<<EOT
-->
</tr>
<!--
EOT;
}print <<<EOT
-->
</table></div>
<!--
EOT;
}print <<<EOT
-->
<!--ads end-->
<!--
EOT;
if($foruminfo[aid] || is_array($foruminfo['commend'])){print <<<EOT
-->
<div class="t fl"><table cellspacing="0" cellpadding="0" align="center">
<tr><td class="h" colspan="2"><a style="float:right" href="#" onclick="return IndexDeploy('thread',0)"><img id="img_thread" src="$imgpath/$stylepath/index/cate_$thread_img.gif" /></a><b>版块公告</b></td>
</tr>
<tr></tr>
<tbody id="cate_thread" style="$cate_thread">
<tr class="tr1">
<!--
EOT;
if($foruminfo[aid]){print <<<EOT
-->
<th width="50%" class="t_one" onMouseOver="this.className='t_two'" onMouseOut="this.className='t_one'"> $foruminfo[content]
<div align="right"><a class="gray" href="notice.php?fid=$foruminfo[fid]#$foruminfo[aid]">更多</a></div></th>
<!--
EOT;
}if(is_array($foruminfo['commend'])){print <<<EOT
-->
<style type="text/css">
#commend li{padding-left:1em;background:url($imgpath/$stylepath/dotB.png) no-repeat 0 .1em; margin-left:1em}
</style>
<th class="t_one" onMouseOver="this.className='t_two'" onMouseOut="this.className='t_one'">
<span class="s1">版主推荐:</span>
<ul id="commend" style="margin:.1em 0 0 0;list-style-type:none">
<!--
EOT;
foreach($foruminfo['commend'] as $key=>$value){print <<<EOT
-->
<li>$value[author] <a href="read.php?tid=$value[tid]">$value[subject]</a></li>
<!--
EOT;
}print <<<EOT
-->
</ul>
</th>
<!--
EOT;
}print <<<EOT
-->
</tr>
</table></div>
<!--
EOT;
}print <<<EOT
-->
<div class="c"></div>
<!--
EOT;
$thread_children && require_once PrintEot($thread_children);
if($db_union[5]){
$db_union[5]=str_replace(array('{f_fid}','{sch_time}'),array($fid,$_G[schtime]),$db_union[5]);
}print <<<EOT
-->
<div class="t3"><table width="100%" align="center" cellspacing="0" cellpadding="0">
<tr><td align="left" valign="middle"><div class="fl">$pages</div>$db_union[5]</td><td style="text-align:right"><a href="post.php?fid=$fid"><img src="$imgpath/$stylepath/post.gif" id="td_post" /></a></td>
</tr>
</table></div>
<div id="menu_post" class="menu tac f14" style="display:none;">
<ul style="width:99px">
<!--
EOT;
if($forumset[allowsale]!=2){print <<<EOT
-->
<li><a href="post.php?fid=$fid&special=4">交 易</a></li>
<!--
EOT;
}if($foruminfo['allowreward'] && $_G['allowreward']){ print<<<EOT
-->
<li><a href="post.php?fid=$fid&special=3">悬 赏</a></li>
<!--
EOT;
}if($forumset[allowactive] && $gp_allowactive){ print <<<EOT
-->
<li><a href="post.php?fid=$fid&special=2">活 动</a></li>
<!--
EOT;
}print <<<EOT
-->
<li><a href="post.php?fid=$fid&special=1">投 票</a></li>
</ul>
</div>
$trd_adminhide
<div class="t" style="margin:3px auto"><table cellspacing="0" cellpadding="0" width="100%" id="ajaxtable">
<tr><th class="h" colspan="6" style="width:100%"><a class="fr a2 fn" href="thread.php?fid=$fid"></a> <a class="fr a2 fn" href="thread.php?fid=$fid&search=digest">精华主题</a>
<!--
EOT;
if($groupid!='guest' && $foruminfo['f_check']){print <<<EOT
-->
<a class="fr a2 fn" href="thread.php?fid=$fid&search=check">未验证主题</a>
<!--
EOT;
}foreach($t_typedb as $key=>$value){
if($value){
$type==$key && $value="<b>$value</b>";
print <<<EOT
-->
<a class="fr a2 fn" href="thread.php?fid=$fid&type=$key">{$value}</a>
<!--
EOT;
}}print <<<EOT
-->
<a href="thread.php?fid=$fid">$foruminfo[name]</a><span> 版主:
<!--
EOT;
if($db_adminshow && $admin_T[admin]){print <<<EOT
-->
<select name="admin" onchange="Ajump(this.options[this.selectedIndex].value);"><option value="">版主列表</option>$admin_T[admin]
</select>
<!--
EOT;
}else{print <<<EOT
-->
$admin_T[admin]
<!--
EOT;
}if($admincheck){print <<<EOT
-->
<a href="forumcp.php?action=edit&fid=$fid"><span class="s3">[版块管理]</span></a>
<!--
EOT;
}print <<<EOT
-->
</span></th>
</tr>
<tbody style="table-layout:fixed;"><tr></tr>
<tr class="tr2">
<td class="tac y-style">状态</td>
<td style="width:56%" class="tac">文章</td>
<td style="width:10%" class="y-style">作者</td>
<td style="width:6%" class="y-style">回复</td>
<td style="width:6%" class="y-style">人气</td>
<td style="width:17%" class="y-style">最后发表</td>
</tr>
<!--
EOT;
if($page==1 && $ifsort){
if($NT_A){print <<<EOT
-->
<tr align="middle" class="tr3 t_two" onMouseOver="this.className='tr3 t_two'" onMouseOut="this.className='tr3 t_one'"><td class="y-style"><img src="$imgpath/$stylepath/thread/anc.gif" /></td><th> 论坛公告: <h3><a href="$NT_A[url]" class="black">$NT_A[subject]</a></h3></th><td class="tal y-style"><a href="profile.php?action=show&username=$NT_A[rawauthor]" class="bl">$NT_A[author]</a></td><td colspan="2" class="y-style"><a href="notice.php?fid=$NT_A[fid]">论坛公告</a></td><td class="tal y-style">$NT_A[startdate]</td>
</tr>
<!--
EOT;
}if($NT_C){print <<<EOT
-->
<tr align="middle" class="tr3 t_one" onMouseOver="this.className='tr3 t_two'" onMouseOut="this.className='tr3 t_one'"><td><img src="$imgpath/$stylepath/thread/anc.gif" /></td><th> 分类公告: <h3><a href="notice.php?fid=$NT_C[fid]#$NT_C[aid]" class="black">$NT_C[subject]</a></h3></th><td class="tal y-style"><a href="profile.php?action=show&username=$NT_C[rawauthor]" class="bl">$NT_C[author]</a></td><td colspan="2" class="y-style"><a href="notice.php?fid=$NT_C[fid]">分类公告</a></td><td class="y-style">$NT_C[startdate]</td>
</tr>
<!--
EOT;
}}
$tpc_topped=0;
foreach($threaddb as $key => $thread){
if($page==1 && $ifsort && $thread[topped]==0 && $tpc_topped==0){
$tpc_topped=1;
print <<<EOT
-->
<tr class="tr2"><td colspan="6" class="tac" style="border-top:0">普通主题</td></tr>
<!--
EOT;
}print <<<EOT
-->
<tr align="center" class="tr3 t_one" onMouseOver="this.className='tr3 t_two'" onMouseOut="this.className='tr3 t_one'"><td><a title="打开新窗口" href="$thread[tpcurl]" target="_blank">$thread[status]</a></td><td style="text-align:left;padding-left:8px" id="td_$thread[tid]"> $thread[adminbox]
<!--
EOT;
if($thread[topped]){print <<<EOT
-->
<img src="$imgpath/$stylepath/file/headtopic_$thread[topped].gif" alt="置顶帖标志" />
<!--
EOT;
}print <<<EOT
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -