DelNewsTell.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. <!--#include file="../../FS_Inc/Func_page.asp" -->
  7. <%
  8. response.buffer=true
  9. Response.CacheControl = "no-cache"
  10. Dim Conn,User_Conn
  11. MF_Default_Conn
  12. 'session判断
  13. MF_Session_TF 
  14. if not MF_Check_Pop_TF("WS002") then Err_Show
  15. %>
  16. <html>
  17. <HEAD>
  18. <TITLE>FoosunCMS</TITLE>
  19. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
  20. </HEAD>
  21. <link href="../images/skin/Css_<%=Session("Admin_Style_Num")%>/<%=Session("Admin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  22. <body>
  23. <%
  24. dim ID,i,strShowErr
  25. If Request.querystring("Act")="singledel" then
  26. ID=Request.querystring("ID")
  27. if ID="" then
  28. strShowErr = "<li>参数不足</li>"
  29. Response.Redirect("../error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=BBS/NewTell.asp")
  30. Response.end
  31. else
  32. Conn.execute("delete From FS_WS_NewsTell Where ID="&ID&"")
  33. strShowErr = "<li>删除成功</li>"
  34. Response.Redirect("../Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=BBS/NewTell.asp")
  35. Response.end
  36. end if
  37. end if
  38. If Request.queryString("Act")="del" then
  39. ID=Request.form("TellID")
  40. if ID="" then
  41. strShowErr = "<li>参数不足</li>"
  42. Response.Redirect("../error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=BBS/NewTell.asp")
  43. Response.end
  44. else
  45. ID=split(ID,",")
  46. For i=LBound(ID) to UBound(ID)
  47. Conn.execute("delete From FS_WS_NewsTell Where ID="&ID(i)&"")
  48. Next
  49. strShowErr = "<li>删除成功</li>"
  50. Response.Redirect("../Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=BBS/NewTell.asp")
  51. Response.end
  52. end if
  53. end if
  54. Set Conn=nothing
  55. %>
  56. </body>
  57. </html>