<!--<?php print <<<EOT
-->
<style type="text/css">
.mode-main{width:$mtablewidth;margin:0 auto;}  /*内容宽度*/
/*字体大小*/
.small{font-size:12px}
.middle{font-size:14px}
.big{font-size:18px}
/*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;}
/*头像*/
.user-infoWrap2{line-height:18px;}
.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)}
</style>
<div style="border-bottom:1px solid $tablecolor;">
<div class="mode-head cc">
		<ul class="nav-cms fl">
<!--
EOT;
foreach($catedbs as $key => $value){
if($value){print <<<EOT
-->
	   		<li><a href="thread.php?fid=$key" title="$value"><span>$value</span></a></li>
<!--
EOT;
}}print <<<EOT
-->
		</ul>
		<div class="c"></div>
</div>
</div>
<!--main-->
    <div class="rmw">
        <div class="rms cc">
			<!--<div id="menu_guide">
				<form action="search.php?" method="post">
				<input type="hidden" name="step" value="2" />
				<input type="hidden" name="sch_time" value="all">
					<span class="fr search"><input name="keyword" type="text" class="s-input"/><input name="submit" type="submit" class="s-btn" value="" /></span>
				</form>
			</div>-->

            <span 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="$pwModeImg/rss.png" class="threadrss" style="_margin-top:5px;"/></a>
			</span>
        </div>
<!--ads begin-->
<!--
EOT;
if($advertdb[text]){print <<<EOT
-->
		<div class="ad-text">
			<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="tr3">
<!--
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
-->       
<!--
EOT;
if($newpicdbs || $foruminfo[commend]){print<<<EOT
-->
        <div class="rmn cc">
            <table width="100%" cellpadding="0" cellspacing="0" style="table-layout:fixed;">
                <tr>
                    <td width="35">
                        <h2>版块推荐</h2>
                    </td>
                    <td width="290">
<!--
EOT;
foreach($newpicdbs as $value){
print<<<EOT
-->
                        <div class="rmn-img fl"> <img src="$value[image]" />
                        <p><a href="$value[url]">$value[title]</a></p>
                        </div>
<!--
EOT;
}print<<<EOT
-->
                    </td>
                    <td>
                        <ul class="rmn-list">
<!--
EOT;
$i = 0;
foreach($foruminfo[commend] as $key=>$value){
$i++;
if($i<=12){
print <<<EOT
-->
							<li><a href="read.php?tid=$value[tid]">$value[subject]</a><span><a href="#">[$value[author]]</a></span></li>
<!--
EOT;
}}print <<<EOT
-->
                        </ul>
                    </td>
                </tr>
            </table>
        </div>
<!--
EOT;
}print <<<EOT
-->
		<div class="rmp cc">
<!--
EOT;
if($N_allowtypeopen){print <<<EOT
-->
			<a href="post.php?fid=$fid" class="post" id="td_post">发贴</a>
<!--
EOT;
}print <<<EOT
-->
			<a href="post.php?action=reply&fid=$fid&tid=$tid" class="reply">回复</a>
<!--
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:67px;">
<!--
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
-->
			<a href="job.php?action=previous&fid=$fid&tid=$tid&fpage=$fpage&goto=previous" class="previous">上一主题</a>
			<a href="job.php?action=previous&fid=$fid&tid=$tid&fpage=$fpage&goto=next" class="next">下一主题</a>
<!--
EOT;
if($isBM || $isGM || $groupid==3 || $groupid==4){print <<<EOT
-->
            <a  href="javascript:;" class="manag huang" id="td_admin"><span>管理选项</span></a>


<!--
EOT;
}if($managecheck){print <<<EOT
-->
		<div id="menu_admin" class="menu menu-post cc" style="display:none;">
			<div class="menu-b" style="width:13em;">
            	<ul class=" menu-half cc">
<!--
EOT;
if($isGM || $pwSystem[topped]){print <<<EOT
-->
<li><a onclick="return sendurl(this,1)" href="mawhole.php?action=headtopic&fid=$fid&seltid=$tid" title="置顶帖子" >置顶</a></li>
<!--
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>
<li><a onclick="return sendurl(this,1)" href="mawhole.php?action=digest&fid=$fid&seltid=$tid" title="设为精华">精华</a></li>
<li><a href="mawhole.php?action=lock&fid=$fid&seltid=$tid" onclick="return sendurl(this,1)" title="锁定该贴">锁定</a></li>
<li><a onclick="return sendurl(this,1)" href="mawhole.php?action=pushtopic&fid=$fid&seltid=$tid" title="提前此帖">提前</a></li>
<li><a href="mawhole.php?action=downtopic&fid=$fid&seltid=$tid" onclick="return sendurl(this,1)" title="帖子压后">压后</a></li>
<li><a href="mawhole.php?action=edit&fid=$fid&seltid=$tid" onclick="return sendurl(this,1)" title="加亮标题">加亮</a></li>
<!--
EOT;
}if($isGM || $pwSystem[moveatc]){print <<<EOT
-->
<li><a onclick="return sendurl(this,1)" href="mawhole.php?action=move&fid=$fid&seltid=$tid" title="移动帖子">移动</a></li>
<!--
EOT;
}if($isGM || $pwSystem[copyatc]){print <<<EOT
-->
<li><a href="mawhole.php?action=copy&fid=$fid&seltid=$tid" onclick="return sendurl(this,1)" title="复制帖子">复制</a></li>
<!--
EOT;
}if($isGM || $pwSystem[unite]){print <<<EOT
-->
<li><a onclick="return sendurl(this,1)" href="mawhole.php?action=unite&fid=$fid&seltid=$tid" title="合并帖子">合并</a></li>
<!--
EOT;
}if($isGM || $pwSystem[delatc]){print <<<EOT
-->
<li><a href="mawhole.php?action=del&fid=$fid&seltid=$tid" onclick="return sendurl(this,1)" title="删除帖子">删除</a></li>
<!--
EOT;
}if($isBM || $isGM || $groupid==3 || $groupid==4){print <<<EOT
-->
<li><a style="cursor:pointer" onclick="sendmsg('pw_ajax.php?action=pushto&fid=$fid&seltid=$tid','',this.id)" title="推送帖子">推送</a></li>
<!--
EOT;
}if($ifcheck==0 && ($isGM || $pwSystem[tpccheck])){print <<<EOT
-->
<li><a onclick="ajax.send('masingle.php?ajax=1&action=check&fid=$fid&tid=$tid','',ajax.guide)" style="cursor:pointer" title="审核未验证主题">审核</a></li>
<!--
EOT;
}if($admincheck && $forumset['commend']){print <<<EOT
-->
<li><a onclick="ajax.send('masingle.php?ajax=1&action=commend&fid=$fid&tid=$tid','',ajax.guide)" style="cursor:pointer" title="加入到版主推荐列表">版主推荐</a></li>
<!--
EOT;
}print <<<EOT
-->
</div>
</div>
<!--
EOT;
}print <<<EOT
-->
            <span class="fl cc">
                $pages$db_union[5]
            </span>
        </div>
<!--楼层开始-->
<!--
EOT;
$special && require_once PrintEot($special);
print<<<EOT
-->
		<div style="margin-top:10px;"></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:10px 0 10px 0;" class="tac" id="ads_d_$read[pid]">{$ads}</div>
<!--
EOT;
}print <<<EOT
-->
		$read[jupend]
<!--
EOT;
if($read['lou']==0){print <<<EOT
-->
        <div class="h cc">
<!--
EOT;
if($groupid!='guest'){print <<<EOT
-->
				<a class="fr" style="cursor:pointer;" onclick="Addtoie('$db_bbsurl/read.php?fid=$fid&tid=$tid','$db_bbsname_a--$favortitle');">浏览器收藏</a>

<!--
EOT;
}print <<<EOT
-->
				<a href="$db_bbsurl/simple/index.php?t{$tid}.html" class="fr">打印</a>
				<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[toolcenter][1]){print <<<EOT
-->
				 | <a onclick="sendmsg('pw_ajax.php?action=usertool&uid=$read[authorid]','','sf_$read[lou]')" style="cursor:pointer" title="使用道具">使用道具</a>
<!--
EOT;
}print <<<EOT
-->
<!--
EOT;
if ($managecheck && ($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;
}print <<<EOT
-->	
            <div class="c"></div>
        </div>
<!--
EOT;
}print <<<EOT
-->
		<div class="r-bg cc">
            <div class="rmt">
                <table cellpadding="0" cellspacing="0" width="100%" style="table-layout:fixed;">
                    <tr>
                        <td rowspan="2" width="190" class="r_one" valign="top">
                            <div class="read-left">
<!--
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
-->
                                <a href="u.php?action=show&uid=$read[authorid]" target="_blank" style="display:block;float:left;line-height:25px;height:25px;white-space:nowrap;" class="b">$read[author]</a>
                                <div class="c"></div>
<!--
EOT;
if($read[honor]){print <<<EOT
-->
							    <div class="honor">$read[honor]</div>
<!--
EOT;
}print <<<EOT
-->
                                <div>
                                  <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 class="level">
								  <b>级别:</b> {$read[level]}</div>
                                  <img src="$imgpath/$stylepath/level/$read[lpic].gif" title="级别: {$read[level]} " style="cursor:pointer;display:block"/>
								   $read[medals]

								   <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>
<!--
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>
                            </div>
                        </td>
                        <td class="r_two" valign="top">
                            <div class="r_tiptop">
                                <span class="fr">
<!--
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;
}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>
								 </span>
					
<!--
EOT;
if (!empty($db_floorname[$read['lou']])){print <<<EOT
-->
								<a class="s3" style="cursor:pointer;" onclick="copyUrl('$read[pid]')" title="复制此楼地址"> {$db_floorname[$read[lou]]} </a>
<!--
EOT;
}else{print <<<EOT
-->
								<a class="s3" style="cursor:pointer;" onclick="copyUrl('$read[pid]')" title="复制此楼地址"> $read[lou]$db_floorunit </a>
<!--
EOT;
}print <<<EOT
-->
                                <span class="gray" title="$read[postdate]" style="white-space:nowrap;">发表于:$read[posttime]
<!--
EOT;
if($read['authorid']==$winduid || $isGM || $pwSystem['deltpcs']){print <<<EOT
-->
								 | <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>
<!--
EOT;
}print <<<EOT
-->
								</span>
                            </div>
                            <div id="td_$read[pid]">
<!--
EOT;
if($read['subject']){print<<<EOT
-->
                                <h1 class="b" id="subject_$read[pid]">
<!--
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
-->
									<span class="fl">$db_union[2]$read[icon]$read[subject]</span>
<!--
EOT;
}print <<<EOT
-->                                  
                                </h1>
                                <div class="c"></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;
}else{print <<<EOT
-->
								 <h1 class="s1" id="subject_$read[pid]"></h1>
<!--
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="c"></div>
<!--
EOT;
if($advertdb['article'] && $ads = readad($advertdb['article'],$key+1,5)){print <<<EOT
-->
								<div class="tips black" style="width:auto" id="ads_c_$read[pid]">{$ads}</div>
                                <div class="c"></div>
<!--
EOT;
}print <<<EOT
-->
                           <div class="fr" style="clear:right;">
<!--
EOT;
if($advertdb['article'] && $ads = readad($advertdb['article'],$key+1,1)){print <<<EOT
-->
							<div class="r_ad" id="ads_r_$read[pid]">{$ads}</div>						
<!--
EOT;
}print<<<EOT
-->
							</div>
                                <div class="tpc_content">
									<div id="p_$read[pid]"></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($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>
                            </div>
                        </td>
                    </tr>
                    <tr>
                    <td class="r_two" valign="bottom">
                        <div class="c"></div>
<!--
EOT;
if($read['aid'] && $read['ifhide']>0){print <<<EOT
-->
                        <blockquote class="blockquote fl">附件设置隐藏，需要回复后才能看到</blockquote>
<!--
EOT;
}if($read['picurl']){
foreach($read['picurl'] as $k => $picture){
if($picture){print <<<EOT
-->
					<div style="margin:5px 0 20px;" 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 15px 25px 15px;" 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 class="c"></div>
						<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" 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:5px 15px 5px 15px;">搜索更多相关文章：{$read[tag]}</div>
						<div class="c"></div>
<!--
EOT;
}print<<<EOT
-->
<!--
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="tipbot">
                            <div class="c"></div>
                            <span class="fl 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">
							<span title="$read[ipfrom]" style="cursor:help;" class="gray">$read[ip]</span>
<!--
EOT;
if($admincheck || $pwSystem['modother'] || $_G['markable']){print <<<EOT
-->
					<input type="checkbox" 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>
                        </div>
						<div class="c"></div>
                    </td>
                </tr>
              </table>
            </div>
        </div>


<div id="menu_read_$read[pid]" class="menu menu-post cc" style="display:none;">
    <div class="menu-b" style="width:13em;">
    	<ul class="menu-half cc">
    <li><a 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 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 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 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 style="cursor:pointer" onclick="ajax.send('masingle.php?action=inspect&fid=$fid&tid=$tid&pid=$read[lou]&ajax=1','',ajax.guide)" >标记已阅</a></li>
<!--
EOT;
}if($isGM || $pwSystem['pingcp']){print <<<EOT
-->
    <li><a href="masingle.php?action=pingcp&fid=$fid&tid=$tid&pid=$read[pid]&page=$page" onclick="return sendurl(this,2)" >评分管理</a></li>
<!--
EOT;
}print <<<EOT
-->
    </ul>
    </div>
</div>
<!--
EOT;
$db_union[2]='';
}}print <<<EOT
-->
	</form>
		<div class="rmp cc">
<!--
EOT;
if($N_allowtypeopen){print <<<EOT
-->
			<a href="post.php?fid=$fid" class="post" id="td_post1">发贴</a>
<!--
EOT;
}print <<<EOT
-->
			<a href="post.php?action=reply&fid=$fid&tid=$tid" class="reply">回复</a>
			<a href="job.php?action=previous&fid=$fid&tid=$tid&fpage=$fpage&goto=previous" class="previous">上一主题</a>
			<a href="job.php?action=previous&fid=$fid&tid=$tid&fpage=$fpage&goto=next" class="next">下一主题</a>
            <div class="fl">
			<table>
			<tr><td>
                $pages$db_union[5]
            </td><tr></table>
            </div>
<!--
EOT;
if($winduid){print <<<EOT
-->
			<a id="readlog" class="manag hui" href="javascript:;" onclick="sendmsg('pw_ajax.php?action=readlog','',this.id);"><span>帖子浏览记录</span></a>
			<a id="threadlog" href="javascript:;" class="manag hui" onclick="sendmsg('pw_ajax.php','action=threadlog',this.id);"><span>版块浏览记录</span></a>
<!--
EOT;
}print <<<EOT
-->
        </div>
		<div class="rms cc">
            <span 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>
			</span>
        </div>

<div class="cc">
<!--
EOT;
$fastpost && require_once PrintEot($fastpost);
print <<<EOT
-->
</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="menu-top" 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
-->
</div>
<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;
}?>-->
