<!-- #include file="Setup.asp" --><%
if CookieUserName=empty then error("<li>您还未<a href=Login.asp>登录</a>论坛")
top

UserName=HTMLEncode(Request("UserName"))
sql="select * from [BBSXP_Users] where UserName='"&UserName&"'"
Set Rs=Conn.Execute(sql)
if Rs.eof then error("<li>该用户资料不存在")

ShowRank(Rs("experience"))
select case Rs("UserSex")
case "male"
UserSex="男"
case "female"
UserSex="女"
end select

UserInfo=split(Rs("UserInfo"),"\")
realname=UserInfo(0)
country=UserInfo(1)
province=UserInfo(2)
city=UserInfo(3)
Postcode=UserInfo(4)
blood=UserInfo(5)
belief=UserInfo(6)
occupation=UserInfo(7)
marital=UserInfo(8)
education=UserInfo(9)
college=UserInfo(10)
address=UserInfo(11)
phone=UserInfo(12)
character=UserInfo(13)
personal=UserInfo(14)

UserIM=split(Rs("UserIM"),"\")
qq=UserIM(0)
icq=UserIM(1)
uc=UserIM(2)
aim=UserIM(3)
msn=UserIM(4)
Yahoo=UserIM(5)
if Rs("UserAccountStatus")=0 then
UserAccountStatus="未激活"
else
UserAccountStatus="已激活"
end if
%>
<title>查看<%=Rs("UserName")%>的资料</title>
<div class="mainnav">
<table cellspacing="1" cellpadding="5" border="0" width="100%" class="a2">
	<tr class="a3">
		<td>&nbsp;<img src="images/Forum_nav.gif">&nbsp; <%ClubTree%> → 查看用户“<%=Rs("UserName")%>”资料</td>
	</tr>
</table>
<br>
<table cellspacing="1" cellpadding="5" width="100%" border="0">
	<tr>
		<td align="right" valign="bottom"><b>:::相关操作:::</b>　｛ 
		<img src="images/finds.gif">
		<a href="ShowBBS.asp?menu=5&UserName=<%=Rs("UserName")%>">个人帖子</a>　 
		<img src="images/Blog.gif">
		<a href="Blog.asp?BlogUserName=<%=Rs("UserName")%>">个人日志</a>　 
		<img src="images/Friend.gif">
		<a href="MyFriend.asp?menu=add&UserName=<%=Rs("UserName")%>">加为好友</a>　 
		<img src="images/message.gif">
		<a href="#" onclick="javascript:OpenFriendWindow('MyFriend.asp?menu=Post&amp;incept=<%=Rs("UserName")%>')">
		发送讯息</a> ｝ </td>
	</tr>
</table>
<table cellspacing="1" cellpadding="5" border="0" width="100%" class="a2" style="TABLE-LAYOUT:fixed">
	<tr class="a1">
		<td colspan="2" valign="middle" align="Left"><b>&nbsp;:::社区信息:::</b></td>
	</tr>
	<tr class="a3">
		<td align="Left" valign="middle" width="50%"><b>　昵　　称：</b><%=Rs("UserName")%></td>
		<td align="Left" valign="middle" width="50%"><b>　用户状态：</b><%=UserAccountStatus%></td>
	</tr>
	<tr class="a4">
		<td align="Left" valign="middle" width="50%"><b>　角　　色：</b><%=ShowRole(RS("UserRoleID"))%></td>
		<td align="Left" valign="middle" width="50%"><b>　发表原贴：</b><%=Rs("PostTopic")%></td>
	</tr>
	<tr class="a3">
		<td align="Left" width="50%"><b>　等级名称：</b><%=RankName%></td>
		<td align="Left" width="50%"><b>　发表回贴：</b><%=Rs("Postrevert")%></td>
	</tr>
	<tr class="a4">
		<td align="Left" width="50%"><b>　公　　会：</b><%
if Rs("Consortia")=empty then
response.write "无"
else
response.write Rs("Consortia")
end if
%></td>
		<td align="Left" width="50%"><b>　收录精华：</b><%=Rs("goodTopic")%></td>
	</tr>
	<tr class="a3">
		<td align="Left" width="50%"><b>　头　　衔：</b><%=Rs("UserHonor")%></td>
		<td align="Left" width="50%"><b>　被删帖子：</b><%=Rs("DelTopic")%></td>
	</tr>
	<tr class="a4">
		<td align="Left" width="50%"><b>　配　　偶：</b><%
if Rs("Consort")=empty then
response.write "无"
else
response.write "<a href=Profile.asp?UserName="&Rs("Consort")&">"&Rs("Consort")&"</a>"
end if
%></td>
		<td align="Left" width="50%"><b>　社区金币：</b><%=Rs("UserMoney")%></td>
	</tr>
	<tr class="a3">
		<td align="Left" width="50%"><b>　注册日期：</b><%=Rs("UserRegTime")%></td>
		<td align="Left" width="50%"><b>　经 验 值：</b><%=Rs("experience")%></td>
	</tr>
	<tr class="a4">
		<td align="Left" width="50%"><b>　上次登录：</b><%=Rs("UserLandTime")%></td>
		<td align="Left" width="50%"><b>　登录次数：</b><%=Rs("UserDegree")%></td>
	</tr>
	<tr class="a1">
		<td align="Left" valign="middle" colspan="2"><b>&nbsp;:::生活信息:::</b></td>
	</tr>
	<tr>
		<td valign="top" class="a3" width="50%">　<b>真实姓名：</b><%=realname%> </td>
		<td align="Left" class="a3" rowspan="17" width="50%" valign="top"><b>　用户头像：</b><br>
		<center>
		<img src="<%=Rs("UserFace")%>" border="0" onload="javascript:if(this.width&gt;100)this.width=100;if(this.height&gt;100)this.height=100;"><br>
		　</center>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
			<tr>
				<td height="100">
				<table width="100%" border="0" cellspacing="0">
					<tr>
						<td class="a2">
						<table width="100%" border="0" cellspacing="0" cellpadding="10">
							<tr>
								<td class="a4" height="80" valign="top"><b>&nbsp;性　　格：</b><br>
								　<table border="0">
									<tr>
										<td width="100%"><%=character%></td>
									</tr>
								</table>
								</td>
							</tr>
						</table>
						</td>
					</tr>
				</table>
				<br>
				<table width="100%" border="0" cellspacing="0">
					<tr>
						<td class="a2">
						<table width="100%" border="0" cellspacing="0" cellpadding="10">
							<tr>
								<td class="a4" height="80" valign="top"><b>&nbsp;简　介：</b><br>
								<br>
								<%=personal%> </td>
							</tr>
						</table>
						</td>
					</tr>
				</table>
				<br>
				<table width="100%" border="0" cellspacing="0">
					<tr>
						<td class="a2">
						<table width="100%" border="0" cellspacing="0" cellpadding="10">
							<tr>
								<td class="a4" height="80" valign="top"><b>&nbsp;签名档：</b><br>
								<br>
								<%=Rs("UserSign")%></td>
							</tr>
						</table>
						</td>
					</tr>
				</table>
				</td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td valign="top" class="a4" width="50%"><b>　性　　别：</b><%=UserSex%> </td>
	</tr>
	<tr>
		<td valign="top" class="a3" width="50%"><b>　国　　家：</b><%=country%> </td>
	</tr>
	<tr>
		<td valign="top" class="a4" width="50%">　<b>省　　份：</b><%=province%> </td>
	</tr>
	<tr>
		<td valign="top" class="a3" width="50%">　<b>城　　市：</b><%=city%></td>
	</tr>
	<tr>
		<td valign="top" class="a4" width="50%">　<b>邮政编码：</b><%=Postcode%></td>
	</tr>
	<tr>
		<td valign="top" class="a3" width="50%">　<b>生　　肖：</b><%=Zodiac(Rs("birthday"))%></td>
	</tr>
	<tr>
		<td valign="top" class="a4" width="50%">　<b>血　　型：</b><%=blood%> </td>
	</tr>
	<tr>
		<td valign="top" class="a3" width="50%">　<b>星　　座：</b><%=constellation(Rs("birthday"))%></td>
	</tr>
	<tr>
		<td valign="top" class="a4" width="50%">　<b>信　　仰：</b><%=belief%> </td>
	</tr>
	<tr>
		<td valign="top" class="a3" width="50%">　<b>职　　业：</b><%=occupation%>
		</td>
	</tr>
	<tr>
		<td valign="top" class="a4" width="50%">　<b>婚姻状况：</b><%=marital%> </td>
	</tr>
	<tr>
		<td valign="top" class="a3" width="50%">　<b>最高学历：</b><%=education%> </td>
	</tr>
	<tr>
		<td valign="top" class="a4" width="50%">　<b>毕业院校：</b><%=college%> </td>
	</tr>
	<tr class="a1">
		<td valign="top" width="50%"><b>&nbsp;:::联系方法:::</b></td>
	</tr>
	<tr>
		<td valign="top" class="a4" width="50%">　<b>电子邮件：</b><a href="Mailto:<%=Rs("UserMail")%>"><%=Rs("UserMail")%></a></td>
	</tr>
	<tr>
		<td valign="top" class="a3" width="50%">　<b>个人主页：</b><a target="_blank" href="<%=Rs("Userhome")%>"><%=Rs("Userhome")%></a></td>
	</tr>
	<tr class="a1">
		<td colspan="2" align="Left"><b>&nbsp;:::即时通讯:::</b></td>
	</tr>
	<tr class="a3">
		<td height="4" valign="middle" align="Left">　<b>QQ号码：</b><%if qq<>"" then%><a target="blank" href="http://wpa.qq.com/msgrd?V=1&Uin=<%=qq%>&menu=yes&Site=<%=SiteSettings("SiteName")%>"><%=qq%></a><%end if%>
		</td>
		<td height="4" valign="middle" align="Left">　<b>ICQ IM：</b><%=icq%></td>
	</tr>
	<tr class="a4">
		<td height="4" valign="middle" align="Left">　<b>UC号码：</b><%=uc%></td>
		<td height="4" valign="middle" align="Left">　<b>AOL IM：</b><%=aim%></td>
	</tr>
	<tr class="a3">
		<td height="4" valign="middle" align="Left">　<b>MSN IM：</b><a target="blank" href="http://members.msn.com/?mem=<%=msn%>"><%=msn%></a></td>
		<td height="4" valign="middle" align="Left">　<b>Yahoo IM：</b><%=Yahoo%></td>
	</tr>
</table></div>
<center><br>
<input onclick="history.back()" type="button" value=" &lt;&lt; 返 回 "> <br>
</center><%
Set Rs = Nothing
htmlend
%>