Pmodsave.asp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!--#include file="../bdcommx/connxyz.asp"-->
  2. <%
  3. call log_chk()
  4. dim thex,title,npdcla,picpath,tlink,note,d_content,Bname,Sname,odr,zhaiyao,canshu,cppz,jscs
  5. thex=request("thex")
  6. Bname=request("Bname")
  7. Sname=request("Sname")
  8. title=trim(request("title"))
  9. npdcla=request("npdcla")
  10. picpath=request("picpath")
  11. tlink=request("tlink")
  12. zhaiyao=request("zhaiyao")
  13. canshu=request("canshu")
  14. jscs=request("note")
  15. cppz=request("cppz")
  16. tj=request("tj")
  17. odr=request("odr")
  18. d_content=request("d_content")
  19. if title="" or npdcla="" then
  20. call backurl("标题或者类别不能为空!")
  21. else
  22. Set rs=Server.Createobject("Adodb.Recordset")
  23. sql="select * from bdcp where cxp_id="&thex&""
  24. rs.open sql,conn,1,3
  25. rs("cxp_name")=title
  26. myA=split(npdcla,"|")
  27. rs("cb_id")=myA(0)
  28. rs("cs_id")=myA(1)
  29. rs("cxp_zd")=zd
  30. if odr<>"" then
  31. rs("cxp_order")=odr
  32. end if
  33. rs("Fileurl")=picpath
  34. rs("cxp_link")=tlink
  35. rs("cxp_zy")=request("zhaiyao")
  36. rs("cxp_cppz")=request("cppz")
  37. rs("cxp_note")=jscs
  38. rs("cxp_cs")=request("canshu")
  39. rs("cxp_cont")=d_content
  40. rs("cxp_Author")=session("adminxxx")
  41. rs("cxp_time")=now()
  42. rs.update
  43. rs.close
  44. set rs=nothing
  45. call GoUrl("Pmod.asp?thex="&thex&"&Bname="&Bname&"&Sname="&Sname&"","修改成功")
  46. end if
  47. %>