NoteDel.asp
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:2k
源码类别:

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../../FS_Inc/Const.asp" -->
  3. <!--#include file="../../FS_InterFace/MF_Function.asp" -->
  4. <!--#include file="../../FS_InterFace/ns_Function.asp" -->
  5. <!--#include file="../../FS_Inc/Function.asp" -->
  6. <%
  7. response.buffer=true
  8. Response.CacheControl = "no-cache"
  9. Dim Conn,User_Conn
  10. MF_Default_Conn
  11. 'session判断
  12. MF_Session_TF 
  13. if not MF_Check_Pop_TF("WS002") then Err_Show
  14. %>
  15. <html>
  16. <HEAD>
  17. <TITLE>FoosunCMS留言系统</TITLE>
  18. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
  19. </HEAD>
  20. <link href="../images/skin/Css_<%=Session("Admin_Style_Num")%>/<%=Session("Admin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  21. <body>
  22. <%
  23. Dim NoteId,i,strShowErr
  24. if Request.QueryString("Act")="single" then
  25. if Request.querystring("ID")<>"" then
  26. Conn.execute("Delete From FS_WS_BBS where ID="&trim(Request.querystring("ID"))&" and ParentID='0' ")
  27. Conn.execute("Delete From FS_WS_BBS where ParentID='"&trim(Request.querystring("ID"))&"'")
  28. strShowErr = "<li>操作成功</li>"
  29. Response.Redirect("../Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=bbs/ClassMessageManager.asp")
  30. Response.end
  31. else
  32. strShowErr = "<li>参数出错!</li>"
  33. Response.Redirect("../error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"")
  34. Response.end
  35. end if
  36. end if
  37. if Request.QueryString("Act")="del" then
  38.   if Request.form("NoteID")<>""then
  39. NoteID=Request.form("NoteID")
  40. NoteID=split(NoteID,",")
  41. For i=LBound(NoteID) To UBound(NoteID)
  42. Conn.execute("Delete From FS_WS_BBS where ID="&Trim(NoteID(i))&"")
  43. Next
  44. strShowErr = "<li>操作成功</li>"
  45. Response.Redirect("../Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=bbs/ClassMessageManager.asp")
  46. Response.end
  47. else
  48. strShowErr = "<li>参数出错!</li>"
  49. Response.Redirect("../error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"")
  50. Response.end
  51. end if
  52. end if
  53. Set Conn=nothing
  54. %>
  55. </body>
  56. </html>