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

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. <%
  7. String admin_id;
  8. admin_id=request.getParameter("admin_id");
  9. sql="SELECT C_ID,KUNNR,NAME1 FROM V_ZSD_KNA1_USER WHERE C_ID="+admin_id;
  10. rs=smt.executeQuery(sql);
  11. rs.last();
  12. if(rs.getRow()<1) return;
  13. %>
  14. <html>
  15. <head>
  16. <title>::::翔鹭石化企业(厦门)有限公司::::</title>
  17. <META NAME="robots" CONTENT="none">
  18. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  19. <link rel="stylesheet" href="../include/main.css" type="text/css">
  20. <script language="javascript">
  21. function chkfrm_addadmin(){
  22. if(document.frm_addadmin.admin_username.value==""){
  23. alert("请填写分配权限的用户名!");
  24. document.frm_addadmin.admin_username.focus();
  25. return false;
  26. }
  27. if(document.frm_addadmin.admin_password.value==""){
  28. alert("请填写用户密码!");
  29. document.frm_addadmin.admin_password.focus();
  30. return false;
  31. }
  32. }
  33. </script>
  34. </head>
  35. <body bgcolor="#FFFFFF" leftMargin=0 marginwidth="0" topmargin=0>
  36. <br>
  37. <!--#include file="../include/header.asp"-->
  38. <br>
  39. <table width="700" border="0" cellspacing="1" cellpadding="1" class=p9 align="center" bgcolor="#f0f0f0">
  40.   <form action="editok_admin_user.jsp?admin_id=<%=admin_id%>" method="post" name="frm_addadmin" onsubmit="javascript:return chkfrm_addadmin();">
  41.   <tr align="left"> 
  42.       <td height="25" >&nbsp;&nbsp;<font face="webdings" color="#666666">8</font><a href="list_admin_user.jsp">返回</a> 
  43.         <img src="../images/pixel.gif" width="180" height="1"><span style="FONT-SIZE: 14px"><b><font color="#666666">用户密码修改</font></b></span></td>
  44.   </tr>
  45.   <tr align="right" bgcolor="#FFFFFF"> 
  46.     <td align="right"><b> <font color="#666666">注意:</font></b><font color="#666666">请在20分钟以内完成提交,否则输入无效!</font>&nbsp;</td>
  47.   </tr>
  48.   <tr align="center" bgcolor="#FFFFFF"> 
  49.     <td height="35"><br>
  50.         <table border="1" cellpadding="2" cellspacing="0" class="p9" bordercolor="#cccccc" bordercolordark="#FFFFFF" bordercolorlight="#cccccc" width="90%">         
  51.   <tr> 
  52. <td height="30" width="16%">客户名称</td>
  53.     <input type="hidden" name="admin_dept" value="客户">
  54. <input type="hidden" name="column_id" value="67">
  55. <td > 
  56. <input name=admin_dec  readonly="yes" value="<%=rs.getString("NAME1")%>" type=text size=30 maxlength=20 class="p9" style="WIDTH: 230px; COLOR: navy;">
  57. </td>
  58.   </tr>
  59.   <tr> 
  60. <td height="30" width="16%">用户名称<br>(客户编号)</td>
  61. <td > 
  62. <input name=admin_username readonly="yes" value="<%=rs.getString("KUNNR")%>" type=text size=30 maxlength=20 class="p9" style="WIDTH: 230px; COLOR: navy;">
  63. </td>
  64.   </tr>
  65.   <tr> 
  66. <td height="30" width="16%">新密码密码</td>
  67. <td > 
  68. <input name=admin_password value="" type=password size=30 maxlength=20 class="p9" style="WIDTH: 230px; COLOR: navy;">
  69. <font color="red">*</font>
  70. </td>
  71.   </tr>
  72.         </table><br>
  73.       </td>
  74.   </tr>
  75.   <tr align="center" bgcolor="#FFFFFF"> 
  76.       <td height="40"> 
  77.         <input type="hidden" name="edit_action" value="edit">
  78.       <input type="submit" name="Submit" value="保存" class=p9 style="WIDTH: 85px; HEIGHT: 24px;">
  79.       &nbsp;&nbsp; 
  80.       </td>
  81.   </tr>
  82.   <tr align="center">
  83.     <td height="10"></td>
  84.   </tr>
  85.   </form>
  86. </table>
  87. <br>
  88. <!--#include file="../include/bottom.asp"-->
  89. </body>
  90. </html>