{#include file="user_header.html"#}
<body>

<div id="navcontaineruser">
	<div class="navusercontent">
		<div id="navuser">
			<a href="{#$PB_ENV.PB_URL#}" title="">{#$uimsg.user_firstpage#}</a>
			<a href="{#$PB_ENV.PB_URL#}post.php" title="">{#$uimsg.post_thread#}</a>
		</div>
		<div id="navuser_r">
			{#if $log_status eq "1"#}
			<a href="{#$customer.uurl#}" title="{#$customer.username#}">{#$uimsg.login_welcome#} {#$customer.username#}</a>
			<a href="{#$PB_ENV.PB_URL#}member.php?type=msg&amp;action=receivebox" title="{#$uimsg.login_msg#}">{#$uimsg.login_msg#}({#$customer.newmsg#})</a>
			<a href="{#$PB_ENV.PB_URL#}member.php" title="{#$uimsg.mbcp#}">{#$uimsg.mbcp#}</a>
			<a href="{#$PB_ENV.PB_URL#}login.php?action=logout" title="{#$uimsg.logout#}">{#$uimsg.logout#}</a>
			{#else#}
			<a href="{#$PB_ENV.PB_URL#}register.php" title="{#$uimsg.reg#}">{#$uimsg.reg#}</a>
			<a href="{#$PB_ENV.PB_URL#}login.php" title="{#$uimsg.login#}">{#$uimsg.login#}</a>
			{#/if#}
		</div>
	</div>
</div>

<div id="container">
	<!-- 头部开始 -->
	<div id="headercontainer">
		<div id="header">
			<h1>{#$userdata.username#}{#$uimsg.user_sspace#}</h1>
			<p><a href="{#$userdata.uurl#}" class="homeurl">{#$userdata.uurl#}</a> &nbsp;&nbsp;
			<a href="#" onclick="window.clipboardData.setData('text', '{#$userdata.uurl#}');alert('{#$uimsg.user_clipsuccess#}');return false;">{#$uimsg.user_cliplink#}</a> | <a href="#" onclick="external.addFavorite('{#$userdata.uurl#}','{#$userdata.username#}{#$uimsg.user_sspace#}');return false;">{#$uimsg.user_addfav#}</a></p>
		</div>
		<!-- 栏目菜单 -->
		<div id="menu-list">
			<ul class="head-list">
			<li><a href="user.php?uid={#$userdata.uid#}"><span>{#$uimsg.index#}</span></a></li>
			<li><a href="{#$PB_ENV.PB_URL#}user_friend.php?uid={#$userdata.uid#}"><span>{#$uimsg.friend#}</span></a></li>
			<li><a href="{#$PB_ENV.PB_URL#}user_message.php?uid={#$userdata.uid#}" class="current"><span>{#$uimsg.message#}</span></a></li>
			</ul>
		</div>
	</div>

	<!-- 内容 -->
	<div id="pbleft">
			<!-- 主题文章列表 -->
			{#foreach from=$guestmsg item=item#}
			<!-- pbdigg -->
			<div class="msgs_box">
			<dl><dt><span><a href="user.php?uid={#$item.authorid#}" title="{#$item.author#}">{#$item.author#}</a>&nbsp;{#$item.postdate#}：</span><a href="user_message.php?action=del&amp;uid={#$userdata.uid#}&amp;gmid={#$item.gmid#}" title="删除">删除</a></dt>
			<dd><span>{#$item.content#}</span><a href="user.php?uid={#$item.authorid#}" title="{#$item.username#}" target="_blank"><img src="{#$item.avatar#}" class="middle_user_avatar" /></a></dd></dl>
			</div>
			<!-- pbdigg -->
			{#foreachelse#}
			<p class="nocontent">{#$uimsg.nomsg#}</p>
			{#/foreach#}
			<!-- 分页链接 -->
			<div class="pages">
			{#$mult_page#}
			</div>
			<div class="lmsg">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td colspan="2"><h2>{#$uimsg.user_domsg#}</h2></td>
					</tr>
					<tr>
				    <td valign="top" class="smileytd">
					    <table cellspacing="1" cellpadding="3" class="smileytable">
					    <tr>
					      <td colspan="3">{#$uimsg.user_smiley#}</td>
					    </tr>
					    <tr>
					      <td><a href="javascript:emoticon('huh')"><img src="{#$PB_ENV.PB_URL#}images/emoticons/huh.gif" alt="huh" /></a>&nbsp;</td>
					      <td><a href="javascript:emoticon('ohmy')"><img src="{#$PB_ENV.PB_URL#}images/emoticons/ohmy.gif" alt="ohmy" /></a>&nbsp;</td>
					      <td><a href="javascript:emoticon('wink')"><img src="{#$PB_ENV.PB_URL#}images/emoticons/wink.gif" alt="wink" /></a>&nbsp;</td>
					    </tr>
					    <tr>
					      <td><a href="javascript:emoticon('tongue')"><img src="{#$PB_ENV.PB_URL#}images/emoticons/tongue.gif" alt="tongue" /></a>&nbsp;</td>
					      <td><a href="javascript:emoticon('biggrin')"><img src="{#$PB_ENV.PB_URL#}images/emoticons/biggrin.gif" alt="biggrin" /></a>&nbsp;</td>
					      <td><a href="javascript:emoticon('laugh')"><img src="{#$PB_ENV.PB_URL#}images/emoticons/laugh.gif" alt="laugh" /></a>&nbsp;</td>
					    </tr>
					    <tr>
					      <td><a href="javascript:emoticon('cool')"><img src="{#$PB_ENV.PB_URL#}images/emoticons/cool.gif" alt="cool" /></a>&nbsp;</td>
					      <td><a href="javascript:emoticon('rolleyes')"><img src="{#$PB_ENV.PB_URL#}images/emoticons/rolleyes.gif" alt="rolleyes" /></a>&nbsp;</td>
					      <td><a href="javascript:emoticon('dry')"><img src="{#$PB_ENV.PB_URL#}images/emoticons/dry.gif" alt="dry" /></a>&nbsp;</td>
					    </tr>
					    <tr>
					      <td><a href="javascript:emoticon('smile')"><img src="{#$PB_ENV.PB_URL#}images/emoticons/smile.gif" alt="smile" /></a>&nbsp;</td>
					      <td><a href="javascript:emoticon('mad')"><img src="{#$PB_ENV.PB_URL#}images/emoticons/mad.gif" alt="mad" /></a>&nbsp;</td>
					      <td><a href="javascript:emoticon('sad')"><img src="{#$PB_ENV.PB_URL#}images/emoticons/sad.gif" alt='sad' /></a>&nbsp;</td>
					    </tr>
					    <tr>
					      <td><a href="javascript:emoticon('unsure')"><img src="{#$PB_ENV.PB_URL#}images/emoticons/unsure.gif" alt="unsure" /></a>&nbsp;</td>
					      <td><a href="javascript:emoticon('blink')"><img src="{#$PB_ENV.PB_URL#}images/emoticons/blink.gif" alt="blink" /></a>&nbsp;</td>
					      <td><a href="javascript:emoticon('ph34r')"><img src="{#$PB_ENV.PB_URL#}images/emoticons/ph34r.gif" alt="ph34r" /></a>&nbsp;</td>
					    </tr>
					    <tr>
					      <td><a href="javascript:emoticon('wub')"><img src="{#$PB_ENV.PB_URL#}images/emoticons/wub.gif" alt="wub" /></a>&nbsp;</td>
					      <td><a href="javascript:emoticon('wacko')"><img src="{#$PB_ENV.PB_URL#}images/emoticons/wacko.gif" alt="wacko" /></a>&nbsp;</td>
					      <td><a href="javascript:emoticon('laugh')"><img src="{#$PB_ENV.PB_URL#}images/emoticons/laugh.gif" alt="laugh" /></a>&nbsp;</td>
					    </tr>
					  </table>
					</td>
				    <td valign="top" class="ldomsg">
					    <a name="comment" />
					    <form action="user_message.php?action=comment&amp;uid={#$userdata.uid#}" method="post">
						<p><textarea name="comment" id="comment_reply_body" rows="6" cols="60" oonselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" tabindex="1"></textarea></p>
						<p><input id="captcha" maxlength="4" size="10" type="text" name="captcha" value="" title="{#$uimsg.captcha_intro#}"  tabindex="2" />&nbsp;<img src="{#$PB_ENV.PB_URL#}checkcode.php" onclick="refreshCheckcode()" id="checkcode" alt="{#$uimsg.captcha_refresh#}" /></p>
						<p><input type="submit" name="send_comment" id="send_comment" value="递交" />&nbsp;&nbsp;<input type="reset" name="reset" id="reset"  value="重写" /></p>
						</form>
					</td>
				  </tr>
				</table>
    		</div>
		</div>
	<!-- 主体内容列表结束-->
	<!-- rightlist -->
	<div id="pbright">
		<!-- 注册登录 -->
		<div class="list">
			<p class="pcenter"><img src="{#$userdata.avatar#}" class="big_user_avatar" alt="" /></p>
			<p>
			{#$uimsg.nickname#}：{#$userdata.username#}<br />
			{#$uimsg.gender#}：{#$userdata.gender_name#}<br />
			{#$uimsg.birthday#}：{#$userdata.birthday#}<br />
			{#$uimsg.location#}：{#$userdata.location#}<br />
			{#$uimsg.site#}：<a href="{#$userdata.site#}" title="{#$userdata.site#}" target="_blank">{#$userdata.site#}</a><br />
			<span id="showprofile" style="display: none">
			{#$uimsg.email#}：{#$userdata.email#}<br />
			{#$uimsg.qq#}：{#$userdata.qq#}<br />
			{#$uimsg.msn#}：{#$userdata.msn#}<br />
			{#$uimsg.signature#}：{#$userdata.signature#}<br />
			</span><a onclick="changemenu('showprofile');" class="u" style="cursor:hand;">{#$uimsg.showdoc#}</a>
			</p>
		</div>

		<div class="list">
			<h2>{#$uimsg.user_contract#}</h2>
			<ul class="contract">
			<li><img src="{#$PB_ENV.PB_URL#}templates/{#$PB_ENV.PB_TEMPLATE#}/images/sendpm.gif" /><a href="{#$PB_ENV.PB_URL#}member.php?type=msg&amp;action=write&amp;tuid={#$userdata.uid#}" title="{#$uimsg.sendpm#}" target="_blank">{#$uimsg.sendpm#}</a></li>
			<li><img src="{#$PB_ENV.PB_URL#}templates/{#$PB_ENV.PB_TEMPLATE#}/images/addmessage.gif" /><a href="#comment" title="{#$uimsg.addmessage#}">{#$uimsg.addmessage#}</a></li>
			<li><img src="{#$PB_ENV.PB_URL#}templates/{#$PB_ENV.PB_TEMPLATE#}/images/addfriend.gif" /><a href="{#$PB_ENV.PB_URL#}member.php?type=my&amp;action=friend&amp;job=add&amp;uid={#$userdata.uid#}" title="{#$uimsg.addfriend#}" target="_blank">{#$uimsg.addfriend#}</a></li>
			<li><img src="{#$PB_ENV.PB_URL#}templates/{#$PB_ENV.PB_TEMPLATE#}/images/share.gif" /><a href="#" onclick="window.clipboardData.setData('text', '{#$userdata.uurl#}');alert('{#$uimsg.user_clipsuccess#}');return false;">{#$uimsg.user_share#}</a></li>
			</ul>
		</div>
		<!-- 1 -->
		<div class="list">
		<h2>{#$uimsg.friend#}</h2>
			<ul id="user-list">
			{#foreach from=$friends item=item#}
			<li><a href="user.php?uid={#$item.uid#}" title="" target="_blank"><img src="{#$item.avatar#}" alt="{#$item.username#}" /><br />{#$item.username#}</a></li>
			{#foreachelse#}
			<p class="pleft">{#$uimsg.nofriend#}</p>
			{#/foreach#}
			</ul>
		</div>
	</div>
	<!-- 右列表结束 -->

<script>
var old=null;
function changemenu(col2){
  var obj = document.getElementById(col2);
  if (old!=null&&old!=obj)
    old.style.display='none';
  old=obj;
  if (obj.style.display=='none'){
    obj.style.display='block';
  }else{
    obj.style.display='none';
  }
}
function emoticon(text) {
	var txtarea = document.getElementById('comment_reply_body');
	text = '[emote]' + text + '[/emote]';
	if (txtarea.createTextRange && txtarea.caretPos) {
		var caretPos = txtarea.caretPos;
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == '[emote]' ? text + '[/emote]' : text;
		txtarea.focus();
	} else {
		txtarea.value  += text;
		txtarea.focus();
	}
}
function storeCaret(textEl) {
	if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate();
}
var pb_url = '{#$PB_ENV.PB_URL#}';
</script>

<!-- footer -->
{#include file="footer.html"#}
<!-- footer end -->
</div>
</body>
</html>