You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

57 line
1.5 KiB

  1. <%@ language=vbscript codepage="65001" %>
  2. <%
  3. Response.Charset = "UTF-8"
  4. dim c_keyword
  5. c_keyword = request("keyword")
  6. dim areaArray2(8,2)
  7. areaArray2(0,0) = "舟山"
  8. areaArray2(0,1) = "zhoushan"
  9. areaArray2(0,2) = "zs"
  10. areaArray2(1,0) = "舟山沈家门"
  11. areaArray2(1,1) = "zhoushanshenjiamen"
  12. areaArray2(1,2) = "zssjm"
  13. areaArray2(2,0) = "舟山南沙"
  14. areaArray2(2,1) = "zhoushannansha"
  15. areaArray2(2,2) = "zsms"
  16. areaArray2(3,0) = "舟山普陀山"
  17. areaArray2(3,1) = "zhoushanputuoshan"
  18. areaArray2(3,2) = "zspts"
  19. areaArray2(4,0) = "舟山嵊泗岛"
  20. areaArray2(4,1) = "zhoushanshengsidao"
  21. areaArray2(4,2) = "zsssd"
  22. areaArray2(5,0) = "杭州"
  23. areaArray2(5,1) = "hangzhou"
  24. areaArray2(5,2) = "hz"
  25. areaArray2(6,0) = "千岛湖"
  26. areaArray2(6,1) = "qiandaohu"
  27. areaArray2(6,2) = "qdh"
  28. areaArray2(7,0) = "安徽黄山"
  29. areaArray2(7,1) = "anhuihuangshan"
  30. areaArray2(7,2) = "ahhs"
  31. c_rtn1 = ""
  32. c_keyword = replace(c_keyword," ","")
  33. if c_keyword="" then
  34. for i=0 to 7
  35. c_rtn1 = c_rtn1 & "{""area"":""" & areaArray2(i,0) & """},"
  36. next
  37. else
  38. for i=0 to 7
  39. cstr21 = areaArray2(i,0)
  40. cstr22 = areaArray2(i,1)
  41. cstr23 = areaArray2(i,2)
  42. if instr(cstr21,c_keyword) + instr(cstr22,c_keyword) + instr(cstr23,c_keyword) > 0 then c_rtn1 = c_rtn1 & "{""area"":""" & areaArray2(i,0) & """},"
  43. next
  44. end if
  45. if right(c_rtn1,1)="," then c_rtn1 = left(c_rtn1,len(c_rtn1)-1)
  46. dim c_rtn
  47. c_rtn = "{""code"":""0"",""info"":"""",""area_list"":["
  48. c_rtn = c_rtn & c_rtn1 & vbcrlf & "]}"
  49. response.write c_rtn
  50. %>