<?exit?>
{template bbs_header}
<!--{eval $ads3 = getad('system', 'bbs', '3');}-->
<!--{if !empty($ads3['pageheadad'])}-->
<div class="adbanner">$ads3[pageheadad]</div>
<!--{/if}-->
<!-- Content內容 -->
<div class="content topcontent">
	<div class="mainarea">
		<p id="nav">您的位置：<a href="{S_URL}/">$_SCONFIG[sitename]</a>
			<!--{loop $guidearr $value}-->
			&gt;&gt; <a href="$value[url]">$value[name]</a>
			<!--{/loop}-->
		</p>
		
		<div id="articledetail" class="block">
			<p id="articlectrl"><span>字體:
				<a href="javascript:;" onclick="doZoom('12');">小</a>
				<a href="javascript:;" onclick="doZoom('14');">中</a>
				<a href="javascript:;" onclick="doZoom('16');">大</a></span>
				&nbsp;
			</p>
			<h1 id="articletitle">$thread[subject]</h1>
			<p id="articleinfo">
				$thread[author] 發表於: #date('Y-n-d H:i', $thread["dateline"])# 
				來源: <a href="{S_URL}/">$_SCONFIG[sitename]</a>
			</p>
			
			<!--{if !empty($ads3['pagecenterad'])}-->
			<div class="adbox">
				$ads3[pagecenterad]
			</div>
			<!--{/if}-->

			<div id="articlebody">
				$thread[message]
			
				<!--{if !empty($thread['attachments'])}-->
				<div class="imginlog">
					<!--{loop $thread['attachments'] $value}-->
					<!--{if ($value['isimage'])}-->
					<p><img src="$value[attachment]"><br />$value[filename]</p>
					<!--{else}-->
					<p><img src="{S_URL}/images/base/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}-->
			</div>
		</div>
		
		<div id="commentlist" class="block">
			<!--{if $iarr}-->
			<h2>最新回復</h2>
			<dl>
				<!--{loop $iarr $key $post}-->
				<dt>$post[author] at #date("Y-n-d H:i:s", $post["dateline"])#</dt>
				<dd>
					<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="$post[attachment]"><br />$post[filename]</p>
						<!--{else}-->
						<p><img src="{S_URL}/images/base/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}-->
				</dd>
				<!--{/loop}-->
			</dl>
			<!--{/if}-->
			<div class="pages">
				<div class="xspace-page">
					<a href="{B_URL}/viewthread.php?tid=$thread[tid]" target="_blank">查看全部回復</a>
					<a href="{B_URL}/post.php?action=reply&tid=$thread[tid]" target="_blank">我也來說兩句</a>
				</div>
			</div>
		</div>
	</div>

	<div class="side">

		<!--最新更新主題-->
		<!--{block name="bbsthread" parameter="fid/$thread[fid]/limit/0,10/subjectlen/36/subjectdot/1/cachetime/24500/order/dateline DESC/cachename/newthread/tpl/data"}-->
		<!--{if $_SBLOCK['newthread']}-->
		<div class="block">
			<h3>最新更新主題</h3>
			<ul class="msgtitlelist">
				<!--{loop $_SBLOCK['newthread'] $value}-->
				<li><a href="$value[url]">$value[subject]</a></li>
				<!--{/loop}-->
			</ul>
		</div>
		<!--{/if}-->

		<!--月度關注熱點-->
		<!--{block name="bbsthread" parameter="fid/$thread[fid]/dateline/2592000/order/views DESC/limit/0,10/subjectlen/36/subjectdot/1/cachetime/97200/cachename/hotthread/tpl/data"}-->
		<!--{if $_SBLOCK['hotthread']}-->
		<div class="block">
			<h3>月度關注熱點</h3>
			<ul class="msgtitlelist">
				<!--{loop $_SBLOCK['hotthread'] $value}-->
				<li><a href="$value[url]">$value[subject]</a></li>
				<!--{/loop}-->
			</ul>
		</div>
		<!--{/if}-->
		
	</div>		
</div>
<!-- /Content -->

<!--{if !empty($ads3['pagefootad'])}-->
<div class="adbox">$ads3[pagefootad]</div>
<!--{/if}-->

<script language="javascript" type="text/javascript">
<!--
	addImgLink("articlebody");
	addImgLink("commentlist");
//-->
</script>
<!--{if !empty($ads3['pagemovead']) || !empty($ads3['pageoutad'])}-->
<!--{if !empty($ads3['pagemovead'])}-->
<div id="coupleBannerAdv" style="z-index: 10; position: absolute; width:100px;left:10px;top:10px;display:none">
	<div style="position: absolute; left: 6px; top: 6px;">
		$ads3[pagemovead]
		<br />
		<img src="{S_URL}/images/base/advclose.gif" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('coupleBannerAdv');">
	</div>
	<div style="position: absolute; right: 6px; top: 6px;">
		$ads3[pagemovead]
		<br />
		<img src="{S_URL}/images/base/advclose.gif" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('coupleBannerAdv');">
	</div>
</div>
<!--{/if}-->
<!--{if !empty($ads3['pageoutad'])}-->
<div id="floatAdv" style="z-index: 10; position: absolute; width:100px;left:10px;top:10px;display:none">
	<div id="floatFloor" style="position: absolute; right: 6px; bottom:-700px">
		$ads3[pageoutad]
	</div>
</div>
<!--{/if}-->
<script type="text/javascript" src="{S_URL}/include/js/floatadv.js"></script>
<script type="text/javascript">
<!--{if !empty($ads3['pageoutad'])}-->
var lengthobj = getWindowSize();
lsfloatdiv('floatAdv', 0, 0, 'floatFloor' , -lengthobj.winHeight).floatIt();
<!--{/if}-->
<!--{if !empty($ads3['pagemovead'])}-->
lsfloatdiv('coupleBannerAdv', 0, 0, '', 0).floatIt();
<!--{/if}-->
</script>
<!--{/if}-->

{template site_footer}
