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

<!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" />
    <link href="/images/ss/skin_blue.css" rel="stylesheet" type="text/css" />
    <script language=javascript>
    function Ok()
    {
        var value=true;
        var pass=document.getElementById("password").value;
        var savepass=document.getElementById("savepass").value;
        if(pass!=""&&savepass=="")
        {
              alert("请输入确认密码!");
              value=false;
        }
        else if(savepass!=""&&pass=="")
        {
            
              alert("请输入新密码!");
              value=false;
        }
        else if(pass!=""&&pass.length<6)
        {
            alert("请输入长度不小于6的密码!");
            value=false;
        }
        else if(savepass!=""&&pass.length<6)
        {
            alert("请输入长度不小于6的确认密码!");
            value=false;
        }
        else if(pass!=savepass)
        {
            alert("两次输入的密码不一致!");
           value=false;
        }
        return value;
        
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table  class="Ibx_gTable_Con" style="width: 60%" align=center>
            <tr class=bg>
                <td align="center" colspan="2">
                    修改个人信息&nbsp; <span style="color: #ff0000">提示:如果不修改密码请留空</span></td>
            </tr>
            <tr>
                <td align="right">
                    会员名:</td>
                <td align="left">
                    <asp:Label ID="Lab_username" runat="server" Text=""></asp:Label></td>
            </tr>
            <tr>
                <td align="right">
                    新密码:</td>
                <td align="left">
                    <asp:TextBox ID="password" runat="server" MaxLength="16" TextMode="Password"></asp:TextBox>&nbsp;
                    密码长度在6~16之间</td>
            </tr>
            <tr>
                <td align="right">
                    新密码确认</td>
                <td align="left">
                    <asp:TextBox ID="savepass" runat="server" MaxLength="16" TextMode="Password"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right">
                    昵称:</td>
                <td align="left">
                    <asp:TextBox ID="nicheng" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <asp:ImageButton ID="ImageButton1" OnClientClick="return Ok();" runat="server" ImageUrl="~/images/button_save.gif" OnClick="ImageButton1_Click" /></td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
