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

<!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="../../admin/skin/css.css" rel="stylesheet" type="text/css" />
    <link href="/images/css/inbox.css"rel="stylesheet" type="text/css" />
    <script language=javascript>
    function Return_null()
    {
        var pass=document.getElementById("txt_pass");
        var newpass=document.getElementById("txt_newpass");
        var newpass1=document.getElementById("txt_newpass1");
        if(pass.value!="")
        {
               if(newpass.value==""||newpass1.value=="")
               {
                   alert('如果修改密码,请输入新密码');
                   return false;
               }
               else
               {
                   return true;
               }
        }
        else if(newpass.value!=""||&&pass.value=="")
        {
            alert("请输入原密码!");
            return false;
        }
        else
        {
            return true;
        }
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
      <div>
        <table style="width: 98%" class="Ibx_gTable_Con">
            <tr>
                <td align="center" colspan="2">
                    会员信息编辑</td>
            </tr>
            <tr>
                <td align="right">
                    所属会员组:</td>
                <td>
                    <asp:DropDownList ID="drop_role" runat="server">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td align="right">
                    用户名:</td>
                <td>
                        <asp:Label ID="Lab_uname" runat="server" Text="Label" ForeColor="Red"></asp:Label></td>
            </tr>
            <tr>
                <td align="right">
                    原密码:</td>
                <td>
                    <asp:TextBox ID="txt_pass" runat="server" TextMode="Password"></asp:TextBox>
                    </td>
            </tr>
            <tr>
                <td align="right" style="height: 10px">
                    新密码:</td>
                <td style="height: 10px">
                    <asp:TextBox ID="txt_newpass" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToCompare="txt_newpass"
                        ControlToValidate="txt_newpass1" ErrorMessage="两次输入的密码不一致"></asp:CompareValidator></td>
            </tr>
            <tr>
                <td align="right">
                    新密码确认:</td>
                <td>
                    <asp:TextBox ID="txt_newpass1" runat="server" TextMode="Password"></asp:TextBox>&nbsp;
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txt_newpass1"
                        ControlToValidate="txt_newpass" ErrorMessage="两次输入的密码不一致"></asp:CompareValidator></td>
            </tr>
            <tr>
                <td align="right">
                    昵称:</td>
                <td>
                    <asp:TextBox ID="txt_nichen" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right">
                    电子邮箱:</td>
                <td>
                    <asp:TextBox ID="txt_email" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <asp:ImageButton ID="ImageButton1"  runat="server" ImageUrl="~/admin/skin/images/button_save.gif" OnClick="ImageButton1_Click" /></td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
