<!--#include file="../Include/Const.asp" -->
<!--#include file="../Include/Conn.asp" -->
<!--#Include File="Func.asp"-->
<%
Call WebSiteLoad(1)

Dim Userid,LoginName,idCount,fidCount
LoginName=trim(session("UserName"))
set rsu = server.createobject("adodb.recordset")
sqlu="select * from Angel_User where UserName='"&LoginName&"'"
rsu.open sqlu,conn,1,1
if rsu.bof and rsu.eof Then
else
Userid=rsu("ID")
End If 
rsu.close
set rsu=Nothing

sql="select count(ID) as idCount from Angel_Message where UserID="&Userid&" "
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,0,1
if rs.bof and rs.eof Then
idCount=0
else
idCount=rs("idCount")
End If 
rs.close
set rs=Nothing

sql="select count(ID) as idCount from Angel_Message where UserID="&Userid&" and Re_Mess<>'' "
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,0,1
if rs.bof and rs.eof Then
fidCount=0
else
fidCount=rs("idCount")
End If 
rs.close
set rs=Nothing
%>
<!DOCTYPE html>
<!--HTML5 doctype-->
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=gb2312">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
<meta name="apple-mobile-web-app-capable" content="yes" />
    <title>会员中心 - Angel工作室管理系统</title>
<link rel="stylesheet" type="text/css" href="css/icons.css" />
<link rel="stylesheet" type="text/css" href="css/af.ui.base.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<!--jqMobi主JS-->
<script type="text/javascript" charset="gb2312" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" charset="gb2312" src="js/jq.appframework.js"></script>
<script type="text/javascript" charset="gb2312" src="js/appframework.ui.js"></script>
<!--jqMobi插件-->
<script type="text/javascript" charset="gb2312" src="js/jq.slidemenu.js"></script>
<script type="text/javascript" charset="gb2312" src="js/base.js"></script>
<script type="text/javascript">
	$(document).ready(function(e) {
		$("#main_footer a.user").addClass("pressed");
    });
</script>
</head>

<body>
<div id="afui">
  <div id="content">

	<div id="mainPanel" class="panel" data-footer="main_footer">
      
      <!--会员中心-->
      <header>
        <a href="javascript:;" onclick="history.back(-1);" class="backButton">返回</a>
        <h1>会员中心</h1>
        <a onclick="$.ui.toggleSideMenu()" class="menuButton"></a>
      </header>
      
      <div class="head-box">
        <div class="avatar-box">
          
          <img src="images/user_avatar.png" alt="头像" />
          
          <h3><%=session("UserName")%></h3>
          <p><span>留言信息：<%=idCount%>条</span></p>
        </div>
        <div class="tip-box">
          <dl>
            <dt>回复留言<%=fidCount%></dt>
            <dd></dd>
          </dl>
        </div>
      </div>
      
      <div>
        <ul class="list inset listview">
          <li><a href="mymessage.asp" data-ignore="true">留言信息</a></li>
        </ul>
        <ul class="list inset listview">
          <li><a href="proinfo.asp" data-ignore="true">个人资料</a></li>
          <li><a href="updatepwd.asp" data-ignore="true">修改密码</a></li>
          <li><a href="login.asp?action=out" data-ignore="true">退出登录</a></li>
        </ul>
      </div>
      <!--/会员中心-->
      <!--版权信息-->
      <div class="copyright">
                    <p><a href="http://<%=SiteUrl%>/m/" data-ignore="true">触屏版</a> | <a href="http://<%=SiteUrl%>/" data-ignore="true">电脑版</a> | <a href="javascript:;" onclick="$.ui.scrollToTop('mainPanel')">返回顶部</a></p>
                    <address>版权所有 <%=SiteTitle2%> 版本号 V1.3</address>
                    </p>
                </div>
                <!--/版权信息-->

            </div>

            <!--页面头部-->
            <header id="main_header">
                <h2 class="logo">
                    <img src="<%=AngelSysRootDir%>images/logo.png" /></h2>
                <a onclick="af.ui.toggleSideMenu()" class="menuButton"></a>
            </header>
            <!--/页面头部-->

     <!--底部导航-->
     <footer id="main_footer">
      <a href="index.asp" class="icon home" data-ignore="true">首页</a>
      <a href="login.asp" class="icon user" data-ignore="true">会员</a>
      <a href="productList.asp" class="icon basket" data-ignore="true">公司产品</a>
      <a href="search.asp" class="icon magnifier" data-ignore="true">搜索</a>
      <a href="about.asp?Id=10" class="icon phone" data-ignore="true">电话</a>
    </footer>
    <!--/底部导航-->
	
    <!--左侧导航-->
        <nav>
      <ul class="list">
        <li class="divider">网站导航</li>
        <li><a href="index.asp" class="icon home" data-ignore="true">网站首页</a></li>
        <li><a href="newslist.asp" class="icon tv" data-ignore="true">新闻资讯</a></li>
        <li><a href="productList.asp" class="icon basket" data-ignore="true">公司产品</a></li>
        <li><a href="downlist.asp" class="icon download" data-ignore="true">资料下载</a></li>
        <li><a href="login.asp" class="icon user" data-ignore="true">会员中心</a></li>
        <li><a href="about.asp" class="icon phone" data-ignore="true">关于我们</a></li>
        <li><a href="messagewrite.asp" class="icon message" data-ignore="true">在线留言</a></li>
        <li><a href="about.asp?Id=10" class="icon phone" data-ignore="true">联系我们</a></li>
      </ul>
    </nav>
    <!--/左侧导航-->

        </div>
    </div>
</body>
</html>
