ZPaddsave.asp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!--#include file="../bdcommx/connxyz.asp"-->
  2. <%call log_chk()
  3. call passChk()
  4. zhiwei=trim(request("zhiwei"))
  5. xingzhi=trim(request("xingzhi"))
  6. diqu=trim(request("diqu"))
  7. xueli=trim(request("xueli"))
  8. renshu=trim(request("renshu"))
  9. xinzi=trim(request("xinzi"))
  10. jingyan=trim(request("xinzi"))
  11. 'bumen=trim(request("bumen"))
  12. 'sex=trim(request("sex"))
  13. 'shanggang=trim(request("shanggang"))
  14. note=trim(request("note"))
  15. shunxu=trim(request("shunxu"))
  16. if zhiwei<>"" then
  17. Set rs=Server.Createobject("Adodb.Recordset")
  18. sql="select * from adzp where zp_zw='"&zhiwei&"'"
  19. rs.open sql,conn,1,3
  20. if not rs.eof and not rs.bof then
  21. call backurl("该职位已存在")
  22. else
  23. rs.addnew
  24. rs("zp_zw")=zhiwei
  25. rs("zp_xingzhi")=xingzhi
  26. rs("zp_xueli")=xueli
  27. rs("zp_dq")=diqu
  28. rs("zp_xinzi")=xinzi
  29. rs("zp_rs")=renshu
  30. 'rs("zp_bm")=bumen
  31. 'rs("zp_sg")=shanggang
  32. 'rs("zp_sex")=sex
  33. rs("zp_note")=note
  34. rs("zp_time")=now()
  35. rs("zp_jingyan")=jingyan
  36. if shunxu<>"" then
  37. rs("zp_odr")=shunxu
  38. end if
  39. rs.update
  40. rs.close
  41. set rs=nothing
  42. response.write"<SCRIPT language=JavaScript>alert('发布成功!');"
  43. response.write"this.location.href='ZPadd.asp';</SCRIPT>"
  44. end if
  45. else
  46. call backurl("职位名不能为空!")
  47. end if%>