|
- <?php
- require_once '../php_include/Config.php';
- require_once '../php_include/class.db.inc';
- require_once '../php_include/disney.inc';
-
- date_default_timezone_set('PRC');
- $current_date = date("Y-m-d");
- if( $current_date >= "2016-09-01" ) {
- header("Location:http://sfx.zhizhuchuxing.com/");
- exit();
- }
- //DB
- $objDbh = new Db;
- $objDbh->setAccount(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DB);
- $objDisney = new DbDisney($objDbh);
-
- if( !isset($_GET["id"])) {
- header("Location:list_qdh.php?cc=".$_COOKIE["companycode"]);exit();
- }
- $good_id = $_GET["id"];
- $good_info=$objDisney->getGoodInfoFromId($_GET["id"]);
- if( false == $good_info) {
- header("Location:list_qdh.php?cc=".$_COOKIE["companycode"]);exit();
- }
-
- $start_end_time = $objDisney->getStartEndTimeArray($good_info["good_type"], $base_org_info["org_id"]);
- $start_time_array = array();
- $end_time_array = array();
- foreach( $start_end_time as $start_end_info ) {
- if( $start_end_info["time_type"] == 1 ) {
- if( !isset($start_time_array[$start_end_info["weekday"]])) {
- $start_time_array[$start_end_info["weekday"]] = array();
- }
- $start_time_array[$start_end_info["weekday"]][] = $start_end_info;
- } else {
- if( !isset($end_time_array[$start_end_info["weekday"]])) {
- $end_time_array[$start_end_info["weekday"]] = array();
- }
- $end_time_array[$start_end_info["weekday"]][] = $start_end_info;
- }
- }
-
- $today_week = date("w");
- if( $today_week == 0 ) {
- $today_week = 7;
- }
- $start_time_ary = array();
- foreach( $start_time_array[$today_week] as $start_time_info ) {
- $start_time_ary[] = sprintf( "%d%02d",substr($start_time_info["time_info"],0,2),substr($start_time_info["time_info"],3,2));
- }
- $end_time_ary = array();
- foreach( $end_time_array[$today_week] as $end_time_info ) {
- $end_time_ary[] = sprintf( "%d%02d",substr($end_time_info["time_info"],0,2),substr($end_time_info["time_info"],3,2));
- }
- $start_time_txt = implode(",",$start_time_ary);
- $end_time_txt = implode(",",$end_time_ary);
- $start_end_type = "disney";
- $current_time = date("Y-m-d H:i:s");
- ?>
-
-
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>蜘蛛出行</title>
- <meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
- <link rel="stylesheet" href="css/reset.css">
- <link rel="stylesheet" href="css/master.css">
- <link rel="stylesheet" href="css/ui-box.css">
- <link rel="stylesheet" href="css/ui-base.css">
- <link rel="stylesheet" href="css/ui-color.css">
- <link rel="stylesheet" href="js/fancybox2/jquery.fancybox.css" media="screen">
- <script src="js/flexible.js"></script>
- <script src="js/makegrid.js"></script>
- <script src="js/jquery-2.2.4.min.js"></script>
- <script src="js/master2.js"></script>
- <script src="js/fancybox2/jquery.fancybox.js"></script>
-
-
- </head>
- <body>
- <input type="hidden" id="current_time" value="<?php echo $current_time; ?>"/>
- <form name="pay_form" action="pay_excute2.php" method="post">
- <input type="hidden" name="gid" value="<?php echo $_GET["id"];?>" />
- <input type="hidden" name="check_go_time" value="<?php echo $start_time_txt;?>" />
- <input type="hidden" name="check_back_time" value="<?php echo $end_time_txt;?>" />
- <div class="content">
- <section>
- <div class="month clearfix fire aonelist" style="display:none;">
-
- </div>
- <?php if( $_GET["id"] == 16 ) { ?>
- <div class="station clearfix fire aonelist sc-text-tab" style="display:none;">
- <div class="uinn9">
- <div class="uinn10"><img style="width:0.5rem;position: relative;top: -2px;" src="images/start.png">上车站</div>
- <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">13:35 阳光水岸门口</li>
- <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">13:50 绿城水岸门口</li>
- <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">14:10 旅游码头停车场</li>
- <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">14:25 龙庭开元门口</li>
- <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">14:40 滨江希尔顿门口</li>
- </div>
- <div class=" uinn9">
- <div class="uinn10"><img style="width:0.6rem;position: relative;top: -3px;" src="images/end.png">下车站</div>
- <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">19:10 旅游集散总站</li>
- <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">19:40 黄浦旅游集散站</li>
- </div>
- </div>
- <?php } else { ?>
- <div class="station clearfix fire aonelist sc-text-tab" style="display:none;">
- <div class="uinn9">
- <div class="uinn10"><img style="width:0.5rem;position: relative;top: -2px;" src="images/start.png">上车站</div>
- <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">07:30 黄浦旅游集散站</li>
- <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">08:00 旅游集散总站</li>
- </div>
- <div class=" uinn9">
- <div class="uinn10"><img style="width:0.6rem;position: relative;top: -3px;" src="images/end.png">下车站</div>
- <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">12:30 滨江希尔顿门口</li>
- <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">12:45 龙庭开元门口</li>
- <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">13:00 旅游码头停车场</li>
- <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">13:25 绿城1号楼门口</li>
- <li class="uinn uc-tl1 uc-tr1 uc-bl1 uc-br1 bc-bg umar-t stationinfo ation">13:40 阳光水岸门口</li>
- </div>
- </div>
- <?php } ?>
- <div class="asell_list" >
- <div class="fire"></div>
- <div class="warp ticket_title fire clearfix">
- <img src="images/bus.png" alt="">
- <p><?php echo $good_info["good_name"];?></p>
-
- </div>
- <div class="sel_ticket fire">
- <div class="sel_tickettitle warp">选择票种
- <!-- <a class="sell_info" href="note.html"><img src="images/sell_info.png" alt="">预订须知</a> -->
- </div>
- <!-- 一个票种 -->
- <div class="ticket_list clearfix marwarp">
- <div class="ticket_man">成人</div>
- <div class="ticket_price">¥<?php echo $good_info["good_price"];?></div>
- <div class="ticket_num">
- <img src="images/icon-cut.png" alt="" class="cut">
- <input type="number" name="number1" value="0" class="aticket">
- <img src="images/icon-add.png" alt="" class="add">
- </div>
- </div>
- </div>
-
- <div class="warp fire sel_goback clearfix">
- <div class="hide">选择出发时间</div>
- <div class="atime clearfix">
- <div class="goback_date">mydata</div>
- <div class="goback_time1 clearfix">
- <img src="images/icon-date.png" alt="">
- <div class="goback_timeinfo">
- <p class="go"><span class="agodata">mytime1</span><?php if( $good_info["good_type"] == 1 ) { ?><span>出发</span><?php } ?></p>
- <p class="back"><span class="backtime">mytime2</span><?php if( $good_info["good_type"] == 1 ) { ?><span>返回</span><?php } ?></p>
- <p class="onego"></p>
- </div>
- </div>
- <input type="text" value="time_val" name="star_time" style="display:none;">
- </div>
- <div class="atime4 clearfix">
- <div class="goback_date">mydata</div>
- <input type="text" value="time_val" name="star_time" style="display:none;">
- </div>
- <div class="atime2 clearfix borderbotda">
- <div class="goback_date">mydata</div>
- <div class="goback_time2 clearfix">
- <div class="goback_timeinfo">
- <p class="onego"><span class="agodata">gotime</span><?php if( $good_info["good_type"] == 1 ) { ?><span>出发</span><?php } ?></p>
- </div>
- </div>
- <input type="text" value="time_val" name="star_time" style="display:none;">
- </div>
- <div class="atime3 clearfix">
- <div class="goback_date">mydata</div>
- <div class="goback_time3 clearfix">
- <div class="goback_timeinfo">
- <p class="onego"><span class="agodata">gotime</span><?php if( $good_info["good_type"] == 1 ) { ?><span>返回</span><?php } ?></p>
- </div>
- </div>
- <input type="text" value="time_val" name="star_time" style="display:none;">
- </div>
- </div>
-
-
- <div class="warp fire clearfix sel_station">
- <div class="hidestation">上下站点</div>
-
- <div class="astation clearfix">
- <div class="goback_time1 clearfix">
- <div class="goback_timeinfo">
- <p class="go_station"><span>上:</span><span>star_station</span></p>
- <p class="back_station"><span>下:</span><span>end_station</span></p>
- </div>
- </div>
- <input type="text" value="star_station" name="up_car" style="display:none;">
- <input type="text" value="end_station" name="down_car" style="display:none;">
- </div>
- </div>
-
- <div class="alist fire">
- <div class="title borderbot warp">
- 联系人
- </div>
- <?php if( $good_info["good_type"] == 1 ) { ?>
- <div class="content borderbotda marwarp">
- <input type="text" class="name" name="name" value="" placeholder="姓名">
- </div>
- <div class="content marwarp">
- <input type="number" class="phone" name="phone" value="" placeholder="手机号码">
- </div>
- <?php } else { ?>
- <div class="content borderbotda marwarp">
- <input type="text" class="name" name="name" value="" placeholder="姓名">
- </div>
- <div class="content marwarp borderbotda">
- <input type="number" class="phone" name="phone" value="" placeholder="手机号码">
- </div>
- <div class="content marwarp">
- <input type="text" class="idcard" name="idcard" value="" placeholder="身份证号码">
- </div>
- <?php } ?>
- </div>
-
- <div class="buy">
- <div class="buyprice">¥0</div>
- <a class="pay" href="#" >提交订单</a>
- </div>
- </div>
-
- <div class="timeinfo fire <?php echo $start_end_type;?>" style="display:none;">
- <!-- lion 狮子王 oneday 一日往返 towday 两日往返 -->
- <!-- 周日 -->
-
- <div class="aweekday">
- <div class="timeinfo_go">
- <p class="warp aonelist">请选择出发时间</p>
- <ul class="cartime clearfix fire go">
- <?php
- $temp_go_index = 0;
- foreach( $start_time_array[7] as $start_time_info ) {
- echo '<li class="carticketGo'.$temp_go_index.'"><span class="time">'.$start_time_info["time_info"].'</span>';
- echo '</li>';
- $temp_go_index ++;
- }
- ?>
- </ul>
- </div>
- </div>
-
-
- <!-- 周一 -->
- <div class="aweekday">
- <div class="timeinfo_go">
- <p class="warp aonelist">请选择出发时间</p>
- <ul class="cartime clearfix fire go">
- <?php
- $temp_go_index = 0;
- foreach( $start_time_array[1] as $start_time_info ) {
- echo '<li class="carticketGo'.$temp_go_index.'"><span class="time">'.$start_time_info["time_info"].'</span>';
- echo '</li>';
- $temp_go_index ++;
- }
- ?>
- </ul>
- </div>
- </div>
- <!-- 周二 -->
-
- <div class="aweekday">
- <div class="timeinfo_go">
- <p class="warp aonelist">请选择出发时间</p>
- <ul class="cartime clearfix fire go">
- <?php
- $temp_go_index = 0;
- foreach( $start_time_array[2] as $start_time_info ) {
- echo '<li class="carticketGo'.$temp_go_index.'"><span class="time">'.$start_time_info["time_info"].'</span>';
- echo '</li>';
- $temp_go_index ++;
- }
- ?>
- </ul>
- </div>
- </div>
- <!-- 周三 -->
-
- <div class="aweekday">
- <div class="timeinfo_go">
- <p class="warp aonelist">请选择出发时间</p>
- <ul class="cartime clearfix fire go">
- <?php
- $temp_go_index = 0;
- foreach( $start_time_array[3] as $start_time_info ) {
- echo '<li class="carticketGo'.$temp_go_index.'"><span class="time">'.$start_time_info["time_info"].'</span>';
- echo '</li>';
- $temp_go_index ++;
- }
- ?>
- </ul>
- </div>
- </div>
- <!-- 周四 -->
- <div class="aweekday">
- <div class="timeinfo_go">
- <p class="warp aonelist">请选择出发时间</p>
- <ul class="cartime clearfix fire go">
- <?php
- $temp_go_index = 0;
- foreach( $start_time_array[4] as $start_time_info ) {
- echo '<li class="carticketGo'.$temp_go_index.'"><span class="time">'.$start_time_info["time_info"].'</span>';
- echo '</li>';
- $temp_go_index ++;
- }
- ?>
- </ul>
- </div>
- </div>
- <!-- 周五 -->
-
- <div class="aweekday">
- <div class="timeinfo_go">
- <p class="warp aonelist">请选择出发时间</p>
- <ul class="cartime clearfix fire go">
- <?php
- $temp_go_index = 0;
- foreach( $start_time_array[5] as $start_time_info ) {
- echo '<li class="carticketGo'.$temp_go_index.'"><span class="time">'.$start_time_info["time_info"].'</span>';
- echo '</li>';
- $temp_go_index ++;
- }
- ?>
- </ul>
- </div>
- </div>
- <!-- 周六 -->
- <div class="aweekday">
- <div class="timeinfo_go">
- <p class="warp aonelist">请选择出发时间</p>
- <ul class="cartime clearfix fire go">
- <?php
- $temp_go_index = 0;
- foreach( $start_time_array[6] as $start_time_info ) {
- echo '<li class="carticketGo'.$temp_go_index.'"><span class="time">'.$start_time_info["time_info"].'</span>';
- echo '</li>';
- $temp_go_index ++;
- }
- ?>
- </ul>
- </div>
-
- </div>
-
-
- </div>
-
-
- </section>
- </div>
- <div id="detailsone">
- <div class="dscontent">
- <div id="x">×</div>
- <div id="detailcontent">产品详情</div>
- </div>
- </div>
-
- <div id="inline" style="display:none">登录</div>
- <a class="fancybox" href="#inline" style="visibility:hidden;">登录</a>
-
- <!-- <script src="js/rtk.js"></script> -->
- </body>
- </html>
|