<?exit?>
{template news_header}
<div class="content topcontent">
	<div class="mainarea">
		<p id="nav">您的位置：
			<a href="{S_URL}/">首页</a>
			&gt;&gt; 查看评论
		</p>
		
		<div id="articledetail">
			<h1 id="articletitle">评论: <a href="#action/viewnews/itemid/$item[itemid]#">$item[subject]</a></h1>
			<p id="articleinfo">
				查看数: $item[viewnum] |
				评论数: $item[replynum] |
				好评: $item[goodrate] |
				差评: $item[badrate]
			</p>
			<!--{if !empty($_SCONFIG['viewadcenter'])}-->
			<div class="adbox">
				$_SCONFIG[viewadcenter]
			</div>
			<!--{/if}-->
		</div>
		<div id="commentlist">
			<dl>
				<!--{loop $iarr $value}-->
				<dt>
					<span>
						<a href="#action/viewcomment/itemid/$value[itemid]/cid/$value[cid]/op/delete/php/1#">删除</a> 
						<a href="javascript:;" onclick="getQuote($value[cid])">引用</a>
					</span>
					<!--{if empty($value[authorid])}-->$value[author]<!--{else}--><a href="#uid/$value[authorid]#" target="_blank" class="author">$value[author]</a><!--{/if}-->
					&nbsp; post at #date("Y-n-d H:i:s", $value["dateline"])#
				</dt>
				<dd>
					<!--{if empty($value['message'])}-->
					评 <span style="font-size:16px">$value[rates]</span> 分
					<!--{else}-->
					$value[message]
					<!--{/if}-->
				</dd>
				<!--{/loop}-->
			</dl>
				
			<!--{if $multipage}-->
			<div class="pages">
				$multipage
			</div>
			<!--{/if}-->
		</div>
		
		<div id="xspace-rates" class="block">
			<div id="xspace-rates-bg">
				<div id="xspace-rates-star" class="xspace-rates0">&nbsp;</div>
				<div id="xspace-rates-a">
					<a href="javascript:;" onmouseover="rateHover(-5);" onmouseout="rateOut();" onclick="setRateXML('-5', '$item[itemid]');">-5</a>
					<a href="javascript:;" onmouseover="rateHover(-3);" onmouseout="rateOut();" onclick="setRateXML('-3', '$item[itemid]');">-3</a>
					<a href="javascript:;" onmouseover="rateHover(-1);" onmouseout="rateOut();" onclick="setRateXML('-1', '$item[itemid]');">-1</a>
					<a href="javascript:;" onmouseover="rateHover(0);" onmouseout="rateOut();" onclick="setRateXML('0', '$item[itemid]');">-</a>
					<a href="javascript:;" onmouseover="rateHover(1);" onmouseout="rateOut();" onclick="setRateXML('1', '$item[itemid]');">+1</a>
					<a href="javascript:;" onmouseover="rateHover(3);" onmouseout="rateOut();" onclick="setRateXML('3', '$item[itemid]');">+3</a>
					<a href="javascript:;" onmouseover="rateHover(5);" onmouseout="rateOut();" onclick="setRateXML('5', '$item[itemid]');">+5</a>
				</div>
				<input type="hidden" id="xspace-rates-value" name="rates" value="0" />
			</div>
			<p>评分：<span id="xspace-rates-tip">0</span></p>
		</div>
			
		<div id="comment">
			<h2>我来说两句</h2>
			<form id="postcomm" action="#action/viewcomment/itemid/$item[itemid]/php/1#" method="post">
				<p><label for="message">内容:</label><textarea id="message" name="message" onfocus="showcode()" onkeydown="ctlent(event,'postcomm');"></textarea></p>
				<!--{if empty($_SCONFIG['noseccode'])}-->
				<p class="seccodeline"><label for="seccode">验证:</label><input type="text" id="seccode" name="seccode" value="" size="20" /> <img id="xspace-imgseccode" src="{S_URL}/batch.seccode.php" onclick="javascript:newseccode(this);" alt="seccode" title="看不清？点击换一个" /></p>
				<!--{/if}-->
				<p><button type="submit" id="submitcomm" name="submitcomm" value="submit">发表评论</button></p>
				<input type="hidden" id="itemid" name="itemid" value="$item[itemid]" />
			</form>
		</div>
	</div>

	<div class="side">

		<!--月度关注热点-->
		<!--{block name="spacenews" parameter="catid/$item[catid]/dateline/2592000/order/i.replynum DESC/limit/0,10/subjectlen/30/subjectdot/1/cachetime/28800/cachename/hotnews/tpl/data"}-->
		<!--{if $_SBLOCK['hotnews']}-->
		<div class="block">
			<h3>月度评论热点</h3>
			<ul class="msgtitlelist">
				<!--{loop $_SBLOCK['hotnews'] $value}-->
				<li><a href="$value[url]">$value[subject]</a></li>
				<!--{/loop}-->
			</ul>
		</div>
		<!--{/if}-->
		
	</div>
</div>

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

<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/base/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/base/advclose.gif\" onMouseOver=\"this.style.cursor='hand'\" onClick=\"closeBanner('coupleBannerAdv');\"><\/div>").floatIt();
<!--{/if}-->
//-->
</script>
<!--{/if}-->

{template site_footer}