<?exit?>
<!--{if !empty($_SGET['showpro'])}-->
<h3>$space[username]的個人資料</h3>
<div class="xspace-xcard">
	<ul class="xspace-propertylist">
	<!--{loop $space['field'] $key $field}-->
		<!--{if !empty($field)}--><li><strong>$space[title][$key]</strong>: $field</li><!--{/if}-->
	<!--{/loop}-->
	<!--{if !empty($space[province])}-->
		<li><strong>省份</strong>: $space[province]</li>
	<!--{/if}-->
	<!--{if !empty($space[city])}-->
		<li><strong>地區</strong>: $space[city]</li>
	<!--{/if}-->
	</ul>
</div>
<!--{/if}-->

<h3 class="xspace-blocktitle">
	<a href="{S_URL}/spacecp.php?action=manage&amp;op=guestbook" target="_blank" class="xspace-manage">管理</a>
	給我的留言
</h3>
<div id="xspace-itemreply">
<!--{loop $guestbooks $key $value}-->
	<dl id="xspace-comment{$value[gid]}">
		<dt>
			<!--{if empty($value['spacename']) || empty($value['authorid']) }-->
			<img src="$value[photo]" class="xspace-signavatar xspace-imgstyle" alt="" />
			<!--{else}-->
			<a href="#uid/$value[authorid]/action/space#" target="_blank"><img src="$value[photo]" alt="$value[spacename]" class="xspace-signavatar xspace-imgstyle" /></a>
			<!--{/if}-->
			<!--{if empty($value['spacename']) || empty($value['authorid']) }-->$value[author]<!--{else}--><a href="#uid/$value[authorid]/action/space#" target="_blank">$value[author]</a><!--{/if}--> <span class="xspace-smalltxt">留言於#date("Y-m-d H:i:s", $value["dateline"])#</span>
		</dt>
		<dd>$value[message]</dd>
	</dl>
<!--{/loop}-->
<div id="xspace-multipage-div" class="xspace-multipage"><a href="javascript:showguestbook(1);">查看全部留言</a></div>
</div>

<div id="xspace-itemform">
	<form id="xspace-commentform" action="{S_URL}/batch.guestbook.php" method="post">
		<fieldset>
			<legend>留言兩句</legend>
			<p>　　<input type="checkbox" id="xspace-isprivate" name="isprivate" value="1" /><label for="xspace-isprivate">私密</label></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="seccode" title="看不清？點擊換一個" /></label>
			</p>
			<p>
			<input type="hidden" name="uid" value="$space[uid]" />
			<input type="submit" id="xspace-btncomment" name="btncomment" value="發表留言" />
			</p>
	</fieldset>
</form>
</div>

<script language="javascript" type="text/javascript">
<!--
function showguestbook(page) {
	var x = new Ajax('statusid', 'XML');
	x.get('{S_URL}/batch.guestbook.php?action=view&uid=$space[uid]&page='+page, function(s) {
			getbyid("xspace-itemreply").innerHTML = s.lastChild.firstChild.nodeValue;
	});
}
function newseccode(obj) {
	obj.src='{S_URL}/batch.seccode.php?'+Math.random(1);
}
//-->
</script>