KuaiJie.Asp
资源名称:4.rar [点击查看]
上传用户:zhbanny
上传日期:2020-11-04
资源大小:161k
文件大小:2k
源码类别:

手机WAP编程

开发平台:

ASP/ASPX

  1. <!--#Include File="../Inc/Head.Asp"--><%
  2. Private FangWen
  3. Set FangWen=New xkon_FangWen
  4. FangWen.FangWen()
  5. FangWen.A()
  6. Set FangWen=Nothing
  7. Private c,s,NeiRong
  8. Set c=New xkon_Response
  9. Set s=New xkon_Request
  10. NeiRong=ReadTextFile("KuaiJie",";")
  11. Private Sub LieBiao()
  12. Dim KuaiJie,MingChen,i
  13. KuaiJie=Split(NeiRong,"&xkon.cn&")
  14. If UBound(KuaiJie)>0 Then
  15. c.Write("<table width=100% ><tr><td>ID</td><td>名称</td><td>地址</td><td></td></tr>")
  16. For i=1 To UBound(KuaiJie)
  17. MingChen=Split(KuaiJie(i),";xkon.cn;")
  18. c.Write("<tr><td>"&i&"</td><td>"&MingChen(0)&"</td><td>"&MingChen(1)&"</td><td><a href=""KuaiJie.Asp?l=s&amp;Str="&Server.UrlEncode(MingChen(0)&";xkon.cn;"&MingChen(1))&""">删除</a></td></tr>")
  19. Next
  20. c.Write("</table>")
  21. Else
  22. c.Writeln("还没有快捷设置")
  23. End If
  24. End Sub
  25. Private Sub J()
  26. c.Write("<form method=""post"" action=""KuaiJie.Asp?l=j2"">")
  27. c.Writeln("名称:<input type=""text"" name=""MingChen"" />")
  28. c.Writeln("地址:<input type=""text"" name=""DiZhi"" />")
  29. c.Write("<input type=""submit"" value=""增加"" />")
  30. c.Write("</form>")
  31. End Sub
  32. Private Sub j2()
  33. Dim MingChen,DiZhi
  34. MingChen=s.Form("MingChen")
  35. DiZhi=s.Form("DiZhi")
  36. If MingChen="" Or DiZhi="" Then
  37. Call xkon_Error("名称和地址不能为空")
  38. Else
  39. Dim FSO,FS
  40. Set FSO=Server.CreateObject("Scripting.FileSystemObject")
  41. Set FS=FSO.OpenTextFile(Server.Mappath("../File/;/KuaiJie.txt"),8,True)
  42. FS.Write("&xkon.cn&"&MingChen&";xkon.cn;"&DiZhi)
  43. FS.Close
  44. Set FS=Nothing
  45. Set FSO=Nothing
  46. c.Writeln("增加成功")
  47. End If
  48. End Sub
  49. Private Sub Delete()
  50. Dim Str
  51. Str=s.QueryString("Str")
  52. NeiRong=Replace(NeiRong,"&xkon.cn&"&Str,"")
  53. Dim FSO,FS
  54. Set FSO=Server.CreateObject("Scripting.FileSystemObject")
  55. Set FS=FSO.OpenTextFile(Server.Mappath("../File/;/KuaiJie.txt"),2,True)
  56. FS.Write(NeiRong)
  57. FS.Close
  58. Set FS=Nothing
  59. Set FSO=Nothing
  60. Response.Write("<script language=javascript>location.href=""KuaiJie.Asp"";</script>")
  61. Response.End()
  62. End Sub
  63. Call H_Title("快捷设置")
  64. Dim l
  65. l=s.QueryString("l")
  66. Select Case l
  67. Case "j2"
  68. Call j2()
  69. Case "s"
  70. Call Delete()
  71. End Select
  72. Call LieBiao()
  73. Call j()
  74. Call H_End()
  75. Set c=Nothing
  76. Set s=Nothing
  77. %>