x_adminpwd_edit_ok.jsp
资源名称:shihua.rar [点击查看]
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:1k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
JavaScript
- <%@ page contentType="text/html;charset=gb2312"%>
- <%@include file="../include/checkadmin.jsp"%>
- <%@page import="java.sql.*"%>
- <%@include file="../include/db_conn.jsp"%>
- <%@include file="../include/const.jsp"%>
- <%!String sAccount;%>
- <%!String sPassword;%>
- <%
- sPassword =request.getParameter("password");
- if(sPassword.length()<1){
- out.println("<script language='javascript'>");
- out.println("alert('请输入新密码!');");
- out.println("history.back();");
- out.println("</script>");
- return;
- }
- sql="UPDATE tbl_admin_user SET admin_password='"+sPassword+"'";
- sql=sql+" where admin_id='"+session.getValue("admin_id_s")+"'";
- //out.println(sql);
- smt.executeUpdate(sql);
- out.println("<script language='javascript'>");
- out.println("alert('密码修改成功!请用新密码重新登录!');");
- out.println("location.href='exit.jsp';");
- out.println("</script>");
- %>