admin_user.aspx
上传用户:szhf331
上传日期:2022-06-22
资源大小:1032k
文件大小:5k
- <%@ page language="C#" autoeventwireup="true" inherits="Admin_admin_user, App_Web_p9n__skl" enableeventvalidation="false" %>
- <!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>
- <script src="inc/admin.js" type="text/javascript"></script>
- <script src="inc/showpage.js" type="text/javascript"></script>
- <script src="../Admin/js/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="../Admin/js/jquery.validate.min.js" type="text/javascript"></script>
- <link href="images/css.css" type="text/css" rel="stylesheet" />
- <link href="images/admin_file_css.css" type="text/css" rel="stylesheet" />
- </head>
- <body>
- <form id="form1" runat="server">
- <h1>
- 管理员信息修改</h1>
- <h4>
- <b>相关操作:</b> <a href="admin_user_Add.aspx">添加新管理员</a> |
- </h4>
- <div style="height: 3px; width: 100%; background: #fff;">
- </div>
- <table width="100%" cellspacing="1" cellpadding="0" class="info_tab">
- <form method="POST" action="?action=mod">
- <tr>
- <td class="zq" width="20%">
- 帐 号</td>
- <td>
- <%= CurrentAdmin.UserId_25175%></td>
- </tr>
- <tr>
- <td class="zq" width="20%" style="height: 25px">
- 姓 名</td>
- <td style="height: 25px">
- <input runat="Server" class="put" type="text" id="txta_UserName" value=''></td>
- </tr>
- <tr>
- <td class="zq" width="20%">
- 输入旧密码</td>
- <td>
- <input runat="Server" class="put" type="PassWord" id="txta_OldPassWord" name="txta_OldPassWord" value=""></td>
- </tr>
- <tr>
- <td class="zq" width="20%">
- 输入新密码</td>
- <td>
- <input runat="Server" class="put" type="PassWord" id="newPassWord1" name="newPassWord1" value=""></td>
- </tr>
- <tr>
- <td class="zq" width="20%">
- 再输入一次新密码</td>
- <td>
- <input runat="Server" class="put" type="PassWord" id="newPassWord2" name="newPassWord2" value=""></td>
- </tr>
- <tr>
- <td>
- </td>
- <td>
- <asp:Button ID="btnSubmit" runat="server"
- Text="确认修改" OnClick="btnSubmit_Click" />
- </td>
- </tr>
- </form>
- </table>
- <h1>
- </h1>
- </form>
- <script type="text/javascript">
-
- $(function() {
- $("#form1").validate({// #formId为需要进行验证的表单ID
- errorElement: "div", // 使用"div"标签标记错误, 默认:"label"
- wrapper: "li", // 使用"li"标签再把上边的errorELement包起来
- errorClass: "validate-error", // 错误提示的css类名"error
- focusCleanup: false, // 当未通过验证的元素获得焦点时,并移除错误提示
- rules: {
- txta_UserName: {// 需要进行验证的输入框name
- required: true// 验证条件:必填
- },
- txta_OldPassWord: {// 需要进行验证的输入框name
- required: true// 验证条件:必填
- },
- newPassWord1: {
- required: true
- },
- newPassWord2: {
- required: true,
- equalTo:"#newPassWord1"
- }
- },
- messages: {
- txta_UserName: {
- required: "请输入用户姓名!"// 验证未通过的消息
- },
- txta_OldPassWord: {
- required: "请输入旧密码!"// 验证未通过的消息
- },
- newPassWord1: {
- required: "请输入新密码!"// 验证未通过的消息
- },
- newPassWord2: {
- required: "请再输一次新密码!",// 验证未通过的消息
- equalTo:"两次密码输入必须相同!"
- }
- }
- });
- });
-
- </script>
- </body>
- </html>