<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TW.UI.memb.Default" %>

<!DOCTYPE html>
<html>
<head lang="en">
	
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv=X-UA-Compatible content=IE=EmulateIE9 />
<script type="text/javascript" src="/static/card/js/configweb.js"></script>
	<title>用户中心_<%=config.SiteName %></title>
	<link rel="stylesheet" href="/static/card/css/public.css" />
    <link rel="stylesheet" href="/static/card/css/userCenter.css" />
    <script type="text/javascript" src="/static/card/js/jquery-1.11.3.js"></script>
    <script src="/js/public.js" type="text/javascript"></script>
    <script type="text/javascript" src="/static/card/js/tools.js"></script>
    <script type="text/javascript">
        $(function () {
            var hidThumb = $("#hidThumb").val();
            if (hidThumb != "") {
                UpReturn(hidThumb, "hidThumb");
            }
        });
        function init() {
    	    var ph1 = "<%=ph1 %>";
    	    var isSetPay = "<%=isSetPay %>";
    	    var rn1 = "<%=rn1 %>";
    	    if (ph1 == "0") {
    	        showDialog("绑定手机号码", "尚未绑定手机号码，请前往绑定。", "/memb/bindmobile.aspx");
    	        return false;
    	    }
    	    if (isSetPay == "0") {
    	        showDialog("设置支付密码", "尚未设置支付密码，请前往设置", "/memb/bindpaypass.aspx");
    	        return false;
    	    }
            if (rn1 == "0") {
    	        showDialog("实名认证", "尚未实名认证，请前往认证。", "/memb/smrz.aspx");
    	        return false;
       		}
        }
    </script>
</head>
<body onload="init();">
<form id="form1" runat=server>
<div class="shade black">
    <div class="dialog-wrap">
        <div class="dialog-title-wrap">
            标题
        </div>
        <div class="dialog-content-wrap">
            内容
        </div>
        <div class="dialog-bottom-wrap">
            <button class="default-btn" type="button" onclick="">确定</button>
        </div>
    </div>
</div>

<TW:Header ID="Header1" runat="server" />
<div class="content">
    <div class="container">
    
<TW:UserHeader ID="UserHeader1" runat="server" />
        <div class="user-content clearfix">
            <TW:UserLeft ID="UserLeft1" runat="server" MenuId=1 SelLi=1 />

            <div class="user-right pull-left">
                <ul class="user-info-form">
                    <li>
                        <label>用户名：</label>
                        <div class="inp">
                            <asp:TextBox ID="txtUserName" runat="server" CssClass="input-text" Enabled="False"></asp:TextBox>
                        </div>
                        <div class="tip"></div>
                    </li>
                    <li class="heitauto clearfix">
                        <label>用户头像：</label>
                        <div class="inp heitauto">
                            <div class="thumbbox">
                            建议尺寸：像素 宽x高=80x80<br />
                            <asp:HiddenField ID="hidThumb" runat="server" />
		    	            <iframe src="/inc/upload.aspx?dir=image&input=hidThumb" id="Iframe1" 
                            width="300" height="25" scrolling="no" frameborder="0" allowtransparency="true"></iframe>
		    	            <span id="hidThumb_Preview"></span>
                            </div>
                        </div>
                        <div class="tip"></div>
                    </li>
                    <li>
                        <label>昵称：</label>
                        <div class="inp">
                            <asp:TextBox ID="txtNickName" runat="server" CssClass="input-text"></asp:TextBox>
                        </div>
                        <div class="tip"></div>
                    </li>
                    <li>
                        <label>邮箱：</label>
                        <div class="inp">
                            <asp:TextBox ID="txtEmail" runat="server" CssClass="input-text" Enabled="False"></asp:TextBox>
                        </div>
                        <div class="tip">
                        </div>
                    </li>
                    <li>
                        <label>手机：</label>
                        <div class="inp">
                            <TW:ReplaceBox ID="txtMobile" runat="server" CssClass="input-text" Enabled="False"></TW:ReplaceBox>
                        </div>
                        <div class="tip">
                        </div>
                    </li>
                    <li>
                        <label>QQ：</label>
                        <div class="inp">
                            <TW:ReplaceBox ID="txtQQ" runat="server" CssClass="input-text"></TW:ReplaceBox>
                        </div>
                        <div class="tip">
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                            ErrorMessage="QQ格式不正确" SetFocusOnError="True" 
                            Display="Dynamic" ControlToValidate="txtQQ" 
                            ValidationExpression="^[1-9]*[1-9][0-9]*$">
                            </asp:RegularExpressionValidator>
                        </div>
                    </li>
                    <li>
                        <label>真实姓名：</label>
                        <div class="inp">
                            <asp:TextBox ID="txtTrueName" runat="server" CssClass="input-text" Enabled="False"></asp:TextBox>
                        </div>
                        <div class="tip"></div>
                    </li>
                    <li>
                        <label>身份证号：</label>
                        <div class="inp">
                            <asp:TextBox ID="txtIDNo" runat="server" CssClass="input-text" Enabled="False"></asp:TextBox>
                        </div>
                        <div class="tip"></div>
                    </li>
                    <li>
                        <label></label>
                        <div class="inp">
                            <asp:Button ID="btnSave" runat="server" Text="保 存" 
                                CssClass="default-btn user-info-btn" onclick="btnSave_Click" />
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<TW:Footer ID="Footer1" runat="server" />
</form>
</body>
</html>