<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="admin.asp"-->
<!--#include file="../inc/conn.asp"-->
<%
function rcount(tab)
  set rs=server.CreateObject("adodb.recordset")
  sql="select * from "&tab&" where userid="&session("userid")
  rs.open sql,conn,1,1
  if not rs.eof then
    rcount=rs.recordcount
  else
    rcount=0
  end if
  rs.close
  set rs=nothing
end function
'获取用户信息
function user_info(zd)
set rs=server.CreateObject("adodb.recordset")
sql="select id,"&zd&" from cw_user where id="&session("userid")
rs.open sql,conn,1,1
if not rs.eof then
user_info=rs(zd)
end if
rs.close
set rs=nothing
end function

%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=cf_name%> - 会员管理中心</title>
<link rel="stylesheet" type="text/css" href="images/style.css" />
<script type="text/javascript">
function admin()
{
  location.href="admin.asp?login=out"
}
</script>
</head> 

<body>
<!--#include file="top.asp"-->
<div class="con bian">
   <div class="bd_l">
    <!--#include file="left.asp"-->
   </div>
   <div class="bd_r">    
	  <div class="xqxinfo">
		<table width="750">
				<tr>
					<td width="188" rowspan="5" align="center"><img src="<%=user_info("pic")%>" onerror="this.src='../images/user.gif'" width="100" height="100"></td>
					<th width="100">用户账号：</th>					
					<td><p class="yhzh_p"><strong>&nbsp;<a href="#"><%=session("user")%></a></strong></p></td>
					<th>用户认证：</th>
					<td>
					   <div>&nbsp;
					  <a title="邮件验证" href="#"><span class="<%if user_info("ismail")=0 then%>sjyzw<%else%>sjyz<%end if%>"></span></a>&nbsp;
					  <a title="手机验证" href="#"><span class="<%if user_info("istel")=0 then%>maileyzw<%else%>maileyz<%end if%>"></span></a>&nbsp;
					  <a title="身份认证" href="#"><span class="<%if user_info("iscard")=0 then%>nameyzw<%else%>nameyz<%end if%>"></span></a>&nbsp;
				    <a title="营业执照验证" href="#"><span class="<%if user_info("isshop")=0 then%>zzyzw<%else%>zzyz<%end if%>"></span></a>                    </div></td>
				</tr>				
				<tr>
			      <th>分类信息：</th>
				  <td width="169"><span class="red">&nbsp;<a href="cw_info.asp?act=list"><%=rcount("cw_info")%></a></span>条</td>
				  <th width="93">招聘信息：</th>
				  <td width="176"><span class="red">&nbsp;<a href="cw_job.asp?act=list"><%=rcount("cw_job")%></a></span>条</td>
				</tr>
				<tr>

					<th>论坛主题：</th>
					<td><span class="red">&nbsp;<a href="#"><%=rcount("cw_bbs")%></a></span>条</td>
					<th>论坛回帖：</th>
				    <td><span class="red">&nbsp;<a href="#"><%=rcount("cw_bbs_reply")%></a></span>条</td>
				</tr>
				<tr>
				    <th>评论信息：</th>
					<td><span class="red">&nbsp;<a href="#"><%=rcount("cw_comment")%></a></span>条</td>
					<th>最后登录：</th>
					<td>&nbsp;<%=user_info("logindate")%></td>
				</tr>
				<tr>
				  <td colspan="4">&nbsp;<div class="gao">公告：<%=cf_notice%></div></td>
		  </tr>
		</table>
	  </div>
        <div class="line"></div>
        <div class="noteread">
	<p><b>说明：</b></p>
	<p> 1、网站信息均由用户发布或来源于网络，一切与本站无关。</p>
	<p> 2、管理员有权将违返国家法律法规和网站站规的信息进行删除。</p>
	<p> 3、管理员有权删除违规用户所有相关信息和用户。 </p>
	<p> 4、发布违返国家法律法规的用户将一律删除。</p>
	<p> 5、用户各项认证详细说明，<a href="#">点些查看</a>。</p>
      </div>
   </div>
   <div class="clear"></div>
</div>
<div class="line"></div>
<!--#include file="foot.asp"-->
<%
call closes()
%>
</body>
</html>
