<%@ Page Language="C#" AutoEventWireup="true" CodeFile="userEdit.aspx.cs" Inherits="webXabara_adminUser_userEdit" %>

<!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="../InClude/StyleSheet.css" rel="stylesheet" type="text/css" />
    <script src="/js/jquery.min.js" type="text/javascript"></script>
    <script src="/js/all.js" type="text/javascript"></script>
    <style type="text/css">
    <!--
    body {
	    margin-left: 0px;margin-top: 15px;margin-right: 10px;margin-bottom: 10px;
    }
    -->
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="divWidth">
        <div class="titleBg">
            修改资料</div>
    </div>
    <div class="height10px">
    </div>
    <div class="divWidth">
        <table width="100%" class="tableLine">
            <tr>
                <td class="tdTitle">
                    <strong>用户名</strong>
                </td>
                <td class="tdContent">
                    <asp:Label ID="Uid" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="tdTitle">
                    <strong>真实姓名</strong>
                </td>
                <td class="tdContent">
                    <asp:TextBox ID="adminName" runat="server" CssClass="inputText" Width="200px" MaxLength="20"
                        Wrap="False"></asp:TextBox>
                    <asp:RequiredFieldValidator SetFocusOnError="True" ForeColor="#ff3300" ID="RequiredFieldValidator2"
                        runat="server" ControlToValidate="adminName" ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator SetFocusOnError="True" ForeColor="#ff3300" ID="adminNameRegularExpressionValidator"
                        runat="server" ControlToValidate="adminName"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="tdTitle">区域</td>
                <td class="tdContent">
                    <asp:DropDownList ID="cityID" runat="server" CssClass="inputText">
                        <asp:ListItem Value="">== 请选择 ==</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator SetFocusOnError="True" ForeColor="#ff3300" ID="RequiredFieldValidator9"
                        runat="server" ControlToValidate="cityID" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="tdTitle">用户组</td>
                <td class="tdContent">
                    <asp:DropDownList ID="groupID" runat="server" CssClass="inputText">
                        <asp:ListItem Value="">== 请选择 ==</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator SetFocusOnError="True" ForeColor="#ff3300" ID="RequiredFieldValidator10"
                        runat="server" ControlToValidate="groupID" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="tdTitle">角色</td>
                <td class="tdContent">
                    <asp:DropDownList ID="classID" runat="server" CssClass="inputText">
                        <asp:ListItem Value="">== 请选择 ==</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator SetFocusOnError="True" ForeColor="#ff3300" ID="RequiredFieldValidator7"
                        runat="server" ControlToValidate="classID" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="tdTitle">审核权限</td>
                <td class="tdContent">
                    <asp:RadioButtonList ID="postIF" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem Value="1">是</asp:ListItem>
                        <asp:ListItem Value="0">否</asp:ListItem>
                    </asp:RadioButtonList>
&nbsp;<asp:RequiredFieldValidator SetFocusOnError="True" ForeColor="#ff3300" ID="RequiredFieldValidator8"
                        runat="server" ControlToValidate="postIF" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="tdTitle">状态</td>
                <td class="tdContent">
                    <asp:RadioButtonList ID="ifLogin" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem Value="1">允许登录</asp:ListItem>
                        <asp:ListItem Value="0">禁止登录</asp:ListItem>
                    </asp:RadioButtonList>
&nbsp;<asp:RequiredFieldValidator SetFocusOnError="True" ForeColor="#ff3300" ID="RequiredFieldValidator11"
                        runat="server" ControlToValidate="ifLogin" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="tdTitle">
                    <strong>新密码</strong>
                </td>
                <td class="tdContent">
                    <asp:TextBox ID="adminPW" runat="server" CssClass="inputText" Width="200px" TextMode="Password"
                        MaxLength="20" Wrap="False"></asp:TextBox>
                    &nbsp;如不需改密码留空即可<asp:RegularExpressionValidator SetFocusOnError="True" ForeColor="#ff3300"
                        ID="adminPWRegularExpressionValidator" runat="server" ControlToValidate="adminPW"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="tdTitle">
                    <strong>重复新密码</strong>
                </td>
                <td class="tdContent">
                    <asp:TextBox ID="adminPW2" runat="server" CssClass="inputText" Width="200px" TextMode="Password"
                        MaxLength="20" Wrap="False"></asp:TextBox>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="adminPW"
                        ControlToValidate="adminPW2" ErrorMessage="两次输入的密码不正确" ForeColor="#FF3300"></asp:CompareValidator>
                    <asp:HiddenField ID="oldPWHidden" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="tdTitle">
                    <strong>电子邮箱</strong>
                </td>
                <td class="tdContent">
                    <asp:TextBox ID="adminMail" runat="server" CssClass="inputText" Width="200px" MaxLength="30"
                        Wrap="False" Style="ime-mode: disabled;"></asp:TextBox>
                    <asp:RegularExpressionValidator SetFocusOnError="True" ForeColor="#ff3300" ID="mailRegularExpressionValidator"
                        runat="server" ControlToValidate="adminMail"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="tdTitle">
                    <strong>固定电话</strong>
                </td>
                <td class="tdContent">
                    <asp:TextBox ID="adminTel" runat="server" CssClass="inputText" Width="200px" MaxLength="30"
                        Wrap="False" Style="ime-mode: disabled;"></asp:TextBox>
                    <asp:RegularExpressionValidator SetFocusOnError="True" ForeColor="#ff3300" ID="telRegularExpressionValidator"
                        runat="server" ControlToValidate="adminTel"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="tdTitle">
                    <strong>手机</strong>
                </td>
                <td class="tdContent">
                    <asp:TextBox ID="adminMobile" runat="server" CssClass="inputText" Width="200px" MaxLength="30"
                        Wrap="False" Style="ime-mode: disabled;"></asp:TextBox>
                    <asp:RegularExpressionValidator SetFocusOnError="True" ForeColor="#ff3300" ID="mobileRegularExpressionValidator"
                        runat="server" ControlToValidate="adminMobile"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="tdTitle">
                    <strong>QQ</strong>
                </td>
                <td class="tdContent">
                    <asp:TextBox ID="adminQQ" runat="server" CssClass="inputText" Width="200px" MaxLength="30"
                        Wrap="False" Style="ime-mode: disabled;"></asp:TextBox>
                    <asp:RegularExpressionValidator SetFocusOnError="True" ForeColor="#ff3300" ID="qqRegularExpressionValidator"
                        runat="server" ControlToValidate="adminQQ"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="tdTitle"></td>
                <td class="tdContent"><asp:Button ID="editAdmin" runat="server" Text="修改资料" CssClass="inputBottom" OnClick="editAdmin_Click" /></td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>

