admin_add.aspx
资源名称:moban.rar [点击查看]
上传用户:szraylite
上传日期:2018-06-06
资源大小:11546k
文件大小:4k
源码类别:
软件测试
开发平台:
Java
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="admin_add.aspx.cs" Inherits="admin_admin_add" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
- <HTML>
- <HEAD>
- <title>Admin_Add</title>
- <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
- <meta content="C#" name="CODE_LANGUAGE">
- <meta content="JavaScript" name="vs_defaultClientScript">
- <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
- <LINK href="Admin_Style.css" type="text/css" rel="stylesheet">
- </HEAD>
- <body>
- <form id="Form1" method="post" runat="server">
- <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="border">
- <tr>
- <td height="22" colspan="2" align="center" class="title"><strong>管 理 员 管 理</strong></td>
- </tr>
- <tr class="tdbg">
- <td width="70" height="30"><strong>管理导航:</strong></td>
- <td height="30"><a href="">管理员管理首页</a> | <a href="">新增管理员</a></td>
- </tr>
- </table>
- <table class="border" cellSpacing="1" cellPadding="0" width="100%" align="center" border="0">
- <tr>
- <td class="title" align="center" colSpan="3"><strong id="STRONG1" runat="server">新 增 管 理 员</strong>
- <DIV></DIV>
- </td>
- </tr>
- <tr class="tdbg">
- <td class="tdbg" width="35%"><strong>用 户 名:</strong></td>
- <td class="tdbg" width="65%"><input id="txb_Name" type="text" name="username" runat="server">
- </td>
- </tr>
- <tr class="tdbg">
- <td class="tdbg" width="35%"><strong>初始密码: </strong>
- </td>
- <td class="tdbg" width="65%"><font size="2"><input id="txb_FPwd" type="password" name="Password" runat="server">
- </font>
- </td>
- </tr>
- <tr class="tdbg">
- <td class="tdbg" width="35%"><strong>确认密码:</strong></td>
- <td class="tdbg" width="65%"><font size="2"><input id="txb_SPwd" type="password" name="PwdConfirm" runat="server">
- <asp:comparevalidator id="CompareValidator1" runat="server" ControlToValidate="txb_SPwd" ControlToCompare="txb_FPwd"
- ErrorMessage="*两次密码不一样"></asp:comparevalidator></font></td>
- </tr>
- </table>
- <table class="border" cellSpacing="1" cellPadding="0" width="100%" align="center" border="0">
- <tr>
- <td class="tdbg" align="center" colSpan="2" style="height: 40px"><INPUT id="hid_Value" type="hidden" runat="server"> <asp:Button ID="add" runat="server"
- OnClick="add_Click" Text="添加" Width="55px" />
-
- <asp:Button ID="cancle" runat="server" Text="取消" Width="63px" /></td>
- </tr>
- </table>
- </form>
- <script language="JavaScript" type="text/JavaScript">
- function Add_Click()
- {
- if (document.all.txb_Name.value=="")
- {
- alert("用户名不能为空!");
- document.all.txb_Name.focus();
- return false;
- }
- if (document.all.txb_FPwd.value == "" )
- {
- alert("密码不能为空!");
- document.all.txb_FPwd.focus();
- return false;
- }
- if (document.all.txb_SPwd.value == "")
- {
- alert("再次输入密码!");
- document.all.txb_SPwd.focus();
- return false;
- }
- document.all.btn_Add.click();
- }
- function Cancel_Click()
- {
- window.location.href='Admin.aspx';
- }
- function Check(obj)
- {
- if (obj.checked == true)
- {
- document.all.hid_Value.value += obj.value + ",";
- }
- else
- {
- document.all.hid_Value.value = document.all.hid_Value.value.replace(obj.value + ",","");
- }
- }
- </script>
- </body>
- </HTML>