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.
 
 
 
 
 

84 line
2.4 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. $base_org_info = $objDisney->getBaseOrgInfoFromCode( $_COOKIE["companycode"] );
  16. if( $base_org_info["sell_type"] != 0 ) {
  17. header("Location:http://xmwxc.zhizhuchuxing.cn/disneydetial2/list_qdh.php?cc=".$_COOKIE["companycode"]);exit();
  18. }
  19. ?>
  20. <!DOCTYPE html>
  21. <html lang="en">
  22. <head>
  23. <meta charset="UTF-8">
  24. <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
  25. <title>蜘蛛出行</title>
  26. <link rel="stylesheet" href="css/reset.css">
  27. <link rel="stylesheet" href="css/list.css">
  28. <script src="js/flexible.js"></script>
  29. <script src="js/makegrid.js"></script>
  30. <script src="js/jquery-2.2.4.min.js"></script>
  31. </head>
  32. <body>
  33. <div id="content" class="content">
  34. <section>
  35. <div id="ticketType_1" ticketType="1" class="box" onclick="chooseTicket(this.id)">
  36. <a href="lionkingbus.php"><img src="images/busticket.png" alt="">
  37. <div class="productname">
  38. 上海迪士尼<br>车票
  39. </div>
  40. </a>
  41. </div>
  42. <div id="ticketType_2" ticketType="2" class="box" onclick="chooseTicket(this.id)">
  43. <a href="disneyticket.php">
  44. <img src="images/disni.png" alt="">
  45. <div class="productname">
  46. 上海迪士尼<br>门票
  47. </div>
  48. </a>
  49. </div>
  50. <div id="ticketType_3" ticketType="2" class="box" onclick="chooseTicket(this.id)">
  51. <a href="lionkingticket.php">
  52. <img src="images/shiziwang.png" alt="">
  53. <div class="productname">
  54. 上海迪士尼<br>狮子王剧场票
  55. </div>
  56. </a>
  57. </div>
  58. <?php if($is_smartphone == false) { ?>
  59. <div style="text-align:center;color:#ffffff;font-size:20px;">
  60. <a style="color:#ffffff;" href="order_list2.php" >订单汇总</a><br />
  61. </div>
  62. <?php } ?>
  63. </section>
  64. </div>
  65. </body>
  66. <script>
  67. var H=document.documentElement.clientHeight;
  68. var content=document.getElementById('content');
  69. if (content.style.height<H) {
  70. content.style.height=H+"px";
  71. };
  72. function chooseTicket(index){
  73. var ind = $("#"+index).attr("ticketType");
  74. window.localStorage.setItem("ticketType",ind);
  75. }
  76. </script>
  77. </html>