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

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

开发平台:

JavaScript

  1. <%@ page contentType="text/html;charset=gb2312"%> 
  2. <%@include file="../include/checkadmin.jsp"%>
  3. <%@page import="java.sql.*"%>
  4. <%@include file="../include/db_conn.jsp"%>
  5. <%@include file="../include/const.jsp"%>
  6. <%!String sAccount;%>
  7. <%!String sPassword;%>
  8. <%
  9. sPassword  =request.getParameter("password");
  10. if(sPassword.length()<1){
  11. out.println("<script language='javascript'>");
  12. out.println("alert('请输入新密码!');");
  13. out.println("history.back();");
  14. out.println("</script>");
  15. return;
  16. }
  17. sql="UPDATE tbl_admin_user SET admin_password='"+sPassword+"'";
  18. sql=sql+" where admin_id='"+session.getValue("admin_id_s")+"'";
  19. //out.println(sql);
  20. smt.executeUpdate(sql);
  21. out.println("<script language='javascript'>");
  22.   out.println("alert('密码修改成功!请用新密码重新登录!');");
  23.   out.println("location.href='exit.jsp';");
  24. out.println("</script>");
  25. %>