admin_user.aspx
上传用户:szhf331
上传日期:2022-06-22
资源大小:1032k
文件大小:5k
源码类别:

行业应用

开发平台:

JavaScript

  1. <%@ page language="C#" autoeventwireup="true" inherits="Admin_admin_user, App_Web_p9n__skl" enableeventvalidation="false" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5.      <title>学生系统后台管理</title>
  6.      <script src="inc/admin.js" type="text/javascript"></script>
  7.     <script src="inc/showpage.js" type="text/javascript"></script>
  8.     <script src="../Admin/js/jquery-1.3.2.min.js" type="text/javascript"></script>
  9.     <script src="../Admin/js/jquery.validate.min.js" type="text/javascript"></script>
  10.     <link href="images/css.css" type="text/css" rel="stylesheet" />
  11.     <link href="images/admin_file_css.css" type="text/css" rel="stylesheet" />
  12. </head>
  13. <body>
  14.     <form id="form1" runat="server">
  15.     <h1>
  16.         管理员信息修改</h1>
  17.     <h4>
  18.         <b>相关操作:</b> <a href="admin_user_Add.aspx">添加新管理员</a> |
  19.     </h4>
  20.     <div style="height: 3px; width: 100%; background: #fff;">
  21.     </div>
  22.     <table width="100%" cellspacing="1" cellpadding="0" class="info_tab">
  23.         <form method="POST" action="?action=mod">
  24.             <tr>
  25.                 <td class="zq" width="20%">
  26.                     帐 号</td>
  27.                 <td>
  28.                     &nbsp;<%= CurrentAdmin.UserId_25175%></td>
  29.             </tr>
  30.             <tr>
  31.                 <td class="zq" width="20%" style="height: 25px">
  32.                     姓 名</td>
  33.                 <td style="height: 25px">
  34.                     &nbsp;<input runat="Server" class="put" type="text" id="txta_UserName" value=''></td>
  35.             </tr>
  36.             <tr>
  37.                 <td class="zq" width="20%">
  38.                    输入旧密码</td>
  39.                 <td>
  40.                     &nbsp;<input runat="Server" class="put" type="PassWord" id="txta_OldPassWord" name="txta_OldPassWord" value=""></td>
  41.             </tr>
  42.                  <tr>
  43.                 <td class="zq" width="20%">
  44.                    输入新密码</td>
  45.                 <td>
  46.                     &nbsp;<input runat="Server" class="put" type="PassWord" id="newPassWord1" name="newPassWord1" value=""></td>
  47.             </tr>
  48.                    <tr>
  49.                 <td class="zq" width="20%">
  50.                    再输入一次新密码</td>
  51.                 <td>
  52.                     &nbsp;<input runat="Server" class="put" type="PassWord" id="newPassWord2" name="newPassWord2"  value=""></td>
  53.             </tr>
  54.             <tr>
  55.                 <td>
  56.                     &nbsp;</td>
  57.                 <td>
  58.                     &nbsp;<asp:Button ID="btnSubmit" runat="server"
  59.                         Text="确认修改" OnClick="btnSubmit_Click" />
  60.              </td>
  61.             </tr>
  62.         </form>
  63.     </table>
  64.     <h1>
  65.         &nbsp;</h1>
  66.     </form>
  67.     <script type="text/javascript">
  68.       
  69.            $(function() {
  70.             $("#form1").validate({// #formId为需要进行验证的表单ID
  71.                 errorElement: "div", // 使用"div"标签标记错误, 默认:"label"
  72.                 wrapper: "li", // 使用"li"标签再把上边的errorELement包起来
  73.                 errorClass: "validate-error", // 错误提示的css类名"error
  74.                 focusCleanup: false, // 当未通过验证的元素获得焦点时,并移除错误提示
  75.                 rules: {
  76.                     txta_UserName: {// 需要进行验证的输入框name
  77.                         required: true// 验证条件:必填
  78.                     },
  79.                     txta_OldPassWord: {// 需要进行验证的输入框name
  80.                         required: true// 验证条件:必填
  81.                     },
  82.                     newPassWord1: {
  83.                         required: true
  84.                     },
  85.                     newPassWord2: {
  86.                         required: true,
  87.                         equalTo:"#newPassWord1"
  88.                     }
  89.                 },
  90.                 messages: {
  91.                     txta_UserName: {
  92.                         required: "请输入用户姓名!"// 验证未通过的消息
  93.                     },
  94.                     txta_OldPassWord: {
  95.                         required: "请输入旧密码!"// 验证未通过的消息
  96.                     },
  97.                     newPassWord1: {
  98.                         required: "请输入新密码!"// 验证未通过的消息
  99.                     },
  100.                     newPassWord2: {
  101.                         required: "请再输一次新密码!",// 验证未通过的消息
  102.                         equalTo:"两次密码输入必须相同!"
  103.                     }
  104.                 }
  105.             });
  106.         });
  107.      
  108.     </script>
  109. </body>
  110. </html>