25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

119 lines
5.4 KiB

  1. <%@ language=vbscript codepage="65001" %>
  2. <!--#include file="conn.asp"-->
  3. <!--#include file="function.asp"-->
  4. <%
  5. Response.Charset = "UTF-8"
  6. c_prodcode = deal_str_beforesql(request("prodcode"))
  7. c_rtn = ""
  8. csql = "SP_GET_CIRCUITRY_DETAIL '" & c_prodcode & "'"
  9. set rs=conn.execute(csql)
  10. if not rs.eof then
  11. c_rtn = c_rtn & "{""code"":""0"",""info"":"""",""openid"":""" & request.cookies("m_openid") & """," & vbcrlf
  12. c_rtn = c_rtn & " ""show_type"":""" & rs("circuitry_type") & """," & vbcrlf
  13. c_rtn = c_rtn & " ""prod_img"":""" & rs("bimg") & """," & vbcrlf
  14. c_rtn = c_rtn & " ""prod_name"":""" & rs("prod_name") & """," & vbcrlf
  15. c_rtn = c_rtn & " ""start_area"":""" & rs("start_area") & """," & vbcrlf
  16. c_rtn = c_rtn & " ""end_area"":""" & rs("end_area") & """," & vbcrlf
  17. c_rtn = c_rtn & " ""price"":""" & rs("price") & """," & vbcrlf
  18. c_rtn = c_rtn & " ""run_info"":""" & rs("go_run_info") & """," & vbcrlf
  19. c_rtn = c_rtn & " ""back_run_info"":""" & rs("back_run_info") & """," & vbcrlf
  20. c_rtn = c_rtn & " ""run_count"":""" & rs("run_count") & """," & vbcrlf
  21. c_rtn = c_rtn & " ""direction"":""" & rs("direction") & """," & vbcrlf
  22. c_rtn = c_rtn & " ""if_bus"":""" & rs("if_bus") & """," & vbcrlf
  23. c_rtn = c_rtn & " ""if_hotel"":""" & rs("if_hotel") & """," & vbcrlf
  24. c_rtn = c_rtn & " ""if_sightspot"":""" & rs("if_sightspot") & """," & vbcrlf
  25. c_rtn = c_rtn & " ""run_days"":""" & rs("run_days") & """," & vbcrlf
  26. c_rtn = c_rtn & " ""circuitry_intro"":""" & rs("Description") & """," & vbcrlf
  27. c_rtn = c_rtn & " ""station_intro"":""" & rs("Description2") & """," & vbcrlf
  28. c_rtn = c_rtn & " ""price_intro"":""" & rs("Description3") & """," & vbcrlf
  29. c_rtn = c_rtn & " ""hotel_intro"":""" & rs("hotel_intro") & """," & vbcrlf
  30. c_rtn = c_rtn & " ""park_intro"":""" & rs("park_intro") & """," & vbcrlf
  31. c_rtn = c_rtn & " ""show_intro"":""" & rs("show_intro") & """," & vbcrlf
  32. c_rtn = c_rtn & " ""cir_img"":""" & rs("circuitry_img") & """," & vbcrlf
  33. c_rtn = c_rtn & " ""refund_intro"":""" & rs("refund_intro") & """," & vbcrlf
  34. if c_prodcode = "NSPTSM01" then
  35. csql1 = "SP_GET_CIRCUITRY_FIRST_RUN_INFO 3435,'" & c_prodcode & "'"
  36. 'response.write csql1
  37. set rs1=conn.execute(csql1)
  38. if not rs1.eof then
  39. c_rtn = c_rtn & " ""f_runid"":""" & rs1("run_id") & """," & vbcrlf
  40. c_rtn = c_rtn & " ""f_godate"":""" & rs1("go_date") & """," & vbcrlf
  41. c_rtn = c_rtn & " ""f_gotime"":""" & rs1("go_time") & """," & vbcrlf
  42. c_rtn = c_rtn & " ""f_backdate"":""" & rs1("back_date") & """," & vbcrlf
  43. c_rtn = c_rtn & " ""f_backtime"":""" & rs1("back_time") & """," & vbcrlf
  44. end if
  45. rs1.close
  46. end if
  47. c_rtn = c_rtn & " ""bus_list"":["
  48. c_rtn = c_rtn & " {""bus_code"":""123"",""bus_title"":""德国尼奥普兰"",""bus_img"":""img/bus001.jpg"",""bus_info"":""电动座椅,半躺坐姿,视野宽阔,头等舱的享受""}"
  49. c_rtn = c_rtn & " ],"
  50. c_rtn = c_rtn & " ""recommand_list"":[]"
  51. ' c_rtn = c_rtn & " ""recommand_list"":["
  52. ' c_rtn = c_rtn & " {"
  53. ' c_rtn = c_rtn & " ""recommand_type_id"":""1"","
  54. ' c_rtn = c_rtn & " ""recommand_type_name"":""推荐船票"","
  55. ' c_rtn = c_rtn & " ""recoomand_prod_list"":["
  56. ' c_rtn = c_rtn & " {"
  57. ' c_rtn = c_rtn & " ""re_prod_code"":""abc"","
  58. ' c_rtn = c_rtn & " ""re_prod_img"":""prod_img/004.jpg"","
  59. ' c_rtn = c_rtn & " ""re_prod_title"":""不肯去观音号"","
  60. ' c_rtn = c_rtn & " ""re_prod_price"":""560"""
  61. ' c_rtn = c_rtn & " },"
  62. ' c_rtn = c_rtn & " {"
  63. ' c_rtn = c_rtn & " ""re_prod_code"":""abd"","
  64. ' c_rtn = c_rtn & " ""re_prod_img"":""prod_img/005.jpg"","
  65. ' c_rtn = c_rtn & " ""re_prod_title"":""嵊泗号"","
  66. ' c_rtn = c_rtn & " ""re_prod_price"":""430"""
  67. ' c_rtn = c_rtn & " }"
  68. ' c_rtn = c_rtn & " ]"
  69. ' c_rtn = c_rtn & " },"
  70. ' c_rtn = c_rtn & " {"
  71. ' c_rtn = c_rtn & " ""recommand_type_id"":""2"","
  72. ' c_rtn = c_rtn & " ""recommand_type_name"":""推荐酒店"","
  73. ' c_rtn = c_rtn & " ""recoomand_prod_list"":["
  74. ' c_rtn = c_rtn & " {"
  75. ' c_rtn = c_rtn & " ""re_prod_code"":""abe"","
  76. ' c_rtn = c_rtn & " ""re_prod_img"":""prod_img/006.jpg"","
  77. ' c_rtn = c_rtn & " ""re_prod_title"":""宾馆名称1"","
  78. ' c_rtn = c_rtn & " ""re_prod_price"":""900"""
  79. ' c_rtn = c_rtn & " },"
  80. ' c_rtn = c_rtn & " {"
  81. ' c_rtn = c_rtn & " ""re_prod_code"":""abf"","
  82. ' c_rtn = c_rtn & " ""re_prod_img"":""prod_img/007.jpg"","
  83. ' c_rtn = c_rtn & " ""re_prod_title"":""宾馆名称2"","
  84. ' c_rtn = c_rtn & " ""re_prod_price"":""2000"""
  85. ' c_rtn = c_rtn & " }"
  86. ' c_rtn = c_rtn & " ]"
  87. ' c_rtn = c_rtn & " },"
  88. ' c_rtn = c_rtn & " {"
  89. ' c_rtn = c_rtn & " ""recommand_type_id"":""3"","
  90. ' c_rtn = c_rtn & " ""recommand_type_name"":""推荐门票"","
  91. ' c_rtn = c_rtn & " ""recoomand_prod_list"":["
  92. ' c_rtn = c_rtn & " {"
  93. ' c_rtn = c_rtn & " ""re_prod_code"":""acc"","
  94. ' c_rtn = c_rtn & " ""re_prod_img"":""prod_img/008.jpg"","
  95. ' c_rtn = c_rtn & " ""re_prod_title"":""普济寺门票"","
  96. ' c_rtn = c_rtn & " ""re_prod_price"":""5"""
  97. ' c_rtn = c_rtn & " },"
  98. ' c_rtn = c_rtn & " {"
  99. ' c_rtn = c_rtn & " ""re_prod_code"":""aec"","
  100. ' c_rtn = c_rtn & " ""re_prod_img"":""prod_img/009.jpg"","
  101. ' c_rtn = c_rtn & " ""re_prod_title"":""南海观音门票"","
  102. ' c_rtn = c_rtn & " ""re_prod_price"":""6"""
  103. ' c_rtn = c_rtn & " }"
  104. ' c_rtn = c_rtn & " ]"
  105. ' c_rtn = c_rtn & " }"
  106. ' c_rtn = c_rtn & " ]"
  107. c_rtn = c_rtn & "}"
  108. else
  109. c_rtn = "{""code"":""998"",""info"":""查无信息""}"
  110. end if
  111. rs.close
  112. response.write c_rtn
  113. %>