<%@ Page Title="批量添加会员" Language="C#" AutoEventWireup="true" MasterPageFile="~/Admin/MasterPage.master" CodeBehind="UserBatchAdd.aspx.cs" Inherits="PowerEasy.Module.General.WebSite.Admin.User.UserBatchAdd" ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CphNavigation" runat="server">
    <pe:SsmsSiteMapPath ID="SmpNavigator" SiteMapProvider="AdminMapProvider" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphContent" runat="server">
    <table width="100%" border="0" cellpadding="2" cellspacing="1" class="border">
        <tr align="center">
            <td colspan="2" class="spacingtitle">
                <b>批量添加会员
                </b>
            </td>
        </tr>
        <tr class="tdbg">
            <td align="right" class="tdbgleft" style="width: 24%">
                <strong>用户名：</strong>
            </td>
            <td>
                <asp:TextBox ID="TxtUserNames" runat="server" TextMode="MultiLine" Height="250px" Width="170px"></asp:TextBox>
                <span style="color: #000000">
                    <pe:RequiredFieldValidator ID="RfvUserName" runat="server" ControlToValidate="TxtUserNames"
                        ErrorMessage="会员名不能为空" Display="Dynamic"></pe:RequiredFieldValidator></span>
            </td>
        </tr>
        <tr class="tdbg">
            <td align="right" class="tdbgleft" style="width: 24%">
                <strong>会员组：</strong>
            </td>
            <td>
                <asp:DropDownList ID="DdlUserGroup" runat="server" DataTextField="GroupName" DataValueField="GroupId" />
            </td>
        </tr>
        <tr class="tdbg">
            <td align="right" class="tdbgleft" style="width: 24%">
                <strong>默认密码：</strong>
            </td>
            <td>
                <asp:TextBox ID="TxtUserPassword" runat="server" Text="pe123456" MaxLength="100" />
                <asp:Label Text="" runat="server" ID="LabelStrongPwd" />
                <span style="color: #000000">
                    <pe:RequiredFieldValidator ID="RfvUserPassword" runat="server" ControlToValidate="TxtUserPassword"
                        ErrorMessage="默认密码不能为空" Display="Dynamic" />
                    <asp:RegularExpressionValidator ID="RegularExpressionPassword" runat="server" ControlToValidate="TxtUserPassword"
                        ErrorMessage="请输入新密码(至少6位)！" ValidationExpression="^.{6,}$" Display="Dynamic" />
                </span>
            </td>
        </tr>
        <tr align="center" class="tdbgbottom">
            <td colspan="2">
                <asp:Button ID="TxtAdd" Text="添加会员" runat="server" OnClick="TxtAdd_Click" />
                <input type="button" value="返回会员管理" onclick="window.location = 'UserManage.aspx'" />
            </td>
        </tr>
    </table>
    <br />
    <table style="width: 100%; margin: 0 auto;" cellpadding="2" cellspacing="1" class="border">
        <tr>
            <td class="spacingtitle" colspan="2" align="center">
                <strong>相关说明</strong>
            </td>
        </tr>
        <tr class="tdbg">
            <td>
                <ul>
                    <li>添加会员分为是<span style="color: blue">单独添加</span>和<span style="color: blue">批量添加</span>。</li>
                    <li><span style="color: blue">单独添加</span>只要添加单个用户名，点击"添加会员"即可。</li>
                    <li><span style="color: blue">批量添加</span>输入多个用户名，Enter键换行分割即可</li>
                    <li>
                        <span style='color: red'><pe:ExtendedLabel ID="ElbUserNameLimit" runat="server" HtmlEncode="false" /></span>
                    </li>
                </ul>
            </td>
        </tr>
    </table>
</asp:Content>
