<!--<?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*/
.tiptop a,.tipad a{ margin:0 .2em;}
.tips li{list-style:none;width:30%;height:24px;line-height:24px; min-width:210px;margin:0 5px;float:left;overflow:hidden;text-overflow:ellipsis;}
.menu a.a6:hover{text-decoration:underline;background:$headcolor;color:#00f}
.user-infoWrap2{line-height:18px;}
.user-pic{margin-left:11px;}
.user-pic img{border: 1px solid $tdcolor;background:#fff;padding:3px;}
.user-pic table{border:none;}
.user-info{ position:absolute;line-height:160%; margin-left:-1.5em;}
.user-infoWrap{color:#555;background:#fff url($imgpath/$stylepath/menubg.gif) center top repeat-x;border:1px solid #a9d5e9;padding:.5em 1em; margin-left:20px;display:block;}
.user-info .co{position:absolute; width:10px;height:20px; margin-left:-1.8em; margin-top:2em; background:url($imgpath/$stylepath/user-info-co.gif)}
/*字體大小*/
.small{font-size:12px}
.middle{font-size:14px}
.big{font-size:18px}
/*digg*/
.dig{font-size:12px;background:#ffffee url($imgpath/$stylepath/read/readicon.png) .3em -164px no-repeat;padding:0 .4em 0 1.6em;cursor: pointer;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{text-indent:-2000em;margin-top:5px;}
.listread ul{padding:0px;margin:3px 0px 3px;width:170px;}
.listread ul li{list-style:none;float:left;width:22px;cursor:pointer;}
.listread div{background:url($imgpath/$stylepath/read/readicon.png);width:16px;height:16px;overflow:hidden;}
.listread .readblog{background-position:0 -124px;}
.listread .readonline{background-position:0 -4px;}
.listread .readoffline{background-position:0 -24px;}
.listread .readprofile{background-position:0 -44px;}
.listread .readmagic{background-position:0 -84px;}
.listread .readmessage{background-position:0 -64px;}
.listread .readqq{background-position:0 -104px;}
.listread .readww{background-position:0 -144px;}
/*tipbottom*/
.readbot{padding:0px;margin:0px;}
.readbot li{list-style:none;padding:0 0 0 1.2em; margin:0;float:left;cursor:pointer;background:url($imgpath/$stylepath/read/yin.gif) no-repeat;width:3em;height:10px;}
.readbot .yinyong{background-position:.2em 0;}
.readbot .huifu{background-position:.2em -20px;}
.readbot .ping{background-position:.2em -40px;}
.readbot .shou{background-position:.15em -60px;}
.bianji{background:none;margin-left:.8em;color:#ddd;}
.bianji a{color:#000;}
.bianji a:hover{color:#555;}
.threadrss{background:url($imgpath/$stylepath/thread/threadicon.png) left bottom no-repeat;width:14px;height:14px;}
.threadok{background:url($imgpath/$stylepath/thread/threadicon.png) left 1px no-repeat;width:14px;height:14px;}
.down{background:#fff url($imgpath/down.gif) 5px center no-repeat;padding:5px 5px 5px 30px;border:$cbgborder 1px solid;margin:0 1em 0 0;line-height:40px;}
/*通用下拉*/
.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 class="bdbA">
	<div id="breadcrumbs">
		$msg_guide
		<a href="rss.php?tid=$tid" target="_blank" title="Rss訂閱本帖最新內容"><img src="$imgpath/$stylepath/thread/kong.png" class="threadrss" style="_margin-top:5px;"/></a>
		</span>
	</div>
</div>
<div class="c"></div>
<!--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="fl pages"><ul><li><a href="job.php?action=previous&fid=$fid&tid=$tid&fpage=$fpage&goto=previous" class="fn">上一主題</a></li><li style="border-left:1px solid $tdcolor;" class="f_one"><a href="job.php?action=previous&fid=$fid&tid=$tid&fpage=$fpage&goto=next" class="fn">下一主題</a></li></ul></span>
    <span class="fl">$pages$db_union[5]</span>
	<div class="c"></div>
</div>
<div class="c"></div>
<!--
EOT;
if($N_allowtypeopen){print <<<EOT
-->
<div id="menu_post" class="menu menu-post cc f14 tac" style="display:none;">
	<div class="menu-b" style="width:76px;">
<!--
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>
<table cellspacing="0" cellpadding="0" width="100%">
<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($db_hackdb['toolcenter'][2]){print <<<EOT
-->
<a id="usetool" style="cursor:pointer" onclick="sendmsg('pw_ajax.php?action=usetool','',this.id)" />使用道具</a>
<!--
EOT;
}if($managecheck){
if($isGM || $pwSystem['topped']){print <<<EOT
-->
 | <a id="headtopic" onclick="return sendurl(this,1)" href="mawhole.php?action=headtopic&fid=$fid&seltid=$tid" title="置頂帖子">置頂</a>
<!--
EOT;
}if($isGM || $pwSystem['typeadmin']){print <<<EOT
-->
 | <a id="rdigest" onclick="return sendurl(this,1)" href="mawhole.php?action=digest&fid=$fid&seltid=$tid" title="精華帖子">精華</a>
 | <a id="lock" href="mawhole.php?action=lock&fid=$fid&seltid=$tid" onclick="return sendurl(this,1)" title="鎖定帖子">鎖定</a>
 | <a id="pushtopic" onclick="return sendurl(this,1)" href="mawhole.php?action=pushtopic&fid=$fid&seltid=$tid" title="鎖定帖子">提前</a>
 | <a id="downtopic" href="mawhole.php?action=downtopic&fid=$fid&seltid=$tid" onclick="return sendurl(this,1)" title="將帖子往後壓">壓帖</a>
 | <a id="edit" href="mawhole.php?action=edit&fid=$fid&seltid=$tid" onclick="return sendurl(this,1)" title="編輯標題顏色">加亮</a>
<!--
EOT;
}if($isGM || $pwSystem['moveatc']){print <<<EOT
-->
 | <a id="move" onclick="return sendurl(this,1)" href="mawhole.php?action=move&fid=$fid&seltid=$tid" title="移動帖子">移動</a>
<!--
EOT;
}if($isGM || $pwSystem['copyatc']){print <<<EOT
-->
 | <a id="copy" href="mawhole.php?action=copy&fid=$fid&seltid=$tid" onclick="return sendurl(this,1)" title="復制帖子">復制</a>
<!--
EOT;
}if($isGM || $pwSystem['unite']){print <<<EOT
-->
 | <a id="unit" onclick="return sendurl(this,1)" href="mawhole.php?action=unite&fid=$fid&seltid=$tid" title="合並帖子">合並</a>
<!--
EOT;
}if($isGM || $pwSystem['delatc']){print <<<EOT
-->
 | <a id="del" href="mawhole.php?action=del&fid=$fid&seltid=$tid" onclick="return sendurl(this,1)" title="刪除帖子">刪除</a>
<!--
EOT;
}if($ifcheck==0 && ($isGM || $pwSystem['tpccheck'])){print <<<EOT
-->
 | <a onclick="ajax.send('masingle.php?ajax=1&action=check&fid=$fid&tid=$tid','',ajax.guide)" style="cursor:pointer" title="審核未驗證主題">審核</a>
<!--
EOT;
}if($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;
}}print <<<EOT
-->
</td>
<td class="tar h">
<div class="fr w">
<a style="cursor:pointer;" title="$db_bbsurl/read.php?fid=$fid&tid=$tid" onclick="clipboardData.setData('Text','$db_bbsurl/read.php?fid=$fid&tid=$tid&u=$winduid')">復制鏈接</a>
<!--
EOT;
if($groupid!='guest' && $db_hackdb['blog'][2]){
include_once(D_P.'data/bbscache/bg_config.php');
if($bg_ifopen){print <<<EOT
-->
| <a href="$bg_blogurl/user_index.php?action=bbsatc&tid=$tid" title="推送到我的博客" target="_blank">推送到博客</a>
<!--
EOT;
}}print <<<EOT
--> 
| <a class="fn" style="cursor:pointer;" onclick="Addtoie('$db_bbsurl/read.php?fid=$fid&tid=$tid','$db_bbsname_a--$favortitle');">瀏覽器收藏</a> | <a class="fn" href="$db_bbsurl/simple/index.php?t{$tid}.html"> 打印</a>
</div>
</td></tr></table>
<div class="c"></div>
</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"';
$timetype = array('day'=>'天前','qiantian'=>'前天','yesterday'=>'昨天','hour'=>'小時前','minute'=>'分鐘前');
foreach($readdb as $key=>$read){
if($read){
if($read['timetype']){
$read[posttime] .= $timetype[$read['timetype']];
}
if($advertdb['article'] && $ads = readad($advertdb['article'],$key,3)){print <<<EOT
-->
<div style="margin-bottom:4px;" class="tac" id="ads_d_$read[pid]">{$ads}</div>
<!--
EOT;
}print <<<EOT
-->
$read[jupend]
<div class="t5" $style>
	<table cellspacing="0" cellpadding="0" width="100%" style="table-layout:fixed;">
		<tr class="tr1">
			<th style="width:185px;padding:0;" rowspan="2" class="r_two">
				<div style="height:27px;line-height:24px;padding:5px 5px 0 12px;">
					<span class="listread fl" style="margin:2px 0 0 0;">
<!--
EOT;
if($db_showonline && $read['thisvisit']+$db_onlinetime*1.5>$timestamp){print <<<EOT
-->
						<a onclick="sendmsg('pw_ajax.php?action=addfriend&touid=$read[authorid]','','sf_$read[lou]')" style="cursor:pointer;"  title="加為好友"/><div class="readonline"></div></a>
<!--
EOT;
}elseif($db_showonline){print <<<EOT
-->
						<a onclick="sendmsg('pw_ajax.php?action=addfriend&touid=$read[authorid]','','sf_$read[lou]')" style="cursor:pointer" title="加為好友" /><div class="readoffline"></div></a>
<!--
EOT;
}print <<<EOT
-->
					</span>
					<b class="fl"><a href="u.php?action=show&uid=$read[authorid]" target="_blank">$read[author]</a></b>
					<div class="c"></div>
				</div>
<!--
EOT;
if($read['honor']){print <<<EOT
-->
				<div class="honor">$read[honor]</div>
<!--
EOT;
}print <<<EOT
-->
				<div class="user-pic">
					<table style="border:0;">
						<tr>
							<td width="1">
<!--
EOT;
if($db_menu>3){print <<<EOT
-->
								<a href="u.php?action=show&uid=$read[authorid]" target="_blank" onmouseover="mt=setTimeout('read.open(\'showface_$read[lou]\',\'sf_$read[lou]\',1,21);',700);" onmouseout="clearTimeout(mt);read.close();" style="cursor:pointer;">$read[face]</a>
<!--
EOT;
}else{print <<<EOT
-->
								<a href="u.php?action=show&uid=$read[authorid]" target="_blank" >$read[face]</a>
<!--
EOT;
}print <<<EOT
-->
							</td>
							<td style="vertical-align:top"><span id="sf_$read[lou]"></span></td>
						</tr>
					</table>
				</div>
				<div style="padding-left:12px;padding-bottom:8px;">
					<span style="color:#000;">級別: {$read[level]}</span><br />
					<img src="$imgpath/$stylepath/level/$read[lpic].gif" style="margin:.2em 0 .2em 0;display:block"/>
					$read[medals]
<!--
EOT;
$style = '';
if($db_menu>3){print <<<EOT
-->
					<span class="user-info" id="showface_$read[lou]" style="display:none">
						<span class="user-infoWrap"><span class="co"></span>
							<div class="listread">
								<ul>
<!--
EOT;
}else{print <<<EOT
-->
					<span class="user-info2" id="showface_$read[lou]">
						<span class="user-infoWrap2">
							<div class="listread">
								<ul>
<!--
EOT;
}if($db_hackdb['blog'][2] && $bg_ifopen){print <<<EOT
-->
									<li title="進入個人主頁"><a href="$bg_blogurl/blog.php?bbsuid=$read[authorid]" style="cursor:pointer;" target="_blank"><div class="readblog">個人主頁</div></a></li>
<!--
EOT;
}print <<<EOT
-->
									<li title="查看作者資料"><a href="u.php?action=show&uid=$read[authorid]" style="cursor:pointer;"><div class="readprofile">作者資料</div></a></li>
									<li title="發送短消息"><a onclick="sendmsg('pw_ajax.php?action=msg&touid=$read[authorid]','','sf_$read[lou]')" style="cursor:pointer;"><div class="readmessage">發送短消息</div></a></li>
<!-- 									<li title="加為好友"><a onclick="sendmsg('pw_ajax.php?action=addfriend&touid=$read[authorid]','','sf_$read[lou]')" style="cursor:pointer"><div class="readonline">加為好友</div></a></li> -->
<!--
EOT;
if($groupid!='guest' && $db_hackdb['toolcenter'][1]){print <<<EOT
-->
									<li  title="對該用戶使用道具"><a onclick="sendmsg('pw_ajax.php?action=usertool&uid=$read[authorid]','','sf_$read[lou]')" style="cursor:pointer"><div class="readmagic">使用道具</div></a></li>
<!--
EOT;
}if($read['oicq']){print <<<EOT
-->
									<li title="QQ:$read[oicq]"><a href="http://wpa.qq.com/msgrd?V=1&Uin=$read[oicq]&Site=$db_bbsname&Menu=yes" style="cursor:pointer;" target="_blank"><div class="readqq">QQ聯系</div></a></li>
<!--
EOT;
}if ($read['aliww']) {print <<<EOT
-->
									<li title="阿里旺旺:$read[aliww]"><a href="http://amos.im.alisoft.com/msg.aw?uid=$read[aliww]&site=cntaobao" style="cursor:pointer;" target="_blank"><div class="readww">阿里旺旺</div></a></li>
<!--
EOT;
}print <<<EOT
-->
								</ul>
							</div>
							<div class="c" style="width:120px;height:5px;"></div>
							UID: <span class="f12">$read[authorid]</span><br />
							精華:
<!--
EOT;
if($read['digests']){print <<<EOT
-->
							<a href="search.php?authorid=$read[authorid]&digest=1" target="_blank" class="s4">$read[digests]</a>
<!--
EOT;
}else{print <<<EOT
-->
							<span class="s4">$read[digests]</span>
<!--
EOT;
}print <<<EOT
--><br />
							發帖: <span class="s1 f12">$read[postnum]</span><br />
							$db_rvrcname: <span class="s2 f12">$read[aurvrc] $db_rvrcunit</span><br />
							$db_moneyname: <span class="s3 f12">$read[money] $db_moneyunit</span><br />
<!--
EOT;
if($db_ads){print <<<EOT
-->
							$db_creditname: <span class="s1 f12">$read[credit] $db_creditunit</span><br />
<!--
EOT;
}if($db_showcustom){
foreach($_CREDITDB as $k=>$v){
if(strpos($db_showcustom,",$k,")!==false){
!$customdb[$read['authorid']][$k] && $customdb[$read['authorid']][$k]=0;
print <<<EOT
-->
							$v[0]: <span class="s2 f12">{$customdb[$read[authorid]][$k]} $v[1]</span><br />
<!--
EOT;
}}}if($customfield){
foreach($customfield as $k=>$val){
if($val['viewinread']){
if($val['viewright']&&$winduid!=$read['authorid']&&strpos(",$val[viewright],",",$groupid,")===false){
continue;
}$field="field_".(int)$val[id];
if($val[type]==3){
foreach(explode("\n",$val['options']) as $k=>$v){
list($k,$v)=explode('=',$v);
if($read[$field]==$k){
$read[$field]=$v;
}}}print <<<EOT
-->
							$val[title]: $read[$field]<br />
<!--
EOT;
}}}if($read['customdata']){
foreach($read['customdata'] as $k => $val){
if($custominfo[$k][2]){
$custominfo[$k][2]=str_replace("{{$k}}",$val,$custominfo[$k][2]);
$custominfo[$k][4] && $val=$custominfo[$k][4];
$val="<a href=\"{$custominfo[$k][2]}\" target=\"_blank\">$val</a>";
}print <<<EOT
-->
							{$custominfo[$k][0]}: $val<br />
<!--
EOT;
}}if($db_showcolony && $colonydb[$read[authorid]]){
$v=$colonydb[$read[authorid]];
print <<<EOT
-->
							{$db_hackdb[colony][0]}: <a href="hack.php?H_name=colony&cyid=$v[id]&job=view" target="_blank">$v[cname]</a><br />
<!--
EOT;
}if($db_ifonlinetime){print <<<EOT
-->
							在線時間: $read[ontime](時)<br />
<!--
EOT;
}print <<<EOT
-->
							注冊時間: <span class="gray">{$read[regdate]}</span><br />最後登錄: <span class="gray">{$read[lastlogin]}</span>
						</span>
					</span>
				</div>
			</th>
			<th height="100%" class="r_one" valign="top" id="td_$read[pid]" style="padding:0px;border:0;overflow:hidden">
				<a name="post_$read[pid]"></a>
				<div class="tiptop">
					<span class="fl">
<!--
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>&nbsp;
<!--
EOT;
} else { print<<<EOT
-->
	<a class="s3" 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 bianji">| <a href="post.php?action=modify&fid=$fid&tid=$tid&pid=$read[pid]&article=$read[lou]" id="modify_$read[pid]" onclick="return sendurl(this,4,'',event)">編輯</a></div>
<!--
EOT;
}print <<<EOT
-->
					<div class="fr" style="overflow:hidden;">
<!--
EOT;
if(is_numeric($uid)){print <<<EOT
-->
						<a href="read.php?tid=$tid" title="顯示全部帖子">全看</a> |
<!--
EOT;
}else{
if($read['lou']==0){print <<<EOT
-->
						<a href="read.php?tid=$tid&uid=$read[authorid]" title="只看樓主的所有帖子">只看樓主</a> |
<!--
EOT;
}else{print <<<EOT
-->
						<a href="read.php?tid=$tid&uid=$read[authorid]" title="只看該作者的所有回復">只看該作者</a> |
<!--
EOT;
}}if($authorid==$winduid && $read['authorid']!=$authorid && $_G['leaveword']){print <<<EOT
-->
						<a style="cursor:pointer;" onclick="sendmsg('pw_ajax.php?action=leaveword&tid=$tid&pid=$read[pid]','',this.id)" id="word_$read[pid]" title="樓主留言" class="s3">留言</a>
<!--
EOT;
}print <<<EOT
-->
						<a style="cursor:pointer" onclick="fontsize('small','$read[pid]')">小</a> <a style="cursor:pointer" onclick="fontsize('middle','$read[pid]')">中</a> <a style="cursor:pointer" onclick="fontsize('big','$read[pid]')">大</a>
					</div>
					<div class="c"></div>
				</div>
				<div class="c"></div>

<!--
EOT;
if($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]&nbsp;$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-left:15px;" 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" 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>
				<div class="c"></div>
<!--
EOT;
if($read['signature']){print <<<EOT
-->
				<div class="sigline"></div>
				<div class="signature" style="max-height:{$db_signheight}px;maxHeight:{$db_signheight}px; overflow:hidden;"><table width="100%"><tr><td>$read[signature]</td></tr></table></div>
<!--
EOT;
}print <<<EOT
-->
				<div class="tipad">
					<div class="c"></div>
<span class="fr gray" title="$read[ipfrom]">$read[ip]
<!--
EOT;
if($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="remind_$read[pid]" style="cursor:pointer" onclick="ajax.send('masingle.php?action=inspect&fid=$fid&tid=$tid&pid=$read[lou]&ajax=1','',ajax.guide)" title="標記版主已閱" >已閱</a>
<!--
EOT;
}print <<<EOT
-->
						<a href="javascript:scroll(0,0)" title="頂端">頂端</a>
					</span>
					<ul class="fl readbot">
<!--
EOT;
if($read['lou']==0){print <<<EOT
-->
						<li class="huifu"><a title="回復此樓" style="cursor:pointer;" onclick="postreply('回 樓主($read[author]) 的帖子');">回復</a></li>
<!--
EOT;
}else{print <<<EOT
-->
						<li class="huifu"><a title="回復此樓" style="cursor:pointer;" onclick="postreply('回 $read[lou]樓($read[author]) 的帖子');">回復</a></li>
<!--
EOT;
}print <<<EOT
-->
						<li class="yinyong"><a href="post.php?action=quote&fid=$fid&tid=$tid&pid=$read[pid]&article=$read[lou]&page=$page" onclick="return sendurl(this,4,'',event)" id="quote_$read[pid]" title="引用回復這個帖子">引用</a></li>
<!--
EOT;
if($admincheck || $_G['markable']){print <<<EOT
-->
						<li class="ping"><a id="showping_$read[pid]" href="operate.php?action=showping&tid=$tid&pid=$read[pid]&page=$page" onclick="return sendurl(this,8)" title="評分">評分</a></li>
<!--
EOT;
}if($groupid!='guest' && $read['lou']==0){print <<<EOT
-->
						<li class="shou"><a class="fn" style="cursor:pointer;" onclick="sendmsg('pw_ajax.php?action=favor&tid=$tid','',this.id)" id="favor" title="收藏該主題">收藏</a></li>
<!--
EOT;
}print <<<EOT
-->
					</ul>
<!--
EOT;
if($groupid!='guest'){print <<<EOT
-->
					<div class="content-dropB"><a id="td_read_$read[pid]" class="dropB">更多</a></div>
<!--
EOT;
}print <<<EOT
-->
					<div class="c"></div>
				</div>
			</th>
		</tr>
	</table>
</div>
<div id="menu_read_$read[pid]" class="menu 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="fl pages"><ul><li><a href="job.php?action=previous&fid=$fid&tid=$tid&fpage=$fpage&goto=previous" class="fn">上一主題</a></li><li style="border-left:1px solid $tdcolor;" class="f_one"><a href="job.php?action=previous&fid=$fid&tid=$tid&fpage=$fpage&goto=next" class="fn">下一主題</a></li></ul></span>
	<span class="fl">$pages$db_union[5]</span>
	<div class="c"></div>
</div>
<div class="c"></div>
<div class="bdbA">
	<div id="breadcrumbs" style="margin-top:0px;">
<span class="crumbs-item" style="padding:0 .7em 0 .3em"><img style="margin-top:6px;cursor:pointer" src="$imgpath/$stylepath/thread/home-old.gif" /></span>

<a href="$db_bfn" class="crumbs-item gray3"><i> </i>$db_bbsname</a><a href="thread.php?fid=$fid&page=$fpage" class="crumbs-item gray3"><i> </i>$foruminfo[name]</a>
	     <div class="fr"  style="margin-top:1px;">
<!--
EOT;
if($winduid){print <<<EOT
-->
<a class="bta fr" style="height:14px;line-height:14px;" href="javascript:;" id="readlog" onclick="sendmsg('pw_ajax.php?action=readlog','',this.id);">帖子瀏覽記錄<img src="$imgpath/$stylepath/menu-down.gif"  align="absmiddle"/></a>
<a class="bta fr" style="height:14px;line-height:14px;" href="javascript:;" id="threadlog" onclick="sendmsg('pw_ajax.php','action=threadlog',this.id);">版塊瀏覽記錄<img src="$imgpath/$stylepath/menu-down.gif" align="absmiddle"/></a>
<!--
EOT;
}print <<<EOT
-->
	     </div>
	</div>
</div>
<div class="c"></div>
<!--
EOT;
if($db_windpost['checkurl']){print<<<EOT
-->
<div id="checkurl" class="menu 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
-->
<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;
}?>-->