<!--#include file="../inc/config.asp"-->
<!--#include file="../inc/conn.asp"-->
<!-- #include file="inc/Session.asp" -->
<!-- #include file="inc/checkrole.asp" -->
<%
'''''''''''''''''''''''''''''''''''''''''''''''
call checkPrevilege(Session("Name"),"p20")
'''''''''''''''''''''''''''''''''''''''''''''''
dim id,utype
id=trim(request.QueryString("id"))
%>
<html>
<head>
<title>会员管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #FFFFFF;
	font-size:12px;
}
.style1 {
	color: #FFFFFF;
	font-weight: bold;
}
.td_row{ padding:2px 5px; line-height:20px;}
form{margin:0;}
-->
</style>
<link href="style/global.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><iframe src="right_top.htm" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" height="30" width="100%"></iframe></td>
  </tr>
</table>

<%
set rs=server.CreateObject("adodb.recordset") 
rs.open "select * from t_member where UserId='"&id&"'",conn,3,1
if not rs.eof then
	utype=rs("UserType")
%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" class="border">
  <tr>
    <td height="28" colspan="2" bgcolor="#FF9900"><div align="center"><span class="style1">◆ 帐号基本信息[<%=rs("UserId")%>] ◆</span></div></td>
  </tr>
  <tr>
    <td align="right" bgcolor="#DFFAFF" class="td_row">会员类别：</td>
    <td bgcolor="#FFFFFF" class="td_row">
    <%
		if(utype=0) then
			response.Write("<span style=""color:green;"">个人会员</span>&nbsp;")
		else
			response.Write("<span style=""color:red;"">企业会员</span>&nbsp;")
		end if
		%>
    </td>
  </tr>
  <tr>
    <td width="18%" bgcolor="#DFFAFF" class="td_row"><div align="right">邮箱：</div></td>
    <td width="82%" bgcolor="#FFFFFF" class="td_row"><%=rs("Email")%></td>
  </tr>
  <tr>
    <td bgcolor="#DFFAFF" class="td_row"><div align="right">注册日期：</div></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("RegDate")%></td>
  </tr>
  <tr>
    <td bgcolor="#DFFAFF" class="td_row"><div align="right">注册IP：</div></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("RegIp")%></td>
  </tr>
  <tr>
    <td bgcolor="#DFFAFF" class="td_row"><div align="right">上次登录IP：</div></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("LastLoginIp")%></td>
  </tr>
  <tr>
    <td bgcolor="#DFFAFF" class="td_row"><div align="right">上次登录日期：</div></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("LastLoginDate")%></td>
  </tr>
  <tr>
    <td bgcolor="#DFFAFF" class="td_row"><div align="right">登录次数：</div></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("LoginNum")%></td>
  </tr>
</table>
<%
end if
rs.close
set rs=nothing
if(utype=0) then
	call Member_P
elseif(utype=1) then
	Member_E
end if
%>
<%
sub Member_P
	set rs=server.CreateObject("adodb.recordset") 
	rs.open "select * from t_member_p where UserId='"&id&"'",conn,3,1
	if not rs.eof then
%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" class="border">
  <tr>
    <td height="28" colspan="2" bgcolor="#FF9900"><div align="center"><span class="style1">◆ 会员信息[<%=rs("UserId")%>] ◆</span></div></td>
  </tr>
  <tr>
    <td width="18%" bgcolor="#DFFAFF" class="td_row"><div align="right">姓名：</div></td>
    <td width="82%" bgcolor="#FFFFFF" class="td_row"><%=rs("UserName")%></td>
  </tr>
  <tr>
    <td bgcolor="#DFFAFF" class="td_row"><div align="right">身份证：</div></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("IdCard")%></td>
  </tr>
  <tr>
    <td bgcolor="#DFFAFF" class="td_row"><div align="right">生日：</div></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("BornDate")%></td>
  </tr>
  <tr>
    <td bgcolor="#DFFAFF" class="td_row"><div align="right">性别：</div></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("Sex")%></td>
  </tr>
  <tr>
    <td bgcolor="#DFFAFF" class="td_row"><div align="right">省市：</div></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("Province")%>-<%=rs("City")%></td>
  </tr>
  <tr>
    <td bgcolor="#DFFAFF" class="td_row"><div align="right">教育程度：</div></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("Education")%></td>
  </tr>
  <tr>
    <td bgcolor="#DFFAFF" class="td_row"><div align="right">从事职业：</div></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("Profession")%></td>
  </tr>
  <tr>
    <td bgcolor="#DFFAFF" class="td_row"><div align="right">收入：</div></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("InCome")%></td>
  </tr>
  <tr>
    <td bgcolor="#DFFAFF" class="td_row"><div align="right">电话：</div></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("Tel")%></td>
  </tr>
  <tr>
    <td bgcolor="#DFFAFF" class="td_row"><div align="right">手机：</div></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("Mobile")%></td>
  </tr>
  <tr>
    <td bgcolor="#DFFAFF" class="td_row"><div align="right">QQ：</div></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("QQ")%></td>
  </tr>
  <tr>
    <td bgcolor="#DFFAFF" class="td_row"><div align="right">MSN:</div></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("MSN")%></td>
  </tr>
  <tr>
    <td bgcolor="#DFFAFF" class="td_row"><div align="right">个人主页：</div></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("HomePage")%></td>
  </tr>
  <tr>
    <td bgcolor="#DFFAFF" class="td_row"><div align="right">住址：</div></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("Address")%></td>
  </tr>
  <tr>
    <td bgcolor="#DFFAFF" class="td_row"><div align="right">邮编：</div></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("PostCode")%></td>
  </tr>
</table>
<%
	end if
end sub
%>
<%
sub Member_E
	set rs=server.CreateObject("adodb.recordset") 
	rs.open "select * from t_member_e where UserId='"&id&"'",conn,3,1
	if not rs.eof then
%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" class="border">
  <tr>
    <td height="28" colspan="2" bgcolor="#FF9900"><div align="center"><span class="style1">◆ 会员信息[<%=rs("UserId")%>] ◆</span></div></td>
  </tr>
  <tr>
    <td width="17%" height="32" bgcolor="#DFFAFF" class="td_row"><strong>企业名称：</strong></td>
    <td width="83%" bgcolor="#FFFFFF" class="td_row"><%=rs("UserName")%></td>
  </tr>
    <tr>
      <td height="32" bgcolor="#DFFAFF" class="td_row"><strong>头像：</strong></td>
      <td bgcolor="#FFFFFF" class="td_row"><img src="<%=rs("Photo")%>" width="146" height="114"></td>
  </tr>
    <tr>
      <td height="32" bgcolor="#DFFAFF" class="td_row"><strong>企业性质：</strong></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("ComType")%></td>
  </tr>   
	  <tr>
	    <td bgcolor="#DFFAFF" class="td_row"><strong>成立日期：</strong></td>
	    <td bgcolor="#FFFFFF" class="td_row"><%=rs("CreateDate")%></td>
  </tr>
	  <tr>
	    <td bgcolor="#DFFAFF" class="td_row"><strong>联系人：</strong></td>
	    <td bgcolor="#FFFFFF" class="td_row"><%=rs("ContactMan")%></td>
  </tr>
	  <tr>
	    <td bgcolor="#DFFAFF" class="td_row"><strong>经营范围：</strong></td>
	    <td bgcolor="#FFFFFF" class="td_row"><%=rs("BusinessScope")%></td>
  </tr>
	  <tr>
	    <td bgcolor="#DFFAFF" class="td_row"><strong>电话：</strong></td>
	    <td bgcolor="#FFFFFF" class="td_row"><%=rs("Tel")%></td>
  </tr>
	  <tr>
	    <td bgcolor="#DFFAFF" class="td_row"><strong>传真：</strong></td>
	    <td bgcolor="#FFFFFF" class="td_row"><%=rs("Fax")%></td>
  </tr>
	  <tr>
	    <td bgcolor="#DFFAFF" class="td_row"><strong>地址：</strong></td>
	    <td bgcolor="#FFFFFF" class="td_row"><%=rs("Address")%></td>
  </tr>
    <tr>
	    <td bgcolor="#DFFAFF" class="td_row"><strong>邮编：</strong></td>
	    <td bgcolor="#FFFFFF" class="td_row"><%=rs("PostCode")%></td>
  </tr>
	  <tr>
	    <td bgcolor="#DFFAFF" class="td_row"><strong>Email：</strong></td>
	    <td bgcolor="#FFFFFF" class="td_row"><%=rs("Email")%></td>
  </tr>
	  <tr>
	    <td bgcolor="#DFFAFF" class="td_row"><strong>网址：</strong></td>
	    <td bgcolor="#FFFFFF" class="td_row"><%=rs("HomePage")%></td>
  </tr>
  <tr>
	    <td bgcolor="#DFFAFF" class="td_row"><strong>公司简介：</strong></td>
    <td bgcolor="#FFFFFF" class="td_row"><%=rs("Demons")%></td>
  </tr>
</table>
<%
	end if
end sub
%>
<p align="center"><input type="button" value="返回" onClick="history.back();"></p>
</body>
</html>
<%
call connclose()
%>