<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserAccount.aspx.cs" Inherits="JRAPI.Web.User.UserAccount" %>
<%@ Register src="Foot.ascx" tagname="Foot" tagprefix="uc2" %>
<%@ Register Src="Top.ascx" TagName="Top" TagPrefix="uctop" %>
<!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 id="Head1" runat="server">
<title>账户信息</title>

<link href="css/style.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="js/command.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".linkid").click(function () {
                var txt = $(this).text();
                copyToClipboard(txt);
            });
            $("#btnCopy").click(function () {
                var txt = $("#txtUserCode").val();
                copyToClipboard(txt);
            })
        })
    </script>
</head>
<body>
    <form id="form1" runat="server">
     <uctop:Top ID="top1" runat="server" hoverNum="1"/>
    <div id="content">
        <% if (UserFlag == 1)
       { %>
       <div class="txts" style=" margin-top:20px;">
                <p class="red">
                    
                </p>
                <div class="zhxx">
                    <dl class="account">
                        <dt>商户名：</dt><dd><strong><%=uc.Email%></strong></dd>
                        <dt>商户ID：</dt><dd><strong><a href="javascript:void(0);" class="linkid"><%=uc.Userid %></a></strong></dd>
                        <dt>联系电话：</dt><dd><strong><%=uc.RealTel %></strong></dd>
                    </dl>
                    <dl class="bank">
                        <dt>开户银行：</dt><dd><strong><%=uc.BankName%></strong></dd>
                        <dt>开户姓名：</dt><dd><strong><%=uc.ACCount%></strong></dd>
                        <dt>银行帐号：</dt><dd><strong><%=uc.BankCard%></strong></dd>
                    </dl>                    
                </div>
                <div class="txje">
                    <span>商户密钥:</span>
                    <asp:TextBox ID="txtUserCode" Style="border: solid #DDDDDD 1px; height: 25px; width: 350px;
                        margin-right: 30px;" runat="server" type="text" ReadOnly="true" ></asp:TextBox>
                    <asp:Button ID="Button2" runat="server" CssClass="btn" Text="点击更换" 
                        onclick="Button2_Click"  /> 
                    <input id="btnCopy" type="button" class="btn" value="复制密钥" />
                </div>
            </div>
        <%}
       else
       { %>
	<div class="box" id="xgmm">
		<p class="title"><b>账户信息</b></p>
		<div class="xgmmM">
			<p><span class="leftSpan">联系人：</span> <asp:TextBox ID="txtLinkMan" CssClass="input" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ErrorMessage="* 联系人不能为空" ControlToValidate="txtLinkMan" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>                    
                    </p>
			<p><span class="leftSpan">联系电话：</span><asp:TextBox ID="txtRealTel" CssClass="input" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtRealTel" runat="server" ErrorMessage="* 联系电话不能为空" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
                
            </p>
            <p><span class="leftSpan">身份证号：</span> <asp:TextBox ID="txtLinkManCode" CssClass="input" runat="server"></asp:TextBox></p>
            <p><span class="leftSpan">网站地址：</span> <asp:TextBox ID="txtWebUrl" CssClass="input" runat="server"></asp:TextBox></p>
            <p><span class="leftSpan">MSN或QQ：</span> <asp:TextBox ID="txtMsnQQ" CssClass="input" runat="server"></asp:TextBox></p>
            <p><span class="leftSpan">开户银行：</span> 
                <asp:DropDownList ID="drpBankName" runat="server">
                </asp:DropDownList></p>  
            <p><span class="leftSpan">开户行所在省：</span> 
                <asp:DropDownList ID="dpdProvince" runat="server" AppendDataBoundItems="True" 
        AutoPostBack="True" onselectedindexchanged="dpdProvince_SelectedIndexChanged">
    <asp:ListItem Value="0">请选择</asp:ListItem>
    </asp:DropDownList></p> 
     <p><span class="leftSpan">开户行所在地区：</span> 
                <asp:DropDownList ID="dpdCity" runat="server">
    <asp:ListItem Value="0">请选择</asp:ListItem>
    </asp:DropDownList></p> 
            <p><span class="leftSpan">开户行详细信息：</span> <asp:TextBox ID="txtBankMore" CssClass="input" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ErrorMessage="* 开户行详细信息不能为空" ControlToValidate="txtBankMore" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator></p>
            <p><span class="leftSpan">银行卡号：</span> <asp:TextBox ID="txtBankCard" CssClass="input" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ErrorMessage="* 银行卡号不能为空" ControlToValidate="txtBankCard" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator></p>
            <p><span class="leftSpan">开户名：</span> <asp:TextBox ID="txtACCount" CssClass="input" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ErrorMessage="* 开户名不能为空" ControlToValidate="txtACCount" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator></p>
            <p><span class="leftSpan">提现密码：</span> <asp:TextBox ID="txtSafeCode" 
                    CssClass="input" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                    ErrorMessage="* 提现密码不能为空" ControlToValidate="txtSafeCode" ForeColor="Red" 
                    Display="Dynamic"></asp:RequiredFieldValidator></p>
			<div class="btnBox">
            <asp:Button class="btn" ID="Button1" runat="server" Text="确认修改" 
                    onclick="Button1_Click" /></div>
		</div>
	</div>
        <%} %>
</div>
    <uc2:Foot ID="Foot1" runat="server" />
    </form>
</body>
</html>