<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="Account.aspx.cs"
    Inherits="PowerEasy.Module.Promotion.WebSite.User.Promotion.Account" %>

<!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 runat="server">
    <title>
        <asp:Literal ID="LitTitle" runat="server" Text="<%$ Res:User_Promotion_Account_Title,推广会员信息 %>" />
    </title>
    <style type="text/css">
        .style1
        {
            width: 34%;
        }
    </style>
</head>
<body>
    <pe:ExtendedSiteMapPath ID="YourPosition" SiteMapProvider="UserMapProvider" runat="server" />
    <form id="MainForm" runat="server">
    <div class="model_info_one">
        <asp:Localize ID="Localize7" Text="<%$ Res: User_Promotion_Accoun_ListItem7,推广会员信息%>"
            runat="server" />
    </div>
    <div class="model_info_content">
        <table width="100%" border="0" cellspacing="1" cellpadding="0" class="table_style">
            <tr class="first">
                <td class="ok_tab" style="width: 40%">
                    <asp:Localize ID="Localize1" Text="<%$ Res: User_Promotion_Accoun_ListItem1,银　行%>"
                        runat="server" />：
                </td>
                <td>
                    <asp:TextBox ID="TxtBankName" runat="server" CssClass="inputxt" Width="220px" MaxLength="20" />
                    <pe:RequiredFieldValidator ID="ValrBankShortName" runat="server" ControlToValidate="TxtBankName"
                        ErrorMessage="<%$ Res: User_Promotion_Accoun_ListItem12,银行名称不能为空！%>" SetFocusOnError="true"
                        Display="Dynamic" />
                </td>
            </tr>
            <tr>
                <td class="ok_tab">
                    <asp:Localize ID="Localize2" Text="<%$ Res: User_Promotion_Accoun_ListItem2,开户行%>"
                        runat="server" />：
                </td>
                <td>
                    <asp:TextBox ID="TxtOpeningBank" runat="server" Width="220px" MaxLength="50" CssClass="inputxt" />
                    <pe:RequiredFieldValidator ID="ValrBankName" runat="server" ControlToValidate="TxtOpeningBank"
                        ErrorMessage="<%$ Res: User_Promotion_Accoun_ListItem13,开户行不能为空！%>" SetFocusOnError="true"
                        Display="Dynamic" />
                </td>
            </tr>
            <tr>
                <td class="ok_tab">
                    <asp:Localize ID="Localize3" Text="<%$ Res: User_Promotion_Accoun_ListItem3,户　名%>"
                        runat="server" />：
                </td>
                <td>
                    <asp:TextBox ID="TxtHolderName" runat="server" Width="220px" MaxLength="20" CssClass="inputxt" />
                    <pe:RequiredFieldValidator ID="ValrHolderName" runat="server" ControlToValidate="TxtHolderName"
                        ErrorMessage="<%$ Res: User_Promotion_Accoun_ListItem14,户名不能为空！%>" SetFocusOnError="true"
                        Display="Dynamic" />
                </td>
            </tr>
            <tr>
                <td class="ok_tab">
                    <asp:Localize ID="Localize4" Text="<%$ Res: User_Promotion_Accoun_ListItem4,账　号%>"
                        runat="server" />：
                </td>
                <td>
                    <asp:TextBox ID="TxtAccount" runat="server" Width="220px" MaxLength="30" CssClass="inputxt" />
                    <asp:CustomValidator ID="ValxAccounts" ClientValidationFunction="ValxAccounts_ClientValidate"
                        Display="dynamic" ValidateEmptyText="true" SetFocusOnError="true" runat="server"
                        ErrorMessage="<%$ Res: User_Promotion_Accoun_ListItem15,至少要输入帐号和卡号的其中一个！%>" OnServerValidate="ValxAccounts_ServerValidate"
                        ControlToValidate="TxtAccount" />
                </td>
            </tr>
            <tr>
                <td class="ok_tab">
                    <asp:Localize ID="Localize5" Text="<%$ Res: User_Promotion_Accoun_ListItem5,卡　号%>"
                        runat="server" />：
                </td>
                <td>
                    <asp:TextBox ID="TxtCardNum" runat="server" Width="220px" MaxLength="30" CssClass="inputxt" />
                </td>
            </tr>
        </table>
        <div class="ok_bottom">
            <asp:Button ID="BtnUpdate" runat="server" Text="<%$ Res: User_Promotion_Accoun_ListItem6,提交修改%>"
                OnClick="BtnUpdate_Click" CssClass="submit_button_four" />
        </div>

        <script language="javascript" type="text/javascript">
            function ValxAccounts_ClientValidate(s, e) {
                var accounts = document.getElementById('TxtAccount').value;
                var cardNum = document.getElementById('TxtCardNum').value;
                if (accounts == "" && cardNum == "") {
                    e.IsValid = false;
                }
                else {
                    e.IsValid = true;
                }
            }
        </script>

    </div>
    <asp:HiddenField ID="HdnId" runat="server" />
    </form>
</body>
</html>
