yns_uup.asp
上传用户:yjkj1008
上传日期:2020-10-17
资源大小:1496k
文件大小:4k
源码类别:

电子政务应用

开发平台:

HTML/CSS

  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
  2. <!--#include file="Connections/conn_news.asp" --> <% '请尊重作者劳动成果不要删除以上信息 '业一新闻系统3.0正式版 '主页:http://yeyi.net '论坛:http://bbs.yeyi.net '业一网络 承接各种网站制作 '程序开发 软件开发业务 '业务联系 '电话: 13007310512 '联系人:郝亚平 'QQ:24344842 (只谈业务,技术问题请访问论坛) '请尊重作者劳动成果不要删除以上信息 %>
  3. <%
  4. ' *** Restrict Access To Page: Grant or deny access to this page
  5. MM_authorizedUsers="3"
  6. MM_authFailedURL="default.asp"
  7. MM_grantAccess=false
  8. If Session("MM_Username") <> "" Then
  9.   If (false Or CStr(Session("MM_UserAuthorization"))="") Or _
  10.          (InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
  11.     MM_grantAccess = true
  12.   End If
  13. End If
  14. If Not MM_grantAccess Then
  15.   MM_qsChar = "?"
  16.   If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
  17.   MM_referrer = Request.ServerVariables("URL")
  18.   if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
  19.   MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
  20.   Response.Redirect(MM_authFailedURL)
  21. End If
  22. %>
  23. <%
  24. Dim rsu__MMColParam
  25. rsu__MMColParam = "1"
  26. If (Request.QueryString("u_id") <> "") Then 
  27.   rsu__MMColParam = Request.QueryString("u_id")
  28. End If
  29. %>
  30. <%
  31. Dim rsu
  32. Dim rsu_numRows
  33. Set rsu = Server.CreateObject("ADODB.Recordset")
  34. rsu.ActiveConnection = MM_conn_news_STRING
  35. rsu.Source = "SELECT * FROM t_user WHERE u_id = " + Replace(rsu__MMColParam, "'", "''") + ""
  36. rsu.CursorType = 0
  37. rsu.CursorLocation = 2
  38. rsu.LockType = 1
  39. rsu.Open()
  40. rsu_numRows = 0
  41. %>
  42. <html>
  43. <head>
  44. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  45. <title>业一新闻系统3.0正式版-------业一网络Yeyi.net制作</title>
  46. <link href="style/css.css" rel="stylesheet" type="text/css">
  47. </head>
  48. <body><br>
  49. <form action="yns_uusave.asp" method="post" name="form1">
  50.   <table width="250" border="0" align="center" cellpadding="0" cellspacing="0">
  51.     <tr> 
  52.       <td height="30" colspan="2" align="center" nowrap></td>
  53.     </tr>
  54.     <tr> 
  55.       <td height="3" colspan="2" align="center" nowrap bgcolor="#CCCCCC"></td>
  56.     </tr>
  57.     <tr> 
  58.       <td height="7" colspan="2" align="center" nowrap class="bg"></td>
  59.     </tr>
  60.     <tr> 
  61.       <td width="30%" height="25" align="center" nowrap>用户名:</td>
  62.       <td height="25"><font color="#FF0000"><%=(rsu.Fields.Item("u_name").Value)%></font> </td>
  63.     </tr>
  64.     <tr class="bg"> 
  65.       <td width="30%" height="25" align="center" nowrap>用户等级:</td>
  66.       <td height="25"> <select style="font-family: 宋体; font-size: 9pt" name="u_level">
  67.           <option value="1" selected>录入员</option>
  68.           <option value="2">审核员</option>
  69.           <option value="3">管理员</option>
  70.         </select> </td>
  71.     </tr>
  72.     <tr> 
  73.       <td height="25" align="center" nowrap>旧密码:</td>
  74.       <td height="25"><input name="u_pass1" type="password" id="u_pass1" style="font-family: 宋体; font-size: 9pt" size="20"></td>
  75.     </tr>
  76.     <tr class="bg"> 
  77.       <td height="25" align="center" nowrap>新密码:</td>
  78.       <td height="25"> <input name="u_pass2" type="password" id="u_pass2" style="font-family: 宋体; font-size: 9pt" size="20"></td>
  79.     </tr>
  80.     <tr> 
  81.       <td width="30%" height="25" align="center" nowrap>确认密码:</td>
  82.       <td height="25"><input name="u_pass3" type="password" id="u_pass3" style="font-family: 宋体; font-size: 9pt" size="20"> 
  83.       </td>
  84.     </tr>
  85.     <tr align="center"> 
  86.       <td height="25" colspan="2" nowrap> <input type="submit" value="修改密码">
  87.         <input name="u_id" type="hidden" id="u_id" value="<%=(rsu.Fields.Item("u_id").Value)%>"> </td>
  88.     </tr>
  89.   </table>
  90. </form>
  91. <p>&nbsp;</p>
  92. </body>
  93. </html>
  94. <%
  95. rsu.Close()
  96. Set rsu = Nothing
  97. %>