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

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 * from tbl_admin_user WHERE admin_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="x_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="x_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%"><strong><font color="#0000FF">用户名</font></strong></td>
  53. <td > 
  54. <input name=admin_username readonly="yes" value="<%=rs.getString("admin_username")%>" type=text size=30 maxlength=20 class="p9" style="WIDTH: 230px; COLOR: navy;">
  55. </td>
  56.   </tr>
  57.   <tr> 
  58. <td height="30" width="16%"><strong><font color="#0000FF">新密码</font></strong></td>
  59. <td > 
  60. <input name=admin_password value="" type=password size=30 maxlength=20 class="p9" style="WIDTH: 230px; COLOR: navy;">
  61. <font color="red">*</font>
  62. </td>
  63.   </tr>
  64.   <tr> 
  65. <td height="30" width="16%"><strong><font color="#0000FF">用户角色</font></strong></td>
  66. <td>
  67. <table border="1" cellpadding="2" cellspacing="0" class="p9" bordercolor="#cccccc" bordercolordark="#FFFFFF" bordercolorlight="#cccccc" width="230">
  68.   <tr>
  69.        <td><input type="radio" name="ra01" value="66" <%if (rs.getString("admin_type").equals("66")){%> checked <%}%>>系统管理员</td>
  70.   </tr>
  71.   <tr>
  72.        <td> <input type="radio" name="ra01" value="65" <%if(rs.getString("admin_type").equals("65")){%> checked <%}%>>业务查询</td>
  73.   </tr>
  74. </table>
  75. </td>
  76.   </tr>   
  77.         </table><br>
  78.       </td>
  79.   </tr>
  80.   <tr align="center" bgcolor="#FFFFFF"> 
  81.       <td height="40"> 
  82.         <input type="hidden" name="edit_action" value="edit">
  83.       <input type="submit" name="Submit" value="保存" class=p9 style="WIDTH: 85px; HEIGHT: 24px;">
  84.       &nbsp;&nbsp; 
  85.       </td>
  86.   </tr>
  87.   <tr align="center">
  88.     <td height="10"></td>
  89.   </tr>
  90.   </form>
  91. </table>
  92. <br>
  93. <!--#include file="../include/bottom.asp"-->
  94. </body>
  95. </html>