<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_add.aspx.cs" Inherits="HteamDd.Web.Admin.Admin_add" %>

<!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 id="Head1" runat="server">
    <title>管理员添加</title>
    <link href="/css/style.css" rel="stylesheet" type="text/css" />
            <script src="/jscript/common.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">

        function chk() {
            var d = document.forms[0];
            if (d.txtName.value.replace(/(^\s*)|(\s*$)/g, "") == "") {
                alert("姓名不能为空！");
                d.txtName.focus();
                return false;
            }
            if (d.txtPassword.value.replace(/(^\s*)|(\s*$)/g, "") == "") {
                alert("密码不能为空！");
                d.txtPassword.focus();
                return false;
            }
            if (d.txtPassword.value != d.txtrePassword.value) {
                alert("两次密码输入不一致！");
                return false;
            }
            return true;
        }
    </script>
    <style type="text/css">
        .style1
        {
            width: 16%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" onsubmit="return chk()">
     <table class="maintable" cellpadding="0" cellspacing="1" border="0">
<tr><th width="100%" colspan="2" style="text-align:left;"><a href="Admin_add.aspx">管理员添加</a>|<a href="Admin_manage.aspx">管理员管理</a>|<a href="User_manage.aspx">用户管理</a>|<a href="User_recycle.aspx">回收站</a></th></tr>
<tr><td class="left" style="width: 16%">管理员姓名：</td>
<td class="right" width="70%"><asp:TextBox ID="txtName" runat="server"  
        Width="180px" Height="28px"></asp:TextBox>&nbsp;&nbsp;<span class="explain">请仔细填写管理员的名字</span></td>
</tr>
<div id="txt" runat="server" visible="false"><tr>
<td class="left" style="width: 16%">管理员旧密码：</td>
<td class="right">
<asp:TextBox ID="txtOldpass" runat="server" 
        Width="180px" Height="28px" TextMode="Password"></asp:TextBox>&nbsp;&nbsp;
<span class="explain">请填写管理员旧密码（至少五位）</span></td></tr></div>	
<tr>
<td class="left" style="width: 16%">管理员新密码：</td>
<td class="right">
<asp:TextBox ID="txtPassword" runat="server" 
        Width="180px" Height="28px" TextMode="Password"></asp:TextBox>&nbsp;&nbsp;
<span class="explain">请填写管理员密码（至少五位）</span></td></tr>
<tr>
<td class="left" style="width: 16%">确认密码：</td>
<td class="right">
<asp:TextBox ID="txtrePassword" runat="server" 
        Width="180px" Height="28px" TextMode="Password"></asp:TextBox>&nbsp;&nbsp;
<span class="explain">注意确认密码与密码一致</span></td></tr>
<tr class="bottom">
<td class="style1"></td>
<td >
<asp:Button id="btnSave" runat="server" Text="保存" class="button" onclick="btnSave_Click" 
        />&nbsp;&nbsp;&nbsp;
 <input type="reset" value="重置" class="button" onclick="javascript:window.parent.frmright.location.reload();" />
 </td>
</tr>
</table>
    </form>
</body>
</html>
