{#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="user.php?uid={#$userdata.uid#}" class="homeurl">{#$PB_ENV.PB_URL#}user.php?uid={#$userdata.uid#}</a> &nbsp;&nbsp;
			<a href="#" onclick="window.clipboardData.setData('text', '{#$PB_ENV.PB_URL#}user.php?uid={#$userdata.uid#}');alert('{#$uimsg.user_clipsuccess#}');return false;">{#$uimsg.user_cliplink#}</a> | <a href="#" onclick="external.addFavorite('{#$PB_ENV.PB_URL#}user.php?uid={#$userdata.uid#}','{#$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#}" class="current"><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#}"><span>{#$uimsg.message#}</span></a></li>
			</ul>
		</div>
	</div>

	<!-- 内容 -->
	<div id="pbleft">
			<!-- 主题文章列表 -->
			{#foreach from=$article item=item#}
			<!-- pbdigg -->
			<div class="pb_mainbox" id="tid_{#$item.tid#}">
				{#if $diggbury eq "1"#}
				<div class="pb_box_r" id="digg_{#$item.tid#}">
					<div class="pb_box_rt" id="db_num_{#$item.tid#}">
						{#if $showdigg eq "1"#}<div class="pb_box_rtt" id="article_digg_{#$item.tid#}">{#$item.digg#}</div>{#/if#}
						{#if $showbury eq "1"#}<div class="pb_box_rtt2" id="article_bury_{#$item.tid#}">{#$item.bury#}</div>{#/if#}
					</div>
					<div class="pb_box_rb" id="db_do_{#$item.tid#}">
						{#if $showdigg eq "1"#}<div id="article_digg_do_{#$item.tid#}" class="pb_box_rbb">{#if $item.digged eq "1"#}<span class="digged">{#$uimsg.digg#}</span>{#elseif $allowdigg eq "1"#}<a href="javascript:void(0);" onClick="digg('{#$item.tid#}', 'article', 'digg')">{#$uimsg.digg#}</a>{#else#}<a href="{#$PB_ENV.PB_URL#}login.php">{#$uimsg.digg#}</a>{#/if#}</div>{#/if#}
						{#if $showbury eq "1"#}<div id="article_bury_do_{#$item.tid#}" class="pb_box_rbb2">{#if $item.buryed eq "1"#}<span class="buryed">{#$uimsg.bury#}</span>{#elseif $allowbury eq "1"#}<a href="javascript:void(0);" onClick="digg('{#$item.tid#}', 'article', 'bury')">{#$uimsg.bury#}</a>{#else#}<a href="{#$PB_ENV.PB_URL#}login.php">{#$uimsg.bury#}</a>{#/if#}</div>{#/if#}
					</div>
				</div>
				{#/if#}
				<div class="pb_box_l">
					{#$item.topicimg#}
					<div class="pb_box_lr">
						<div class="pb_box_lrt"><h1 id="title_{#$item.tid#}"><a href="{#$item.titlelink#}" target="_blank">{#$item.subject#}</a></h1></div>
						<div class="pb_box_lrad">&nbsp;{#$uimsg.postby#}<span class="d">{#$item.postdate#}</span></div>
						<div class="pb_box_lrcon">{#$item.content#}<a class="style01" href="show.php?tid={#$item.tid#}" target="_blank">[{#$uimsg.fulltext#}&raquo;]</a>
						</div>
					</div>
				</div>
				<div class="pb_box_lrad2"><img src="{#$PB_ENV.PB_URL#}templates/digg2008/images/comment.gif" border="0" width="14" height="14" alt="ico" align="middle" />&nbsp;{#$uimsg.comment#}：<a href="show.php?tid={#$item.tid#}">{#$item.comments#}</a><span>|</span>{#$uimsg.pageviews#}：{#$item.views#} {#$uimsg.viewer#}<span>|</span>{#$uimsg.category#}：<a href="category.php?cid={#$item.cid#}">{#$item.cate#}</a><span>|</span>{#$uimsg.source#}：<a href="{#$item.contentlink#}" target="_blank">{#$item.linkhost#}</a><span>|</span>{#$uimsg.tag#}：{#$item.tags#}</div>
			</div>
			<!-- pbdigg -->
			{#foreachelse#}
			<p class="nocontent">{#$uimsg.noarticle#}</p>
			{#/foreach#}
			<!-- 分页链接 -->
			<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/digg2008/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/digg2008/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/digg2008/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/digg2008/images/share.gif" /><a href="#" onclick="window.clipboardData.setData('text', '{#$PB_EVN.PB_URL#}user.php?uid={#$userdata.uid#}');alert('{#$uimsg.user_clipsuccess#}');return false;">{#$uimsg.user_share#}</a></li>
			</ul>
		</div>
		<!-- 1 -->
		<div class="list">
		<h2>{#$uimsg.user_digged#}</h2>
			<ul>
			{#foreach from=$digg_article item=item#}
			<li><a href="show.php?tid={#$item[0]#}" title="{#$item[2]#}">{#$item[1]#}</a></li>
			{#foreachelse#}
			<p>{#$uimsg.noarticle#}</p>
			{#/foreach#}
			</ul>
		</div>
		<!-- 2 -->
	   	<div class="list">
			<h2>{#$uimsg.collection#}</h2>
			<ul>
			{#foreach from=$collection_article item=item#}
			<li><a href="show.php?tid={#$item[0]#}" title="{#$item[2]#}">{#$item[1]#}</a></li>
			{#foreachelse#}
			<p>{#$uimsg.noarticle#}</p>
			{#/foreach#}
			</ul>
		</div>
		<!-- 3 -->
		<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.uid#}" 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.uid#}" 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>
		<!-- 4 -->
		<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';
  }
}
var pb_url = '{#$PB_ENV.PB_URL#}';
var verifyhash = '{#$verifyhash#}';
var ajax_response_failed = '{#$uimsg.ajax_response_failed#}';
</script>

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