<?exit?>
{template bbs_header}

<!--{if !empty($_SCONFIG['viewadcenter'])}-->
<div class="content" style="background: none; margin-bottom: 0.5em;">
	$_SCONFIG[viewadcenter]
</div>
<!--{/if}-->

<!-- Content內容 -->
<div class="contentR">
	<div class="sideR">

		<!--月度關注熱點-->
		<!--{block name="bbsthread" parameter="fid/$thread[fid]/dateline/2592000/order/views DESC/limit/0,10/cachetime/17200/cachename/hotthread/tpl/data"}-->
		<!--{if $_SBLOCK['hotthread']}-->
		<div class="sideblock">
			<h3>月度關注熱點</h3>
			<dl>
				<!--{loop $_SBLOCK['hotthread'] $value}-->
				<dt><a href="$value[url]">$value[subject]</a></dt>
				<!--{/loop}-->
			</dl>
		</div>
		<!--{/if}-->

		<!--最新更新主題-->
		<!--{block name="bbsthread" parameter="fid/$thread[fid]/limit/0,10/cachetime/4500/order/dateline DESC/cachename/newthread/tpl/data"}-->
		<!--{if $_SBLOCK['newthread']}-->
		<div class="sideblock">
			<h3>最新更新主題</h3>
			<dl>
				<!--{loop $_SBLOCK['newthread'] $value}-->
				<dt><a href="$value[url]">$value[subject]</a></dt>
				<!--{/loop}-->
			</dl>
		</div>
		<!--{/if}-->
		
	</div>
	<div class="mainarea">
		<div id="articledetail">
			<h1 class="articletitle">$thread[subject]</h1>
			<p class="articleinfo smalltxt">發表時間: #date('Y-n-d H:i', $thread["dateline"])# &nbsp;&nbsp; 作者: $thread[author] &nbsp;&nbsp; 來源: $_SCONFIG[sitename]</p>
			<p class="articlectrl">
				字體:
				<a href="javascript:;" onclick="doZoom('12');" target="_self">小</a>
				<a href="javascript:;" onclick="doZoom('14');" target="_self">中</a>
				<a href="javascript:;" onclick="doZoom('16');" target="_self">大</a> |
				<a href="javascript:;" onclick="doPrint();" class="btnprint" target="_self">打印</a>
			</p>
			<div id="articlebody">
				$thread[message]

				<!--{if !empty($_SCONFIG['viewadmessage'])}-->
				<br />
				$_SCONFIG[viewadmessage]
				<br />
				<!--{/if}-->
			
				<!--{if !empty($thread['attachments'])}-->
				<div class="imginlog">
					<!--{loop $thread['attachments'] $value}-->
					<!--{if ($value['isimage'])}-->
					<p><img src="{B_A_URL}/$value[attachment]"><br />$value[filename]</p>
					<!--{else}-->
					<p><img src="{S_URL}/images/system/haveattach.gif" align="absmiddle" border="0"><a href="{B_URL}/attachment.php?aid=$value[aid]" target="_blank"><strong>$value[filename]</strong></a><br />($value[dateline], Size: $value[attachsize], Downloads: $value[downloads])</p>
					<!--{/if}-->
					<!--{/loop}-->
				</div>
				<!--{/if}-->
				<br />
			</div>
		</div>
		<div id="commentlist">
			<h3>
				<a href="{B_URL}/post.php?action=reply&tid=$thread[tid]" target="_blank" class="more">我也來說兩句</a>
				<a href="{B_URL}/viewthread.php?tid=$thread[tid]" target="_blank" class="more" style="margin-right: 0.5em;">查看全部評論</a>
				<strong>相關評論</strong>
			</h3>
			<ul class="messagelist">
			<!--{loop $iarr $key $post}-->
				<li>
					<h4>$post[author] <span class="smalltxt">(#date("Y-n-d H:i:s", $post["dateline"])#)</span></h4>
					<div>$post[message]</div>
					<!--{if !empty($item['posts'][$post['pid']]['attachments'])}-->
					<div class="imginlog">
					<!--{loop $item['posts'][$post['pid']]['attachments'] $post}-->
					<!--{if ($post['isimage'])}-->
					<p><img src="{B_A_URL}/$post[attachment]"><br />$post[filename]</p>
					<!--{else}-->
					<p><img src="{S_URL}/images/system/haveattach.gif" align="absmiddle" border="0"><a href="{B_URL}/attachment.php?aid=$post[aid]" target="_blank"><strong>$post[filename]</strong></a><br />($post[dateline], Size: $post[attachsize], Downloads: $post[downloads])</p>
					<!--{/if}-->
					<!--{/loop}-->
						</div>
					<!--{/if}-->
				</li>
			<!--{/loop}-->
			</ul>
			<div class="pages"><table summary="" class="xspace-page"><tr><td><a href="{B_URL}/viewthread.php?tid=$thread[tid]" target="_blank">查看全部評論</a></td><td><a href="{B_URL}/post.php?action=reply&tid=$thread[tid]" target="_blank">我也來說兩句</a></td></tr></table></div>
		</div>
	</div>
</div>
<!-- /Content -->

<script language="javascript" type="text/javascript">
<!--
	addImgLink("articlebody");
	addImgLink("commentlist");
//-->
</script>
<!--{if !empty($_SCONFIG['viewadfloating']) || !empty($_SCONFIG['viewadside'])}-->
<script type="text/javascript" src="{S_URL}/include/js/floatadv.js"></script>
<script type="text/javascript">
<!--{if !empty($_SCONFIG['viewadfloating'])}-->
var lengthobj = getWindowSize();
lsfloatdiv('floatAdv', 0, 0, "<div style=\"position: absolute; right: 6px; bottom: -"+lengthobj.winHeight+"px;\"><!--{eval echo jsstrip($_SCONFIG['viewadfloating']);}--></div>").floatIt();
<!--{/if}-->
<!--{if !empty($_SCONFIG['viewadside'])}-->
lsfloatdiv('coupleBannerAdv', 0, 0, "<div style=\"position: absolute; left: 6px; top: 6px;\"><!--{eval echo jsstrip($_SCONFIG['viewadside']);}--><br><img src=\"{S_URL}/images/system/advclose.gif\" onMouseOver=\"this.style.cursor='hand'\" onClick=\"closeBanner('coupleBannerAdv');\"></div><div style=\"position: absolute; right: 6px; top: 6px;\"><!--{eval echo jsstrip($_SCONFIG['viewadside']);}--><br><img src=\"{S_URL}/images/system/advclose.gif\" onMouseOver=\"this.style.cursor='hand'\" onClick=\"closeBanner('coupleBannerAdv');\"></div>").floatIt();
<!--{/if}-->
</script>
<!--{/if}-->

{template bbs_footer}
