<!--<?php
print <<<EOT
-->
<style type="text/css">
/*read页新代码*/
.s3,a.s3{color:#f06f18;}
.edit{padding:0 1em;border:1px solid #ece9d8;background:#fffef3;color:#736933;margin-bottom:3px;line-height:25px;height:25px;}
.edit a{color:#736933;}
.honor{line-height:130%;text-indent:1.5em;overflow:hidden;color:#777;background:url(mode/area/images/honor.gif) 5px 5px no-repeat;padding:5px;word-break:break-all;}
.t2{border:1px solid #bed7e5;background:#fff;margin:0 auto 10px;}
.t2top{height:28px;line-height:26px;_line-height:28px;padding:0 8px;background:#eef7fc;border-bottom:1px solid #d7e8f1;}
.t2top span{margin-left:.5em;}
.bianji{margin-left:.5em;padding-top:1px;padding-left:.6em;}
.bianji a{color:#85acc0;}
.bianji a:hover{text-decoration:none;color:#000;}
.t2bot{height:30px;line-height:30px;background:#f7fafd;padding:0 .3em 0 1em;}
.t2bot2{height:30px;background:#f2f6fc;}
.r_one{background:#fff;}
.r_two{background:#f8fafd;}
/*上下主题*/
.next{float:left;border:1px solid #c7e1ef;height:26px;line-height:26px;margin:0 10px 0 0;background:#fff;width:126px;}
.next ul{padding:0; margin:0;}
.next ul li{list-style:none;float:left;}
.next ul li a{padding:0 7px 0 7px;background:#fff;}
.next ul li a:hover{color:#FA891B;text-decoration:none;}
.next ul .nextone{border-left:1px solid #c7e1ef;}
/*digg*/
.dig{font-size:12px;background:#ffffee url($imgpath/wind/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-top:.2em;}
.dig:hover{text-decoration:none;border:1px solid #f5a25c;color:#ff6600;}
/*readicon*/
.listread{text-indent:-2000em;}
.listread ul{padding:0px;margin:3px 0px 3px;}
.listread ul li{list-style:none;float:left;width:20px;cursor:pointer;}
.listread div{background:url($imgpath/wind/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;}
/*页面里*/
.tiptop{margin:0 .6em;padding:.5em;background:url(mode/area/images/tiptop.gif) center bottom repeat-x;}
h1{font-size:16px;padding:0px;margin:.2em .5em;}
.tpc_content{font-family:Arial;margin:1.5em 2em;line-height:2em;}
.tpc_content font{line-height:1.1em;}
.tpc_content a{text-decoration:none;color:#0070AF;}
.tpc_content a:hover{text-decoration:underline}
.blockquote{margin:0 1em;border:1px solid #f5a25c;background:#ffffee;padding:.5em;color:#ff6600;margin-top:1em;}
.tipbot{padding:.5em .6em .2em;}
/*评分*/
.tips{background:#fdfffc;border:#e3eef7 1px solid;padding:5px;margin:0 0 1em;text-align:left;line-height:20px;float:left;}
.tips li{list-style:none;width:30%;height:24px;min-width:210px;margin:0 5px;float:left;overflow:hidden;text-overflow:ellipsis;}
.quote{font-size:11px;line-height:25px;}
.blockquote3{width:80%;border:1px solid #ccc;background:#f7f7f7;border-left-width:4px;margin:0 0 1px;color:#555;}
.blockquote3 div{padding:3px 15px;}
.blockquote3 div ul{padding:0;margin:0;}
.quote2{font-size:12px;color:#333;margin:0px;padding:8px 28px 0;color:#006699;background:url($imgpath/$stylepath/read/quote.gif) 8px 8px no-repeat;}
.sigline{margin-left:1em;background: url($imgpath/wind/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");}
/*头像*/
.user-pic img{border: 1px solid #cfdfe8;background:#fff;padding:3px;width:80px;height:80px;}
.user-pic table{border:none;}
.user-info{ position:absolute;line-height:160%; margin-left:-1.5em;}
.user-infoWrap{color:#555;background:#fff url($imgpath/wind/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(images/wind/user-info-co.gif)}
/*字体大小*/
.small{font-size:12px}
.middle{font-size:14px}
.big{font-size:18px}
/*threadicon*/
.threadrss{background:url($imgpath/wind/thread/threadicon.png) left bottom no-repeat;width:14px;height:14px;}
.threadok{background:url($imgpath/wind/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:#c5d8e8 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:500px;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;padding-right:1em;}
.blockquote2 ol li:hover{background:#fff;color:#008ef1;}
.abtn2 a{border:1px solid #fbfdff;padding:2px 4px;*padding:3px 4px 1px;height:26px;line-height:26px;color:#555;}
.abtn2 a:hover{border:1px solid #2195d2;color:#2195d2;text-decoration:none;background:#fff;}
.read-ok div{background:url(mode/area/images/right.gif) 0 0 no-repeat;height:16px;width:16px;margin:5px 0;}
.read-ok .one{background-position:0 top;}
.read-ok .two{background-position:0 bottom;}
.menu {z-index:2000;position:absolute;padding:0;}
.menu3{background:#ffffff;border:#b9e6f5 1px solid;padding:1px;}
.menu3 ul{display:block; line-height: 15px;width:122px;background:#e6f5ff;}
.menu3 ul li{padding:2px 0;background:#e6f5ff;width:6em;float:left;}
.menu3 ul a{margin:0 2px;border:#e6f5ff 1px solid;color:#666;display: list-item;list-style:none;padding:3px 8px 2px; height:auto!important; height:12px;}
.menu3 ul a:hover{background:#fff; text-decoration:none; color:#006699;border:#b9e6f5 1px solid;margin:0 2px;}
/*表格*/
.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="c"></div>
<div class="c"></div>
<div class="readtop">
<!-- <div class="fr"><div class="read-ok"><div class="one"></div></div></div> -->
	<div class="fl">
		位置:
<!--
EOT;
$i=0;
foreach($fidassociate as $value){
$add = $i++ ? '&raquo; ':'';
print <<<EOT
-->
		$add<a href="$value[url]">$value[name]</a>
<!--
EOT;
}print <<<EOT
-->
		&raquo; <a href="read.php?tid=$tid">$subject</a>
		<a href="rss.php?fid=$fid" target="_blank" title="Rss订阅本版面最新帖子">
		<img src="$imgpath/$stylepath/thread/kong.png" class="threadrss" style="_margin-top:5px;"/></a>

	</div>
</div>
<div class="c"></div>
<!--ads begin-->
<!--
EOT;
if($advertdb[text]){print <<<EOT
-->
	<div class="t5" style="padding:.5em 0;">
		<table width="100%" cellspacing="0" cellpadding="0" style="table-layout:fixed;">
<!--
EOT;
$id=0;
$idp = 100/$db_txtadnum;
foreach($advertdb[text] as $value){
if($id==0){print <<<EOT
-->
			<tr class="tr1">
<!--
EOT;
}$id++;print <<<EOT
-->
				<td class="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 width="$idp%"><br /></td>
<!--
EOT;
}print <<<EOT
-->
			</tr>
<!--
EOT;
}print <<<EOT
-->
		</table>
	</div>
<!--
EOT;
}print<<<EOT
-->
<div class="c"></div>
<script type="text/javascript">
function showTabs(id,select,element,css){
	var o = getObj(id);
	var t = o.getElementsByTagName(element);
	for (var i=0;i<t.length;i++) {
		if (t[i].id) {
			var oo = getObj(t[i].id);
			if (t[i].id == select) {
				getObj(t[i].id).className = css;
				getObj('info_'+t[i].id).style.display = '';
			} else {
				getObj(t[i].id).className = '';
				getObj('info_'+t[i].id).style.display = 'none';
			}
		}
	}
	return false;
}
</script>
<!-- <style type="text/css">
/*左右栏开始*/
.r-left{float:left;width:750px;}
.r-right{width:180px;background:#e4e4e4;height:400px;float:right;}
</style>
<div class="r-right"><center>左右栏开始</center></div> -->

<div class="r-left">
<div class="c"></div>
<!--
EOT;
if($N_allowtypeopen){print <<<EOT
-->
		<span class="fr"><a href="post.php?fid=$fid"><img src="$pwModeImg/post.png" id="td_post" /></a></span>
<!--
EOT;
}print <<<EOT
-->
		<span class="fr" style="margin-right:.5em;"><a href="post.php?action=reply&fid=$fid&tid=$tid"><img src="$pwModeImg/reply.png" /></a></span>		<div class="next"><ul><li><a href="job.php?action=previous&fid=$fid&tid=$tid&fpage=$fpage&goto=previous" class="fn">上一主题</a></li><li class="nextone"><a href="job.php?action=previous&fid=$fid&tid=$tid&fpage=$fpage&goto=next" class="fn">下一主题</a></li></ul><div class="c"></div></div>
		<span class="fl">$pages$db_union[5]</span>
	<div class="c"></div>
<!--
EOT;
if($N_allowtypeopen){print <<<EOT
-->
<div class="menu2 tac f12" id="menu_post" style="display:none;">
    <dl style="width:56px;">
<!--
EOT;
if($foruminfo['allowtype'] & 1){print <<<EOT
-->
	     <dd><a href="post.php?fid=$fid">新  帖</a></dd>
<!--
EOT;
}if($foruminfo['allowtype'] & 2 && $_G[allownewvote]){print <<<EOT
-->
	     <dd><a href="post.php?fid=$fid&special=1">投  票</a></dd>
<!--
EOT;
}if($foruminfo['allowtype'] & 4 && $_G[allowactive]){print <<<EOT
-->
	     <dd><a href="post.php?fid=$fid&special=2">活  动</a></dd>
<!--
EOT;
}if($foruminfo['allowtype'] & 8 && $_G['allowreward']){print<<<EOT
-->
	     <dd><a href="post.php?fid=$fid&special=3">悬  赏</a></dd>
<!--
EOT;
}if($foruminfo['allowtype'] & 16 && $_G['allowgoods']){print <<<EOT
-->
	     <dd><a href="post.php?fid=$fid&special=4">商  品</a></dd>
<!--
EOT;
}if($foruminfo['allowtype'] & 32 && $_G['allowdebate']){print <<<EOT
-->
		<dd><a href="post.php?fid=$fid&special=5">辩  论</a></dd>
<!--
EOT;
}print <<<EOT
-->
    </dl>
</div>
<!--
EOT;
}print <<<EOT
-->
<!--楼层开始-->
<!--
EOT;
$special && require_once PrintEot($special);print<<<EOT
-->
<div style="height:8px;"></div>
<form name="delatc" method="post">
	<input type="hidden" name="fid" value="$fid" />
	<input type="hidden" name="tid" value="$tid" />
<!--
EOT;
$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:10px;" class="tac" id="ads_d_$read[pid]">{$ads}</div>
<!--
EOT;
}print <<<EOT
-->
		$read[jupend]
<!--
EOT;
if($managecheck && $read['lou']==0){print <<<EOT
-->
		<div class="edit s6">
<!--
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($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
-->
<style type="text/css">
.pwnew span{float:left;margin-left:5px;}
.pwnew a{padding:0;margin:0;display:block;height:16px;width:16px;float:left;line-height:16px;border:1px solid $tdcolor;color:$linkcolor;cursor:pointer;}
.pwnew a:hover{border:1px solid $tablecolor;background:$forumcolortwo;color:$linkcolor;}
.pwnew .one,.pwnew .one:hover{border: 1px solid $headfontone;background:$headborder;color:$headfontone;}
.pwnew b:hover,.pwnew i:hover{text-decoration:none;}
.pwnew .two{background:url($imgpath/wind/menu-down.gif) right center no-repeat;width:30px;cursor:pointer;}
.pwnew .two:hover{background:$forumcolortwo url($imgpath/wind/menu-down.gif) right center no-repeat;text-decoration:none;}
</style>
<script type="text/javascript" language="JavaScript" src="js/color_picker.js"></script>
<script type="text/javascript">
function pickReback(color){
	getObj('color_show').style.backgroundColor = color;
}
function styleOnclick(e,obj){
	var objclass = e.className;
	var temp = objclass.split(' ');
	var newclass = '';
	for (var n=0; n<temp.length; n++){
		if (temp[n]=='one') {
			continue;
		}
		newclass += ' ' + temp[n];
	}
	if (objclass.match(/one/)) {
		e.className = newclass;
		getObj(obj).value = '';
	} else {
		e.className = newclass + ' one';
		getObj(obj).value = 1;
	}
}
function colorCancel(){
	getObj('color_show').style.backgroundColor='#FFFFFF';
	getObj('title1').value='';
}
</script>
 | <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($isBM || $isGM || $groupid==3 || $groupid==4){print <<<EOT
-->
 | <a id="push" style="cursor:pointer" onclick="sendmsg('pw_ajax.php?action=pushto&fid=$fid&seltid=$tid','',this.id)" 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
-->
</div>
<!--
EOT;
}print <<<EOT
-->
<div class="t2">
<div class="t2top">
					<div class="fr s6 s6">
<!--
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="s2">留言</a>
<!--
EOT;
}if($read[lou]==0){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> |
					<a href="$db_bbsurl/simple/index.php?t{$tid}.html">打印</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>
					<span class="listread fl" style="margin:5px 5px 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" class="s1">$read[author]</a></b>
<!--
EOT;
if($read[lou]==0){print <<<EOT
-->
					<span class="fl"><a class="s2" style="cursor:pointer;" onclick="copyUrl('$read[pid]')" title="复制此楼地址">[楼主]</a></span>
<!--
EOT;
}else{print <<<EOT
-->
					<span class="fl"><a class="s2" style="cursor:pointer;" onclick="copyUrl('$read[pid]')" title="复制此楼地址">[$read[lou]楼]</a></span>
<!--
EOT;
}print <<<EOT
-->
					<span class="fl" 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="c"></div>
				</div>
	<table width="100%" cellspacing="0" cellpadding="0" style="table-layout:fixed;">
		<tr>
			<td class="r_two" valign="top" rowspan="2" style="width:114px;overflow:hidden;word-break:normal;word-wrap:normal">
			<div style="width:94px;overflow:hidden;padding:10px;">
<div class="user-pic">
							<table style="border:0;">
								<tr>
									<td width="1">

										<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>

									</td>
									<td style="vertical-align:top"><span id="sf_$read[lou]"></span></td>
								</tr>
							</table>
						</div>
						<div>
							<img src="$imgpath/$stylepath/level/$read[lpic].gif" title="级别: {$read[level]} " style="cursor:pointer;padding:.5em 0 .5em 4px;display:block"/>
							$read[medals]
<!--
EOT;
if($read[honor]){print <<<EOT
-->
							<div class="honor"><div>$read[honor]</div></div>
<!--
EOT;
}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;
if($db_hackdb[blog][2] && $bg_ifopen){print <<<EOT
-->
									<li title="进入个人主页"><a href="$bg_blogurl/blog.php?bbsuid=$read[authorid]" target="_blank"><div class="readblog">个人主页</div></a></li>
<!--
EOT;
}print <<<EOT
-->
									<li title="查看作者资料"><a href="u.php?action=show&uid=$read[authorid]"><div class="readprofile">作者资料</div></a></li>
									<li title="发送短消息"><a onclick="sendmsg('pw_ajax.php?action=msg&touid=$read[authorid]','','sf_$read[lou]')"/><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" 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:8px;"></div>
							级别: {$read[level]} <br />
							<span class="f10">UID: <span class="s5">$read[authorid]</span></span><br />
								精华:
<!--
EOT;
if($read[digests]){print <<<EOT
-->
								<a href="search.php?authorid=$read[authorid]&digest=1" target="_blank" class="s4 f9">$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>
			</td>
			<td valign="top" class="r_one" style="padding:0px;border:0;overflow:hidden;" id="td_$read[pid]">

<!--
EOT;
if($read[subject]){print<<<EOT
-->
				<div class="tiptop">
				<div class="c"></div>
<!--
EOT;
if($forumset['dig'] && $read[lou]==0){print<<<EOT
-->
					<a id="r_dig" href="javascript:;" class="dig fl" title="推荐此帖到排行榜" onclick="dig();">$read[dig]</a>
<!--
EOT;
}if($read[subject] || $db_union[2]){print <<<EOT
-->
					<h1 id="subject_$read[pid]" class="fl s1">$db_union[2]$read[icon]$read[subject]</h1>
<!--
EOT;
}else{print<<<EOT
-->
					<span id="subject_$read[pid]"></span>
<!--
EOT;
}print <<<EOT
-->
					<div class="c"></div>
				</div>
<!--
EOT;
}if($read['remindinfo']){print <<<EOT
-->
				<div id="mag_$read[pid]"><blockquote class="blockquote fl">
<!--
EOT;
if($read[remindinfo][1]){print <<<EOT
-->
				&#8212; {$read[remindinfo][1]}
<!--
EOT;
}print <<<EOT
-->
				&#8212; {$read[remindinfo][0]} &#8212;
<!--
EOT;
if($read[remindinfo][2]){print <<<EOT
-->
			({$read[remindinfo][2]}) &#8212;
<!--
EOT;
}print <<<EOT
--></blockquote></div>
<!--
EOT;
}print <<<EOT
-->

				<div class="c"></div>
<!--
EOT;
if($read['lou']!=0 && $special == 'read_debate'){
if($read['standpoint']==1){print <<<EOT
-->
<div style="height:10px;"></div>
				<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>
<!--
EOT;
}elseif($read['standpoint']==2){print <<<EOT
-->
<div style="height:10px;"></div>
				<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>
<!--
EOT;
}else{print <<<EOT
-->
<div style="height:10px;"></div>
				<div class="dig5 tac fl">我是中立者</div>
<!--
EOT;
}}print <<<EOT
-->
				<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['pic']){
foreach($read['pic'] as $pic){
if($pic){print <<<EOT
-->
					<div style="margin:5px" id="att_$pic[0]">
<!--
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>

</td></tr>
<tr class="r_one">
<td valign="bottom" style="padding-bottom:.5em;">

	<div class="tpc_content" style="margin-bottom:0%;">
<!--
EOT;
if($read['aid'] && $read['ifhide']>0){print <<<EOT
-->
					<blockquote class="f12 s3 blockquote">附件设置隐藏，需要回复后才能看到</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;" 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 s2">本帖最近评分记录：</div><div class="tal">$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 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
-->

</td>
</tr>
<tr><td class="t2bot2"></td><td class="t2bot"><span class="fl s6 abtn2">
<!--
EOT;
if($read[lou]==0){print <<<EOT
-->
						<a href="javascript:;" title="回复此楼" onclick="postreply('回 楼主($read[author]) 的帖子');">回复</a>
<!--
EOT;
}else{print <<<EOT
-->
						<a href="javascript:;" title="回复此楼" onclick="postreply('回 $read[lou]楼($read[author]) 的帖子');">回复</a>
<!--
EOT;
}print <<<EOT
-->

						<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>
<!--
EOT;
if($admincheck || $_G['markable']){print <<<EOT
-->
						<a 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 href="javascript:;" style="cursor:pointer;" onclick="sendmsg('pw_ajax.php?action=favor&tid=$tid','',this.id)" id="favor" title="收藏该主题">收藏</a>
<!--
EOT;
if($db_hackdb[toolcenter][2] && $read['lou']==0){print <<<EOT
-->
						<a id="usetool" href="javascript:;" style="cursor:pointer" onclick="sendmsg('pw_ajax.php?action=usetool','',this.id)" />道具</a>
<!--
EOT;
}}print <<<EOT
-->
						</span><span class="fr abtn2 s6" style="margin-right:.6em;"><span title="$read[ipfrom]" style="cursor:help;">$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($groupid!='guest'){print <<<EOT
-->
						<a href="javascript:void(0)" id="td_read_$read[pid]" style="cursor:pointer;">管理选项<b>+</b></a>
<!--
EOT;
}print <<<EOT
-->
						<a href="javascript:scroll(0,0)" title="顶端">顶端</a></span>
<div class="c"></div></td></tr>
</table>
<div class="c"></div>
</div>
<div class="c"></div>

<div id="menu_read_$read[pid]" class="menu menu3" style="display:none;">
<div style="background:#e6f5ff;">
<ul style="width:12em;">
<li><a id="recommend_$read[pid]" href="operate.php?action=recommend&tid=$tid" onclick="return sendurl(this,8,'td_read_$read[pid]')" >分享此贴</a></li>
<!--
EOT;
if($_G[allowreport]){print <<<EOT
-->
<li><a href="operate.php?action=report&tid=$tid&pid=$read[pid]" onclick="return sendurl(this,8,'td_read_$read[pid]')" id="report_$read[pid]">举报该贴</a></li>
<!--
EOT;
}if($isGM || $pwSystem['banuser']){print <<<EOT
-->
<li><a id="banuser_$read[pid]" href="masingle.php?action=banuser&fid=$fid&tid=$tid&pid=$read[pid]&page=$page" onclick="return sendurl(this,2,'td_read_$read[pid]')" >禁言会员</a></li>
<!--
EOT;
}if($isGM || $pwSystem['shield']){print <<<EOT
-->
<li><a id="shield_$read[pid]" href="masingle.php?action=shield&fid=$fid&tid=$tid&pid=$read[pid]&page=$page" onclick="return sendurl(this,2,'td_read_$read[pid]')"  >屏蔽单贴</a></li>
<!--
EOT;
}if($isGM || $pwSystem['remind']){print <<<EOT
-->
<li><a id="remind_$read[pid]" href="masingle.php?action=remind&fid=$fid&tid=$tid&pid=$read[pid]&page=$page" onclick="return sendurl(this,2,'td_read_$read[pid]')"  >提醒管理</a></li>
<!--
EOT;
}if($forumset['inspect'] && ($isGM || $pwSystem['inspect'])){print <<<EOT
-->
<li><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)" >标记已阅</a></li>
<!--
EOT;
}print <<<EOT
-->
</ul>
<div class="c" style="width:1px;"></div>
</div>
</div>
<!--
EOT;
$db_union[2]='';
}}print <<<EOT
-->
</form>
</div>
<div class="c"></div>
<!--
EOT;
if($N_allowtypeopen){print <<<EOT
-->
		<span class="fr"><a href="post.php?fid=$fid"><img src="$pwModeImg/post.png" id="td_post" /></a></span>
<!--
EOT;
}print <<<EOT
-->
		<span class="fr" style="margin-right:.5em;"><a href="post.php?action=reply&fid=$fid&tid=$tid"><img src="$pwModeImg/reply.png" /></a></span>
		<span class="fl next"><ul><li><a href="job.php?action=previous&fid=$fid&tid=$tid&fpage=$fpage&goto=previous" class="fn">上一主题</a></li><li class="nextone"><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]<div class="c"></div></span>
<div class="c"></div>
<style type="text/css">
.read-d{line-height:25px;height:25px;margin:10px 0 8px;overflow: hidden;}
.read-d .fl{width:700px;overflow: hidden;line-height:25px;height:25px;padding-left:.5em;}
.read-d .fr{margin-left:2em;}
.read-d .fr a{background:#fff url($imgpath/$stylepath/menu-down.gif) right center no-repeat;padding:2px 16px 2px 5px;cursor:pointer}
.read-d .fr a:hover{background:#006699 url($imgpath/$stylepath/menu-down.gif) right center no-repeat;}
</style>
<div class="read-d">
<div class="c"></div>
<!--
EOT;
if($winduid){print <<<EOT
-->
<div class="fr"><a id="readlog" href="javascript:;" class="abtn" onclick="sendmsg('pw_ajax.php?action=readlog','',this.id);">帖子浏览记录</a>
<a id="threadlog" href="javascript:;" class="abtn" onclick="sendmsg('pw_ajax.php','action=threadlog',this.id);">版块浏览记录</a></div>
<!--
EOT;
}print <<<EOT
-->
	<div class="fl">
	位置：
<!--
EOT;
$i=0;
foreach($fidassociate as $value){
$add = $i++ ? '&raquo; ':'';
print <<<EOT
-->
		$add<a href="$value[url]">$value[name]</a>
<!--
EOT;
}print <<<EOT
-->
		&raquo; <a href="read.php?tid=$tid">$subject</a>
	</div>
<div class="c"></div>
</div>


<div class="c"></div>
	<div>
<!--
EOT;
$fastpost && require_once PrintEot($fastpost);
print <<<EOT
-->
<div class="c"></div>
</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">$suburl</span></th></tr>
<tr><td colspan="2">访问内容超出本站范围，不能确定是否安全</td></tr>
<tr><td><a href="$url" 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';
if(page>1){
	var copyurl = '$db_bbsurl/read.php?tid=$tid&page='+page+'#';
}else{
	var copyurl = '$db_bbsurl/read.php?tid=$tid#';
}
<!--
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;
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;
}?>-->
