<!--#include file="../Include/Const.asp" -->
<!--#include file="../Include/Conn.asp" -->
<!--#Include File="Func.asp"-->
<%Response.Charset="gb2312"%>
<%
Call WebSiteLoad(1)
If session("MemLogin")<>"Succeed" Then 
   response.redirect"login.asp"
End If 
%>
<!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="lhgdialog/lhgdialog.js?skin=idialog"></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">
      
      <!--修改资料-->
      <script type="text/javascript" src="js/Validform_v5.3.2_min.js"></script>
	  <script type="text/javascript">
        $(document).ready(function() {
          //初始化表单
          AjaxInitForm('#info_form', '#btnSubmit', 1);
        });
	  </script>
      <header>
        <a onclick="history.back(-1);" class="backButton">返回</a>
        <h1>个人资料</h1>
        <a onclick="$.ui.toggleSideMenu()" class="menuButton"></a>
      </header>
      <form id="info_form" name="info_form" url="upinfo.asp">
        <div class="form-box">
          <dl>
            <dt>用户名</dt>
            <dd><%=session("UserName")%></dd>
          </dl>
		  <%
		  If session("UserName")<>"" Then 

          set rs = server.CreateObject ("adodb.recordset")
          sql="select * from Angel_User where UserName='"&session("UserName")&"'"
          rs.open sql,conn,1,1
		  If rs.eof Then 
		  response.write "用户信息错误"
		  else
		  %>
          <dl>
            <dt>邮箱</dt>
            <dd><input name="txtEmail" id="txtEmail" type="text" maxlength="50" value="<%=rs("UserMail")%>" readonly datatype="e" sucmsg=" " /></dd>
          </dl>
          <dl>
            <dt>联系人</dt>
            <dd><input name="txtUserRealName" id="txtUserRealName" type="text" value="<%=rs("UserRealName")%>" datatype="*" sucmsg=" " /></dd>
          </dl>
          <dl>
            <dt>性别</dt>
            <dd>
              <select name="rblSex">
            <option value="2" <%If rs("UserSex")<>1 And rs("UserSex")<>0 then Response.Write("selected") %>>保密</option>
                
                <option value="1" <%If rs("UserSex")=1 then Response.Write("selected") %>>男</option>
                
                <option value="0" <%If rs("UserSex")=0 then Response.Write("selected")  %> >女</option>
                
              </select>
            </dd>
          </dl>
          <dl>
            <dt>联系电话：</dt>
            <dd><input name="txtTelphone" id="txtTelphone" type="text" maxlength="50" value="<%=rs("UserTel")%>" /></dd>
          </dl>
          <dl>
            <dt>手机号码：</dt>
            <dd><input name="txtMobile" id="txtMobile" type="text" maxlength="20" value="<%=rs("UserMobile")%>" datatype="*" sucmsg=" " /></dd>
          </dl>
          <dl>
            <dt>在线QQ：</dt>
            <dd><input name="txtQQ" id="txtQQ" type="text" maxlength="20" value="<%=rs("UserQQ")%>" /></dd>
          </dl>
          <dl>
            <dt>联系地址：</dt>
            <dd><input name="txtAddress" id="txtAddress" type="text" maxlength="250" value="<%=rs("UserAddr")%>" /></dd>
          </dl>
        </div>
		<%
		rs.close
        set rs=Nothing
		End If 
        End If 
		%>
        
        <div>
          <input id="btnSubmit" name="btnSubmit" type="submit" value="确认修改" class="btn orange full" />
        </div>
      </form>
      <!--/修改资料-->
      
      
            <!--版权信息-->
                <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>
