<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_User.aspx.cs" Inherits="TW.UI.Admin.Admin_User" %>
<!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">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="../js/public.js"></script>
<script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="../js/kindeditor/kindeditor-min.js"></script>
<script type="text/javascript" src="../js/artDialog/artDialog.js?skin=default"></script>
<script type="text/javascript" src="../js/artDialog/plugins/iframeTools.js"></script>
<script type="text/javascript">
    $(function () {
        var hidThumb = $("#hidThumb").val();
        if (hidThumb != "") {
            UpReturn(hidThumb, "hidThumb");
        }
    });
</script>
</head>
<body>
<form id="form1" runat="server">
<input type="password" style="display: none;">
<div class="nav"><h1>会员管理</h1></div>
<div class="cont">
    <table class="table2">
        <tr>
            <th>用户名：</th>
            <td>
                <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtUserName" Display="Dynamic" ErrorMessage="*" 
                SetFocusOnError="True"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ErrorMessage="用户名只能是4-20个字符,包括:字母、数字、下划线" SetFocusOnError="True" 
                Display="Dynamic" ControlToValidate="txtUserName" ValidationExpression="^[a-zA-Z_0-9]{4,20}$">
                </asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th>密码：</th>
            <td>
                <asp:TextBox ID="txtUserPass" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="validPass" runat="server" 
                ControlToValidate="txtUserPass" Display="Dynamic" ErrorMessage="*" 
                SetFocusOnError="True"></asp:RequiredFieldValidator>
                <asp:Literal ID="litUserPassTip" runat="server" Text="留空不修改" Visible="False"></asp:Literal>
            </td>
        </tr>
        <tr>
            <th>用户头像：</th>
            <td>
                建议尺寸：像素 宽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>
            </td>
        </tr>
        <tr>
            <th>昵称：</th>
            <td>
                <asp:TextBox ID="txtNickName" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <th>电子邮箱：</th>
            <td>
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ControlToValidate="txtEmail" Display="Dynamic" ErrorMessage="*" 
                SetFocusOnError="True"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                ErrorMessage="电子邮箱格式不正确" SetFocusOnError="True" 
                Display="Dynamic" ControlToValidate="txtEmail" 
                ValidationExpression="^([\.a-zA-Z0-9_-]){2,15}@([a-zA-Z0-9_-]){2,15}(\.([a-zA-Z0-9]){2,}){1,4}$">
                </asp:RegularExpressionValidator>

            </td>
        </tr>
        <tr>
            <th>手机：</th>
            <td>
                <asp:TextBox ID="txtMobile" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                ControlToValidate="txtMobile" Display="Dynamic" ErrorMessage="*" 
                SetFocusOnError="True"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                ErrorMessage="手机格式不正确" SetFocusOnError="True" 
                Display="Dynamic" ControlToValidate="txtMobile" 
                ValidationExpression="^1[0-9]{10}$">
                </asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th>QQ：</th>
            <td>
                <asp:TextBox ID="txtQQ" runat="server"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                ErrorMessage="QQ格式不正确" SetFocusOnError="True" 
                Display="Dynamic" ControlToValidate="txtQQ" 
                ValidationExpression="^[1-9]*[1-9][0-9]*$">
                </asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th>姓名：</th>
            <td>
                <asp:TextBox ID="txtTrueName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="txtTrueName" Display="Dynamic" ErrorMessage="*" 
                SetFocusOnError="True"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                ErrorMessage="姓名格式不正确" SetFocusOnError="True" 
                Display="Dynamic" ControlToValidate="txtTrueName" 
                ValidationExpression="^[\u4e00-\u9fa5]{2,6}$">
                </asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th>身份证号：</th>
            <td>
                <asp:TextBox ID="txtIDNo" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtIDNo" Display="Dynamic" ErrorMessage="*" 
                SetFocusOnError="True"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" 
                ErrorMessage="身份证号格式不正确" SetFocusOnError="True" 
                Display="Dynamic" ControlToValidate="txtIDNo" 
                ValidationExpression="^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$">
                </asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th>支付密码：</th>
            <td>
                <asp:TextBox ID="txtPayPass" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvPayPass" runat="server" 
                ControlToValidate="txtPayPass" Display="Dynamic" ErrorMessage="*" 
                SetFocusOnError="True"></asp:RequiredFieldValidator>
                <asp:Literal ID="litPayPass" runat="server" Text="留空不修改" Visible="False"></asp:Literal>
            </td>
        </tr>
        <tr>
            <th>用户余额（元）：</th>
            <td>
                <TW:ReplaceBox ID="txtBalance" runat="server" ReplaceType="2"></TW:ReplaceBox>最多允许两位小数,留空余额为0
                <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                ControlToValidate="txtBalance" Display="Dynamic" ErrorMessage="*" 
                SetFocusOnError="True"></asp:RequiredFieldValidator>--%>
                <br />
                <asp:DropDownList ID="ddlOprtBalcType" runat="server">
                    <asp:ListItem Selected="True" Value="1">增加余额</asp:ListItem>
                    <asp:ListItem Value="0">减少余额</asp:ListItem>
                </asp:DropDownList>
                <TW:ReplaceBox ID="txtOprtBalac" runat="server" ReplaceType="2" Width="70px"></TW:ReplaceBox>元
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ControlToValidate="txtOprtBalac" Display="Dynamic" ErrorMessage="*" 
                SetFocusOnError="True" ValidationGroup="gOprtBalac"></asp:RequiredFieldValidator>
                <asp:Button ID="btnOprtBalac" runat="server" Text="确定" 
                    onclick="btnOprtBalac_Click" ValidationGroup="gOprtBalac" />
            </td>
        </tr>
        <tr>
            <th>状态：</th>
            <td>
                <asp:RadioButtonList ID="rdolstStatus" runat="server" 
                    RepeatDirection="Horizontal" RepeatLayout="Flow">
                    <asp:ListItem Value="0" Selected="True">正常</asp:ListItem>
                    <asp:ListItem Value="1">冻结</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <th>注册时间：</th>
            <td>
                <asp:Literal ID="litAddTime" runat="server"></asp:Literal>
            </td>
        </tr>
        <tr>
            <th>是否激活：</th>
            <td>
                <asp:Literal ID="litIsActiva" runat="server"></asp:Literal>
            </td>
        </tr>
        <tr>
            <th></th>
            <td class="abtn"><asp:Button ID="btnAdd" runat="server" Text="提交" onclick="btnAdd_Click" /></td>
        </tr>
    </table>
</div>
</form>
</body>
</html>
