Deal_msg.asp
Upload User: pengwei803
Upload Date: 2021-02-10
Package Size: 3311k
Code Size: 1k
Development Platform:

HTML/CSS

  1. <!--#include file="../Ku_inc/Ku_sql.asp"-->
  2. <!--#include file="../Ku_inc/Ku_config.asp"-->
  3. <!--#include file="Ku_conn.asp"-->
  4. <!--#include file="../Ku_inc/inc.asp"-->
  5. <!-- #include file="Session.asp"-->
  6. <%
  7. if request("action")="del" then
  8. if Trim(Request("ID"))="" then
  9. FoundErr=True
  10. Message=Message & "<li>请您选择要删除的信息!</li>"
  11. else
  12. call Del()
  13. end if
  14. if FoundErr<>True then
  15. Sub Del()
  16. '删除信息
  17. sql = "delete from ku_msg where ID in ("& Trim(Request("ID")) &")"
  18. conn.execute (sql)
  19. End Sub
  20. '成功提示    
  21. call performMsgmsg("操作成功!","")
  22. end if
  23. if FoundErr=True then
  24. call ErrMsg(Message)
  25. end if
  26. end if
  27. %>
  28. <%
  29. if request("action")="huifu" then
  30. if Trim(Request("ID"))="" then
  31. FoundErr=True
  32. Message=Message & "<li>请您选择要操作的信息!</li>"
  33. else
  34. call strPeak()
  35. end if
  36. if FoundErr<>True then
  37. Sub strPeak()
  38. adoSQL="update ku_msg set huifu=1 where ID=" & Trim(Request("ID")) & ""
  39. conn.execute(adoSQL)
  40. End Sub
  41. '成功提示    
  42. call performMsgmsg("操作成功!","")
  43. end if
  44. if FoundErr=True then
  45. call ErrMsg(Message)
  46. end if
  47. end if
  48. %>