= "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); $base_org_info = $objDisney->getBaseOrgInfoFromCode( $_COOKIE["companycode"] ); $base_org_name = false == $base_org_info ? "酒店" : $base_org_info["org_name"]; if( !isset($_GET["id"])) { header("Location:list.php?cc=".$_COOKIE["companycode"]);exit(); } $good_id = $_GET["id"]; $good_info=$objDisney->getGoodInfoFromId($_GET["id"]); if( false == $good_info) { header("Location:list.php?cc=".$_COOKIE["companycode"]);exit(); } if( $good_info["good_type"] == 1 ) { $good_info["good_name"] = $base_org_name.$good_info["good_name"]; } else if( $good_info["good_type"] == 2 ) { $good_info["good_name"] = $_GET["id"] == 3 ? "上海迪士尼乐园一日票" : "上海迪士尼乐园两日票"; $good_price_array = $_GET["id"] == 3 ? $_ary_disney_price1 : $_ary_disney_price2; } $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)); } foreach( $end_time_array[$today_week] as $end_time_info ) { $start_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); $start_end_type = "lion"; if( $_GET["id"] == 1 ) { $start_end_type = "oneday"; }else if( $_GET["id"] == 15 ) { $start_end_type = "oneway"; } else if( $_GET["id"] == 2 ){ $start_end_type = "twoday"; } else if( $good_info["good_type"] == 2 ) { $start_end_type = "disney"; } $current_time = date("Y-m-d H:i:s"); ?> 蜘蛛出行
" />

选择票种
成人
成人
老人
儿童
选择单程时间
选择往返时间
选择入园日期
选择演出时间
mydata

mytime1出发

mytime2返回

mydata
mydata

gotime出发

mydata

gotime返回

联系人
×
产品详情