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.
 
 
 
 
 

147 lines
6.3 KiB

  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["orderno"]) ) {
  16. header("Location:list.php?cc=".$_COOKIE["companycode"]);exit();
  17. }
  18. $order_common_info = $objDisney->getOrderInfoFromSN($_GET["orderno"]);
  19. if( $order_common_info == false && isset($_COOKIE["orderno"])) {
  20. $_GET["orderno"] = $_COOKIE["orderno"];
  21. $order_common_info = $objDisney->getOrderInfoFromSN($_GET["orderno"]);
  22. if( $order_common_info == false ) {
  23. header("Location:list.php?cc=".$_COOKIE["companycode"]);exit();
  24. }
  25. }
  26. $good_info = $objDisney->getGoodInfoFromId($order_common_info["prod_id"]);
  27. $base_org_info = $objDisney->getBaseOrgInfoFromCode( $_COOKIE["companycode"] );
  28. $base_org_name = false == $base_org_info ? "酒店" : $base_org_info["org_name"];
  29. $org_id = $base_org_info["org_id"];
  30. if( $good_info["good_type"] == 1 ) {
  31. $good_info["good_name"] = $order_common_info["prod_id"] == 15 ? $good_info["good_name"]."(回{$base_org_name})" : $base_org_name.$good_info["good_name"];
  32. } else if( $good_info["good_type"] == 2 ) {
  33. $good_info["good_name"] = $order_common_info["prod_id"] == 3 ? "上海迪士尼乐园一日票" : "上海迪士尼乐园两日票";
  34. }
  35. $order_good_array = $objDisney->getOrderGoodsArray( $order_common_info["id"] );
  36. setcookie("orderno", $_GET["orderno"], time() + 3600 * 24 * 365);
  37. ?>
  38. <!doctype html>
  39. <html lang="en">
  40. <head>
  41. <meta charset="UTF-8">
  42. <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
  43. <title>蜘蛛出行</title>
  44. <link rel="stylesheet" href="css/reset.css">
  45. <link rel="stylesheet" href="css/pay.css">
  46. <script src="js/flexible.js"></script>
  47. <script src="js/makegrid.js"></script>
  48. <script src="js/jquery-2.2.4.min.js"></script>
  49. </head>
  50. <body>
  51. <div id="pay" class="pay">
  52. <section class="information">
  53. <div class="a o">
  54. <?php if( $good_info["good_type"] == 1 || $good_info["good_type"] == 4 || $good_info["good_type"] == 5 ) { ?>
  55. <span class="wspacing h f">线</span><span class="h f">路:</span>
  56. <?php } else { ?>
  57. <span class="wspacing h f">商</span><span class="h f">品:</span>
  58. <?php } ?>
  59. <span class="f" style="width:7rem;"><?php echo $good_info["good_name"];?></span>
  60. </div>
  61. <div class="a o">
  62. <?php if( $good_info["good_type"] == 1 || $good_info["good_type"] == 4 || $good_info["good_type"] == 5 ) { ?>
  63. <span class="h f">线路时间:</span>
  64. <span class="f" style="width:7rem;">
  65. <?php
  66. $start_day = substr($order_common_info["start_day"],0,4)."年".substr($order_common_info["start_day"],5,2)."月".substr($order_common_info["start_day"],8,2)."日";
  67. $end_day = substr($order_common_info["end_day"],0,4)."年".substr($order_common_info["end_day"],5,2)."月".substr($order_common_info["end_day"],8,2)."日";
  68. if( $order_common_info["prod_id"] == 15 ) {
  69. echo $start_day . " " . $order_common_info["start_time"];
  70. } else {
  71. echo $start_day . " " . $order_common_info["start_time"] . "~" . $end_day . " " . $order_common_info["end_time"];
  72. if (mb_strlen($order_common_info["start_day2"]) > 0) {
  73. $start_day2 = substr($order_common_info["start_day2"], 0, 4) . "年" . substr($order_common_info["start_day2"], 5, 2) . "月" . substr($order_common_info["start_day2"], 8, 2) . "日";
  74. $end_day2 = substr($order_common_info["end_day2"], 0, 4) . "年" . substr($order_common_info["end_day2"], 5, 2) . "月" . substr($order_common_info["end_day2"], 8, 2) . "日";
  75. echo " " . $start_day2 . " " . $order_common_info["start_time2"] . "~" . $end_day2 . " " . $order_common_info["end_time2"];
  76. }
  77. }
  78. ?>
  79. </span>
  80. <?php if( $good_info["good_type"] == 4 || $good_info["good_type"] == 5 ) { ?>
  81. <span class="h f">上下站点:</span>
  82. <span class="f" style="width:7rem;">
  83. <?php
  84. $station_pos = mb_strpos( $order_common_info["prod_name"], "(" );
  85. $disp_station = mb_substr($order_common_info["prod_name"], $station_pos+1, -1);
  86. echo $disp_station;
  87. ?>
  88. </span>
  89. <?php } ?>
  90. <?php } else if( $good_info["good_type"] == 2 ) {?>
  91. <span class="h f">入园日期:</span>
  92. <span class="f" style="width:7rem;">
  93. <?php
  94. echo substr($order_common_info["start_day"],0,4)."年".substr($order_common_info["start_day"],5,2)."月".substr($order_common_info["start_day"],8,2)."日";
  95. if( mb_strlen($order_common_info["end_day"]) > 0 ) { echo "~".substr($order_common_info["end_day"],0,4)."年".substr($order_common_info["end_day"],5,2)."月".substr($order_common_info["end_day"],8,2)."日"; }
  96. ?>
  97. </span>
  98. <?php } else { ?>
  99. <span class="h f">演出时间:</span>
  100. <span class="f" style="width:7rem;">
  101. <?php
  102. echo substr($order_common_info["start_day"],0,4)."年".substr($order_common_info["start_day"],5,2)."月".substr($order_common_info["start_day"],8,2)."日";
  103. echo " ".$order_common_info["start_time"];
  104. ?>
  105. </span>
  106. <?php } ?>
  107. </div>
  108. <div class="a o">
  109. <span class="wspacing f h">数</span><span class="f h">量:</span>
  110. <div class="f">
  111. <?php foreach( $order_good_array as $order_good_info ) { ?>
  112. <div class="b">
  113. <span><?php echo $_ary_tickets_type[$order_good_info["subtype"]]; ?></span>
  114. <span><?php echo $order_good_info["good_num"];?>张</span>
  115. </div>
  116. <?php } ?>
  117. </div>
  118. </div>
  119. </section>
  120. <section class="payway">
  121. <div class="pwheader h">
  122. 选择支付方式
  123. </div>
  124. <a class="o wayone" href="http://xmwxc.zhizhuchuxing.cn/wechat/WxPay/realpay/onlinePay.php?orderid=<?php echo $_GET["orderno"];?>&disney=1">
  125. <div class="f">
  126. <img class="wt" src="images/wei.png" alt="">
  127. </div>
  128. <div class="f woy">
  129. <div class="h wzf">微信支付</div>
  130. <div class="tj">推荐已安装微信客户端的用户使用</div>
  131. </div>
  132. </a>
  133. </section>
  134. </div>
  135. </body>
  136. <script>
  137. var H=document.documentElement.clientHeight;
  138. var pay=document.getElementById('pay');
  139. if (pay.style.height<H) {
  140. pay.style.height=H+"px";
  141. };
  142. </script>
  143. </html>