editok_admin_user.jsp
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:2k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

  1. <%@ page contentType="text/html;charset=gb2312"%> 
  2. <html>
  3. <head>
  4. <title>翔鹭石化企业(厦门)有限公司_密码修改</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  6. <link rel="stylesheet" href="../include/main.css" type="text/css">
  7. </head>
  8. <body bgcolor="#FFFFFF" text="#000000">
  9. <%@page import="java.sql.*"%>
  10. <%@include file="../include/db_conn.jsp"%>
  11. <%@include file="../include/const.jsp"%>
  12. <%!String admin_id;%>
  13. <%!String admin_dept;%>
  14. <%!String admin_username;%>
  15. <%!String admin_password;%>
  16. <%String admin_column=null;%>
  17. <%
  18. int intRowCount; //记录总数
  19. //判断用户名是否填写
  20. admin_username   =request.getParameter("admin_username");
  21. admin_password   =request.getParameter("admin_password");
  22. //sql="insert into tbl_admin_user(admin_username,admin_password,admin_dept,admin_column) values('"+admin_username+"','"+admin_password+"','"+admin_dept+"','"+admin_column+"')";
  23. sql="update tbl_admin_user set admin_password='"+admin_password+"' where admin_username="+"'"+admin_username+"'";
  24. sql=getGBString(sql);
  25. //out.println(sql);
  26. smt.executeUpdate(sql);
  27. %>
  28. <%@include file="../include/header.jsp"%>
  29. <br>
  30. <table width="700" border="0" cellspacing="1" cellpadding="1" bgcolor="#f0f0f0" align="center">
  31.   <tr> 
  32.     <td> 
  33.       <table width="700" border="0" cellspacing="0" cellpadding="0" align="center">
  34.         <tr align="left"> 
  35.           <td height="28" >&nbsp;&nbsp;<font face="webdings" color="#666666">8</font><a href="list_admin_user.jsp">返回</a> <img src="../images/pixel.gif" width="235" height="1"><span style="FONT-SIZE: 14px"><b><font color="#666666">密码修改</font></b></span></td>
  36.         </tr>
  37.         <tr align="center"> 
  38.           <td height="120" bgcolor="#ffffff"><b><font color=red>密码修改成功!</font></b><br><br><a href='list_admin_user.jsp'>返回</a></td>
  39.         </tr>
  40.       </table>
  41.     </td>
  42.   </tr>
  43.   <tr> 
  44.     <td height="10"></td>
  45.   </tr>
  46. </table>
  47. <br>
  48. <%@include file="../include/bottom.jsp"%>
  49. </body>
  50. </html>