<!-- TA -->
< div class = "mbottom30 TA_box" >
< div id = "TA_selfserveprop869" class = "TA_selfserveprop" >
< ul id = "nIy5GW" class = "TA_links mzjWpb" >
< li id = "njsYKpl5CGUI" class = "HvAhA1TDlL" > < a target = "_blank" href = "https://www.tripadvisor.com/Attraction_Review-g294212-d4006739-Reviews-The_Trippest_Mini_Group_Tours-Beijing.html" > < img src = "https://www.tripadvisor.com/img/cdsi/img2/branding/v2/Tripadvisor_lockup_horizontal_secondary_registered-11900-2.svg" alt = "TripAdvisor" width = "150px" / > < / a > < / li >
< / ul >
< / div >
< script async src = "https://www.jscache.com/wejs?wtype=selfserveprop&uniq=869&locationId=4006739&lang=en_US&rating=true&nreviews=4&writereviewlink=true&popIdx=true&iswide=true&border=true&display_version=2" data-loadtrk onload = "this.loadtrk=true" > < / script >
< / div >
<!-- TA -->
< a id = "inquirybutton" > < / a >
< div class = "inquirybutton" > < a href = "#inquirybutton" > Check Availability< / a > < / div >
< div class = "tmbottom margin-top80" >
< div >
< div class = "contactwechat" > < img src = "https://data.chinahighlights.com/image/daytrip/tpcode.jpg" alt = "china highlights' wechat code" height = "100px" style = "opacity: 0; transition: opacity 0.5s ease-in-out 0s;" width = "100px" / >
< div class = "wechatinfo" > For any questions please contact us via < br / > Mobile: < span class = "wechatred" > +86 18807734970< / span > < br / > WeChat: < span class = "wechatred" > trippest666< / span > < br / > Email: < span class = "wechatred" > niko@trippest.com< / span > < / div >
< / div >
< div class = "pricefrom" > Price from < strong > USD <?php echo $showPrice ?> </ strong > p/p</ div >
< form action = "" id = "myform" method = "post" name = "myform" >
< input type = "hidden" value = " <?php echo $PagDetail -> PAG_SN ?> " name = "PAG_SN" >
< input type = "hidden" value = " <?php echo $PagDetail -> PAG_Code ?> " name = "PAG_Code" >
< input type = "hidden" value = " <?php echo $ic_title ?> " name = "PAG_Name" >
< input type = "hidden" value = " <?php echo $PAG_SourceType ?> " name = "destination" >
< input type = "hidden" value = " <?php echo $t_Type ?> " name = "tType" id = "tType" >
< div class = "InquiryBox dayInquiry" >
< p > < input autocomplete = "off" class = "hasDatepicker" id = "Starting_Date" name = "Starting_Date" placeholder = "Your travel date" readonly = "readonly" type = "text" value = "" / > < / p >
<?php if ( count ( $t_package ) > 1 ) { ?>
< P >
< select name = "Package" id = "Package" class = "fullwidth" >
<?php
$num = count($t_package);
for ($i = 0; $i < $num; $i++) {
$arr_Item = explode(",", $t_package[$i]);
if ($i == 0) {
$p_Value = "";
$p_text = $arr_Item[0];
} else {
$p_Value = $t_package[$i];
$p_text = $arr_Item[0];
}
?>
< option value = " <?php echo $p_Value ?> " > <?php echo $p_text ?> </ option >
<?php } ?>
< / select >
< / P >
<?php } ?>
<?php if ( count ( $PagList ) > 0 ) { ?>
< P >
< select name = "PagList" id = "PagList" class = "fullwidth" >
< option value = "" > Transfer Type< / option >
<?php
foreach ($PagList as $PlRs) {
$Pl_name = $PlRs->PAG2_Name;
$Pl_value = $PlRs->PAG_SN . "|" . $PlRs->PAG_Code . "|" . $PlRs->PAG2_Attraction . "|" . $PlRs->PAG2_Name;
?>
< option value = " <?php echo $Pl_value ?> " > <?php echo $Pl_name ?> </ option >
<?php } ?>
< / select >
< / P >
<?php }
if ($t_Type == "transfer") { ?>
< P >
< select name = "Adults_Num" id = "Adults_Num" class = "fullwidth" >
< option selected > No. of Travelers< / option >
< option value = "1" > 1< / option >
< option value = "2" > 2< / option >
< option value = "3" > 3< / option >
< option value = "4" > 4< / option >
< option value = "5" > 5< / option >
< option value = "6" > 6< / option >
< option value = "7" > 7< / option >
< option value = "8" > 8< / option >
< option value = "9" > 9< / option >
< option value = "10" > 10< / option >
< option value = "11" > 11< / option >
< option value = "12" > 12< / option >
< option value = "13" > 13< / option >
< option value = "14" > 14< / option >
< option value = "15" > 15< / option >
< option value = "16" > 16< / option >
< option value = "17" > 17< / option >
< option value = "18" > 18< / option >
< option value = "19" > 19< / option >
< option value = "20" > 20< / option >
< / select >
< / P >
<?php } else { ?>
< p >
< select name = "Adults_Num" id = "Adults_Num" >
< option selected > Adult (age 12+)< / option >
< option value = "1" > 1< / option >
< option value = "2" > 2< / option >
< option value = "3" > 3< / option >
< option value = "4" > 4< / option >
< option value = "5" > 5< / option >
< option value = "6" > 6< / option >
< option value = "7" > 7< / option >
< option value = "8" > 8< / option >
< option value = "9" > 9< / option >
< option value = "10" > 10< / option >
< option value = "11" > 11< / option >
< option value = "12" > 12< / option >
< option value = "13" > 13< / option >
< option value = "14" > 14< / option >
< option value = "15" > 15< / option >
< option value = "16" > 16< / option >
< option value = "17" > 17< / option >
< option value = "18" > 18< / option >
< option value = "19" > 19< / option >
< option value = "20" > 20< / option >
< / select >
< select id = "Child_Num" name = "Child_Num" >
< option selected = "selected" value = "0" > Child (age 2-11)< / option >
< option value = "1" > 1< / option >
< option value = "2" > 2< / option >
< option value = "3" > 3< / option >
< option value = "4" > 4< / option >
< option value = "5" > 5< / option >
< option value = "6" > 6< / option >
< option value = "7" > 7< / option >
< option value = "8" > 8< / option >
< option value = "9" > 9< / option >
< option value = "10" > 10< / option >
< option value = "11" > 11< / option >
< option value = "12" > 12< / option >
< option value = "13" > 13< / option >
< option value = "14" > 14< / option >
< option value = "15" > 15< / option >
< option value = "16" > 16< / option >
< option value = "17" > 17< / option >
< option value = "18" > 18< / option >
< option value = "19" > 19< / option >
< option value = "20" > 20< / option >
< / select >
< / p >
<?php } ?>
< div class = "clear" > < / div >
< button class = "sendButton" id = "btn_submit" name = "btn_submit" type = "button" > Book Now < i aria-hidden = "true" class = "fa fa-angle-right" > < / i > < / button >
< / div >
< / form >
< / div >
< / div >
< link type = "text/css" rel = "stylesheet" href = "https://proxy-data.chinahighlights.com/css/tour-detail-former.css" >
< style type = "text/css" > . r e d { c o l o r : # a 3 1 0 2 2 } . t o u r D a t e s B J . r e d { m a r g i n - r i g h t : 1 0 p x ; c o l o r : # a 3 1 0 2 2 } u l . n o t e , u l . t o u r s - l i s t , o l { p a d d i n g : 1 0 p x 0 ; d i s p l a y : t a b l e ; m a r g i n : 0 1 5 p x ; } u l . n o t e l i , u l . t o u r s - l i s t l i { b a c k g r o u n d : u r l ( h t t p s : / / d a t a . c h i n a h i g h l i g h t s . c o m / p i c / g u i d e / i n f o - p a g e - l i s t - b g . p n g ) n o - r e p e a t 0 . 5 e m ; l i s t - s t y l e : n o n e ; f o n t - s i z e : 2 0 p x ; m a r g i n - b o t t o m : 1 0 p x ; p a d d i n g - l e f t : 2 0 p x ; l i n e - h e i g h t : 2 5 p x ; b a c k g r o u n d - s i z e : 6 p x ; } o l { m a r g i n - b o t t o m : 2 0 p x ; } o l l i { f o n t - s i z e : 2 0 p x ; m a r g i n - b o t t o m : 1 0 p x ; l i n e - h e i g h t : 2 5 p x ; } . d a y t r i p s - l i s t { p o s i t i o n : r e l a t i v e ; m a r g i n - b o t t o m : 2 5 p x ; b o r d e r : s o l i d 1 p x # d 8 d 8 d 8 ; b o r d e r - r a d i u s : 4 p x ; } . d a y t r i p s - t i t l e { b a c k g r o u n d : # f 7 f 7 f 7 ; b o r d e r - r a d i u s : 4 p x ; p a d d i n g : 1 5 p x ; p a d d i n g - r i g h t : 4 5 p x ; f o n t - s i z e : 2 2 p x ; f o n t - f a m i l y : ' G o u d y O l d S t y l e ' ; f o n t - w e i g h t : 6 0 0 ; p o s i t i o n : r e l a t i v e ; c u r s o r : p o i n t e r } . d a y t r i p s - t i t l e p { m a r g i n - b o t t o m : 0 ; } . d a y t r i p s - t i t l e i . f a { d i s p l a y : n o n e ; } . d a y t r i p s - t i t l e : : a f t e r { c o n t e n t : " + " ; c o l o r : # a 3 1 0 2 2 ; f o n t - f a m i l y : A r i a l , " s a n s - s e r i f " ; f o n t - s i z e : 2 4 p x ; p o s i t i o n : a b s o l u t e ; t o p : 1 5 p x ; r i g h t : 5 p x ; w i d t h : 2 4 p x ; h e i g h t : 2 4 p x ; } . d a y t r i p s - t i t l e . r e d { m a r g i n - r i g h t : 1 0 p x ; } . d a y t r i p s - t i t l e : h o v e r { c o l o r : # a 3 1 0 2 2 ; } . d a y t r i p s - l i s t . a c t i v e . d a y t r i p s - t i t l e { b o r d e r - r a d i u s : 4 p x 4 p x 0 0 ; } . d a y t r i p s - l i s t . a c t i v e . d a y t r i p s - t i t l e : : a f t e r { c o n t e n t : " - - " ; l e t t e r - s p a c i n g : - 3 p x ; } . d a y t r i p s - i n f o { d i s p l a y : n o n e ; } . d a y t r i p s - l i s t . a c t i v e . d a y t r i p s - i n f o { p a d d i n g : 2 0 p x 2 5 p x ; d i s p l a y : b l o c k } . d a y t r i p s - i n f o i m g { b o r d e r - r a d i u s : 4 p x ; } # e x p a n d A l l { m a r g i n - t o p : - 3 0 p x ; } . d a y i m g - t x t { d i s p l a y : b l o c k ; f o n t - s i z e : 1 5 p x ; m a r g i n - t o p : 5 p x ; f o n t - s t y l e : i t a l i c ; c o l o r : # 7 7 7 ; } . d a y i m g - t x t { f o n t - s i z e : 1 8 p x ; c o l o r : # 9 9 9 ; d i s p l a y : b l o c k ; b o r d e r - l e f t : 3 p x s o l i d # b 8 b 8 b 8 ; p a d d i n g - l e f t : 1 5 p x ; m a r g i n - t o p : 1 0 p x ; l i n e - h e i g h t : 1 8 p x ; m a r g i n - b o t t o m : 3 0 p x ; } . p r i c e c l u d e s { m a r g i n - b o t t o m : 7 0 p x ; } . p r i c e c l u d e s h 3 : f i r s t - c h i l d { p a d d i n g - t o p : 0 } . p r i c e c l u d e s u l { p a d d i n g : 1 0 p x 0 ; d i s p l a y : t a b l e ; m a r g i n : 0 1 5 p x } . p r i c e c l u d e s l i { p o s i t i o n : r e l a t i v e ; l i s t - s t y l e : n o n e ; f o n t - s i z e : 2 0 p x ; m a r g i n - b o t t o m : 1 0 p x ; p a d d i n g - l e f t : 3 0 p x ; l i n e - h e i g h t : 2 5 p x ; } . p r i c e c l u d e s l i : : b e f o r e { c o n t e n t : " " ; l e f t : 3 p x ; t o p : 0 p x ; f o n t - s i z e : 1 8 p x ; p o s i t i o n : a b s o l u t e ; } . p r i c e - i n c l u d e s l i : : b e f o r e { c o n t e n t : " ✔ " ; c o l o r : # 0 2 9 B 0 B ; } . p r i c e - e x c l u d e l i : : b e f o r e { c o n t e n t : " ✘ " ; c o l o r : # a 3 1 0 2 2 ; } . p r i c e f r o m { m a r g i n - b o t t o m : 2 0 p x ; } . f a q s - l i s t { p o s i t i o n : r e l a t i v e ; } . f a q s - t i t l e { b a c k g r o u n d : # f f f ; b o r d e r - r a d i u s : 4 p x ; p a d d i n g : 1 5 p x 4 5 p x 1 5 p x 0 ; b o r d e r - b o t t o m : s o l i d 1 p x # e e e ; f o n t - s i z e : 2 4 p x ; f o n t - f a m i l y : ' G o u d y O l d S t y l e ' ; m a r g i n - t o p : 0 ; f o n t - w e i g h t : b o l d ; c u r s o r : p o i n t e r } . f a q s - i n f o { d i s p l a y : n o n e ; } . f a q s - l i s t . a c t i v e . f a q s - i n f o { p a d d i n g : 2 0 p x 0 ; d i s p l a y : b l o c k } . f a q s - t i t l e : : a f t e r { c o n t e n t : " + " ; c o l o r : # a 3 1 0 2 2 ; f o n t - f a m i l y : A r i a l , " s a n s - s e r i f " ; f o n t - s i z e : 2 4 p x ; p o s i t i o n : a b s o l u t e ; t o p : 1 5 p x ; r i g h t : 5 p x ; w i d t h : 2 4 p x ; h e i g h t : 2 4 p x ; } . f a q s - l i s t . a c t i v e . f a q s - t i t l e : : a f t e r { c o n t e n t : " - - " ; l e t t e r - s p a c i n g : - 3 p x ; } . m a r g i n - t o p 8 0 { m a r g i n - t o p : 8 0 p x ; } . p r i c e - f o r m { m a r g i n : 2 5 p x 3 0 p x 1 5 p x 3 0 p x ; b o r d e r - l e f t : d a s h e d 1 p x # c c c ; p a d d i n g - l e f t : 3 0 p x ; } . f o r m - l i s t { p o s i t i o n : r e l a t i v e ; p a d d i n g - b o t t o m : 2 5 p x ; l i n e - h e i g h t : 4 2 p x ; m i n - h e i g h t : 4 2 p x ; } . f o r m - l i s t : l a s t - c h i l d { p a d d i n g - b o t t o m : 0 ; m a r g i n - b o t t o m : - 1 0 p x ; } . f o r m - l i s t i { p o s i t i o n : a b s o l u t e ; l e f t : - 5 0 p x ; t o p : 0 p x ; f o n t - s i z e : 2 0 p x ; w i d t h : 4 0 p x ; h e i g h t : 4 0 p x ; l i n e - h e i g h t : 4 0 p x ; b a c k g r o u n d : # f f f ; t e x t - a l i g n : c e n t e r ; } . f o r m - l i s t : l a s t - c h i l d i { f o n t - s i z e : 2 4 p x ; w i d t h : 4 2 p x ; h e i g h t : 4 2 p x ; l i n e - h e i g h t : 4 2 p x ; } . r e d - p r i c e { c o l o r : # a 3 1 0 2 2 ; f o n t - s i z e : 2 4 p x ; } b u t t o n { b o r d e r : m e d i u m n o n e ; } b u t t o n . b t n - r e d { f o n t - s i z e : 1 8 p x ; p a d d i n g : 0 p x 1 2 p x ; d i s p l a y : b l o c k ; w i d t h : 1 0 0 % ; t e x t - a l i g n : c e n t e r ; } . d a y I n q u i r y { p a d d i n g : 0 4 0 p x ; } . I n q u i r y B o x i n p u t { b o r d e r - r a d i u s : 4 p x ; w i d t h : 1 0 0 % ; p a d d i n g - l e f t : 1 5 p x ; b a c k g r o u n d - c o l o r : # f f f ; } . d a y I n q u i r y s e l e c t { b a c k g r o u n d - c o l o r : # f f f ; b o r d e r - r a d i u s : 4 p x ; c o l o r : # 3 3 3 ; f o n t - s i z e : 1 8 p x ; h e i g h t : 4 7 p x ; l i n e - h e i g h t : 4 7 p x ; m a r g i n - l e f t : - 5 p x ; p a d d i n g : 0 ; b o r d e r : 1 p x s o l i d # d 1 d 1 d 1 ; m a r g i n - t o p : - 1 p x ; w i d t h : c a l c ( 5 0 % - 5 p x ) ; m a r g i n - r i g h t : 1 0 p x ; b o x - s h a d o w : 0 0 0 p x # f f f ; p a d d i n g - l e f t : 1 5 p x ; } . d a y I n q u i r y s e l e c t : l a s t - c h i l d { m a r g i n - r i g h t : 0 ; } . h a s D a t e p i c k e r { b a c k g r o u n d : u r l ( h t t p s : / / d a t a . c h i
< / style >
< script src = "https://data.chinahighlights.com/js/min.php?f=/js/train-mobile/zepto.min.js,/js/flatpickr-4.6.1.min.js" > < / script >
< script >
$(function() {
$(".daytrips-box .daytrips-list").children("div.daytrips-title").click(function() {
if ($(this).parent("div.daytrips-list").hasClass("active")) {
$(this).parent("div.daytrips-list").removeClass("active");
$(this).find("i").removeClass("fa-angle-up");
$(this).find("i").addClass("fa-angle-down");
} else {
$(this).parent("div.daytrips-list").addClass("active");
$(this).find("i").removeClass("fa-angle-down");
$(this).find("i").addClass("fa-angle-up");
}
});
$("#expandAll").click(function() {
if ($("#expandAll .expandAllText").html() == "Close All") {
$(".daytrips-box .daytrips-list").removeClass("active");
$(".daytrips-box .daytrips-list").children("div.daytrips-title").find("i").removeClass("fa-angle-up");
$(".daytrips-box .daytrips-list").children("div.daytrips-title").find("i").addClass("fa-angle-down");
$("#expandAll .expandAllText").html("Open All");
} else {
$(".daytrips-box .daytrips-list").addClass("active");
$(".daytrips-box .daytrips-list").children("div.daytrips-title").find("i").removeClass("fa-angle-down");
$(".daytrips-box .daytrips-list").children("div.daytrips-title").find("i").addClass("fa-angle-up");
$("#expandAll .expandAllText").html("Close All");
}
});
$(".faqs-list").children("div.faqs-title").click(function() {
if ($(this).parent("div.faqs-list").hasClass("active")) {
$(this).parent("div.faqs-list").removeClass("active");
$(this).find("i").removeClass("fa-angle-up");
$(this).find("i").addClass("fa-angle-down");
} else {
$(this).parent("div.faqs-list").addClass("active");
$(this).find("i").removeClass("fa-angle-down");
$(this).find("i").addClass("fa-angle-up");
}
});
var t_excludedate = '<?php echo $t_excludedate ?> ';
var t_includedate = '<?php echo $t_includedate ?> ';
var t_excludemonth = '<?php echo $t_excludemonth ?> ';
var t_PAG_Scheme = '<?php echo $PAG_Scheme ?> ';
function dateFilter(_date, _u) {
var date_w = _date.getDay(); //星期
var date_d = _date.getDate(); //月份日期
var date_m = _date.getMonth(); //月份
var date_y = _date.getFullYear(); //年份
var excludedate = t_excludedate.replace(/-+/g, "/").split(",");
var includedate = t_includedate.replace(/-+/g, "/").split(",");
var excludemonth = t_excludemonth;
var my_filter_date = _date.toLocaleDateString();
if (includedate.indexOf(my_filter_date) !== -1) {
return false;
}
if (excludedate.indexOf(my_filter_date) !== -1) {
return true;
}
if (excludemonth.indexOf(Number(date_m) + 1) !== -1) {
return true;
}
var PAG_Scheme = t_PAG_Scheme;
if (date_w == 0) {
date_w = 7
};
if (PAG_Scheme == "") {
return false;
} else if (PAG_Scheme.indexOf(date_w) != -1) {
return false;
} else {
return true;
}
}
//日期
flatpickr("#Starting_Date", {
altFormat: "F j, Y",
dateFormat: "Y-m-d",
disable: [function(date) {
return dateFilter(date);
}],
minDate: new Date().fp_incr(3),
maxDate: new Date().fp_incr(540),
defaultDate: new Date().fp_incr(3)
});
//日期结束
$("#btn_submit").click(function(e) {
if (CheckSubmit()) {
var tType = $("#tType").val();
var postUrl = "";
if (tType == "gg") {
postUrl = "https://www.chinahighlights.com/forms/destination-form-gg.asp";
} else if (tType == "transfer") {
postUrl = "https://www.chinahighlights.com/forms/destination-form-transfer.asp";
} else {
postUrl = "https://www.chinahighlights.com/forms/destination-form-general.asp";
}
$("#myform").attr("action", postUrl);
$("#myform").submit();
} else {
return false;
}
});
})
function CheckSubmit(){
if ($("#Starting_Date").val()==""){
alert("Please select the travel date.");
$("#Starting_Date").focus();
return false;
}
if (isNaN($("#Adults_Num").val())){
alert("Need an adults at least.");
$("#Adults_Num").focus();
return false;
}
if ($("#Package").length>0) {
if ($("#Package").val()==""){
alert("Please select "+$("#Package option:first").html());
$("#Package").focus();
return false;
}
}
var LimitPerson = '<?php echo $t_limitperson ?> ';
if (parseInt(LimitPerson)>1){
if (parseInt(LimitPerson) > parseInt($("#Adults_Num").val())){
alert("Sorry but this tour requires at least "+LimitPerson+" adults.");
$("#Adults_Num").focus();
return false;
}
}else{
var LimitP = $("input[name='PAG_Code']").val();
if (LimitP=="BJSIC-44" || LimitP=="CDSIC-6" || LimitP=="ZJJALC-10" || LimitP=="ZJJALC-09"){
if ($("#Adults_Num").val()=="1"){
alert("Sorry but this tour requires at least 2 adults.");
$("#Adults_Num").focus();
return false;
}
}
}
if ($("#PagList").length>0){
if ($("#PagList").val()==""){
alert("Please select "+$("#PagList option:first").html());
$("#PagList").focus();
return false;
}
}
return true;
}
< / script >