<?exit?>
<h1 class="xspace-title">$item[subject]</h1>
<p class="xspace-smalltxt">
	#date("Y-m-d H:i:s",$item["dateline"])#
	<!--{if !empty($item['digest'])}--> / 精華($item[digest])<!--{/if}-->
	<!--{if !empty($item['top'])}-->/ 置頂($item[top])<!--{/if}-->
	<!--{if empty($item['allowreply'])}-->/ 不允許\評論<!--{/if}-->
	<!--{if !empty($item['itemtypename'])}-->/ 個人分類：<a href="#uid/$item[uid]/action/spacelist/type/$item[type]/itemtypeid/$item[itemtypeid]#">$item[itemtypename]</a><!--{/if}-->
</p>

<div id="xspace-fileinfo">
	<ul id="xspace-filebaseinfo" class="xspace-propertylist">
		<!--{if $item['filesize']}--><li><strong>文件大小</strong>: $item[filesize] $item[filesizeunit]</li><!--{/if}-->
		<!--{if $item['version']}--><li><strong>文件版本</strong>: $item[version]</li><!--{/if}-->
		<!--{if $item['producer']}--><li><strong>開發商</strong>: $item[producer]</li><!--{/if}-->
		<!--{if $item['downfrom']}--><li><strong>文件來源</strong>: $item[downfrom]</li><!--{/if}-->
		<!--{if $item['language']}--><li><strong>界面語言</strong>: $item[language]</li><!--{/if}-->
		<!--{if $item['permission']}--><li><strong>授權方式</strong>: $item[permission]</li><!--{/if}-->
		<!--{if $item['system']}--><li><strong>運行平台</strong>: $item[system]</li><!--{/if}-->
	</ul>
</div>

<!--{if !empty($item[custom][name])}-->
<div class="xspace-addoninfo xspace-msgmodule">
	<h5>$item[custom][name]</h5>
	<ul class="xspace-propertylist">
	<!--{loop $item[custom][key] $ckey $cvalue}-->
		<li><strong>$cvalue[name]</strong>:$item[custom][value][$ckey]</li>
	<!--{/loop}-->
	</ul>
</div>
<!--{/if}-->

<div id="xspace-showmessage" class="xspace-itemmessage">
	$item[message]
</div>

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

<div class="xspace-filedown xspace-msgmodule">
	<!--{if $item[attach]}-->
	<div class="xspace-localdown">
		<h5>本地下載</h5>
		<ul class="xspace-list">
			<!--{loop $item[attach] $value}-->
			<li><a href="{S_URL}/batch.download.php?aid=$value[aid]">$value[subject]</a></li>
			<!--{/loop}-->
		</ul>
	</div>
	<!--{/if}-->

	<!--{if $item[remoteurl]}-->
	<div class="xspace-remotedown">
		<h5>遠程下載</h5>
		<ul class="xspace-list">
			<!--{loop $item[remoteurl] $value}-->
			<li><a href="$value[remoteurl]" target="_blank">$value[remoteurlname]</a></li>
			<!--{/loop}-->
		</ul>
	</div>
	<!--{/if}-->
</div>

<!--{if !empty($item['tracks'])}-->
<div id="xspace-tracks" class="xspace-msgmodule">
	<h5>
	<a href="{S_URL}/batch.track.php?itemid=$item[itemid]" target="_blank" title="查看全部腳印" style="float:right;" class="xspace-smalltxt">全部腳印</a>
	<a href="javascript:;" onclick="javascript:deletetrack($item[itemid]);" target="_self" title="清除我的腳印" style="float:right;margin-right:0.5em;" class="xspace-smalltxt">不留腳印</a>
	留下腳印:
	</h5>
	<ul class="xspace-list">
	<!--{loop $item['tracks'] $value}-->
	<li class="xspace-avatarlist xspace-imgstyle"><a href="$value[url]" title="$value[username]曾經在#date("Y-n-d", $value["dateline"])#訪問過該主題" target="_blank"><img src="$value[photo]" alt="$value[username]曾經在#date("Y-n-d", $value["dateline"])#訪問過該主題" /></a><p><a href="$value[url]" target="_blank">$value[username]</a></p></li>
	<!--{/loop}-->
	</ul>
</div>
<!--{/if}-->

<!--{if !empty($item['relatives'])}-->
<div id="xspace-relatives" class="xspace-msgmodule">
	<h5>相關閱\讀:</h5>
	<ul class="xspace-list">
	<!--{loop $item['relatives'] $value}-->
	<li><a href="$value[url]" target="_blank">$value[subject]</a> <span class="xspace-smalltxt">(<a href="{S_URL}/?$value[uid]" target="_blank">$value[username]</a>, #date("Y-n-d", $value["dateline"])#)</span></li> 
	<!--{/loop}-->
	</ul>
</div>
<!--{/if}-->

<!--{if !empty($_SCONFIG['allowtrackback'])}-->
<div id="xspace-tburl" class="xspace-msgmodule">
	<h5>TrackBack:</h5>
	<ul class="xspace-list">
		<li><strong>GBK:</strong><a href="{S_URL}/trackback.php?id=$item[itemid]&amp;encode=gbk" onclick="setCopy(this.href);return false;">$newsiteurl/trackback.php?id=$item[itemid]&amp;encode=gbk</a></li>
		<li><strong>UTF8:</strong><a href="{S_URL}/trackback.php?id=$item[itemid]&amp;encode=utf-8" onclick="setCopy(this.href);return false;">$newsiteurl/trackback.php?id=$item[itemid]&amp;encode=utf-8</a></li>
	</ul>
</div>
<!--{/if}-->

<p class="xspace-itemlinks">
	<a href="javascript:;" onclick="showajaxdiv('emailfriend', '{S_URL}/batch.common.php?action=emailfriend&amp;itemid=$item[itemid]', 300, 150);">推薦</a>
	<a href="javascript:;" onclick="joinfavorite($item[itemid]);">收藏</a>
	<a href="{B_URL}/post.php?action=import&amp;itemid=$item[itemid]" target="_blank">導入論壇</a>
	<a href="javascript:;" onclick="showajaxdiv('grade', '{S_URL}/batch.common.php?action=grade&amp;itemid=$item[itemid]', 200, 100);">等級($item[grade])</a>
	<a href="{S_URL}/spacecp.php?action=spacefiles&amp;op=edit&amp;itemid=$item[itemid]&amp;openwindow=1">編輯</a>
	<a href="{S_URL}/batch.manage.php?itemid=$item[itemid]" target="_blank">管理</a>
	<em>查看($item[viewnum])</em>
	<em>評論($item[replynum])</em>
	評分(<span class="xspace-rategood" title="好評">$item[goodrate]</span>/<span class="xspace-ratebad" title="差評">$item[badrate]</span>)
</p>

<p class="xspace-itemtag">TAG: 
	<!--{loop $item[relativetags] $value}-->
	<a href="#action/tag/tagname/$value#" target="_blank">$value</a>
	<!--{/loop}-->
</p>

<div id="xspace-itemreply">
	<!--{if $commentlist}-->
	<!--{loop $commentlist $value}-->
	<dl id="xspace-comment{$value[cid]}">
		<dt>
			<!--{if empty($value['spacename'])}-->
			<!--{if $value['url']}-->
			<img src="{S_URL}/images/system/pic_trackback.gif" class="xspace-signavatar xspace-imgstyle" alt="TrackBack" />
			<!--{else}-->
			<img src="$value[photo]" class="xspace-signavatar xspace-imgstyle" alt="" />
			<!--{/if}-->
			<!--{else}-->
			<a href="#uid/$value[authorid]/action/space/domain/$value[domain]#" target="_blank"><img src="$value[photo]" class="xspace-signavatar xspace-imgstyle" alt="$value[spacename]" /></a>
			<!--{/if}-->
			<a href="javascript:;" onclick="javascript:deletecomment($value[cid]);" title="刪除留言" class="xspace-del">刪除</a>
			<!--{if empty($value['spacename'])}-->
			$value[author]
			<!--{else}-->
			<a href="#uid/$value[authorid]/action/space/domain/$value[domain]#" target="_blank">$value[author]</a>
			<!--{/if}-->
			<!--{if $value['url']}-->引用於 <a href="$value[url]" target="_blank">$value[subject]</a><!--{/if}-->
			<span class="xspace-smalltxt">發佈於#date("Y-m-d H:i:s", $value["dateline"])#</span>
			<!--{if !empty($value['rates'])}--><span class="xspace-smalltxt">評$value[rates]分</span><!--{/if}-->
		</dt>
		<dd>
			$value[message]
		</dd>
	</dl>
	<!--{/loop}-->
	<!--{/if}-->
	<div id="xspace-multipage-div" class="xspace-multipage"><a href="javascript:;" onclick="javascript:showcomment(1);">查看全部評論</a></div>
</div>

<div id="xspace-itemform">
	<form id="xspace-commentform" action="{S_URL}/batch.comment.php" method="post" target="_self">
		<fieldset>
			<legend>我來說兩句</legend>
			<p id="xspace-rates" class="xspace-rates0">
				<label>評分</label>
				<a id="xspace-rate-5" href="javascript:;" onclick="setRate('-5');">-5</a>
				<a id="xspace-rate-3" href="javascript:;" onclick="setRate('-3');">-3</a>
				<a id="xspace-rate-1" href="javascript:;" onclick="setRate('-1');">-1</a>
				<a id="xspace-rate0" href="javascript:;" onclick="setRate('0');">-</a>
				<a id="xspace-rate1" href="javascript:;" onclick="setRate('1');">+1</a>
				<a id="xspace-rate3" href="javascript:;" onclick="setRate('3');">+3</a>
				<a id="xspace-rate5" href="javascript:;" onclick="setRate('5');">+5</a>
				<input type="hidden" id="xspace-ratevalue" name="rates" value="0" />
			</p>
			<p>
				<label for="xspace-commentmsg">內容</label>
				<textarea id="xspace-commentmsg" name="message"></textarea>
			</p>
			<p>
				<label for="xspace-nickname">暱稱</label>
				<input type="text" size="20" id="xspace-nickname" name="nickname" value="" />
			</p>
			<p class="xspace-seccodeline">
				<label for="xspace-seccode">驗證</label>
				<input type="text" size="10" id="xspace-seccode" name="seccode" value="" />
				<label for="xspace-seccode"><img id="xspace-imgseccode" src="{S_URL}/batch.seccode.php" onclick="javascript:newseccode(this);" alt="" title="看不清？點擊換一個" /></label>
			</p>
			<p>
				<input type="hidden" name="itemid" value="$itemid" />
				<button value="true" type="submit" name="submitcomment" id="xspace-btncomment">提交評論</button>
			</p>
		</fieldset>
	</form>
</div>

<script language="javascript" type="text/javascript">
<!--
function showcomment(page) {
	var x = new Ajax('statusid', 'XML');
	x.get('{S_URL}/batch.comment.php?action=view&itemid=$item[itemid]&page='+page, function(s) {
			getbyid("xspace-itemreply").innerHTML = s.lastChild.firstChild.nodeValue;
	});
}
function deletecomment(cid) {
	var x = new Ajax('statusid', 'XML');
	x.get('{S_URL}/batch.comment.php?action=delete&cid='+cid, function(s) {
			alert(s.lastChild.firstChild.nodeValue);
	});
}
function newseccode(obj) {
	obj.src='{S_URL}/batch.seccode.php?'+Math.random(1);
}
addImgLink("xspace-showmessage");
addMediaAction('xspace-showmessage');
//-->
</script>