List_Save1.asp
上传用户:xxtaishan
上传日期:2022-01-02
资源大小:4063k
文件大小:2k
源码类别:

IP电话/视频会议

开发平台:

ASP/ASPX

  1. <!--#include file="../../inc/conn.asp"-->
  2. <!--#include file="../../inc/FUNC.asp" -->
  3. <!--#include file="../../inc/upload_5xsoft.inc" -->
  4. <%
  5. '-----------------------------
  6. Dim rs
  7. Dim sql
  8. '-----------------------------
  9. DIM UPLOAD
  10. SET UPLOAD=NEW UPLOAD_5XSOFT
  11. If UPLOAD.FORM("operation")="add" Then
  12. call Add
  13. elseif UPLOAD.FORM("operation")="edit" Then
  14. call Edit
  15. ELSE
  16. call showerr("系统提示:操作无效!")
  17. end if
  18. '-----------------------------
  19. Function Add
  20. if UPLOAD.FORM("money")=""  then
  21. call showerr("系统提示:不能为空!")
  22. end if
  23. set rs=server.createobject("adodb.recordset")
  24. rs.open "select * from xf",conn,1,3
  25. rs.addnew
  26. rs("user_id")=UPLOAD.FORM("id")
  27. rs("money")=UPLOAD.FORM("money")
  28. rs("time1")=UPLOAD.FORM("bysj")
  29. rs("postdate")=DATE()
  30. rs.Update
  31. call showmsg("系统提示:信息添加成功!","list.asp")
  32. End Function
  33. '-----------------------------
  34. Function Edit
  35. if UPLOAD.FORM("title")="" or UPLOAD.FORM("title2")="" or UPLOAD.FORM("title3")="" or UPLOAD.FORM("title4")="" or UPLOAD.FORM("title5")="" or UPLOAD.FORM("title6")="" or UPLOAD.FORM("title7")=""   then
  36. call showerr("系统提示:不能为空!")
  37. end if
  38. set rs=server.createobject("adodb.recordset")
  39. rs.open "select * from info3 where id="&UPLOAD.FORM("id"),conn,1,3
  40. rs("title")=UPLOAD.FORM("title")
  41. rs("title2")=UPLOAD.FORM("title2")
  42. rs("title3")=UPLOAD.FORM("title3")
  43. rs("title4")=UPLOAD.FORM("title4")
  44. rs("title5")=UPLOAD.FORM("title5")
  45. rs("title6")=UPLOAD.FORM("title6")
  46. rs("title7")=UPLOAD.FORM("title7")
  47. rs("postdate")=DATE()
  48. rs.Update
  49. call showmsg("系统提示:信息修改成功!","list.asp")
  50. End Function
  51. function GetExtendName(FileName)
  52. dim ExtName
  53. ExtName = LCase(FileName)
  54. ExtName = right(ExtName,3)
  55. ExtName = right(ExtName,3-Instr(ExtName,"."))
  56. GetExtendName = ExtName
  57. end function
  58. '-----------------------------
  59. call COCLS
  60. %>