{#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#}" class="current"><span>{#$uimsg.friend#}</span></a></li>
			<li><a href="{#$PB_ENV.PB_URL#}user_message.php?uid={#$userdata.uid#}"><span>{#$uimsg.message#}</span></a></li>
			</ul>
		</div>
	</div>

	<!-- 内容 -->
	<div id="pbleft">
			<!-- 好友列表 -->
			<div class="pb-con user-fr">
			<ul>
			{#foreach from=$friends item=item#}
			<li><a href="user.php?uid={#$item.uid#}" target="_blank"><img src="{#$item.avatar#}" class="user_avatar" /><br />{#$item.username#}</a>
			</li>
			<!-- 好友列表 -->
			{#foreachelse#}
			<p class="nocontent">{#$uimsg.nofriend#}</p>
			{#/foreach#}
			</ul>
			</div>
			<!-- 分页链接 -->
			<div class="pages">
			{#$mult_page#}
			</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="{#$PB_ENV.PB_URL#}user_message.php?uid={#$userdata.uid#}#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.message#}</h2>
		{#foreach from=$guestmsg item=item#}
		<div class="msg_box">
			<div class="msg_box_z"><a href="user.php?uid={#$item.authorid#}" title="{#$item.author#}" target="_blank"><img src="{#$item.avatar#}" class="middle_user_avatar" /></a></div>
			<div class="msg_box_y">
			<h3><a href="user.php?uid={#$item.authorid#}" title="{#$item.author#}" target="_blank" class="b">{#$item.author#}</a>&nbsp;{#$item.postdate#}</h3>
			<span>{#$item.content#}</span></div>
		</div>
		{#foreachelse#}
		<ul><p>{#$uimsg.nomsg#}</p></ul>
		{#/foreach#}
		</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';
  }
}

</script>

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