x_editok_admin_user.jsp
资源名称:shihua.rar [点击查看]
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:2k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
JavaScript
- <%@ page contentType="text/html;charset=gb2312"%>
- <html>
- <head>
- <title>翔鹭石化企业(厦门)有限公司_密码修改</title>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <link rel="stylesheet" href="../include/main.css" type="text/css">
- </head>
- <body bgcolor="#FFFFFF" text="#000000">
- <%@page import="java.sql.*"%>
- <%@include file="../include/db_conn.jsp"%>
- <%@include file="../include/const.jsp"%>
- <%!String admin_dept;%>
- <%!String admin_username;%>
- <%!String admin_password;%>
- <%String admin_column=null;%>
- <%
- int intRowCount; //记录总数
- //判断用户名是否填写
- String admin_type = "65";
- //判断用户名是否填写
- String admin_id;
- admin_id=request.getParameter("admin_id");
- admin_username =request.getParameter("admin_username");
- admin_password =request.getParameter("admin_password");
- try{
- String[] column_id_values=request.getParameterValues("ra01");
- for(int i = 0; i < column_id_values.length; i++) {
- admin_column=column_id_values[i];
- }
- }catch(Exception e){
- }
- admin_type = admin_column;
- if (admin_type.equals("65")) admin_dept ="业务查询";
- if (admin_type.equals("66")) admin_dept ="系统管理员";
- if(admin_column==null) admin_column="";
- admin_column="0,"+admin_column+",0";
- sql="update tbl_admin_user set admin_password='"+admin_password+"'";
- sql = sql + ",admin_column='"+admin_column+"',admin_dept='"+admin_dept+"'" ;
- sql = sql + ",admin_type='"+admin_type+"'";
- sql = sql + " where admin_id="+"'"+admin_id+"'";
- //sql=getGBString(sql);
- //out.println(sql);
- smt.executeUpdate(sql);
- %>
- <%@include file="../include/header.jsp"%>
- <br>
- <table width="700" border="0" cellspacing="1" cellpadding="1" bgcolor="#f0f0f0" align="center">
- <tr>
- <td>
- <table width="700" border="0" cellspacing="0" cellpadding="0" align="center">
- <tr align="left">
- <td height="28" > <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>
- </tr>
- <tr align="center">
- <td height="120" bgcolor="#ffffff"><b><font color=red>用户修改成功!</font></b><br><br><a href='x_list_admin_user.jsp'>返回</a></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td height="10"></td>
- </tr>
- </table>
- <br>
- <%@include file="../include/bottom.jsp"%>
- </body>
- </html>