Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

vor 3 Jahren
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  1. <?php
  2. require_once '../php_include/Config.php';
  3. require_once '../php_include/class.db.inc';
  4. require_once '../php_include/disney.inc';
  5. date_default_timezone_set('PRC');
  6. $current_date = date("Y-m-d");
  7. if( $current_date >= "2016-09-01" ) {
  8. header("Location:http://sfx.zhizhuchuxing.com/");
  9. exit();
  10. }
  11. //DB
  12. $objDbh = new Db;
  13. $objDbh->setAccount(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DB);
  14. $objDisney = new DbDisney($objDbh);
  15. if( !isset($_GET["id"])) {
  16. header("Location:list_qdh.php?cc=".$_COOKIE["companycode"]);exit();
  17. }
  18. $good_id = $_GET["id"];
  19. $good_info=$objDisney->getGoodInfoFromId($_GET["id"]);
  20. if( false == $good_info) {
  21. header("Location:list_qdh.php?cc=".$_COOKIE["companycode"]);exit();
  22. }
  23. $start_end_time = $objDisney->getStartEndTimeArray($good_info["good_type"], $base_org_info["org_id"]);
  24. $start_time_array = array();
  25. $end_time_array = array();
  26. foreach( $start_end_time as $start_end_info ) {
  27. if( $start_end_info["time_type"] == 1 ) {
  28. if( !isset($start_time_array[$start_end_info["weekday"]])) {
  29. $start_time_array[$start_end_info["weekday"]] = array();
  30. }
  31. $start_time_array[$start_end_info["weekday"]][] = $start_end_info;
  32. } else {
  33. if( !isset($end_time_array[$start_end_info["weekday"]])) {
  34. $end_time_array[$start_end_info["weekday"]] = array();
  35. }
  36. $end_time_array[$start_end_info["weekday"]][] = $start_end_info;
  37. }
  38. }
  39. $today_week = date("w");
  40. if( $today_week == 0 ) {
  41. $today_week = 7;
  42. }
  43. $start_time_ary = array();
  44. foreach( $start_time_array[$today_week] as $start_time_info ) {
  45. $start_time_ary[] = sprintf( "%d%02d",substr($start_time_info["time_info"],0,2),substr($start_time_info["time_info"],3,2));
  46. }
  47. $end_time_ary = array();
  48. foreach( $end_time_array[$today_week] as $end_time_info ) {
  49. $end_time_ary[] = sprintf( "%d%02d",substr($end_time_info["time_info"],0,2),substr($end_time_info["time_info"],3,2));
  50. }
  51. $start_time_txt = implode(",",$start_time_ary);
  52. $end_time_txt = implode(",",$end_time_ary);
  53. $start_end_type = "disney";
  54. $current_time = date("Y-m-d H:i:s");
  55. ?>
  56. <!DOCTYPE html>
  57. <html lang="en">
  58. <head>
  59. <meta charset="UTF-8">
  60. <title>蜘蛛出行</title>
  61. <meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
  62. <link rel="stylesheet" href="css/reset.css">
  63. <link rel="stylesheet" href="css/master.css">
  64. <link rel="stylesheet" href="css/ui-box.css">
  65. <link rel="stylesheet" href="css/ui-base.css">
  66. <link rel="stylesheet" href="css/ui-color.css">
  67. <link rel="stylesheet" href="js/fancybox2/jquery.fancybox.css" media="screen">
  68. <script src="js/flexible.js"></script>
  69. <script src="js/makegrid.js"></script>
  70. <script src="js/jquery-2.2.4.min.js"></script>
  71. <script src="js/master2.js"></script>
  72. <script src="js/fancybox2/jquery.fancybox.js"></script>
  73. </head>
  74. <body>
  75. <input type="hidden" id="current_time" value="<?php echo $current_time; ?>"/>
  76. <form name="pay_form" action="pay_excute2.php" method="post">
  77. <input type="hidden" name="gid" value="<?php echo $_GET["id"];?>" />
  78. <input type="hidden" name="check_go_time" value="<?php echo $start_time_txt;?>" />
  79. <input type="hidden" name="check_back_time" value="<?php echo $end_time_txt;?>" />
  80. <div class="content">
  81. <section>
  82. <div class="month clearfix fire aonelist" style="display:none;">
  83. </div>
  84. <?php if( $_GET["id"] == 16 ) { ?>
  85. <div class="station clearfix fire aonelist sc-text-tab" style="display:none;">
  86. <div class="uinn9">
  87. <div class="uinn10"><img style="width:0.5rem;position: relative;top: -2px;" src="images/start.png">上车站</div>
  88. <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">13:35 阳光水岸门口</li>
  89. <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">13:50 绿城水岸门口</li>
  90. <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">14:10 旅游码头停车场</li>
  91. <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">14:25 龙庭开元门口</li>
  92. <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">14:40 滨江希尔顿门口</li>
  93. </div>
  94. <div class=" uinn9">
  95. <div class="uinn10"><img style="width:0.6rem;position: relative;top: -3px;" src="images/end.png">下车站</div>
  96. <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">19:10 旅游集散总站</li>
  97. <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">19:40 黄浦旅游集散站</li>
  98. </div>
  99. </div>
  100. <?php } else { ?>
  101. <div class="station clearfix fire aonelist sc-text-tab" style="display:none;">
  102. <div class="uinn9">
  103. <div class="uinn10"><img style="width:0.5rem;position: relative;top: -2px;" src="images/start.png">上车站</div>
  104. <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">07:30 黄浦旅游集散站</li>
  105. <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">08:00 旅游集散总站</li>
  106. </div>
  107. <div class=" uinn9">
  108. <div class="uinn10"><img style="width:0.6rem;position: relative;top: -3px;" src="images/end.png">下车站</div>
  109. <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">12:30 滨江希尔顿门口</li>
  110. <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">12:45 龙庭开元门口</li>
  111. <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">13:00 旅游码头停车场</li>
  112. <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">13:25 绿城1号楼门口</li>
  113. <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">13:40 阳光水岸门口</li>
  114. </div>
  115. </div>
  116. <?php } ?>
  117. <div class="asell_list" >
  118. <div class="fire"></div>
  119. <div class="warp ticket_title fire clearfix">
  120. <img src="images/bus.png" alt="">
  121. <p><?php echo $good_info["good_name"];?></p>
  122. </div>
  123. <div class="sel_ticket fire">
  124. <div class="sel_tickettitle warp">选择票种
  125. <!-- <a class="sell_info" href="note.html"><img src="images/sell_info.png" alt="">预订须知</a> -->
  126. </div>
  127. <!-- 一个票种 -->
  128. <div class="ticket_list clearfix marwarp">
  129. <div class="ticket_man">成人</div>
  130. <div class="ticket_price">¥<?php echo $good_info["good_price"];?></div>
  131. <div class="ticket_num">
  132. <img src="images/icon-cut.png" alt="" class="cut">
  133. <input type="number" name="number1" value="0" class="aticket">
  134. <img src="images/icon-add.png" alt="" class="add">
  135. </div>
  136. </div>
  137. </div>
  138. <div class="warp fire sel_goback clearfix">
  139. <div class="hide">选择出发时间</div>
  140. <div class="atime clearfix">
  141. <div class="goback_date">mydata</div>
  142. <div class="goback_time1 clearfix">
  143. <img src="images/icon-date.png" alt="">
  144. <div class="goback_timeinfo">
  145. <p class="go"><span class="agodata">mytime1</span><?php if( $good_info["good_type"] == 1 ) { ?><span>出发</span><?php } ?></p>
  146. <p class="back"><span class="backtime">mytime2</span><?php if( $good_info["good_type"] == 1 ) { ?><span>返回</span><?php } ?></p>
  147. <p class="onego"></p>
  148. </div>
  149. </div>
  150. <input type="text" value="time_val" name="star_time" style="display:none;">
  151. </div>
  152. <div class="atime4 clearfix">
  153. <div class="goback_date">mydata</div>
  154. <input type="text" value="time_val" name="star_time" style="display:none;">
  155. </div>
  156. <div class="atime2 clearfix borderbotda">
  157. <div class="goback_date">mydata</div>
  158. <div class="goback_time2 clearfix">
  159. <div class="goback_timeinfo">
  160. <p class="onego"><span class="agodata">gotime</span><?php if( $good_info["good_type"] == 1 ) { ?><span>出发</span><?php } ?></p>
  161. </div>
  162. </div>
  163. <input type="text" value="time_val" name="star_time" style="display:none;">
  164. </div>
  165. <div class="atime3 clearfix">
  166. <div class="goback_date">mydata</div>
  167. <div class="goback_time3 clearfix">
  168. <div class="goback_timeinfo">
  169. <p class="onego"><span class="agodata">gotime</span><?php if( $good_info["good_type"] == 1 ) { ?><span>返回</span><?php } ?></p>
  170. </div>
  171. </div>
  172. <input type="text" value="time_val" name="star_time" style="display:none;">
  173. </div>
  174. </div>
  175. <div class="warp fire clearfix sel_station">
  176. <div class="hidestation">上下站点</div>
  177. <div class="astation clearfix">
  178. <div class="goback_time1 clearfix">
  179. <div class="goback_timeinfo">
  180. <p class="go_station"><span>上:</span><span>star_station</span></p>
  181. <p class="back_station"><span>下:</span><span>end_station</span></p>
  182. </div>
  183. </div>
  184. <input type="text" value="star_station" name="up_car" style="display:none;">
  185. <input type="text" value="end_station" name="down_car" style="display:none;">
  186. </div>
  187. </div>
  188. <div class="alist fire">
  189. <div class="title borderbot warp">
  190. 联系人
  191. </div>
  192. <?php if( $good_info["good_type"] == 1 ) { ?>
  193. <div class="content borderbotda marwarp">
  194. <input type="text" class="name" name="name" value="" placeholder="姓名">
  195. </div>
  196. <div class="content marwarp">
  197. <input type="number" class="phone" name="phone" value="" placeholder="手机号码">
  198. </div>
  199. <?php } else { ?>
  200. <div class="content borderbotda marwarp">
  201. <input type="text" class="name" name="name" value="" placeholder="姓名">
  202. </div>
  203. <div class="content marwarp borderbotda">
  204. <input type="number" class="phone" name="phone" value="" placeholder="手机号码">
  205. </div>
  206. <div class="content marwarp">
  207. <input type="text" class="idcard" name="idcard" value="" placeholder="身份证号码">
  208. </div>
  209. <?php } ?>
  210. </div>
  211. <div class="buy">
  212. <div class="buyprice">¥0</div>
  213. <a class="pay" href="#" >提交订单</a>
  214. </div>
  215. </div>
  216. <div class="timeinfo fire <?php echo $start_end_type;?>" style="display:none;">
  217. <!-- lion 狮子王 oneday 一日往返 towday 两日往返 -->
  218. <!-- 周日 -->
  219. <div class="aweekday">
  220. <div class="timeinfo_go">
  221. <p class="warp aonelist">请选择出发时间</p>
  222. <ul class="cartime clearfix fire go">
  223. <?php
  224. $temp_go_index = 0;
  225. foreach( $start_time_array[7] as $start_time_info ) {
  226. echo '<li class="carticketGo'.$temp_go_index.'"><span class="time">'.$start_time_info["time_info"].'</span>';
  227. echo '</li>';
  228. $temp_go_index ++;
  229. }
  230. ?>
  231. </ul>
  232. </div>
  233. </div>
  234. <!-- 周一 -->
  235. <div class="aweekday">
  236. <div class="timeinfo_go">
  237. <p class="warp aonelist">请选择出发时间</p>
  238. <ul class="cartime clearfix fire go">
  239. <?php
  240. $temp_go_index = 0;
  241. foreach( $start_time_array[1] as $start_time_info ) {
  242. echo '<li class="carticketGo'.$temp_go_index.'"><span class="time">'.$start_time_info["time_info"].'</span>';
  243. echo '</li>';
  244. $temp_go_index ++;
  245. }
  246. ?>
  247. </ul>
  248. </div>
  249. </div>
  250. <!-- 周二 -->
  251. <div class="aweekday">
  252. <div class="timeinfo_go">
  253. <p class="warp aonelist">请选择出发时间</p>
  254. <ul class="cartime clearfix fire go">
  255. <?php
  256. $temp_go_index = 0;
  257. foreach( $start_time_array[2] as $start_time_info ) {
  258. echo '<li class="carticketGo'.$temp_go_index.'"><span class="time">'.$start_time_info["time_info"].'</span>';
  259. echo '</li>';
  260. $temp_go_index ++;
  261. }
  262. ?>
  263. </ul>
  264. </div>
  265. </div>
  266. <!-- 周三 -->
  267. <div class="aweekday">
  268. <div class="timeinfo_go">
  269. <p class="warp aonelist">请选择出发时间</p>
  270. <ul class="cartime clearfix fire go">
  271. <?php
  272. $temp_go_index = 0;
  273. foreach( $start_time_array[3] as $start_time_info ) {
  274. echo '<li class="carticketGo'.$temp_go_index.'"><span class="time">'.$start_time_info["time_info"].'</span>';
  275. echo '</li>';
  276. $temp_go_index ++;
  277. }
  278. ?>
  279. </ul>
  280. </div>
  281. </div>
  282. <!-- 周四 -->
  283. <div class="aweekday">
  284. <div class="timeinfo_go">
  285. <p class="warp aonelist">请选择出发时间</p>
  286. <ul class="cartime clearfix fire go">
  287. <?php
  288. $temp_go_index = 0;
  289. foreach( $start_time_array[4] as $start_time_info ) {
  290. echo '<li class="carticketGo'.$temp_go_index.'"><span class="time">'.$start_time_info["time_info"].'</span>';
  291. echo '</li>';
  292. $temp_go_index ++;
  293. }
  294. ?>
  295. </ul>
  296. </div>
  297. </div>
  298. <!-- 周五 -->
  299. <div class="aweekday">
  300. <div class="timeinfo_go">
  301. <p class="warp aonelist">请选择出发时间</p>
  302. <ul class="cartime clearfix fire go">
  303. <?php
  304. $temp_go_index = 0;
  305. foreach( $start_time_array[5] as $start_time_info ) {
  306. echo '<li class="carticketGo'.$temp_go_index.'"><span class="time">'.$start_time_info["time_info"].'</span>';
  307. echo '</li>';
  308. $temp_go_index ++;
  309. }
  310. ?>
  311. </ul>
  312. </div>
  313. </div>
  314. <!-- 周六 -->
  315. <div class="aweekday">
  316. <div class="timeinfo_go">
  317. <p class="warp aonelist">请选择出发时间</p>
  318. <ul class="cartime clearfix fire go">
  319. <?php
  320. $temp_go_index = 0;
  321. foreach( $start_time_array[6] as $start_time_info ) {
  322. echo '<li class="carticketGo'.$temp_go_index.'"><span class="time">'.$start_time_info["time_info"].'</span>';
  323. echo '</li>';
  324. $temp_go_index ++;
  325. }
  326. ?>
  327. </ul>
  328. </div>
  329. </div>
  330. </div>
  331. </section>
  332. </div>
  333. <div id="detailsone">
  334. <div class="dscontent">
  335. <div id="x">×</div>
  336. <div id="detailcontent">产品详情</div>
  337. </div>
  338. </div>
  339. <div id="inline" style="display:none">登录</div>
  340. <a class="fancybox" href="#inline" style="visibility:hidden;">登录</a>
  341. <!-- <script src="js/rtk.js"></script> -->
  342. </body>
  343. </html>