x_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_dept;%>
  13. <%!String admin_username;%>
  14. <%!String admin_password;%>
  15. <%String admin_column=null;%>
  16. <%
  17. int intRowCount; //记录总数
  18. //判断用户名是否填写
  19. String admin_type = "65";
  20. //判断用户名是否填写
  21. String admin_id;
  22. admin_id=request.getParameter("admin_id");
  23. admin_username   =request.getParameter("admin_username");
  24. admin_password   =request.getParameter("admin_password");
  25. try{
  26. String[] column_id_values=request.getParameterValues("ra01");
  27. for(int i = 0; i < column_id_values.length; i++) {
  28. admin_column=column_id_values[i];
  29. }
  30. }catch(Exception e){
  31. }
  32. admin_type = admin_column;
  33. if (admin_type.equals("65")) admin_dept ="业务查询";
  34. if (admin_type.equals("66")) admin_dept ="系统管理员";
  35. if(admin_column==null) admin_column="";
  36. admin_column="0,"+admin_column+",0";
  37. sql="update tbl_admin_user set admin_password='"+admin_password+"'";
  38. sql = sql + ",admin_column='"+admin_column+"',admin_dept='"+admin_dept+"'" ;
  39. sql = sql + ",admin_type='"+admin_type+"'";
  40. sql = sql + "  where admin_id="+"'"+admin_id+"'";
  41. //sql=getGBString(sql);
  42. //out.println(sql);
  43. smt.executeUpdate(sql);
  44. %>
  45. <%@include file="../include/header.jsp"%>
  46. <br>
  47. <table width="700" border="0" cellspacing="1" cellpadding="1" bgcolor="#f0f0f0" align="center">
  48.   <tr> 
  49.     <td> 
  50.       <table width="700" border="0" cellspacing="0" cellpadding="0" align="center">
  51.         <tr align="left"> 
  52.           <td height="28" >&nbsp;&nbsp;<font face="webdings" color="#666666">8</font><a href="x_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>
  53.         </tr>
  54.         <tr align="center"> 
  55.           <td height="120" bgcolor="#ffffff"><b><font color=red>用户修改成功!</font></b><br><br><a href='x_list_admin_user.jsp'>返回</a></td>
  56.         </tr>
  57.       </table>
  58.     </td>
  59.   </tr>
  60.   <tr> 
  61.     <td height="10"></td>
  62.   </tr>
  63. </table>
  64. <br>
  65. <%@include file="../include/bottom.jsp"%>
  66. </body>
  67. </html>