選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

list2.php 2.0 KiB

3年前
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. ?>
  16. <!DOCTYPE html>
  17. <html lang="en">
  18. <head>
  19. <meta charset="UTF-8">
  20. <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" />
  21. <title>蜘蛛出行</title>
  22. <link rel="stylesheet" href="css/reset.css">
  23. <link rel="stylesheet" href="css/list.css">
  24. <script src="js/flexible.js"></script>
  25. <script src="js/makegrid.js"></script>
  26. <script src="js/jquery-2.2.4.min.js"></script>
  27. </head>
  28. <body>
  29. <div id="content" class="content">
  30. <section>
  31. <div id="ticketType_1" ticketType="1" class="box" onclick="chooseTicket(this.id)">
  32. <a href="lionkingbus2.php"><img src="images/busticket.png" alt="">
  33. <div class="productname">
  34. 上海迪士尼<br>车票
  35. </div>
  36. </a>
  37. </div>
  38. <div id="ticketType_2" ticketType="2" class="box" onclick="chooseTicket(this.id)">
  39. <a href="disneyticket.php">
  40. <img src="images/disni.png" alt="">
  41. <div class="productname">
  42. 上海迪士尼<br>门票
  43. </div>
  44. </a>
  45. </div>
  46. <div id="ticketType_3" ticketType="2" class="box" onclick="chooseTicket(this.id)">
  47. <a href="lionkingticket.php">
  48. <img src="images/shiziwang.png" alt="">
  49. <div class="productname">
  50. 上海迪士尼<br>狮子王剧场票
  51. </div>
  52. </a>
  53. </div>
  54. </section>
  55. </div>
  56. </body>
  57. <script>
  58. var H=document.documentElement.clientHeight;
  59. var content=document.getElementById('content');
  60. if (content.style.height<H) {
  61. content.style.height=H+"px";
  62. };
  63. function chooseTicket(index){
  64. var ind = $("#"+index).attr("ticketType");
  65. window.localStorage.setItem("ticketType",ind);
  66. }
  67. </script>
  68. </html>