<!--<?php
print <<<EOT
-->
<style type="text/css">
/*帖子签名*/
.sigline{margin-left:1em;background: url($imgpath/$stylepath/read/sigline.gif) right bottom no-repeat;margin-right:30em;height:5px;}
.signature{padding:.5em 2em 0 1em;height:expression(this.scrollHeight>parseInt(this.currentStyle.maxHeight)?this.currentStyle.maxHeight:"auto");}
/*end*/
.tiptop a,.tipad a{ margin:0 .2em;}
.tips li{list-style:none;width:30%;height:24px;line-height:24px; min-width:210px;margin:0 5px;float:left;overflow:hidden;text-overflow:ellipsis;}
.menu a.a6:hover{text-decoration:underline;background:$headcolor;color:#00f}
.user-infoWrap2{line-height:18px;}
.user-pic{margin-left:5px;}
.user-pic img{border: 1px solid $tdcolor;background:#fff;padding:3px;}
.user-pic table{border:none;}
.user-info{ position:absolute;line-height:160%; margin-left:-1.5em;}
.user-infoWrap{color:#555;background:#fff url($imgpath/$stylepath/menubg.gif) center top repeat-x;border:1px solid #a9d5e9;padding:.5em 1em; margin-left:20px;display:block;}
.user-info .co{position:absolute; width:10px;height:20px; margin-left:-1.8em; margin-top:2em; background:url($imgpath/$stylepath/user-info-co.gif)}
/*字体大小*/
.small{font-size:12px}
.middle{font-size:14px}
.big{font-size:18px}
/*digg*/
.dig{font-size:12px;background:#ffffee url($imgpath/$stylepath/read/readicon.png) .3em -164px no-repeat;padding:0 .4em 0 1.6em;cursor: pointer;margin:0 0 0 1em;color:#666;border:1px solid #ffd0a8;height:18px;line-height:18px;}
.dig:hover{text-decoration:none;border:1px solid #f5a25c;color:#ff6600;}
/*readicon*/
.listread{text-indent:-2000em;margin-top:5px;}
.listread ul{padding:0px;margin:3px 0px 3px;width:170px;}
.listread ul li{list-style:none;float:left;width:22px;cursor:pointer;}
.listread div{background:url($imgpath/$stylepath/read/readicon.png);width:16px;height:16px;overflow:hidden;}
.listread .readblog{background-position:0 -124px;}
.listread .readonline{background-position:0 -4px;}
.listread .readoffline{background-position:0 -24px;}
.listread .readprofile{background-position:0 -44px;}
.listread .readmagic{background-position:0 -84px;}
.listread .readmessage{background-position:0 -64px;}
.listread .readqq{background-position:0 -104px;}
.listread .readww{background-position:0 -144px;}
/*tipbottom*/
.readbot{padding:0px;margin:0px;}
.readbot li{list-style:none;padding:0 0 0 1.2em; margin:0;float:left;cursor:pointer;background:url($imgpath/$stylepath/read/yin.gif) no-repeat;width:3em;height:10px;}
.readbot .yinyong{background-position:.2em 0;}
.readbot .huifu{background-position:.2em -20px;}
.readbot .ping{background-position:.2em -40px;}
.readbot .shou{background-position:.15em -60px;}
.bianji{background:none;margin-left:.8em;color:#ddd;}
.bianji a{color:#000;}
.bianji a:hover{color:#555;}
.threadrss{background:url($imgpath/$stylepath/thread/threadicon.png) left bottom no-repeat;width:14px;height:14px;}
.threadok{background:url($imgpath/$stylepath/thread/threadicon.png) left 1px no-repeat;width:14px;height:14px;}
.down{background:#fff url($imgpath/down.gif) 5px center no-repeat;padding:5px 5px 5px 30px;border:$cbgborder 1px solid;margin:0 1em 0 0;line-height:40px;}
.blockquote2{ border:1px solid #CCC;margin:0px;padding:0 0 0 2em;line-height:2em;width:90%;w\idth:88%;overflow:hidden;background:#fff}
.blockquote2 ol{margin:0 0 0 1.5em;padding:0;}
.blockquote2 ol li{border-left:1px solid #ccc;background:#f7f7f7;padding-left:10px;font-size:12px; font-family:"Courier New" serif;list-style-type:decimal-leading-zero;padding-right:1em;}
.blockquote2 ol li:hover{background:#fff;color:#008ef1;}
/*表格*/
.tr5{ line-height:130%;}
.tr5 td,.tr3 th{border-bottom:1px solid $tdcolor;border-right:1px solid $tdcolor;padding:.3em .6em;}
.tr5 th{text-align:left;font-weight:normal;}
</style>
<div class="bdbA">
	<div id="breadcrumbs">
		$msg_guide
		<a href="rss.php?tid=$tid" target="_blank" title="Rss订阅本帖最新内容"><img src="$imgpath/$stylepath/thread/kong.png" class="threadrss" style="_margin-top:5px;"/></a>
		</span>
	</div>
</div>
<div class="c"></div>
$forumlist
<!--ads begin-->
<!--
EOT;
if($advertdb['text']){print <<<EOT
-->
<div class="t5" style="margin-top:8px;border-bottom:0px;margin-bottom:0px;">
	<table width="100%" cellspacing="0" cellpadding="0">
<!--
EOT;
$id=0;
$idp = 100/$db_txtadnum;
foreach($advertdb['text'] as $value){
if($id==0){print <<<EOT
-->
		<tr class="tr3">
<!--
EOT;
}$id++;print <<<EOT
-->
			<td class="f_one black tac" width="$idp%">$value[code]</td>
<!--
EOT;
if($id==$db_txtadnum){
$id=0;print <<<EOT
-->
		</tr>
<!--
EOT;
}}if($id && $id<$db_txtadnum){
for($i=$id;$i<$db_txtadnum;$i++){print <<<EOT
-->
			<td class="f_one" width="$idp%"><br /></td>
<!--
EOT;
}print <<<EOT
-->
		</tr>
<!--
EOT;
}print <<<EOT
-->
	</table>
</div>
<div class="c"></div>
<!--
EOT;
}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">
<!--
EOT;
if($N_allowtypeopen){print <<<EOT
-->
	<span class="fr" style="margin-left:.5em"><a href="post.php?fid=$fid"><img src="$imgpath/$stylepath/post.png" id="td_post" /></a></span>
<!--
EOT;
}print <<<EOT
-->
    <span class="fr"><a href="post.php?action=reply&fid=$fid&tid=$tid"><img src="$imgpath/$stylepath/reply.png" /></a></span>
	<span class="fl pages"><ul><li><a href="job.php?action=previous&fid=$fid&tid=$tid&fpage=$fpage&goto=previous" class="fn">上一主题</a></li><li style="border-left:1px solid $tdcolor;" class="f_one"><a href="job.php?action=previous&fid=$fid&tid=$tid&fpage=$fpage&goto=next" class="fn">下一主题</a></li></ul></span>
    <span class="fl">$pages$db_union[5]</span>
	<div class="c"></div>
</div>
<div class="c"></div>
<!--
EOT;
if($N_allowtypeopen){print <<<EOT
-->
<div class="menu tac f14 pad" id="menu_post" style="display:none;">
	<ul style="width:80px;padding-top:.3em;">
<!--
EOT;
if($foruminfo['allowtype'] & 1){print <<<EOT
-->
		<li><a href="post.php?fid=$fid">新  帖</a></li>
<!--
EOT;
}if($foruminfo['allowtype'] & 2 && $_G['allownewvote']){print <<<EOT
-->
		<li><a href="post.php?fid=$fid&special=1">投  票</a></li>
<!--
EOT;
}if($foruminfo['allowtype'] & 4 && $_G['allowactive']){print <<<EOT
-->
		<li><a href="post.php?fid=$fid&special=2">活  动</a></li>
<!--
EOT;
}if($foruminfo['allowtype'] & 8 && $_G['allowreward']){print<<<EOT
-->
		<li><a href="post.php?fid=$fid&special=3">悬  赏</a></li>
<!--
EOT;
}if($foruminfo['allowtype'] & 16 && $_G['allowgoods']){print <<<EOT
-->
		<li><a href="post.php?fid=$fid&special=4">商  品</a></li>
<!--
EOT;
}if($foruminfo['allowtype'] & 32 && $_G['allowdebate']){print <<<EOT
-->
		<li><a href="post.php?fid=$fid&special=5">辩  论</a></li>
<!--
EOT;
}print <<<EOT
-->
	</ul>
</div>
<!--
EOT;
}print <<<EOT
-->
<div class="c"></div>
<div class="h2">
<span class="fl w">
<!--
EOT;
if ($isGM || strpos(",$db_appginfo,",",$groupid,") !== false) {print <<<EOT
-->
		<a id="pw_union" onclick="sendmsg('pw_app.php?ajax=1&action=toapp&tid=$tid','',this.id)" style="cursor:pointer" title="推送至应用平台">推送至APP</a> |
<script language="JavaScript">
function openinfo(o){
	var s = getObj(o.id + 'info');
	if (s.style.display == ''){
		s.style.display = 'none';
		o.innerHTML = '更多分类';
		o.title = '显示';
	} else {
		s.style.display = '';
		o.innerHTML = '更多分类';
		o.title = '隐藏';
	}
}
</script>
<!--
EOT;
}if($db_hackdb['toolcenter'][2]){print <<<EOT
-->
<a id="usetool" style="cursor:pointer" onclick="sendmsg('pw_ajax.php?action=usetool','',this.id)" />使用道具</a>
<!--
EOT;
}if($managecheck){
if($isGM || $pwSystem['topped']){print <<<EOT
-->
 | <a id="headtopic" onclick="return sendurl(this,1)" href="mawhole.php?action=headtopic&fid=$fid&seltid=$tid" title="置顶帖子">置顶</a>
<!--
EOT;
}if($isGM || $pwSystem['typeadmin']){print <<<EOT
-->
 | <a id="rdigest" onclick="return sendurl(this,1)" href="mawhole.php?action=digest&fid=$fid&seltid=$tid" title="精华帖子">精华</a>
 | <a id="lock" href="mawhole.php?action=lock&fid=$fid&seltid=$tid" onclick="return sendurl(this,1)" title="锁定帖子">锁定</a>
 | <a id="pushtopic" onclick="return sendurl(this,1)" href="mawhole.php?action=pushtopic&fid=$fid&seltid=$tid" title="提前帖子">提前</a>
 | <a id="downtopic" href="mawhole.php?action=downtopic&fid=$fid&seltid=$tid" onclick="return sendurl(this,1)" title="将帖子往后压">压贴</a>
 | <a id="edit" href="mawhole.php?action=edit&fid=$fid&seltid=$tid" onclick="return sendurl(this,1)" title="编辑标题颜色">加亮</a>
<!--
EOT;
}if($isGM || $pwSystem['moveatc']){print <<<EOT
-->
 | <a id="move" onclick="return sendurl(this,1)" href="mawhole.php?action=move&fid=$fid&seltid=$tid" title="移动帖子">移动</a>
<!--
EOT;
}if($isGM || $pwSystem['copyatc']){print <<<EOT
-->
 | <a id="copy" href="mawhole.php?action=copy&fid=$fid&seltid=$tid" onclick="return sendurl(this,1)" title="复制帖子">复制</a>
<!--
EOT;
}if($isGM || $pwSystem['unite']){print <<<EOT
-->
 | <a id="unit" onclick="return sendurl(this,1)" href="mawhole.php?action=unite&fid=$fid&seltid=$tid" title="合并帖子">合并</a>
<!--
EOT;
}if($isGM || $pwSystem['delatc']){print <<<EOT
-->
 | <a id="del" href="mawhole.php?action=del&fid=$fid&seltid=$tid" onclick="return sendurl(this,1)" title="删除帖子">删除</a>
<!--
EOT;
}if($ifcheck==0 && ($isGM || $pwSystem['tpccheck'])){print <<<EOT
-->
 | <a onclick="ajax.send('masingle.php?ajax=1&action=check&fid=$fid&tid=$tid','',ajax.guide)" style="cursor:pointer" title="审核未验证主题">审核</a>
<!--
EOT;
}if($admincheck && $forumset['commend']){print <<<EOT
-->
 | <a onclick="ajax.send('masingle.php?ajax=1&action=commend&fid=$fid&tid=$tid','',ajax.guide)" style="cursor:pointer" title="加入到版主推荐列表">版主推荐</a>
<!--
EOT;
}}print <<<EOT
-->
</span>
    <span class="fr w">
 <a style="cursor:pointer;" title="$db_bbsurl/read.php?fid=$fid&tid=$tid" onclick="clipboardData.setData('Text','$db_bbsurl/read.php?fid=$fid&tid=$tid&u=$winduid')">复制链接</a>
<!--
EOT;
if($groupid!='guest' && $db_hackdb['blog'][2]){
include_once(D_P.'data/bbscache/bg_config.php');
if($bg_ifopen){print <<<EOT
-->
		| <a href="$bg_blogurl/user_index.php?action=bbsatc&tid=$tid" title="推送到我的博客" target="_blank">推送到博客</a>
<!--
EOT;
}}print <<<EOT
--> | <a class="fn" style="cursor:pointer;" onclick="Addtoie('$db_bbsurl/read.php?fid=$fid&tid=$tid','$db_bbsname_a--$favortitle');">浏览器收藏</a> | <a class="fn" href="$db_bbsurl/simple/index.php?t{$tid}.html"> 打印</a>
    </span>
</div>
<div class="c"></div>
<!--
EOT;
$special && require_once PrintEot($special);print<<<EOT
-->
<div class="c"></div>
<form name="delatc" method="post">
<input type="hidden" name="fid" value="$fid" />
<input type="hidden" name="tid" value="$tid" />
<!--
EOT;
$style = 'style="border-top:0"';
$timetype = array('day'=>'天前','qiantian'=>'前天','yesterday'=>'昨天','hour'=>'小时前','minute'=>'分钟前');
foreach($readdb as $key=>$read){
if($read){
if($read['timetype']){
$read[posttime] .= $timetype[$read['timetype']];
}
if($advertdb['article'] && $ads = readad($advertdb['article'],$key,3)){print <<<EOT
-->
<div style="margin-bottom:4px;" class="tac" id="ads_d_$read[pid]">{$ads}</div>
<!--
EOT;
}print <<<EOT
-->
$read[jupend]
<div class="t5 t2" $style>
	<table cellspacing="0" cellpadding="0" width="100%" style="table-layout:fixed;border-top:0">
		<tr class="tr1">
			<th style="width:185px;padding:0;" rowspan="2" class="r_two">
				<div style="height:27px;line-height:24px;padding:5px 5px 0 8px;">
					<span class="listread fl" style="margin:2px 0 0 0;">
<!--
EOT;
if($db_showonline && $read['thisvisit']+$db_onlinetime*1.5>$timestamp){print <<<EOT
-->
						<a onclick="sendmsg('pw_ajax.php?action=addfriend&touid=$read[authorid]','','sf_$read[lou]')" style="cursor:pointer;"  title="加为好友"/><div class="readonline"></div></a>
<!--
EOT;
}elseif($db_showonline){print <<<EOT
-->
						<a onclick="sendmsg('pw_ajax.php?action=addfriend&touid=$read[authorid]','','sf_$read[lou]')" style="cursor:pointer" title="加为好友" /><div class="readoffline"></div></a>
<!--
EOT;
}print <<<EOT
-->
					</span>
					<b class="fl"><a href="u.php?action=show&uid=$read[authorid]" target="_blank">$read[author]</a></b>
					<div class="c"></div>
				</div>
<!--
EOT;
if($read['honor']){print <<<EOT
-->
				<div class="honor">$read[honor]</div>
<!--
EOT;
}print <<<EOT
-->
				<div class="user-pic">
					<table style="border:0;">
						<tr>
							<td width="1">
<!--
EOT;
if($db_menu>3){print <<<EOT
-->
								<a href="u.php?action=show&uid=$read[authorid]" target="_blank" onmouseover="mt=setTimeout('read.open(\'showface_$read[lou]\',\'sf_$read[lou]\',1,21);',700);" onmouseout="clearTimeout(mt);read.close();" style="cursor:pointer;">$read[face]</a>
<!--
EOT;
}else{print <<<EOT
-->
								<a href="u.php?action=show&uid=$read[authorid]" target="_blank" >$read[face]</a>
<!--
EOT;
}print <<<EOT
-->
							</td>
							<td style="vertical-align:top"><span id="sf_$read[lou]"></span></td>
						</tr>
					</table>
				</div>
				<div style="padding-left:8px;padding-bottom:8px;">
					<span style="color:#000;">级别: {$read[level]}</span><br />
					<img src="$imgpath/$stylepath/level/$read[lpic].gif" style="margin:.2em 0 .2em 0;display:block"/>
					$read[medals]
<!--
EOT;
$style = '';
if($db_menu>3){print <<<EOT
-->
					<span class="user-info" id="showface_$read[lou]" style="display:none">
						<span class="user-infoWrap"><span class="co"></span>
							<div class="listread">
								<ul>
<!--
EOT;
}else{print <<<EOT
-->
					<span class="user-info2" id="showface_$read[lou]">
						<span class="user-infoWrap2">
							<div class="listread">
								<ul>
<!--
EOT;
}if($db_hackdb['blog'][2] && $bg_ifopen){print <<<EOT
-->
									<li title="进入个人主页"><a href="$bg_blogurl/blog.php?bbsuid=$read[authorid]" style="cursor:pointer;" target="_blank"><div class="readblog">个人主页</div></a></li>
<!--
EOT;
}print <<<EOT
-->
									<li title="查看作者资料"><a href="u.php?action=show&uid=$read[authorid]" style="cursor:pointer;"><div class="readprofile">作者资料</div></a></li>
									<li title="发送短消息"><a onclick="sendmsg('pw_ajax.php?action=msg&touid=$read[authorid]','','sf_$read[lou]')" style="cursor:pointer;"><div class="readmessage">发送短消息</div></a></li>
									<li title="加为好友"><a onclick="sendmsg('pw_ajax.php?action=addfriend&touid=$read[authorid]','','sf_$read[lou]')" style="cursor:pointer"><div class="readonline">加为好友</div></a></li>
<!--
EOT;
if($groupid!='guest' && $db_hackdb['toolcenter'][1]){print <<<EOT
-->
									<li  title="对该用户使用道具"><a onclick="sendmsg('pw_ajax.php?action=usertool&uid=$read[authorid]','','sf_$read[lou]')" style="cursor:pointer"><div class="readmagic">使用道具</div></a></li>
<!--
EOT;
}if($read['oicq']){print <<<EOT
-->
									<li title="QQ:$read[oicq]"><a href="http://wpa.qq.com/msgrd?V=1&Uin=$read[oicq]&Site=$db_bbsname&Menu=yes" style="cursor:pointer;" target="_blank"><div class="readqq">QQ联系</div></a></li>
<!--
EOT;
}if ($read['aliww']) {print <<<EOT
-->
									<li title="阿里旺旺:$read[aliww]"><a href="http://amos.im.alisoft.com/msg.aw?uid=$read[aliww]&site=cntaobao" style="cursor:pointer;" target="_blank"><div class="readww">阿里旺旺</div></a></li>
<!--
EOT;
}print <<<EOT
-->
								</ul>
							</div>
							<div class="c" style="width:120px;height:5px;"></div>
							UID: <span class="f12">$read[authorid]</span><br />
							精华:
<!--
EOT;
if($read['digests']){print <<<EOT
-->
							<a href="search.php?authorid=$read[authorid]&digest=1" target="_blank" class="s4">$read[digests]</a>
<!--
EOT;
}else{print <<<EOT
-->
							<span class="s4">$read[digests]</span>
<!--
EOT;
}print <<<EOT
--><br />
							发帖: <span class="s1 f12">$read[postnum]</span><br />
							$db_rvrcname: <span class="s2 f12">$read[aurvrc] $db_rvrcunit</span><br />
							$db_moneyname: <span class="s3 f12">$read[money] $db_moneyunit</span><br />
<!--
EOT;
if($db_ads){print <<<EOT
-->
							$db_creditname: <span class="s1 f12">$read[credit] $db_creditunit</span><br />
<!--
EOT;
}if($db_showcustom){
foreach($_CREDITDB as $k=>$v){
if(strpos($db_showcustom,",$k,")!==false){
!$customdb[$read['authorid']][$k] && $customdb[$read['authorid']][$k]=0;
print <<<EOT
-->
							$v[0]: <span class="s2 f12">{$customdb[$read[authorid]][$k]} $v[1]</span><br />
<!--
EOT;
}}}if($customfield){
foreach($customfield as $k=>$val){
if($val['viewinread']){
if($val['viewright']&&$winduid!=$read['authorid']&&strpos(",$val[viewright],",",$groupid,")===false){
continue;
}$field="field_".(int)$val[id];
if($val[type]==3){
foreach(explode("\n",$val['options']) as $k=>$v){
list($k,$v)=explode('=',$v);
if($read[$field]==$k){
$read[$field]=$v;
}}}print <<<EOT
-->
							$val[title]: $read[$field]<br />
<!--
EOT;
}}}if($read['customdata']){
foreach($read['customdata'] as $k => $val){
if($custominfo[$k][2]){
$custominfo[$k][2]=str_replace("{{$k}}",$val,$custominfo[$k][2]);
$custominfo[$k][4] && $val=$custominfo[$k][4];
$val="<a href=\"{$custominfo[$k][2]}\" target=\"_blank\">$val</a>";
}print <<<EOT
-->
							{$custominfo[$k][0]}: $val<br />
<!--
EOT;
}}if($db_showcolony && $colonydb[$read[authorid]]){
$v=$colonydb[$read[authorid]];
print <<<EOT
-->
							{$db_hackdb[colony][0]}: <a href="hack.php?H_name=colony&cyid=$v[id]&job=view" target="_blank">$v[cname]</a><br />
<!--
EOT;
}if($db_ifonlinetime){print <<<EOT
-->
							在线时间: $read[ontime](小时)<br />
<!--
EOT;
}print <<<EOT
-->
							注册时间: <span class="gray">{$read[regdate]}</span><br />最后登录: <span class="gray">{$read[lastlogin]}</span>
						</span>
					</span>
				</div>
			</th>
			<th height="100%" class="r_one" valign="top" id="td_$read[pid]" style="padding:0px;border:0;overflow:hidden">
				<div class="tiptop">
					<span class="fl">
<!--
EOT;
if($read['lou']==0){print <<<EOT
-->
                        <a class="s3" style="cursor:pointer;" onclick="copyUrl('$read[pid]')" title="复制此楼地址">楼主</a>&nbsp;
<!--
EOT;
}else{print <<<EOT
-->
                        <a class="s3" style="cursor:pointer;" onclick="copyUrl('$read[pid]')" title="复制此楼地址">$read[lou]楼</a>&nbsp;
<!--
EOT;
}print <<<EOT
-->
					</span>
					<span class="fl gray" title="$read[postdate]" style="white-space:nowrap;">发表于: $read[posttime]</span>
<!--
EOT;
if($read['authorid']==$winduid || $isGM || $pwSystem['deltpcs']){print <<<EOT
-->
					<div class="fl bianji">| <a href="post.php?action=modify&fid=$fid&tid=$tid&pid=$read[pid]&article=$read[lou]" id="modify_$read[pid]" onclick="return sendurl(this,4,'',event)">编辑</a></div>
<!--
EOT;
}print <<<EOT
-->
					<div class="fr" style="overflow:hidden;">
<!--
EOT;
if(is_numeric($uid)){print <<<EOT
-->
						<a href="read.php?tid=$tid" title="显示全部帖子">全看</a> |
<!--
EOT;
}else{
if($read['lou']==0){print <<<EOT
-->
						<a href="read.php?tid=$tid&uid=$read[authorid]" title="只看楼主的所有帖子">只看楼主</a> |
<!--
EOT;
}else{print <<<EOT
-->
						<a href="read.php?tid=$tid&uid=$read[authorid]" title="只看该作者的所有回复">只看该作者</a> |
<!--
EOT;
}}if($authorid==$winduid && $read['authorid']!=$authorid && $_G['leaveword']){print <<<EOT
-->
						<a style="cursor:pointer;" onclick="sendmsg('pw_ajax.php?action=leaveword&tid=$tid&pid=$read[pid]','',this.id)" id="word_$read[pid]" title="楼主留言" class="s3">留言</a>
<!--
EOT;
}print <<<EOT
-->
						<a style="cursor:pointer" onclick="fontsize('small','$read[pid]')">小</a> <a style="cursor:pointer" onclick="fontsize('middle','$read[pid]')">中</a> <a style="cursor:pointer" onclick="fontsize('big','$read[pid]')">大</a>
					</div>
					<div class="c"></div>
				</div>
				<div class="c"></div>
<!--
EOT;
if($admincheck || $pwSystem['modother'] || $_G['markable']){print <<<EOT
-->
				<span class="fr" style="white-space:nowrap;margin-right:1em;">
					<input type="checkbox" align="right" name="selid[]" value="$read[pid]" title="选定" />
<!--
EOT;
if($isGM || $pwSystem['modother']){print <<<EOT
-->
					<input class="btn2" type="button" onclick="formclick(this.form,'masingle.php?action=delatc',2)" value="删除选定" />
<!--
EOT;
}if($admincheck || $_G['markable']){print <<<EOT
-->
					<input class="btn2" type="button" onclick="formclick(this.form,'operate.php?action=showping&page=$page',8)" value="评分选定" />
<!--
EOT;
}print <<<EOT
-->
				</span>
<!--
EOT;
}if($read['lou']!=0 && $special == 'read_debate'){
if($read['standpoint']==1){print <<<EOT
-->
				<div class="dig3 fl">
					<span class="fl">正方支持者</span>
					<div class="fl" onClick="dodebate('votepid_$read[pid]',$tid,$read[pid])">支持：<span id="votepid_$read[pid]">$read[vote]</span></div>
				</div>
				<div class="c"></div>
<!--
EOT;
}elseif($read['standpoint']==2){print <<<EOT
-->
				<div class="dig4 fl">
					<span class="fl">反方支持者</span>
					<div class="fl" onClick="dodebate('votepid_$read[pid]',$tid,$read[pid])">支持：<span id="votepid_$read[pid]">$read[vote]</span></div>
				</div>
				<div class="c"></div>
<!--
EOT;
}else{print <<<EOT
-->
				<div class="dig5 tac fl">我是中立者</div>
				<div class="c"></div>
<!--
EOT;
}}if($read['subject'] || $db_union[2]){print <<<EOT
-->
				<div class="h1 fl" style="margin-left:1em;">
					<h1 class="fl" id="subject_$read[pid]">$db_union[2]$read[icon]&nbsp;$read[subject]</h1>
				</div>
<!--
EOT;
}else{print<<<EOT
-->
				<span id="subject_$read[pid]"></span>
<!--
EOT;
}if($forumset['dig'] && $read['lou']==0){print<<<EOT
-->
				<div class="fl" style="margin:-2px 0 0 3px;"><a id="r_dig" href="javascript:void(0)" class="dig fl" title="推荐此帖到排行榜" onclick="dig();">$read[dig]</a></div>
<!--
EOT;
}print <<<EOT
-->
				<div class="c"></div>
				<div class="tpc_content">
<!--
EOT;
if($advertdb['article'] && $ads = readad($advertdb['article'],$key+1,5)){print <<<EOT
-->
					<div class="c"></div>
					<div class="tips black" style="width:auto" id="ads_c_$read[pid]">{$ads}</div>
<!--
EOT;
}print <<<EOT
-->
					<div id="p_$read[pid]" class="c"></div>
<!--
EOT;
if($ifmagic && $read['lou']==0){print <<<EOT
-->
					<div class="fr" id="myshow_pic" style="cursor:pointer;color:$linkcolor;" onclick="logo_onclick(event);">
						<img src="http://rs.phpwind.net/{$magicid}T.gif" style="display:block;width:52px;height:52px;text-align:center" title="{$magicname}" />
						<div style="display:inline;text-align:center;white-space:nowrap;"><img id="my_close" src="$imgpath/wind/my_close.gif" />重播</div>
					</div>
<!--
EOT;
}if($advertdb['article'] && $ads = readad($advertdb['article'],$key+1,1)){print <<<EOT
-->
					<div class="fr" id="ads_r_$read[pid]" style="clear:right;">{$ads}</div>
<!--
EOT;
}if($read['remindinfo']){print <<<EOT
-->
					<div id="mag_$read[pid]" style="margin-bottom:1em;">
						<h6 class="quote"></h6>
						<blockquote class="blockquote"><div><span class="s3 f12 fn">管理提醒：
<!--
EOT;
if($read['remindinfo'][1]){print <<<EOT
-->
						({$read[remindinfo][1]})
<!--
EOT;
}print <<<EOT
-->
						</span>{$read[remindinfo][0]}
<!--
EOT;
if($read['remindinfo'][2]){print <<<EOT
-->
						<span>({$read[remindinfo][2]})</span>
<!--
EOT;
}print <<<EOT
--></div>
						</blockquote>
					</div>
<!--
EOT;
}if($read['pic']){
foreach($read['pic'] as $pic){
if($pic){print <<<EOT
-->
					<div style="margin:5px" id="att_$pic[aid]">
<!--
EOT;
if($pic['desc']){print <<<EOT
-->
						描述：$pic[desc]<br />
<!--
EOT;
}print <<<EOT
-->
						图片： $pic[img]
<!--
EOT;
if($pic['dfadmin']){print <<<EOT
-->
						[<a style="cursor:pointer" onclick="delatt('$read[pid]','$pic[aid]');">删除</a>]
<!--
EOT;
}print <<<EOT
-->
					</div>
<!--
EOT;
}}}print <<<EOT
-->

				<div class="f14" id="read_$read[pid]">$read[content]</div></div>
			</th>
		</tr>
		<tr class="tr1 r_one">
			<th style="vertical-align:bottom;border:0;padding:0px;">
				<div class="tpc_content" style="margin-bottom:0%;">
<!--
EOT;
if($read['aid'] && $read['ifhide']>0){print <<<EOT
-->
					<blockquote class="f12 s3 blockquote"><div>附件设置隐藏，需要回复后才能看到</div></blockquote>
<!--
EOT;
}if($read['picurl']){
foreach($read['picurl'] as $k => $picture){
if($picture){print <<<EOT
-->
					<div style="margin:5px 0;" id="att_$k">远程图片：<a href="job.php?action=showimg&tid={$tid}&pid={$read[pid]}&fid={$fid}&aid={$k}&verify={$picture[verify]}" target="_blank">$picture[name]</a>
<!--
EOT;
if($picture['dfadmin']){print <<<EOT
-->
						[<a style="cursor:pointer" onclick="delatt('$read[pid]','$k');">删除</a>]
<!--
EOT;
}print <<<EOT
-->
					</div>
<!--
EOT;
}}}if($read['downattach']){
foreach($read['downattach'] as $attach){
if($attach){print <<<EOT
-->
					<div style="margin:5px 0;" class="f12" id="att_$attach[aid]">
<!--
EOT;
if($attach['desc']){print <<<EOT
-->
						描述：$attach[desc]<br />
<!--
EOT;
}$att_id = $db_attfg ? "id=\"fg_$attach[aid]\"" : '';print <<<EOT
-->
						附件： <img src="$imgpath/$stylepath/file/$attach[type].gif" align="absmiddle" /> <a $att_id href="job.php?action=download&pid=$read[pid]&tid=$tid&aid=$attach[aid]" target="_blank"> <font color="red">$attach[name]</font></a> ($attach[size] K) 下载次数:$attach[hits]
<!--
EOT;
if ($attach['needrvrc']) {
$at_lang = $attach['special'] == 2 ? '售价' : '需要';
print <<<EOT
-->
						{$at_lang}:{$attach[needrvrc]}{$attach[cname]}
<!--
EOT;
}elseif(in_array($attach['ext'],array('mp3','wma','wmv','rm','swf'))){print <<<EOT
-->
						[<a style="cursor:pointer" onclick="playatt('$attach[aid]');">试播</a>]
<!--
EOT;
}if($attach['dfadmin']){print <<<EOT
-->
						[<a style="cursor:pointer" onclick="delatt('$read[pid]','$attach[aid]');">删除</a>]
<!--
EOT;
}print <<<EOT
-->
					</div>
<!--
EOT;
}}}if($read['reward']){print <<<EOT
-->
					$read[reward]
<!--
EOT;
}if($read['mark']){print <<<EOT
-->
					<div id="mark_$read[pid]" class="tips tal" style="word-break:keep-all;word-wrap:no-wrap"><div class="tal s3">本帖最近评分记录：</div><div class="tal f12">$read[mark]</div></div>
<!--
EOT;
}print <<<EOT
-->
					<div id="w_$read[pid]" class="c"></div>
<!--
EOT;
if($advertdb['article'] && $ads = readad($advertdb['article'],$key+1,2)){print <<<EOT
-->
					<div class="tips black f12" style="width:auto" id="ads_c_$read[pid]">{$ads}</div>
					<div class="c"></div>
<!--
EOT;
}if($db_iftag && $read['tag']){print <<<EOT
-->
					<div class="tal f12" style="margin:0 0;">搜索更多相关文章：{$read[tag]}</div>

<!--
EOT;
}print<<<EOT
-->
				</div>
				<div class="c"></div>
<!--
EOT;
if($read['signature']){print <<<EOT
-->
				<div class="sigline"></div>
				<div class="signature" style="max-height:{$db_signheight}px;maxHeight:{$db_signheight}px; overflow:hidden;"><table width="100%"><tr><td>$read[signature]<td></tr></table></div>
<!--
EOT;
}print <<<EOT
-->
				<div class="tipad">
					<div class="c"></div>
					<span class="fr gray" title="$read[ipfrom]">$read[ip]
<!--
EOT;
if($isGM || $pwSystem['banuser']){print <<<EOT
-->
						<a id="banuser_$read[pid]" href="masingle.php?action=banuser&fid=$fid&tid=$tid&pid=$read[pid]&page=$page" onclick="return sendurl(this,2)" title="禁言" >禁言</a>
<!--
EOT;
}if($isGM || $pwSystem['shield']){print <<<EOT
-->
                        <a id="shield_$read[pid]" href="masingle.php?action=shield&fid=$fid&tid=$tid&pid=$read[pid]&page=$page" onclick="return sendurl(this,2)" title="屏蔽单帖" >屏蔽</a>
<!--
EOT;
}if($isGM || $pwSystem['remind']){print <<<EOT
-->
                        <a id="remind_$read[pid]" href="masingle.php?action=remind&fid=$fid&tid=$tid&pid=$read[pid]&page=$page" onclick="return sendurl(this,2)" title="提醒管理" >提醒</a>
<!--
EOT;
}if($forumset['inspect'] && ($isGM || $pwSystem['inspect'])){print <<<EOT
-->
                        <a id="remind_$read[pid]" style="cursor:pointer" onclick="ajax.send('masingle.php?action=inspect&fid=$fid&tid=$tid&pid=$read[lou]&ajax=1','',ajax.guide)" title="标记版主已阅" >已阅</a>
<!--
EOT;
}print <<<EOT
-->
						<a href="javascript:scroll(0,0)" title="顶端">顶端</a>
					</span>
					<ul class="fl readbot">
<!--
EOT;
if($read['lou']==0){print <<<EOT
-->
						<li class="huifu"><a title="回复此楼" style="cursor:pointer;" onclick="postreply('回 楼主($read[author]) 的帖子');">回复</a></li>
<!--
EOT;
}else{print <<<EOT
-->
						<li class="huifu"><a title="回复此楼" style="cursor:pointer;" onclick="postreply('回 $read[lou]楼($read[author]) 的帖子');">回复</a></li>
<!--
EOT;
}print <<<EOT
-->
						<li class="yinyong"><a href="post.php?action=quote&fid=$fid&tid=$tid&pid=$read[pid]&article=$read[lou]" onclick="return sendurl(this,4,'',event)" id="quote_$read[pid]" title="引用回复这个帖子">引用</a></li>
<!--
EOT;
if($admincheck || $_G['markable']){print <<<EOT
-->
						<li class="ping"><a id="showping_$read[pid]" href="operate.php?action=showping&tid=$tid&pid=$read[pid]&page=$page" onclick="return sendurl(this,8)" title="评分">评分</a></li>
<!--
EOT;
}if($groupid!='guest' && $read['lou']==0){print <<<EOT
-->
						<li class="shou"><a class="fn" style="cursor:pointer;" onclick="sendmsg('pw_ajax.php?action=favor&tid=$tid','',this.id)" id="favor" title="收藏该主题">收藏</a></li>
<!--
EOT;
}print <<<EOT
-->
					</ul>
<!--
EOT;
if($groupid!='guest'){print <<<EOT
-->
					<div class="content-dropB"><a id="td_read_$read[pid]" class="dropB">更多</a></div>
<!--
EOT;
}print <<<EOT
-->
					<div class="c"></div>
				</div>
			</th>
		</tr>
	</table>
</div>
<div id="menu_read_$read[pid]" class="menu" style="display:none;">
	<ul style="padding-top:5px;width:4.5em;">
		<li><a id="recommend_$read[pid]" href="operate.php?action=recommend&tid=$tid" onclick="return sendurl(this,8,'td_read_$read[pid]')" title="分享此帖">分享</a></li>
<!--
EOT;
if($_G['allowreport']){print <<<EOT
-->
		<li><a href="operate.php?action=report&tid=$tid&pid=$read[pid]&page=$page" onclick="return sendurl(this,8,'td_read_$read[pid]')" id="report_$read[pid]" title="举报此帖">举报</a></li>
<!--
EOT;
}print <<<EOT
-->
	</ul>
</div>
<!--
EOT;
$db_union[2]='';
}}print <<<EOT
-->
</form>
<div class="t3" style="margin-top:-.4em;">
<!--
EOT;
if($foruminfo['allowtype']){print <<<EOT
-->
    <span class="fr" style="margin-left:.5em"><a href="post.php?fid=$fid"><img src="$imgpath/$stylepath/post.png" id="td_post1" /></a></span>
<!--
EOT;
}print <<<EOT
-->
    <span class="fr"><a href="post.php?action=reply&fid=$fid&tid=$tid"><img src="$imgpath/$stylepath/reply.png" /></a></span>
	<span class="fl pages"><ul><li><a href="job.php?action=previous&fid=$fid&tid=$tid&fpage=$fpage&goto=previous" class="fn">上一主题</a></li><li style="border-left:1px solid $tdcolor;" class="f_one"><a href="job.php?action=previous&fid=$fid&tid=$tid&fpage=$fpage&goto=next" class="fn">下一主题</a></li></ul></span>
	<span class="fl">$pages$db_union[5]</span>
	<div class="c"></div>
</div>
<div class="c"></div>
<div class="bdbA">
	<div id="breadcrumbs" style="margin-top:0px;">
<span class="crumbs-item" style="padding:0 .7em 0 .3em"><img style="margin-top:6px;cursor:pointer" src="$imgpath/$stylepath/thread/home-old.gif" /></span>

<a href="$db_bfn" class="crumbs-item gray3"><i> </i>$db_bbsname</a><a href="thread.php?fid=$fid&page=$fpage" class="crumbs-item gray3"><i> </i>$foruminfo[name]</a>
	     <div class="fr"  style="*padding-top:.2em;_padding-top:.7em;height:25px;line-height:25px;">
<!--
EOT;
if($winduid){print <<<EOT
-->
<a class="abtn" href="javascript:;" id="readlog" onclick="sendmsg('pw_ajax.php?action=readlog','',this.id);">帖子浏览记录<img src="$imgpath/$stylepath/menu-down.gif"  align="absmiddle"/></a>
<a class="abtn" href="javascript:;" id="threadlog" onclick="sendmsg('pw_ajax.php','action=threadlog',this.id);">版块浏览记录<img src="$imgpath/$stylepath/menu-down.gif" align="absmiddle"/></a>
<!--
EOT;
}print <<<EOT
-->
	     </div>
	</div>
</div>
<div class="c"></div>
<!--
EOT;
if($db_windpost['checkurl']){print<<<EOT
-->
<div id="checkurl" class="menu" style="display:none;">
<div class="bor tac">
<table width="250" cellspacing="0" cellpadding="0">
<tr><th class="h" colspan="2"><span id="suburl">$db_bbsurl</span></th></tr>
<tr><td colspan="2">访问内容超出本站范围，不能确定是否安全</td></tr>
<tr><td><a href="" target="_blank" onclick="closep();" id="trueurl">继续访问</a></td><td><a href="javascript:;" onclick="closep();">取消访问</a></td></tr>
</table>
</div>
</div>
<!--
EOT;
}print<<<EOT
-->
<script language="JavaScript">
var tid = '$tid';
var fid = '$fid';
var mt;
var totalpage = parseInt('$numofpage');
var db_ajax = '$db_ajax';
var page = parseInt('$page');
var jurl = 'read.php?tid=$tid&fpage=$fpage&toread=$toread{$urladd}&page=';
var db_htmifopen = '$db_htmifopen';
var db_dir = '$db_dir';
var db_ext = '$db_ext';
var db_bbsurl = '$db_bbsurl';
var copyurl = '$db_bbsurl/read.php?tid=$tid' + (page > 1 ? '&page=' + page : '') + '#';
<!--
EOT;
if($db_windpost['checkurl'] == '1'){print<<<EOT
-->
var db_urlcheck = '$db_urlcheck';
<!--
EOT;
}print<<<EOT
-->
</script>
<script type="text/javascript" language="JavaScript" src="js/pw_lwd.js"></script>
<!--
EOT;
$fastpost && require_once PrintEot($fastpost);
if($ifmagic){
print <<<EOT
-->
<script language="javascript">
var myshow_wink={target:'tiptop',code:'{$magicid}',name:'{$magicname}',refer:'{$pwServer['HTTP_REFERER']}'};
</script>
<script language="javascript" src="js/winks.js" type="text/javascript"></script>
<!--
EOT;
}?>-->