<?exit?>
{template news_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="spacenews" parameter="catid/$thecat[subcatid]/dateline/2592000/order/i.viewnum DESC/limit/0,10/cachetime/28800/cachename/hotnews/tpl/data"}-->
		<!--{if $_SBLOCK['hotnews']}-->
		<div class="sideblock">
			<h3>月度熱點</h3>
			<dl>
				<!--{loop $_SBLOCK['hotnews'] $value}-->
				<dt><a href="$value[url]">$value[subject]</a></dt>
				<!--{/loop}-->
			</dl>
		</div>
		<!--{/if}-->

		<!--最新更新主題-->
		<!--{block name="spacenews" parameter="catid/$thecat[subcatid]/order/i.dateline DESC/limit/0,10/cachetime/7280/cachename/newnews/tpl/data"}-->
		<!--{if $_SBLOCK['newnews']}-->
		<div class="sideblock">
			<h3>最新更新</h3>
			<dl>
				<!--{loop $_SBLOCK['newnews'] $value}-->
				<dt><a href="$value[url]">$value[subject]</a></dt>
				<!--{/loop}-->
			</dl>
		</div>
		<!--{/if}-->
		
		<!--相關資訊-->
		<!--{if !empty($news[relativeitemids])}-->
		<!--{block name="spacenews" parameter="itemid/$news[relativeitemids]/order/i.dateline DESC/limit/0,20/cachetime/17680/cachename/relativeitem/tpl/data"}-->
		<div class="sideblock">
			<h3>相關閱\讀</h3>
			<dl>
			<!--{loop $_SBLOCK['relativeitem'] $ikey $value}-->
			<dt><a href="$value[url]" target="_blank" title="$value[subjectall]">$value[subject]</a></dt>
			<!--{/loop}-->
			</dl>
		</div>
		<!--{/if}-->
		
	</div>
	<div class="mainarea">

		<div id="articledetail">
			<h1 class="articletitle">$news[subject]</h1>
			<p class="articleinfo smalltxt">發佈時間: #date('Y-n-d H:i', $news["dateline"])# &nbsp;&nbsp; 作者: $news[newsauthor] &nbsp;&nbsp; 來源: $news[newsfrom]</p>
			<p class="articlectrl">
				字體:&nbsp;
				<a href="javascript:doZoom('12');" target="_self">小</a>&nbsp;
				<a href="javascript:doZoom('14');" target="_self">中</a>&nbsp;
				<a href="javascript:doZoom('16');" target="_self">大</a>&nbsp; |
				<a href="{S_URL}/batch.common.php?action=viewnews&amp;op=up&amp;itemid=$news[itemid]&amp;catid=$news[catid]" class="viewnewsup" target="_self">上一篇</a>
				<a href="{S_URL}/batch.common.php?action=viewnews&amp;op=down&amp;itemid=$news[itemid]&amp;catid=$news[catid]" class="viewnewsdown" target="_self">下一篇</a> |
				<a href="javascript:doPrint();" class="btnprint" target="_self">打印</a>
			</p>
			<div id="articlebody">
			
			<!--{if !empty($news[custom][name])}-->
			<div class="addoninfo">
				<h5>$news[custom][name]</h5>
				<ul class="propertylist">
				<!--{loop $news[custom][key] $ckey $cvalue}-->
					<li><strong>$cvalue[name]</strong>:$news[custom][value][$ckey]</li>
				<!--{/loop}-->
				</ul>
			</div>
			<!--{/if}-->

			$news[message]
			<!--{if !empty($_SCONFIG['viewadmessage'])}-->
			<br />
			$_SCONFIG[viewadmessage]
			<br />
			<!--{/if}-->

			<!--{loop $news['attacharr'] $attach}-->
			<br /><a href="$attach[url]" target="_blank"><img src="$attach[thumbpath]" alt="$attach[subject]" /></a><br />$attach[subject]<br />
			<!--{/loop}-->
			<br />

			<!--{if !empty($relativetagarr)}-->
			<br /><strong>TAG:</strong> 
			<!--{loop $relativetagarr $value}-->
			<!--{eval $svalue = rawurlencode($value);}-->
			<a href="#action/tag/tagname/$svalue#" target="_blank">$value</a>
			<!--{/loop}-->
			<!--{/if}-->
			
			</div>
			<div class="pages">$multipage</div>
		</div>
		
		<!--{if !empty($commentlist)}-->
		<div id="commentlist">
			<h3>
				<a href="#action/viewcomment/itemid/$news[itemid]#" class="more" target="_self">查看全部評論($news[replynum])</a>
				<strong>最新評論</strong>
			</h3>
			<ul class="messagelist">
				<!--{loop $commentlist $value}-->
				<li>
					<h4><a href="#action/viewcomment/itemid/$value[itemid]/cid/$value[cid]/op/delete/php/1#" class="more">刪除</a> 
					<!--{if empty($value[authorid])}-->$value[author]<!--{else}--><a href="{B_URL}/viewpro.php?uid=$value[authorid]" target="_blank">$value[author]</a><!--{/if}-->
					 <span class="smalltxt">(#date("Y-n-d H:i:s", $value["dateline"])#, 評 <strong>$value[rates]</strong> 分)</span></h4>
					<p>$value[message]</p>
				</li>
				<!--{/loop}-->
			</ul>
		</div>
		<!--{/if}-->

		<div id="comment" class="cleanblock">
			<h3><a href="#action/viewcomment/itemid/$news[itemid]#" class="more" target="_blank">查看全部評論($news[replynum])</a>我來說兩句</h3>
			<form id="postcomm" action="#action/viewcomment/itemid/$news[itemid]/php/1#" method="post" target="_self">
				<p id="xspace-rates" class="xspace-rates0">
					<label>評分</label>
					<a id="xspace-rate-5" href="javascript:;" onclick="setRate('-5');" target="_self">-5</a>
					<a id="xspace-rate-3" href="javascript:;" onclick="setRate('-3');" target="_self">-3</a>
					<a id="xspace-rate-1" href="javascript:;" onclick="setRate('-1');" target="_self">-1</a>
					<a id="xspace-rate0" href="javascript:;" onclick="setRate('0');" target="_self">-</a>
					<a id="xspace-rate1" href="javascript:;" onclick="setRate('1');" target="_self">+1</a>
					<a id="xspace-rate3" href="javascript:;" onclick="setRate('3');" target="_self">+3</a>
					<a id="xspace-rate5" href="javascript:;" onclick="setRate('5');" target="_self">+5</a>
					<input type="hidden" id="xspace-ratevalue" name="rates" value="0" />
				</p>
				<p><label for="message">內容:</label><textarea id="message" name="message" style="vertical-align: text-top; width: 80%; height: 6em;"></textarea></p>
				<p class="seccodeline"><label for="seccode">驗證:</label><input type="text" id="seccode" name="seccode" value="" size="20" /> <img id="imgseccode" src="{S_URL}/batch.seccode.php" alt="" /></p>
				<p><button type="submit" id="submitcomm" name="submitcomm" value="submit" style="margin-left: 2.8em;">發表評論</button></p>
				<input type="hidden" id="itemid" name="itemid" value="$news[itemid]" />
			</form>
		</div>
		
	</div>
</div>
<!-- /Content -->

<script language="javascript" type="text/javascript">
<!--
	addMediaAction('articlebody');
	addImgLink("articlebody");
//-->
</script>
<!--{if !empty($_SCONFIG['viewadfloating']) || !empty($_SCONFIG['viewadside'])}-->
<script language="javascript" type="text/javascript" src="{S_URL}/include/js/floatadv.js"></script>
<script language="javascript" 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 news_footer}
