12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <%@page import="java.util.Map"%>
- <%@page import="org.json.JSONObject"%>
- <%@page import="com.ccgj.platform.admin.USERAction"%>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <%@taglib uri="/struts-tags" prefix="s"%>
- <%@ page pageEncoding="utf-8"%>
- <!DOCTYPE html>
- <html>
- <head>
- <%
- String path = request.getContextPath();
- String basePath = request.getScheme() + "://"
- + request.getServerName() + ":" + request.getServerPort()
- + path + "/";
- String username=request.getParameter("username").trim();
- String ypwd=request.getParameter("ypwd");
- String newpwd=request.getParameter("newpwd");
- String qrpwd=request.getParameter("qrpwd");
- String id=request.getParameter("id");
- String userid=request.getParameter("userid");
- USERAction ua=new USERAction();
- Map <String,String>m=ua.login(username,ypwd);
- if(m.get("success").equals("true")){
- //修改密码
- boolean boo=ua.changePassword(newpwd, userid);
- if(boo){
- %>
- <script>
- alert("修改成功!");
- <%
- session.removeAttribute("username");
- session.removeAttribute("userpwd");
- session.removeAttribute("userfullname");
- session.removeAttribute("userid");
- %>
- window.location.href="<%=basePath%>main/<%=id%>_0/news_xxjb.html";
- </script>
- <%}else{ %>
- <script>
- alert("网络繁忙,密码修改失败,请稍后重试");
- history.go(-1);
- </script>
- <%}
- }else{
- %>
- <script>
- alert("密码错误,请重新输入");
- history.go(-1);
- </script>
- <%
- }
- %>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>长春经济技术开发区内网</title>
- </head>
- <body>
- </body>
- </html>
|