mledit.asp
上传用户:qyswxdl
上传日期:2013-06-01
资源大小:1373k
文件大小:3k
源码类别:

家庭/个人应用

开发平台:

ASP/ASPX

  1. <STYLE type=text/css>
  2. .boxttt {
  3. BORDER-RIGHT: #b5b385 1px solid; BORDER-TOP: #4a492d 1px solid; FONT-SIZE: 12px; BACKGROUND: #939059; BORDER-LEFT: #4a492d 1px solid; COLOR: #333333; BORDER-BOTTOM: #b5b385 1px solid
  4. }
  5. .boxttx {
  6. BORDER-RIGHT: #4a492d 1px solid; BORDER-TOP: #b5b385 1px solid; FONT-SIZE: 12px; BACKGROUND: #a8a66f; BORDER-LEFT: #b5b385 1px solid; COLOR: #ffffff; PADDING-TOP: 1px; BORDER-BOTTOM: #4a492d 1px solid; HEIGHT: 18px
  7. }
  8. </STYLE><!--#include file="../inc/function.asp"-->
  9. <!--#include file="../security.asp"-->
  10. <!--#include file="tvconn.asp"-->
  11. <!--#include file="../../checkpost.asp"-->
  12. <%if session("flag")>1 then
  13.     response.write "<script>alert('您的操作权限不够!');history.back();</script>"
  14.     response.end
  15. end if
  16. %>
  17. <%
  18. Set rs = Server.CreateObject("ADODB.Recordset")
  19. %>
  20. <%
  21. if request("windows_ok")="修改" then
  22. dim js_fname
  23. dim js_falt
  24. dim sql
  25. js_fname=trim(request("js_fname"))
  26. js_falt=trim(request("js_falt"))
  27. dbid=request("id")
  28. sql="select * from jsfolder where id="&dbid
  29. rs.open sql,conn,1,3
  30. rs("js_fname")=js_fname
  31. rs("js_falt")=js_falt
  32. rs.update
  33. rs.close
  34. set rs=nothing
  35. conn.close
  36. set conn=nothing
  37. response.write "<script language='javascript'>" & chr(13)
  38. response.write "alert('编辑成功');"&Chr(13)
  39. response.write "window.document.location.href='tvml.asp';"&Chr(13)
  40. response.write "</script>" & Chr(13)
  41. Response.End
  42. End if
  43. dbid=request("id")
  44. sql="select * from jsfolder where id="&dbid
  45. rs.open sql,conn,1,3
  46. %>
  47. <link rel="stylesheet" type="text/css" href="../inc/Admin_STYLE.CSS">
  48. <style type="text/css">
  49. <!--
  50. body {
  51. background-color: #FFFFFF;
  52. }
  53. .样式1 {
  54. color: #000000;
  55. font-weight: bold;
  56. }
  57. -->
  58. </style><head>
  59. <meta http-equiv="Content-Language" content="zh-cn">
  60. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  61. <title>Adminstrator password</title>
  62. <link rel="stylesheet" type="text/css" href="images/test.css">
  63. </head>
  64. <body>
  65. <p align="center">&nbsp;</p>
  66. <form method="POST" action="mledit.asp?id=<%=rs("id")%>" name="form">
  67.   <div align="center">
  68.   <center>
  69.   <table class="border" width="400" border="0" align="center" cellpadding="0" cellspacing="0">
  70.   <tr class="tdbg">
  71.       <td height="22" colspan="2" align="center" class="title"><span class="样式1">修改分类</span></td>
  72.       </tr>
  73.     <tr class="tdbg">
  74.       <td width="102" align="center">分类名:</td>
  75.       <td width="298" height="40"><input type="text" name="js_fname" size="39" value='<%=rs("js_fname")%>'></td>
  76.     </tr>
  77.     <tr class="tdbg">
  78.       <td width="102" align="center">分类说明:</td>
  79.       <td width="298" height="40"><input type="text" name="js_falt" size="39" value='<%=rs("js_falt")%>'></td>
  80.     </tr>
  81.   </table>
  82.   </center>
  83. </div>
  84. <p align="center">
  85. <input type="submit" value="修改" name="windows_ok"> 
  86. <input type="reset" value="重写" name="reset">
  87. </form>
  88. </body> 
  89. <%
  90. rs.close
  91. conn.close
  92. Set rs=nothing
  93. Set conn=nothing 
  94. %>
  95. </html>