<%
    //-----------------------------------------------------------
    // 文件名称: User_User_Operate.aspx
    // 页面名称: 会员添加/编辑
    //
    // 描    述:
    //
    // 创建标识: Add By 吴建春 2008-06-10
    // 修改标识: Add By 钟治宇 2008-11-17　　隐藏了一个控件
    //-----------------------------------------------------------
%>

<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.User_User_Operate, V5Shop.Shop.User" culture="auto" uiculture="auto" meta:resourcekey="PageResource1" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc2" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<!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></title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/css_list.css" rel="stylesheet" type="text/css" />
    <link href="css/control.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="editor/fckeditor.js"></script>

    <script type="text/javascript" language="javascript" src="js/Common.js"></script>

    <style type="text/css">
    .titles{
        color:#666666;
        font-size: 12px; 
        font-family:Arial, Helvetica, sans-serif;
        width: 20%;
        text-align: right
    }
    .items{
        color:#666666;
        font-size: 12px; 
        font-family:Arial, Helvetica, sans-serif;
        width: 80%;
        text-align: left;
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div class="OperateTitle">
            <div>
                <asp:Label ID="lblAdd" runat="server" Text="【会员添加】" />
                <asp:Label ID="lblEdit" runat="server" Text="【会员编辑】" />
                <a href='User_User_Manage.aspx' title="返回文章分类管理">返回列表</a>
            </div>
        </div>
        <div style="text-align: center;">
            <asp:Panel runat="server" ID="PanelShow" Width="100%">
                <div>
                    <table id="OperateTable" style="width: 100%; border: 0px; text-align: center;" cellpadding="0"
                        cellspacing="0">
                        <tr>
                            <td class="titles" style="width: 20%; height: 30px;">
                                <cc1:HelpCtrl ID="HelpCtrl1" runat="server" FontColor="red" Header="会员名" ImageURL="images/help.gif"
                                    Text="会员登录帐号。长度在5~16字符之间" />
                                <asp:Label runat="server" ID="Label1" Text="会员名：" />
                            </td>
                            <td class="items" style="width: 80%; height: 30px;">
                                <asp:TextBox ID="txtName" runat="server" Width="150px" MaxLength="50" />
                                <span style="color: #ff0000">*</span>
                                <asp:RequiredFieldValidator ID="rfvUserName" runat="server" ControlToValidate="txtName"
                                    Display="Dynamic" ErrorMessage="必须输入！" SetFocusOnError="True" />
                            </td>
                        </tr>
                        <tr>
                            <td class="titles" style="width: 20%; height: 30px;">
                                <cc1:HelpCtrl ID="HelpCtrl2" runat="server" FontColor="red" Header="电子邮件" ImageURL="images/help.gif"
                                    Text="注册成功后，相关信息将会发送到此邮件中。" />
                                <asp:Label runat="server" ID="Label2" Text="电子邮件：" />
                            </td>
                            <td class="items" style="width: 80%; height: 30px;">
                                <asp:TextBox ID="txtEMail" runat="server" Width="150px" MaxLength="50" />
                                <span style="color: #ff0000">*</span>
                                <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ControlToValidate="txtEMail"
                                    Display="Dynamic" ErrorMessage="必须输入！" SetFocusOnError="True" />
                            </td>
                        </tr>
                        <tr>
                            <td class="titles" style="width: 20%; height: 30px;">
                                <cc1:HelpCtrl ID="HelpCtrl3" runat="server" FontColor="red" Header="密码" ImageURL="images/help.gif"
                                    Text="会员登录密码" />
                                <asp:Label runat="server" ID="Label3" Text="密码：" /></td>
                            <td class="items" style="width: 80%; height: 30px;">
                                <asp:TextBox ID="txtPass1" runat="server" Width="150px" TextMode="Password" MaxLength="20" /></td>
                        </tr>
                        <tr>
                            <td class="titles" style="width: 20%; height: 30px;">
                                <asp:Label runat="server" ID="Label4" Text="密码确认：" /></td>
                            <td class="items" style="width: 80%; height: 30px;">
                                <asp:TextBox ID="txtPass2" runat="server" Width="150px" TextMode="Password" MaxLength="20" /></td>
                        </tr>
                        <tr runat="server" id="trUserGroup">
                            <td class="titles" style="width: 20%; height: 30px;">
                                <cc1:HelpCtrl ID="HelpCtrl4" runat="server" FontColor="red" Header="会员等级" ImageURL="images/help.gif"
                                    Text="此会员所在等级，购买商品将会按会员所在等级进行折扣计算。" />
                                <asp:Label runat="server" ID="Label5" Text="会员等级：" /></td>
                            <td class="items" style="height: 30px; width: 80%;">
                                    <asp:DropDownList ID="ddlUserGroup" runat="server" Width="93px">
                                    </asp:DropDownList>
                                    <asp:Button ID="btnGeneral" runat="server" Text="设为普通组" CausesValidation="false"  CssClass="button" OnClick="btnGeneral_Click" />&nbsp;
                                    <asp:Label ID="txtUserGroup" runat="server" Visible="False" />
                                    <asp:Button ID="BtnEspecially" runat="server" Text="设置特殊组" Visible="False" CssClass="button" CausesValidation="false"  OnClick="BtnEspecially_Click"/>&nbsp;
                                    &nbsp;|&nbsp;
                                    <input type="button" class="button" onclick="window.location.href='User_UserGroup_Manage.aspx'" value="管理会员等级" />
                            </td>
                        </tr>
                        <tr>
                            <td class="titles" style="width: 20%; height: 30px;">
                                <asp:Label runat="server" ID="Label18" Text="用户消费金额：" /></td>
                            <td class="items" style="width: 80%; height: 30px;">
                                <asp:Label ID="lbUserConsume" runat="server" Text="0"></asp:Label>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a id="UserLink" runat="server"
                                    href="Order_Order_Manage.aspx">点击查看该会员的消费记录</a>
                            </td>
                        </tr>
                        <tr>
                            <td class="titles" style="width: 20%; height: 30px;">
                                <asp:Label runat="server" ID="Label6" Text="性别：" /></td>
                            <td class="items" style="width: 80%; height: 30px;">
                                <asp:RadioButtonList ID="rblSex" runat="server" RepeatDirection="Horizontal" CssClass="input2">
                                    <asp:ListItem Selected="True" Value="0">保密</asp:ListItem>
                                    <asp:ListItem Value="1">男</asp:ListItem>
                                    <asp:ListItem Value="2">女</asp:ListItem>
                                </asp:RadioButtonList></td>
                        </tr>
                        <tr>
                            <td class="titles" style="width: 20%; height: 30px;">
                                &nbsp;<asp:Label runat="server" ID="Label7" Text="出生日期：" /></td>
                            <td class="items" style="width: 80%; height: 30px;">
                                <asp:TextBox ID="txtBirthDay" runat="server" Width="150px" />
                                <asp:RegularExpressionValidator ID="revBrithDay" runat="server" ControlToValidate="txtBirthDay"
                                    ErrorMessage="出生日期请输入日期格式.(如:2008-01-07, 1980/12/24)" ValidationExpression="^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|1[02])-(0?[1-9]|[12]\d|3[01]))|(((1[6-9]|[2-9]\d)\d{2})-(0?[13456789]|1[012])-(0?[1-9]|[12]\d|30))|(((1[6-9]|[2-9]\d)\d{2})-0?2-(0?[1-9]|1\d|2[0-8]))|(((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))-0?2-29-))$"></asp:RegularExpressionValidator></td>
                        </tr>
                        <tr>
                            <td class="titles" style="width: 20%; height: 30px;">
                                <cc1:HelpCtrl ID="HelpCtrl5" runat="server" FontColor="red" Header="新用额度" ImageURL="images/help.gif"
                                    Text="该会员能透支的最大额度。0为不能透支。此项请根据会员下单/支付情况，慎重填写。" />
                                <asp:Label runat="server" ID="Label8" Text="信用额度：" /></td>
                            <td class="items" style="width: 80%; height: 30px;">
                                <cc1:NumberBox ID="txtCredit" runat="server" IsInt="True" Width="150px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="titles" style="width: 20%; height: 30px;">
                                <asp:Label runat="server" ID="Label9" Text="身份证号码：" /></td>
                            <td class="items" style="width: 80%; height: 30px;">
                                <cc1:NumberBox ID="txtIdentityCard" runat="server" Width="150px" MaxLength="20" />
                            </td>
                        </tr>
                        <tr>
                            <td class="titles" style="width: 20%; height: 30px;">
                                <asp:Label runat="server" ID="Label10" Text="会员姓名：" />
                            </td>
                            <td class="items" style="width: 80%; height: 30px;">
                                <asp:TextBox ID="txtTrueName" runat="server" MaxLength="50" Width="150px" /><span
                                    style="color: #ff0000"></span>
                            </td>
                        </tr>
                        <tr>
                            <td class="titles" style="width: 20%; height: 30px;">
                                <asp:Label runat="server" ID="Label11" Text="联系地址：" /></td>
                            <td class="items" style="width: 80%; height: 30px;">
                                <asp:TextBox ID="txtAddress" runat="server" Width="300px" MaxLength="150" /></td>
                        </tr>
                        <tr>
                            <td class="titles" style="width: 20%; height: 30px;">
                                <asp:Label runat="server" ID="Label12" Text="邮编：" /></td>
                            <td class="items" style="width: 80%; height: 30px;">
                                <cc1:NumberBox ID="txtPostCode" runat="server" IsInt="True" MaxLength="8" Width="150px" />
                            </td>
                        </tr>
                        <tr>
                            <td class="titles" style="width: 20%; height: 30px;">
                                <asp:Label runat="server" ID="Label13" Text="地区：" /></td>
                            <td class="items" style="width: 80%; height: 30px;">
                                <cc1:AreaBox ID="txtArea" runat="server" AreaID="-1" />
                            </td>
                        </tr>
                        <tr>
                            <td class="titles" style="width: 20%; height: 30px;">
                                <asp:Label runat="server" ID="Label14" Text="联系电话：" /></td>
                            <td class="items" style="width: 80%; height: 30px;">
                                <asp:TextBox ID="txtTel" runat="server" MaxLength="50" Width="150px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td class="titles" style="width: 20%; height: 30px;">
                                <asp:Label runat="server" ID="Label15" Text="手机号码：" /></td>
                            <td class="items" style="width: 80%; height: 30px;">
                                <asp:TextBox ID="txtPhone" runat="server" MaxLength="50" Width="150px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td class="titles" style="width: 20%; height: 30px;">
                                <asp:Label runat="server" ID="Label16" Text="腾讯QQ：" /></td>
                            <td class="items" style="width: 80%; height: 30px">
                                <asp:TextBox ID="txtQQ" runat="server" MaxLength="50" Width="150px"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td class="titles" style="width: 20%; height: 30px;">
                                <cc1:HelpCtrl ID="HelpCtrl6" runat="server" FontColor="red" Header="锁定状态" ImageURL="images/help.gif"
                                    Text="如果选择锁定，会员将无法登陆到用户中心" />
                                <asp:Label runat="server" ID="Label17" Text="锁定状态：" /></td>
                            <td class="items" style="width: 80%; height: 30px;">
                                <asp:DropDownList ID="ddlIsLock" runat="server">
                                    <asp:ListItem Value="1">锁定</asp:ListItem>
                                    <asp:ListItem Selected="True" Value="0">未锁定</asp:ListItem>
                                </asp:DropDownList></td>
                        </tr>
                        <asp:Repeater ID="rptUserFields" runat="server">
                            <ItemTemplate>
                                <tr>
                                    <td class="titles" style="width: 20%; height: 30px;">
                                        <%#Eval("Name") %>：
                                        <input type=hidden name="userFields" value='<%#Eval("keyword") %>' />
                                        <input type=hidden name="userFieldsName" value='<%#Eval("Name") %>' />
                                    </td>
                                    <td class="items" style="width: 80%; height: 30px;">
                                        <%#Eval("Value") %>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                        <tr>
                            <td align="center" style="text-align: center;" colspan="2">
                                <br />
                                <asp:Button ID="btnAddSubmit" runat="server" meta:resourcekey="btnAddResource1" OnClick="btnAddSubmit_Click"
                                    Text="确定" CssClass="button" />
                                <input id="iptReset" runat="server" type="reset" value="重置" class="button" />
                                <asp:Button ID="btnReturn" OnClick="btnReturn_Click" runat="server" Text="返回列表" CssClass="button"
                                    CausesValidation="false" />
                                <br />
                            </td>
                        </tr>
                    </table>
                </div>
            </asp:Panel>
            <uc2:PageBottom ID="PageBottom1" runat="server" />
        </div>
        <div id="hiddenfield">
            <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
            <asp:HiddenField ID="IsEdit" runat="server" Value="0" />
            <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
            <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
            <uc1:HiddenField ID="Alert" runat="server" />
        </div>
    </form>

    <script type="text/javascript">
    //加TABLE样式
    InitTrClass();
    </script>

</body>
</html>
