<?exit?>
{template site_header}

<div id="navigation" class="simplepage">
	<p>您的位置：
		<a href="{S_URL}" target="_self">首頁</a>
		&gt;&gt; 查看評論
	</p>
	<h2>查看評論</h2>
</div>
	<div id="commentlist">
		<h3 style="text-align: center;"><strong>評論 &lt;&lt; <a href="#action/viewnews/itemid/$item[itemid]#">$item[subject]</a> &gt;&gt;</strong></h3>
		<h5 style="margin: 1em 0; font-size: 1em;">
			查看數: $item[viewnum] / 
			評論數: $item[replynum] / 
			好評分: $item[goodrate] / 
			差評分: $item[badrate]
		</h5>
		<ul class="messagelist">
			<!--{loop $iarr $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">(第{$value[num]}樓, #date("Y-n-d H:i:s", $value["dateline"])#, 評 <strong>$value[rates]</strong> 分)</span></h4>
				<p>$value[message]</p>
			</li>
			<!--{/loop}-->
		</ul>
	</div>

	<div class="pagediv">
		$multipage
	</div>

	<div id="comment" class="cleanblock">
		<h3>我來說兩句</h3>
		<form id="postcomm" action="#action/viewcomment/itemid/$item[itemid]/php/1#" method="post">
			<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"/></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="$item[itemid]" />
		</form>
	</div>
{template site_footer}