<!--<?php
print <<<EOT
-->
<style type="text/css">
/*帖子签名*/
.sigline {
	margin-left:15px;
	background: url($imgpath/$stylepath/read/sigline.gif) right bottom no-repeat;
	margin-right:30em;
	height:5px;
}
.signature {
	padding:.5em 2em 0 15px;
height:expression(this.scrollHeight>parseInt(this.currentStyle.maxHeight)?this.currentStyle.maxHeight:"auto");
}
/*end*/
.user-infoWrap2 {
	line-height:18px;
}
.user-pic {
	margin-left:11px;
}
.user-pic img {
border: 1px solid $tdcolor;
	background:#fff;
	padding:3px;
}
.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;
	color:#666;
	border:1px solid #ffd0a8;
	height:18px;
	line-height:18px;
	margin-right:5px;
}
.dig:hover {
	text-decoration:none;
	border:1px solid #f5a25c;
	color:#ff6600;
}
/*readicon*/
.listread a{
	background:url($imgpath/$stylepath/read/readicon.png);
	width:16px;
	height:20px;
	overflow:hidden;
	text-indent:-2000em;
	display:block;
	margin-right:5px;
	float:left;
}
.listread .readblog {
	background-position:0 -120px;
}
.listread .readonline {
	background-position:0 0px;
}
.listread .readoffline {
	background-position:0 -20px;
}
.listread .readprofile {
	background-position:0 -40px;
}
.listread .readmagic {
	background-position:0 -80px;
}
.listread .readmessage {
	background-position:0 -60px;
}
.listread .readqq {
	background-position:0 -100px;
}
.listread .readww {
	background-position:0 -140px;
}
/*tipbottom*/
.readbot {
	padding:0px;
	margin:0px;
}
.readbot a{
	list-style:none;
	padding:0 0 0 1.8em;
	margin:0;
	float:left;
	cursor:pointer;
	background:url($imgpath/$stylepath/read/yin.gif) no-repeat;
	width:3em;
	height:16px;
}
.readbot .r-quote:hover{
	background-position:0 0;
}
.readbot .r-reply:hover {
	background-position:0 -20px;
}
.readbot .r-score:hover {
	background-position:0 -40px;
}
.readbot .r-keep:hover {
	background-position:0 -60px;
}
.readbot .r-quote {
	background-position:0 -80px;
}
.readbot .r-reply {
	background-position:0 -100px;
}
.readbot .r-score {
	background-position:0 -120px;
}
.readbot .r-keep {
	background-position:0 -140px;
}
.down {
	background: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;
}
/*通用下拉*/
.content-dropB {
	margin-top:2px;
}
.dropB {
	cursor:pointer;
	text-indent:-2000em;
	background:url($imgpath/$stylepath/dropB-cion.gif) 0 0 no-repeat;
	width:15px;
	height:12px;
	overflow:hidden;
	;
	font:0/0 a;
	float:left
}
.dropB:hover {
background-color:$tablecolor;
	background-position:0 -20px;
}
</style>
<div id="breadCrumb"> $msg_guide <a href="rss.php?tid=$tid" target="_blank" title="Rss订阅本帖最新内容"><img src="$imgpath/$stylepath/rss.png" align="absbottom" style="margin-bottom:2px;" /></a> </div>
<div class="c"></div>
<!--ads begin-->
<!--
EOT;
if($advertdb['text']){print <<<EOT
-->
<div class="ad-text mt">
	<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="pages"><a href="job.php?action=previous&fid=$fid&tid=$tid&fpage=$fpage&goto=previous" class="fn">上一主题</a><span style="border-left:1px solid $tdcolor;" class="f_one fl"><a href="job.php?action=previous&fid=$fid&tid=$tid&fpage=$fpage&goto=next" class="fn">下一主题</a></span></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 id="menu_post" class="menu menu-post cc f14 tac" style="display:none;">
	<div class="menu-b" style="width:75px;">
		<!--
EOT;
if($foruminfo['allowtype'] & 1){print <<<EOT
-->
		<a href="post.php?fid=$fid">新  帖</a>
		<!--
EOT;
}if($foruminfo['allowtype'] & 2 && $_G['allownewvote']){print <<<EOT
-->
		<a href="post.php?fid=$fid&special=1">投  票</a>
		<!--
EOT;
}if($foruminfo['allowtype'] & 4 && $_G['allowactive']){print <<<EOT
-->
		<a href="post.php?fid=$fid&special=2">活  动</a>
		<!--
EOT;
}if($foruminfo['allowtype'] & 8 && $_G['allowreward']){print<<<EOT
-->
		<a href="post.php?fid=$fid&special=3">悬  赏</a>
		<!--
EOT;
}if($foruminfo['allowtype'] & 16 && $_G['allowgoods']){print <<<EOT
-->
		<a href="post.php?fid=$fid&special=4">商  品</a>
		<!--
EOT;
}if($foruminfo['allowtype'] & 32 && $_G['allowdebate']){print <<<EOT
-->
		<a href="post.php?fid=$fid&special=5">辩  论</a>
		<!--
EOT;
}print <<<EOT
-->
	</div>
</div>
<!--
EOT;
}print <<<EOT
-->
<div class="c"></div>
<div class="t" style="margin-bottom:0;border-bottom:0;">
	<table cellspacing="0" cellpadding="0" width="100%" style="border-bottom:1px solid $headborder">
		<tr>
			<td class="tal h">
<!--
EOT;
if ($isGM || strpos(",$db_appginfo,",",$groupid,") !== false) {print <<<EOT
-->
				<a id="pw_app" 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($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($isBM || $isGM || $groupid==3 || $groupid==4){print <<<EOT
-->
				| <a style="cursor:pointer" onclick="sendmsg('pw_ajax.php?action=pushto&fid=$fid&seltid=$tid','',this.id)" 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;
}}else{print <<<EOT
-->
				主题 : $subject
				<!--
EOT;
}print <<<EOT
--></td>
			<td class="tar h"><div class="fr w">
					<!--
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;
}print <<<EOT
-->
					<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> </div></td>
		</tr>
	</table>
</div>
<!--
EOT;
$special && require_once PrintEot($special);print<<<EOT
-->
<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"';
foreach($readdb as $key=>$read){
if($read){
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" $style>
		<table cellspacing="0" cellpadding="0" width="100%" style="table-layout:fixed;">
			<tr class="tr1">
				<th style="width:185px;padding:0 0 2em 0;" rowspan="2" class="r_two">
				<div style="line-height:24px;padding:5px 5px 0 12px;"> <div class="listread fl">
<!--
EOT;
if($db_showonline && checkOnline($read['thisvisit'])){print <<<EOT
-->
						<a class="readonline" href="javascript:;" onclick="sendmsg('pw_ajax.php?action=addfriend&touid=$read[authorid]','','sf_$read[lou]')" style="cursor:pointer;"  title="加为好友"/>加为好友</a>
<!--
EOT;
}elseif($db_showonline){print <<<EOT
-->
						<a class="readoffline" href="javascript:;" onclick="sendmsg('pw_ajax.php?action=addfriend&touid=$read[authorid]','','sf_$read[lou]')" style="cursor:pointer" title="" />
加为好友
						</a>
<!--
EOT;
}print <<<EOT
-->
						</div> <b class="fl black"><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" style="padding-top:0;">$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:12px;padding-bottom:8px;">
					级别: {$read[level]}<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">
<!--
EOT;
}else{print <<<EOT
-->
					<span class="user-info2" id="showface_$read[lou]">
						<span class="user-infoWrap2">
							<div class="listread">
<!--
EOT;
}if($db_hackdb['blog'][2] && $bg_ifopen){print <<<EOT
-->
										<a class="readblog" href="$bg_blogurl/blog.php?bbsuid=$read[authorid]" target="_blank" title="进入个人主页">个人主页</a>
<!--
EOT;
}print <<<EOT
-->
										<a href="u.php?action=show&uid=$read[authorid]" title="查看作者资料" class="readprofile">作者资料</a>
										<a title="发送短消息" class="readmessage" onclick="sendmsg('pw_ajax.php?action=msg&touid=$read[authorid]','','sf_$read[lou]')" style="cursor:pointer;">发送短消息</a>
<!--
EOT;
if($groupid!='guest' && $db_hackdb['toolcenter'][1]){print <<<EOT
-->
										<a title="对该用户使用道具" class="readmagic" onclick="sendmsg('pw_ajax.php?action=usertool&uid=$read[authorid]','','sf_$read[lou]')" style="cursor:pointer">使用道具</a>
<!--
EOT;
}if($read['oicq']){print <<<EOT
-->
										<a title="QQ:$read[oicq]" href="http://wpa.qq.com/msgrd?V=1&Uin=$read[oicq]&Site=$db_bbsname&Menu=yes" target="_blank" class="readqq">QQ联系</a>
<!--
EOT;
}if ($read['aliww']) {print <<<EOT
-->
										<a class="readww" title="阿里旺旺:$read[aliww]" href="http://amos.im.alisoft.com/msg.aw?uid=$read[aliww]&site=cntaobao" target="_blank">阿里旺旺</a>
<!--
EOT;
}print <<<EOT
-->
							</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
-->
							群组: <a href="mode.php?m=o&q=group&cyid=$v[id]" 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"> <a name="post_$read[pid]"></a>
					<div class="tiptop"> <span class="fl">
<!--
EOT;
if (!empty($db_floorname[$read['lou']])){print <<<EOT
-->
						<a class="s3 b" style="cursor:pointer;" onclick="copyUrl('$read[pid]')" title="复制此楼地址">{$db_floorname[$read[lou]]}</a>&nbsp;
<!--
EOT;
} else { print<<<EOT
-->
						<a class="s3 b" style="cursor:pointer;" onclick="copyUrl('$read[pid]')" title="复制此楼地址">$read[lou]$db_floorunit</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">&nbsp;|&nbsp;<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 black" 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($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;
}}print <<<EOT
-->
					<h1 class="b">
<!--
EOT;
if($forumset['dig'] && $read['lou']==0){print<<<EOT
-->
						<a id="r_dig" href="javascript:void(0)" class="dig fl" title="推荐此帖到排行榜" onclick="dig();">$read[dig]</a>
<!--
EOT;
}if($read['subject'] || $db_union[2]){print <<<EOT
-->
						<span id="subject_$read[pid]">$db_union[2]$read[icon]$read[subject]</span>
<!--
EOT;
}else{print<<<EOT
-->
						<span id="subject_$read[pid]"></span>
<!--
EOT;
}print <<<EOT
-->
						<div class="c"></div>
					</h1>
					<div class="c"></div>
<!--
EOT;
if($read['remindinfo']){print <<<EOT
-->
					<div id="mag_$read[pid]">
						<blockquote class="blockquote block-img"><span class="s3">管理提醒：
<!--
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 class="gray">({$read[remindinfo][2]})</span>
<!--
EOT;
}print <<<EOT
-->
						</blockquote>
					</div>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
if($advertdb['article'] && $ads = readad($advertdb['article'],$key+1,5)){print <<<EOT
-->
					<div class="c"></div>
					<div class="tips black" style="width:auto;margin-top:0;_margin-left:7px;" id="ads_c_$read[pid]">{$ads}</div>
<!--
EOT;
}print <<<EOT
-->
					<div class="tpc_content">
						<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;margin-bottom:10px;" 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;margin-bottom:10px;">{$ads}</div>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
if($read['pic']){
foreach($read['pic'] as $pic){
if($pic){print <<<EOT
-->
						<div style="margin:5px 0;" 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;padding-top:30px;">
<!--
EOT;
if($read['aid'] && $read['ifhide']>0){print <<<EOT
-->
					<div class="c"></div>
					<blockquote class="blockquote fl">附件设置隐藏，需要回复后才能看到</blockquote>
					<div class="c"></div>
					<!--
EOT;
}if($read['picurl']){
foreach($read['picurl'] as $k => $picture){
if($picture){print <<<EOT
-->
					<div style="margin:0 2em 1em 2em;" 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:0 2em 1em 2em;" 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
-->
					<div style="margin:5px 15px;line-height:25px;">$read[reward]</div>
					<!--
EOT;
}if($read['mark']){print <<<EOT
-->
					<div id="mark_$read[pid]" class="tips tal" style="margin:0 15px 10px 15px;word-break:keep-all;word-wrap:no-wrap;line-height:25px;">
						<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" 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" style="margin:0 2em 1em 2em;">搜索更多相关文章：{$read[tag]}</div>
					<!--
EOT;
}print<<<EOT
-->
					<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 black">
						<div class="c"></div>
						<span class="fr gray">
<!--
EOT;
if ($read['ipfrom'] && empty($read['ip'])){print <<<EOT
-->
						$read[ipfrom]
<!--
EOT;
}else{print <<<EOT
-->
<span title="$read[ipfrom]">$read[ip]</span>
						<!--
EOT;
}
if($admincheck || $pwSystem['modother'] || $_G['markable']){print <<<EOT
-->
						<input type="checkbox" align="right" name="selid[]" value="$read[pid]" title="选定" />
						<!--
EOT;
if($isGM || $pwSystem['modother']){print <<<EOT
-->
						<a style="cursor:pointer;" href="#" onclick="formclick(document.delatc,'masingle.php?action=delatc',2);return false;">删除选定</a>
						<!--
EOT;
}if($admincheck || $_G['markable']){print <<<EOT
-->
						<a style="cursor:pointer;" href="#" onclick="formclick(document.delatc,'operate.php?action=showping&page=$page',8);return false;">评分选定</a>
						<!--
EOT;
}if($isGM || $pwSystem['pingcp']){print <<<EOT
-->
						<a href="masingle.php?action=pingcp&fid=$fid&tid=$tid&pid=$read[pid]&page=$page" onclick="return sendurl(this,2)" title="管理评分记录" >评分管理</a>
						<!--
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="inspect_$read[pid]" style="cursor:pointer" href="masingle.php?action=inspect&fid=$fid&tid=$tid&pid=$read[lou]&p=$read[pid]&page=$page" onclick="return sendurl(this,2)"  title="标记版主已阅" >已阅</a>
						<!--
EOT;
}print <<<EOT
-->
						<a href="javascript:scroll(0,0)" title="顶端">顶端</a> </span>
						<div class="fl readbot">
							<!--
EOT;
if($read['lou']==0){print <<<EOT
-->
							<a class="r-reply" title="回复此楼" href="javascript:;" onclick="postreply('回 楼主($read[author]) 的帖子');">回复</a>
							<!--
EOT;
}else{print <<<EOT
-->
							<a class="r-reply" title="回复此楼" href="javascript:;" onclick="postreply('回 $read[lou]楼($read[author]) 的帖子');">回复</a>
							<!--
EOT;
}print <<<EOT
-->
							<a class="r-quote" href="post.php?action=quote&fid=$fid&tid=$tid&pid=$read[pid]&article=$read[lou]&page=$page" onclick="return sendurl(this,4,'',event)" id="quote_$read[pid]" title="引用回复这个帖子">引用</a>
							<!--
EOT;
if($admincheck || $_G['markable']){print <<<EOT
-->
							<a class="r-score" id="showping_$read[pid]" href="operate.php?action=showping&tid=$tid&pid=$read[pid]&page=$page" onclick="return sendurl(this,8)" title="评分">评分</a>
							<!--
EOT;
}if($groupid!='guest' && $read['lou']==0){print <<<EOT
-->
							<a class="r-keep fn" href="javascript:;"  style="cursor:pointer;" onclick="sendmsg('pw_ajax.php?action=favor&tid=$tid','',this.id)" id="favor" title="收藏该主题">收藏</a>
							<!--
EOT;
}print <<<EOT
-->
						</div>
						<!--
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 menu-post cc tac" style="display:none;">
		<div class="menu-b" style="width:4.5em;"> <a id="recommend_$read[pid]" href="operate.php?action=recommend&tid=$tid" onclick="return sendurl(this,8,'td_read_$read[pid]')" title="分享此帖">分享</a>
			<!--
EOT;
if($_G['allowreport']){print <<<EOT
-->
			<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>
			<!--
EOT;
}print <<<EOT
-->
		</div>
	</div>
	<!--
EOT;
$db_union[2]='';
}}print <<<EOT
-->
</form>
<div class="t3">
	<!--
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="pages"><a href="job.php?action=previous&fid=$fid&tid=$tid&fpage=$fpage&goto=previous" class="fn">上一主题</a><span style="border-left:1px solid $tdcolor;" class="f_one fl"><a href="job.php?action=previous&fid=$fid&tid=$tid&fpage=$fpage&goto=next" class="fn">下一主题</a></span></span> <span class="fl">$pages$db_union[5]</span>
	<div class="c"></div>
</div>
<div class="c"></div>
<div class="t3">
	<!--
EOT;
if($winduid){print <<<EOT
-->
	<a class="bta fr" href="javascript:;" id="readlog" onclick="sendmsg('pw_ajax.php?action=readlog','',this.id);">帖子浏览记录<span class="f9">▼</span></a> <a class="bta fr" href="javascript:;" id="threadlog" onclick="sendmsg('pw_ajax.php','action=threadlog',this.id);">版块浏览记录<span class="f9">▼</span></a>
	<!--
EOT;
}print <<<EOT
-->
	<img src="$imgpath/$stylepath/thread/home-old.gif" align="absmiddle" />&nbsp;<a href="$db_bfn">$db_bbsname</a> &raquo; <a href="thread.php?fid=$fid&page=$fpage">$foruminfo[name]</a> </div>
<div class="c"></div>
<!--
EOT;
if($db_windpost['checkurl']){print<<<EOT
-->
<div id="checkurl" class="menu menu-post" style="display:none;">
	<div class="menu-b tac">
		<table width="280" 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;
}?>-->
