403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/travnet.co.in/application/layouts/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/travnet.co.in/application/layouts/scripts/layout-search.phtml
<?php
$object = Zend_Controller_Front::getInstance();
$options= $object->getParam('bootstrap')->getOption('bootstrap');
$baseUrl    =  $options['siteUrl'];
$tollfreenumber =  $options['tollfreenumber'];
$whatsappnumber =  $options['whatsappnumber'];

define ('CONST_PACKAGE_TRAVELER_MAX_ROOM' , $options['CONST_PACKAGE_TRAVELER_MAX_ROOM']);
define ('CONST_PACKAGE_TRAVELER_MAX_ADULT_IN_ROOM' , $options['CONST_PACKAGE_TRAVELER_MAX_ADULT_IN_ROOM']);
define ('CONST_PACKAGE_TRAVELER_MAX_CHILD_IN_ROOM' , $options['CONST_PACKAGE_TRAVELER_MAX_CHILD_IN_ROOM']);
define ('CONST_PACKAGE_TRAVELER_MAX_INFANT_IN_ROOM' , $options['CONST_PACKAGE_TRAVELER_MAX_INFANT_IN_ROOM']);
$modulename = $object->getRequest()->getModuleName();
$controller = $object->getRequest()->getControllerName();
$action     = $object->getRequest()->getActionName();

$ip = ($object->getRequest()->getCookie('popup')) ? $object->getRequest()->getCookie('popup') : null;

$mydevice = Zend_Controller_Action_HelperBroker::getStaticHelper('General')->getDevice(); // get the device 
$POPUPSESS= Zend_Controller_Action_HelperBroker::getStaticHelper('General')->getMypopSess(); // get the popup sessions
//print_r($POPUPSESS);
?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<?php if( ($modulename == 'detail' ) && ($controller == 'index' ) && ($action == 'index') ) { $detailLayout = $this->detailLayout; ?>
<title><?php echo $detailLayout['PackageTitle'];?></title>
<meta name="description" content="<?php echo $detailLayout['Description'];?>" />
<meta name="keywords" content="<?php echo $detailLayout['Keyword'];?>" />
<?php }else if( ($modulename == 'activities' ) && ($controller == 'index' ) && ($action == 'index') ) { $detailLayout = $this->detail; ?>
<title><?php echo $detailLayout['Title'];?></title>
<meta name="description" content="<?php echo $detailLayout['Title'];?>" />
<meta name="keywords" content="<?php echo $detailLayout['Title'];?>" />
<?php }else{ ?>
<title><?php echo $options['siteName'];?></title>
<base href="<?php echo Catabatic_Helper::getSiteUrl(); ?>"/>
<meta name="description" content="" />
<meta name="keywords" content="" />
<?php } ?>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="" />

<meta name="google-site-verification" content="GfyTeCx0yhiwVDxZfVtqu2NLZ61kgPzWO4LRtejkKSU" />

<!-- Facebook and Twitter integration -->
<meta property="og:title" content="<?php echo !empty($this->postTitle)?$this->postTitle:''; ?>"/>
<meta property="og:image" content="<?php echo !empty($this->imageUrl)?$this->imageUrl:''; ?>"/>
<meta property="og:url" content="<?php echo !empty($this->actual_link)?$this->actual_link:''; ?>"/>
<meta property="og:site_name" content="<?php echo $options['siteName'];?>" />
<meta property="og:description" content="<?php echo !empty($this->postTitle)?$this->postTitle:''; ?>" />
<link href="https://fonts.googleapis.com/css?family=Roboto|Roboto+Condensed|Roboto+Mono|Roboto+Slab" rel="stylesheet">

<link rel="icon" type="image/png" sizes="32x32" href="<?php echo $baseUrl;?>public/images/favicon-icon.png" />

<!-- Animate.css -->
<link rel="stylesheet" href="<?php echo $baseUrl;?>public/search/css/animate.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="<?php echo $baseUrl;?>public/search/css/icomoon.css">
<!-- Bootstrap  -->
<link rel="stylesheet" href="<?php echo $baseUrl;?>public/search/css/bootstrap.css">
<!-- Flexslider  -->
<link rel="stylesheet" href="<?php echo $baseUrl;?>public/search/css/flexslider.css">
<link rel="stylesheet" href="<?php echo $baseUrl;?>public/search/css/asDatepicker.css">
<link rel="stylesheet" href="<?php echo $baseUrl;?>public/search/css/jcarousel.responsive.css">




<!-- Theme style  -->
<link rel="stylesheet" href="<?php echo $baseUrl;?>public/search/css/style.css">
<link rel="stylesheet" href="<?php echo $baseUrl;?>public/search/css/custom.css">
<link rel="stylesheet" type="text/css" href="<?php echo $baseUrl;?>public/search/assets/css/font-awesome/css/font-awesome.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $baseUrl;?>public/search/css/tabs.css" />

<link rel="stylesheet" type="text/css" href="<?php echo $baseUrl;?>public/search/css/cs-select.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $baseUrl;?>public/assets/css/plugins/icheck/skins/all.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $baseUrl;?>public/search/new/easy-responsive-tabs.css" />
<!--Link custom css-->

<link rel="stylesheet" href="<?php echo $baseUrl;?>public/search/css/accordion.css">
<link rel="stylesheet" href="<?php echo $baseUrl;?>public/search/css/responsive-tabs-pop.css">
<link rel="stylesheet" href="<?php echo $baseUrl;?>public/search/css/theme.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css" integrity="sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

<!-- Modernizr JS -->
<script src="<?php echo $baseUrl;?>public/search/js/modernizr-2.6.2.min.js"></script>

<!-- FOR IE9 below -->
<!--[if lt IE 9]>
	<script src="js/respond.min.js"></script>
	<![endif]-->

<style>
/* Note: Try to remove the following lines to see the effect of CSS positioning */
  .affix {
	top:0;
	/*	width: 100%;*/
	z-index: 9999 !important;
	background:#f0f3f6;
	display:block;
}
.affix + .container-main {
	width:100%;
	width:100%;
}
.topscrol.fix-search .search-field {
	position: fixed;
	top:10;
	padding: 16px;
	z-index:9999 !important;
}
/*accordin*/
.demo {
	margin:150px auto;
	width:980px;
}
.demo h1 {
	margin:0 0 25px;
}
.demo h3 {
	margin:10px 0;
}
pre {
	background-color:#FFF;
}
@media only screen and (max-width:780px) {
.demo {
margin:5%;
width:90%;
}
.how-use {
display:none;
float:left;
width:300px;
}
}
#tabInfo {
	display:none;
}

.nav-tabs>li.active>a, .nav-tabs>li.active>a:focus, .nav-tabs>li.active>a:hover {
    color: #555 !important;
    cursor: default !important;
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-bottom-color: transparent!important;
}
.nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus{
	color: #222;
background: #f9f9f9;
border: 1px solid #e4dddd;
border-bottom:none !important;
}
.nav-pills  ul {
    display:block !important;
}

ul.resp-tabs-list
.nav-pills > li + li {
    margin-left: 2px;
    padding: 0 !important;
	border-bottom:none !important;
}
.nav>li>a {
    margin-right: 2px;
    line-height: 1.42857143;
    border: 1px solid transparentimportant;
    border-radius:0;
	
}
.nav-pills > li {
	padding:0px !important;
	border-bottom:none !important
}
.nav>li>a {
    position: relative;
    display: block;
    padding: 10px 15px;
	    font-size: 19px;
}
.enquery
{
	margin: 0 7px!important;
}
.stardisplay
{
    display: -webkit-box;
}
.hotellocation p {
    margin: 0;
    padding: 0;line-height: 19px;
}
.hotellocation p i {
    font-size: 17px;
    color: #dc3545;
    border: 2px solid #cecece;
    border-radius: 50%;
    width: 22px;
    text-align: center;
    height: 22px;
}
.panel-body.whbg.table-responsive {
    height:374px;
    overflow-y: scroll;
}
.modal{ bottom:0 ; }
</style>

<script>
//            console.log('<?php echo $mydevice ?>');
            var SITEURL = '<?php echo $baseUrl ?>';
            var appmode = '<?php echo $options['appmode'] ?>';
            var dvc = '<?php echo ($mydevice == "mobile") ? "m" : "d" ?>';
        </script>
</head>
<body ng-app="myIndianHolidaysApp">
<div id="page">
<?php
$this->baseUrl = $baseUrl;
$this->tollfreenumber = $tollfreenumber;
$this->modulename = $modulename;
$this->POPUPSESS = $POPUPSESS;

echo $this->render("nav.phtml");

echo $this->layout()->content;
echo $this->render("_footer.phtml");
?>
<!--	<div class="fh5co-loader"></div>-->
</div>
    <style>

.detail-day-1-star {
    margin: 0;
    padding: 0;
    line-height: 17px !important;
}
.changestar
{
	font-size: 14px;
}
 
.text-center1 {
    text-align: center;
    width: 21%;
    margin: 0 auto;
    display: inherit;
}
.resp-tab-content {
    border: 1px solid #fff;padding: 0;
}
</style>
<div class="gototop js-top"> <a href="javascript:void(0);" class="js-gotop"><i class="icon-arrow-up22"></i></a> </div>
<link href="<?php echo $baseUrl;?>public/search/css/jquery.mCustomScrollbar.css" rel="stylesheet" />
<script src="<?php echo $baseUrl;?>public/js/jquery.min.js"></script> 
<!-- Bootstrap --> 
<script src="<?php echo $baseUrl;?>public/js/bootstrap.min.js"></script> 
<!-- Bootstrap --> 
<script>SITEURL = '<?php echo $baseUrl?>'</script>
<script type="text/javascript">
var CONST_PACKAGE_TRAVELER_MAX_ROOM = '<?php echo CONST_PACKAGE_TRAVELER_MAX_ROOM?>';
var CONST_PACKAGE_TRAVELER_MAX_ADULT_IN_ROOM = '<?php echo CONST_PACKAGE_TRAVELER_MAX_ADULT_IN_ROOM?>';
var CONST_PACKAGE_TRAVELER_MAX_CHILD_IN_ROOM = '<?php echo CONST_PACKAGE_TRAVELER_MAX_CHILD_IN_ROOM?>';
var CONST_PACKAGE_TRAVELER_MAX_INFANT_IN_ROOM = '<?php echo CONST_PACKAGE_TRAVELER_MAX_INFANT_IN_ROOM?>';
var HOTEL_CATEGORY  = { "Budget" : [1], "Standard" : [2], "Deluxe" : [3], "Luxury" : [4], "Premium" : [5] };
</script>


<script type="text/javascript">
var CONST_HOTEL_MAX_ROOM = '4';
var CONST_HOTEL_MAX_ADULT_IN_ROOM = '3';
var CONST_HOTEL_MAX_CHILD_IN_ROOM = '2';
var CONST_HOTEL_MAX_PAX_IN_ROOM = 4;
</script>

<?php
$scriptsAngular = $this->headScript(); // include the angular js here

$scriptsAngular->appendFile("$baseUrl/public/js/ng/angular.min.js")
        ->appendFile("$baseUrl/public/js/ng/angular-route.min.js")
        ->appendFile("$baseUrl/public/js/ng/app.js")
        ->appendFile("$baseUrl/public/js/ng/ngfactory.js")
        ->appendFile("$baseUrl/public/js/ng/ngsortingorder.js");
//        ->appendFile("$baseUrl/public/js/ng/filters.js");


if( ($modulename == 'default') && ($controller == 'dashboard') && ($action == 'index') ) {
    $scriptsAngular->appendFile("$baseUrl/public/js/ng/homepage.js");
}
if( ($modulename == 'tours') && ($controller == 'package') && ($action == 'index')  ) {
    $scriptsAngular->appendFile("$baseUrl/public/js/ng/package_search.js");
}
if( ($modulename == 'detail') && ($controller == 'index') && ($action == 'index')  ) {
    $scriptsAngular->appendFile("$baseUrl/public/js/ng/controller.js");
}

if( ($modulename == 'activities') && ($controller == 'index') && ($action == 'index')  ) {
    $scriptsAngular->appendFile("$baseUrl/public/js/ng/controller.js");
}

if( ($modulename == 'byo') && ($controller == 'index') && ($action == 'search-results' || $action == 'itinerary-desc-details' || $action == 'get-proceed-data' || $action == 'choose-vehicle')  ) {
    $scriptsAngular->appendFile("$baseUrl/public/js/ng/hotel_search.js");
}
    
$scriptsAngular->appendFile("$baseUrl/public/js/ng/footer.js");

    
echo $scriptsAngular;
?>
<link rel="stylesheet" href="<?php echo $baseUrl;?>public/css/jquery-ui.css" />
<link rel="stylesheet" href="<?php echo $baseUrl; ?>public/assets/css/jquery.datetimepicker.css">
<script type="text/javascript" src="<?php echo $baseUrl;?>public/js/jquery-ui-1.12.1.js"></script>
<script src="<?php echo $baseUrl;?>public/assets/js/jquery.datetimepicker.js"></script>

<?php
$data   = ['baseUrl'=> $baseUrl , 'AgencySysId' => $options['gtxagencysysid'] , 'modulename' => $modulename , 
    'CONST_PACKAGE_TRAVELER_MAX_ROOM' => CONST_PACKAGE_TRAVELER_MAX_ROOM ,
    'CONST_PACKAGE_TRAVELER_MAX_ADULT_IN_ROOM' => CONST_PACKAGE_TRAVELER_MAX_ADULT_IN_ROOM,
    'CONST_PACKAGE_TRAVELER_MAX_CHILD_IN_ROOM' => CONST_PACKAGE_TRAVELER_MAX_CHILD_IN_ROOM ,
    'CONST_PACKAGE_TRAVELER_MAX_INFANT_IN_ROOM' => CONST_PACKAGE_TRAVELER_MAX_INFANT_IN_ROOM ,
    'POPUPSESS' => $POPUPSESS ,
         ];

    echo $this->partial( 'partials/send-enquiry-modal.phtml' , $data);

?>
<script >
    //$(".datepicker").datepicker({minDate: 0, dateFormat: 'dd/mm/yy'});
</script>
<script src="<?php echo $baseUrl;?>public/search/js/main.js"></script> 
<script src="<?php echo $baseUrl;?>public/js/send_enquiry.js"></script> 
<script src="<?php echo $baseUrl;?>public/js/packageCompare.js"></script> 
<script type="text/javascript" src="<?php echo $baseUrl;?>public/search/js/jquery.nicescroll.min.js"></script> 
<!-- Script For Icheck --> 
<script src="<?php echo $baseUrl;?>public/assets/js/icheck.min.js"></script> 
<!-- Script For Icheck --> 
<!--Advance Radio and checkbox demo start--> 
<script src="<?php echo $baseUrl;?>public/assets/js/pages/checkboxRadio.js"></script> 
<!--Advance Radio and checkbox demo start--> 


  <script src="<?php echo $baseUrl;?>public/search/js/jquery-asDatepicker.js"></script>
  <script src="<?php echo $baseUrl;?>public/search/js/jquery.toc.min.js"></script>

  <script type="text/javascript">
$(document).on('click' , '.moreless_anchor', function(){
    if($(this).hasClass('expand')) {
        $(this).css({'right':'20px','bottom':'0' ,'position':'absolute' }).addClass('collapse-act').removeClass('expand').html('+More');
        $(this).parent().css({'height':'110px','overflow':'hidden' });
    }else {
        $(this).css({'right':'auto','bottom':'auto' ,'position':'relative' }).addClass('expand').addClass('collapse-act').html('-Less');
        $(this).parent().css({'height':'auto','overflow':'auto' });
    }
});


$(document).on('click' , '.iamplusminus', function(){
    if($(this).hasClass('expand')) {
        $(this).html('<i class="fa fa-plus"></i>').addClass('collepse').removeClass('expand').attr('title','More...');
        $(this).parent().css({'height':'180px'});
    } else {
        $(this).html('<i class="fa fa-minus"></i>').addClass('expand').removeClass('collepse').attr('title','Less...');;
        $(this).parent().css({'height':'auto'});
    }
});

$("#slistId").click(function(){
        $("#shortlistShow").toggle();
		$("#cpareShow").hide();
		$("#rcentlyShow").hide();
});

$("#cpareId").click(function(){
        $("#rcentlyShow").toggle();
		$("#shortlistShow").hide();
		$("#cpareShow").hide();
});
$(".crossIcon").click(function(){
        $("#shortlistShow").hide();
		$("#cpareShow").hide();
		$("#rcentlyShow").hide();
});


$(window).load(function(){
var slideShow = {
    i: 0,
    next: function() {
        this.i++;
        if(this.i === this.max()) {
            this.i = 0;
        };
        this.reset();
        this.goTo(this.i);
    },
    prev: function() {
        if(this.i === 0) {
            this.i = this.max();
        };
        this.i--;
        this.reset();
        this.goTo(this.i);
    },
    goTo: function(i) {
        $('.listItem').eq(i).addClass('active');
    },
    init: function() {
            slideShow.next();
    },
    reset: function() {
        $('.listItem').removeClass('active');
    },
    max: function() {
        return $('.listItem').length;
    }
    
};

slideShow.init();
    
$('#nextArrow').click(function(){
    slideShow.next();
});
    
$('#prevArrow').click(function(){
    slideShow.prev();
});
});

$(document).ready(function() {	 
	  
	  var owl = $("#owl-demo2");

      owl.owlCarousel({

      items : 5, //10 items above 1000px browser width
      itemsDesktop : [1000,5], //5 items between 1000px and 901px
      itemsDesktopSmall : [900,4], // 3 items betweem 900px and 601px
      itemsTablet: [600,2], //2 items between 600 and 0;
      itemsMobile : false // itemsMobile disabled - inherit from itemsTablet option
      
      });
	  
	  // Custom Navigation Events
      $(".right").click(function(){
        owl.trigger('owl.next');
      })
      $(".left").click(function(){
        owl.trigger('owl.prev');
      })     	  
	  



/*custom checkbox js*/
 function customCheckbox(checkboxName){
        var checkBox = $('input[name="'+ checkboxName +'"]');
        $(checkBox).each(function(){
            $(this).wrap( "<span class='custom-checkbox'></span>" );
            if($(this).is(':checked')){
                $(this).parent().addClass("selected");
            }
        });
        $(checkBox).click(function(){
            $(this).parent().toggleClass("selected");
			$(this).parent().parent().toggleClass("labelcolor");
        });
    }
    $(document).ready(function (){
        customCheckbox("trip[]");
		customCheckbox("pref[]");
    })
      
});
</script>
<script>
$(document).ready(function(){
	(function(){
		$('#toc').toc();
	})();
    $("#calendar").asDatepicker({
            namespace: 'calendar',
            lang: 'zh',
            position: 'bottom'
        });
    
	$("#calendar2").asDatepicker({mode: 'range'});

    $("#calendar3").asDatepicker({
        mode: 'multiple', 
        calendars: 4, 
    });

	$(".calendar4").asDatepicker();
    
    $('#calendar-mobile-single').asDatepicker({
        mobileMode: true
    });
    $('#calendar-mobile-range').asDatepicker({
        mode: 'range',
        mobileMode: true
    });
    $('#calendar-mobile-multiple').asDatepicker({
        mode: 'multiple',
        mobileMode: true
    });



	$('.asDatepicker').asDatepicker();
    $('.calendar-multiple').asDatepicker({mode: 'multiple', calendars: 3});

    $('#calendar-api-displayMode').asDatepicker({displayMode: 'inline'});

	$('#calendar-api-show-click').click(function(){
		$('#calendar-api-show').asDatepicker('show');
		return false;
	});
	$('#calendar-api-hide-click').click(function(){
		$('#calendar-api-hide').asDatepicker('hide');
		return false;
	});

    $('#api-multipleClear-click').click(function() {
        $("#calendar-api-multipleClear").asDatepicker('multipleClear');
        return false;
    });

    $('#api-getDate-click').click(function() {
        var html = '<div>' + $('#calendar-api-getDate').asDatepicker('getDate') + '</div>';
        $(html).prependTo($('#api-getDate-info'));
        return false;
    });

    $('#api-getDate-format-click').click(function() {
        var html = '<div>' + $('#calendar-api-getDate-format').asDatepicker('getDate', 'yyyy-mm-dd') + '</div>';
        $(html).prependTo($('#api-getDate-format-info'));
        return false;
    });

    $('#api-update-click').click(function() {
         $('#calendar-api-update').asDatepicker('update', {mode: 'range'});
        
        return false;
    });


});

</script>


<script src="<?php echo $baseUrl;?>public/search/new/easy-responsive-tabs.js"></script> 
<script>
//setTimeout(function(){ 
////    for(var mi = 1;mi<21;mi++){
////        $('#verticalTab'+parseInt(mi)).easyResponsiveTabs({
////            type: 'vertical',
////            width: 'auto',
////            fit: true
////        });   
////    }   
//
//     $(".verticalTab").each(function() {
//        var pkg = $(this).attr('pkg');
//        $('#verticalTab'+parseInt(pkg)).easyResponsiveTabs({
//            type: 'vertical',
//            width: 'auto',
//            fit: true
//        });
//        $("#calendar"+parseInt(pkg)).asDatepicker({   outputFormat: 'dd/mm/yyyy', onceClick: true });
//        $("#customizeTravelDate"+parseInt(pkg)).asDatepicker({ outputFormat: 'dd/mm/yyyy',onceClick: true });
//        $("#EnquireTravelDate"+parseInt(pkg)).asDatepicker({ outputFormat: 'dd/mm/yyyy', onceClick: true});
//        $(".travelerbox"+parseInt(pkg)).click(function(){
//            $(".roomBoxMain"+parseInt(pkg)).toggle();
//        });
//        $(".travelerboxCustom"+parseInt(pkg)).click(function(){
//            $(".roomBoxMainCustom"+parseInt(pkg)).toggle();
//        });
//        $(".travelerboxEnquire"+parseInt(pkg)).click(function(){
//            $(".roomBoxMainEnquire"+parseInt(pkg)).toggle();
//        });
//    });
//}, 10000);

$(document).on('click', '.incr-btn', function (e) {

    var $button = $(this);
    var oldValue = $button.parent().find('.quantity').val();
    if ($button.data('action') == "increase_adult") {
        if (oldValue < 3) {
            var newVal = parseFloat(oldValue) + 1;
        } else {
            return false;
        }
    } else if ($button.data('action') == "increase_child") {
        if (oldValue < 2) {
            var newVal = parseFloat(oldValue) + 1;
        } else {
            return false;
        }
    }else if ($button.data('action') == "decrease_adult") {
        if (oldValue > 1) {
            var newVal = parseFloat(oldValue) - 1;
        } else {
            newVal = 1;
            $button.addClass('inactive');
        }
    } else if ($button.data('action') == "decrease_child") {
        if (oldValue > 0) {
            var newVal = parseFloat(oldValue) - 1;
        } else {
            newVal = 0;
            $button.addClass('inactive');
        }
    } 
    $button.parent().find('.quantity').val(newVal);
    e.preventDefault();
    });

//
//$('#verticalTab1').easyResponsiveTabs({
//type: 'vertical',
//width: 'auto',
//fit: true
//});
//
//
//$('#verticalTab2').easyResponsiveTabs({
//type: 'vertical',
//width: 'auto',
//fit: true
//});
//
//
//$('#verticalTab3').easyResponsiveTabs({
//type: 'vertical',
//width: 'auto',
//fit: true
//});
//
//
//$('#verticalTab4').easyResponsiveTabs({
//type: 'vertical',
//width: 'auto',
//fit: true
//});
//
//
//$('#verticalTab5').easyResponsiveTabs({
//type: 'vertical',
//width: 'auto',
//fit: true
//});


function addMoreRoomQuote(that){
    var pkg = $(that).attr('pkg');
    var itinerary_rooms = $('#itinerary_rooms'+parseInt(pkg)).val();
     $('#Room'+parseInt(pkg)+(parseInt(itinerary_rooms)+1)).show();
    $('#itinerary_rooms'+parseInt(pkg)).val(parseInt(itinerary_rooms)+1);
}
function removeRoomQuote(that){
    var pkg = $(that).attr('pkg');
    var itinerary_rooms = $('#itinerary_rooms'+parseInt(pkg)).val();
    $('#quantityAdult'+parseInt(pkg)+parseInt(itinerary_rooms)).val(0);
    $('#quantityChild'+parseInt(pkg)+parseInt(itinerary_rooms)).val(0);
     $('#Room'+parseInt(pkg)+parseInt(itinerary_rooms)).hide();
     
    $('#itinerary_rooms'+parseInt(pkg)).val(parseInt(itinerary_rooms)-1);
}
function addMoreRoomCustomize(that){
    var pkg = $(that).attr('pkg');
    var itinerary_rooms = $('#itinerary_roomsCustomize'+parseInt(pkg)).val();
     $('#RoomCustomize'+parseInt(pkg)+(parseInt(itinerary_rooms)+1)).show();
    $('#itinerary_roomsCustomize'+parseInt(pkg)).val(parseInt(itinerary_rooms)+1);
}
function removeRoomCustomize(that){
    var pkg = $(that).attr('pkg');
    var itinerary_rooms = $('#itinerary_roomsCustomize'+parseInt(pkg)).val();
    $('#quantityAdultCustom'+parseInt(pkg)+parseInt(itinerary_rooms)).val(0);
    $('#quantityChildCustom'+parseInt(pkg)+parseInt(itinerary_rooms)).val(0);
     $('#RoomCustomize'+parseInt(pkg)+parseInt(itinerary_rooms)).hide();
     
    $('#itinerary_roomsCustomize'+parseInt(pkg)).val(parseInt(itinerary_rooms)-1);
}
function addMoreRoomEnquire(that){
    var pkg = $(that).attr('pkg');
    var itinerary_rooms = $('#itinerary_roomsEnquire'+parseInt(pkg)).val();
     $('#RoomEnquire'+parseInt(pkg)+(parseInt(itinerary_rooms)+1)).show();
    $('#itinerary_roomsEnquire'+parseInt(pkg)).val(parseInt(itinerary_rooms)+1);
}
function removeMoreRoomEnquire(that){
    var pkg = $(that).attr('pkg');
    var itinerary_rooms = $('#itinerary_roomsEnquire'+parseInt(pkg)).val();
    $('#quantityAdultEnquire'+parseInt(pkg)+parseInt(itinerary_rooms)).val(0);
    $('#quantityChildEnquire'+parseInt(pkg)+parseInt(itinerary_rooms)).val(0);
     $('#RoomEnquire'+parseInt(pkg)+parseInt(itinerary_rooms)).hide();
     
    $('#itinerary_roomsEnquire'+parseInt(pkg)).val(parseInt(itinerary_rooms)-1);
}
function addMoreRoomDynamicCustomize(that){
    var pkg = $(that).attr('pkg');
    var itinerary_rooms = $('#itinerary_roomsDynamicCustomize').val();
    $('#RoomDynamicCustomize'+parseInt(pkg)+(parseInt(itinerary_rooms)+1)).show();
    $('#itinerary_roomsDynamicCustomize').val(parseInt(itinerary_rooms)+1);
}
function removeRoomDynamicCustomize(that){
    var pkg = $(that).attr('pkg');
    var itinerary_rooms = $('#itinerary_roomsDynamicCustomize').val();
    $('#quantityAdultDynamicCustom'+parseInt(pkg)+parseInt(itinerary_rooms)).val(0);
    $('#quantityChildDynamicCustom'+parseInt(pkg)+parseInt(itinerary_rooms)).val(0);
    $('#RoomDynamicCustomize'+parseInt(pkg)+parseInt(itinerary_rooms)).hide();
    $('#itinerary_roomsDynamicCustomize').val(parseInt(itinerary_rooms)-1);
}
function closeTravellersForm(that){
   var pkg = $(that).attr('pkg'); 
   $('.roomBoxMain'+parseInt(pkg)).hide();
    var totalAdults = 0;
    var totalKids = 0;
   $('.quantityAdult'+parseInt(pkg)).each(function (i, element) {
       console.log($(this).val());
        totalAdults += parseInt($(this).val());
    });
   $('.quantityChild'+parseInt(pkg)).each(function (i, element) {
        totalKids += parseInt($(this).val());
    });

    $('.travelerbox'+parseInt(pkg)).html(parseInt(totalAdults) + parseInt(totalKids));
}
function closeTravellersFormCustomize(that){
   var pkg = $(that).attr('pkg'); 
   $('.roomBoxMainCustom'+parseInt(pkg)).hide();
    var totalAdults = 0;
    var totalKids = 0;
   $('.quantityAdultCustom'+parseInt(pkg)).each(function (i, element) {
       console.log($(this).val());
        totalAdults += parseInt($(this).val());
    });
   $('.quantityChildCustom'+parseInt(pkg)).each(function (i, element) {
        totalKids += parseInt($(this).val());
    });

    $('.travelerboxCustom'+parseInt(pkg)).html(parseInt(totalAdults) + parseInt(totalKids));
}

function closeTravellersFormEnquire(that){
   var pkg = $(that).attr('pkg'); 
   $('.roomBoxMainEnquire'+parseInt(pkg)).hide();
    var totalAdults = 0;
    var totalKids = 0;
   $('.quantityAdultEnquire'+parseInt(pkg)).each(function (i, element) {
       console.log($(this).val());
        totalAdults += parseInt($(this).val());
    });
   $('.quantityChildEnquire'+parseInt(pkg)).each(function (i, element) {
        totalKids += parseInt($(this).val());
    });

    $('.travelerboxEnquire'+parseInt(pkg)).html(parseInt(totalAdults) + parseInt(totalKids));
}
function closeTravellersFormDynamicCustomize(that){
   var pkg = $(that).attr('pkg'); 
   $('.roomBoxMainDynamicCustom').hide();
    var totalAdults = 0;
    var totalKids = 0;
   $('.quantityAdultDynamicCustom'+parseInt(pkg)).each(function (i, element) {
       console.log($(this).val());
        totalAdults += parseInt($(this).val());
    });
   $('.quantityChildDynamicCustom'+parseInt(pkg)).each(function (i, element) {
        totalKids += parseInt($(this).val());
    });

    $('.travelerboxDynamicCustom').html(parseInt(totalAdults) + parseInt(totalKids));
}
function rvMoneyFormatINR(n, prec, currSign) {
    if (prec == null)
        prec = 2;
    var n = ('' + parseFloat(n).toFixed(prec).toString()).split('.');
    var num = n[0];
    var dec = n[1];
    var r, s, t;
    if (num.length > 3) {
        s = num.length % 3;
        if (s) {
            t = num.substring(0, s);
            num = t + num.substring(s).replace(/(\d{3})/g, ",$1");
        } else {
            num = num.substring(s).replace(/(\d{3})/g, ",$1").substring(1);
        }
    }
//    return(currSign == null ? "" : currSign + "") + num + '.' + dec;
    return(currSign == null ? "" : currSign + "") + num ;
}
function viewCheckRate(that){
    var pkg = $(that).attr('pkg');
    var data = $('.checkRatePackageForm'+parseInt(pkg)).serialize();
    console.log(data);
    var GTXPkgId = $('#gtxpackage_'+parseInt(pkg)).val();
    $.ajax({
        url: SITEURL + 'gtxwebservices/send-enquiry/post',
        type: 'POST',
        data: data, 
        dataType: 'json', 
        beforeSend: function () { 
            if($('#extraMarkUp'+parseInt(pkg)).val() == ''){
             $('.viewCheckRateClass'+parseInt(pkg)).html('Wait..');   
            }else{
             $('.viewCheckRateProposal'+parseInt(pkg)).html('Wait');   
            }
            
        },
        success: function (result) {
            console.log(result);
            //if(result.success == 'success'){
             $('.viewCheckRateClass'+parseInt(pkg)).html('Check Rate').attr('disabled',true);
            $('#ratedetail'+parseInt(pkg)).show();
            //$('#myModa1PerPersonPriceHtml').html(result); 
             var priceTax = result.addtional['GSTAmount']; // Tax
            var sumRoomWise = result.addtional['MyCost']; // TotalPrice
            var priceGT = result.addtional['AmountWithGST']; // GrandTotal
            
            var priceTaxFormatted, priceBCFormatted, priceGTFormatted = '';
            priceTaxFormatted = rvMoneyFormatINR(priceTax, 2, null);
            priceBCFormatted = rvMoneyFormatINR(sumRoomWise, 2, null);
            priceGTFormatted = rvMoneyFormatINR((priceGT), 2, null);
            $('#totalBasicCost'+parseInt(pkg)).html(priceBCFormatted);
            $('#totalTaxCost'+parseInt(pkg)).html(priceTaxFormatted);
            $('#totalGrandCost'+parseInt(pkg)).html(priceGTFormatted);
            if(result.markupStatus == true){
                 $('.viewCheckRateProposal'+parseInt(pkg)).html('Send Proposal').hide();
                 $('.viewCheckRateProposalMsg'+parseInt(pkg)).html('Proposal Sent Successfully!!');
            }else{
                $('.viewCheckRateProposal'+parseInt(pkg)).html('Send Proposal');
            }
            
            
        //}
        }, 
        error: function (result) {

        }
    });
    
    
    
}

function multiCityQuery(that){
    var pkg = $(that).attr('pkg');
   
    var data = $('.checkRatePackageCustomizeForm'+parseInt(pkg)).serialize();
    console.log(data);
    var GTXPkgId = $('#gtxpackage_'+parseInt(pkg)).val();
    $.ajax({
        url: SITEURL + 'gtxwebservices/send-enquiry/multi-city-query',
        type: 'POST',
        data: data+'&PkgSysId='+parseInt(pkg)+'&package_tpid='+GTXPkgId, 
        dataType: 'json', 
        beforeSend: function () { $('.multiCityQuery'+parseInt(pkg)).html('Wait..')},
        success: function (result) {
         $('.multiCityQuery'+parseInt(pkg)).html('Submit');
         $('.multiCityQueryMsg'+parseInt(pkg)).html('Query created successfully');
        }, 
        error: function (result) {

        }
    });
    
    
    
}
function EnquireQuery(that){
    var pkg = $(that).attr('pkg');
   
    var data = $('.checkRatePackageEnquireForm'+parseInt(pkg)).serialize();
    console.log(data);
    var GTXPkgId = $('#gtxpackage_'+parseInt(pkg)).val();
    $.ajax({
        url: SITEURL + 'gtxwebservices/send-enquiry/multi-city-query',
        type: 'POST',
        data: data+'&PkgSysId='+parseInt(pkg)+'&package_tpid='+GTXPkgId, 
        dataType: 'json', 
        beforeSend: function () { $('.EnquireQuery'+parseInt(pkg)).html('Wait..')},
        success: function (result) {
         $('.EnquireQuery'+parseInt(pkg)).html('Submit');
         $('.EnquireQueryMsg'+parseInt(pkg)).html('Query created successfully');
        }, 
        error: function (result) {

        }
    });
    
    
    
}



function showCutomizeHtml(that){
    $('.quoteCustomizeEnquire').slideUp("slow");
    var pkg = $(that).attr('pkg');
   $("#customizebooking"+parseInt(pkg)).slideDown('slow');
}
function closeCutomizeHtml(that){
    var pkg = $(that).attr('pkg');
    $('#customizebooking'+parseInt(pkg)).slideUp("slow");
}

function showEnquireHtml(that){
    $('.quoteCustomizeEnquire').slideUp("slow");
    var pkg = $(that).attr('pkg');
   $("#Enquirebooking"+parseInt(pkg)).slideDown('slow');
}
function closeEnquireHtml(that){
    var pkg = $(that).attr('pkg');
    $('#Enquirebooking'+parseInt(pkg)).slideUp("slow");
}




</script> 
  <script>
$(document).ready(function () {
$('#horizontalTab').easyResponsiveTabs({
type: 'default', //Types: default, vertical, accordion           
width: 'auto', //auto or any width like 600px
fit: true,   // 100% fit in a container
closed: 'accordion', // Start closed if in accordion view
activate: function(event) { // Callback function if tab is switched
var $tab = $(this);
var $info = $('#tabInfo');
var $name = $('span', $info);
$name.text($tab.text());
$info.show();
}
});

});
</script>
<script>
$(document).ready(function(){
  $('[data-toggle="tooltip"]').tooltip(); 
});
</script> 
<script src="<?php echo $baseUrl;?>public/search/js/jquery.mCustomScrollbar.concat.min.js"></script> 
<script>
		(function($){
			$(window).load(function(){
				$("#content_1,#content_2").mCustomScrollbar();
					
			});
		})(jQuery);
	</script>
    
<!--    <script>
       
	         $("#changebtn").click(function(){
		$("#chotel").slideDown('slow');
		
	});
	
        
        $("#bookingbtn").click(function(){
		$("#booking").slideDown('slow');
		
	});
	$("#bookingbtn1").click(function(){
		$("#booking").slideUp('slow');
		
	});
	
	 $("#detailbtn").click(function(){
		$("#expanddetail").slideDown('slow');
		
	});
	$("#detailbtn1").click(function(){
		$("#expanddetail").slideUp('slow');
		
	});
	
	 $("#enquirebtn").click(function(){
		$("#expandenquire").slideDown('slow');
		
	});
	$("#enquirebtn1").click(function(){
		$("#expandenquire").slideUp('slow');
		
	});
	
	$("#checkrate").click(function(){
		$("#ratedetail").slideDown('slow');
      	
	});
        </script>-->
        
      
      <script type="application/x-javascript">

	
	$(".travelerbox").click(function(){
			$(".roomBoxMain").toggle();
		});
		
		$("#addtins").click(function(){
			$("#addtinsDiv").toggle();
		});

	</script>
    <script>
        $("#detailbtn").click(function(){
		$("#expanddetail").slideDown('slow');
		
	});
	$("#detailbtn1").click(function(){
		$("#expanddetail").slideUp('slow');
		
	});
        </script>
        
        
        <script>
$(document).ready(function(){
  $("#changehoteldetail").click(function(){
    $("#hoteldetail").slideDown("slow");
  });
});
$(document).ready(function(){
  $("#detailbtn2").click(function(){
    $("#hoteldetail").slideUp("slow");
  });
});
$(document).ready(function(){
  $("#mainhoteldetail").click(function(){
    $("#hoteldescription").slideDown("slow");
  });
});
$(document).ready(function(){
  $("#detailbtn3").click(function(){
    $("#hoteldescription").slideUp("slow");
  });
});
$(document).ready(function(){
  $("#sightseeingdetail").click(function(){
    $("#hoteldescription2").slideDown("slow");
  });
});
$(document).ready(function(){
  $("#sightdetailbtn3").click(function(){
    $("#hoteldescription2").slideUp("slow");
  });
});
$(document).ready(function(){
  $("#detailbtnn").click(function(){
    $("#expanddetail2").slideDown("slow");
  });
});
$(document).ready(function(){
  $("#sdetailbtn1").click(function(){
    $("#expanddetail2").slideUp("slow");
  });
});
$(document).ready(function(){
  $("#sighthoteldetail").click(function(){
    $("#sightdetail").slideDown("slow");
  });
});
$(document).ready(function(){
  $("#sightdetailbtn2").click(function(){
    $("#sightdetail").slideUp("slow");
  });
});
$(document).ready(function(){
  $("#cust").click(function(){
    $("#myModa1Customize1").hide("");
  });
});
$(document).ready(function(){
  $("#detailbtns").click(function(){
    $("#myModa1Customize1").hide("");
  });
});
        </script>
    
    <script>
var x, i, j, selElmnt, a, b, c;
/*look for any elements with the class "custom-select":*/
x = document.getElementsByClassName("custom-select");
for (i = 0; i < x.length; i++) {
  selElmnt = x[i].getElementsByTagName("select")[0];
  /*for each element, create a new DIV that will act as the selected item:*/
  a = document.createElement("DIV");
  a.setAttribute("class", "select-selected");
  a.innerHTML = selElmnt.options[selElmnt.selectedIndex].innerHTML;
  x[i].appendChild(a);
  /*for each element, create a new DIV that will contain the option list:*/
  b = document.createElement("DIV");
  b.setAttribute("class", "select-items select-hide");
  for (j = 0; j < selElmnt.length; j++) {
    /*for each option in the original select element,
    create a new DIV that will act as an option item:*/
    c = document.createElement("DIV");
    c.innerHTML = selElmnt.options[j].innerHTML;
    c.addEventListener("click", function(e) {
        /*when an item is clicked, update the original select box,
        and the selected item:*/
        var y, i, k, s, h;
        s = this.parentNode.parentNode.getElementsByTagName("select")[0];
        h = this.parentNode.previousSibling;
        for (i = 0; i < s.length; i++) {
          if (s.options[i].innerHTML == this.innerHTML) {
            s.selectedIndex = i;
            h.innerHTML = this.innerHTML;
            y = this.parentNode.getElementsByClassName("same-as-selected");
            for (k = 0; k < y.length; k++) {
              y[k].removeAttribute("class");
            }
            this.setAttribute("class", "same-as-selected");
            break;
          }
        }
        h.click();
    });
    b.appendChild(c);
  }
  x[i].appendChild(b);
  a.addEventListener("click", function(e) {
      /*when the select box is clicked, close any other select boxes,
      and open/close the current select box:*/
      e.stopPropagation();
      closeAllSelect(this);
      this.nextSibling.classList.toggle("select-hide");
      this.classList.toggle("select-arrow-active");
    });
}
function closeAllSelect(elmnt) {
  /*a function that will close all select boxes in the document,
  except the current select box:*/
  var x, y, i, arrNo = [];
  x = document.getElementsByClassName("select-items");
  y = document.getElementsByClassName("select-selected");
  for (i = 0; i < y.length; i++) {
    if (elmnt == y[i]) {
      arrNo.push(i)
    } else {
      y[i].classList.remove("select-arrow-active");
    }
  }
  for (i = 0; i < x.length; i++) {
    if (arrNo.indexOf(i)) {
      x[i].classList.add("select-hide");
    }
  }
}
/*if the user clicks anywhere outside the select box,
then close all select boxes:*/
document.addEventListener("click", closeAllSelect);

function showGetQuoteHtml(that){
    $('.quoteCustomizeEnquire').slideUp("slow");
    var pkg = $(that).attr('pkg');
   //$('#booking'+parseInt(pkg)).slideUp("slow");
   $("#booking"+parseInt(pkg)).slideDown('slow');
}
function closeGetQoute(that){
    var pkg = $(that).attr('pkg');
    
   $('#booking'+parseInt(pkg)).slideUp("slow");
}

 function showDynamicCustomizePopup(that){ 
   var pkg = $(that).attr('pkg');
   var noofNights = $('#noofNights_'+parseInt(pkg)).val();
   var gtxpackage = $('#gtxpackage_'+parseInt(pkg)).val();
   var hotelcategoryid = $('#hotelcategoryid_'+parseInt(pkg)).val();
   var DestinationsId = $('#DestinationsId_'+parseInt(pkg)).val();
   var SourcePlaceSysId = $('#SourcePlaceSysId_'+parseInt(pkg)).val();
   var DestinationPlacesSysId = $('#DestinationPlacesSysId_'+parseInt(pkg)).val();
   var SourcePlace = $('#SourcePlace_'+parseInt(pkg)).val();
   var DestinationPlaces = $('#DestinationPlaces_'+parseInt(pkg)).val();
   var CountryIds = $('#CountryIds_'+parseInt(pkg)).val();
   var my_custom_select_field_ = $('#my_custom_select_field_'+parseInt(pkg)).val();
   var hotelid = $('#hotelid_'+parseInt(pkg)+my_custom_select_field_).val();
   var html = '<div class="travelerboxMain"><div class="travelerbox travelerboxDynamicCustom" onclick="opentravelerboxDynamicCustom()">2</div><div class="roomBoxMain roomBoxMainDynamicCustom"><div class="roomBoxMainIn">';  
       for(var mi = 1;mi<=10;mi++){
        var display = '';
        var crossBtn = '';
        var defaultAdult = 2;
        if(mi>1){
            display = 'display:none;';
            crossBtn = '<a href="javascript:void(0)" class="close-panel1 pull-right" pkg="'+pkg+'" onclick="removeRoomDynamicCustomize(this)"><i class="fa fa-times text-gray"></i></a>';
            defaultAdult = 0;
        }
            html += '<div class="room-1" id="RoomDynamicCustomize'+pkg+mi+'" style="'+display+'">'+
            '<h1 class="no-mar-top ">Room '+mi+': '+crossBtn+'</h1><div class="row"><div class="col-md-6">'+    
            '<label><strong>Adults </strong><span>(Above 12 years)</span></label>'+
            '<div class="count-input space-bottom"> <a class="incr-btn" data-action="decrease_adult" href="#">–</a>'+
            '<input class="quantityAdultDynamicCustom'+pkg+' quantity" id="quantityAdultDynamicCustom'+pkg+mi+'" type="text" name="Adult[]" value="'+defaultAdult+'"/>'+
            '<a class="incr-btn" data-action="increase_adult" href="#">&plus;</a> </div><div class="cl"></div></div>'+
           '<div class="col-md-6"><label><strong>Children</strong> <span>(Below 12 years)</span></label>'+
            '<div class="count-input space-bottom"> <a class="incr-btn" data-action="decrease_child" href="#">–</a>'+
            '<input class="quantityChildDynamicCustom'+pkg+' quantity" id="quantityChildDynamicCustom'+pkg+mi+'" type="text" name="Child[]" value="0"/>'+
            '<a class="incr-btn" data-action="increase_child" href="#">&plus;</a> </div><div class="cl"></div></div>'+     
                '</div></div>';     
         

    }
    html += '<div class="cl"><span class="pull-left">'+
                '<a href="javascript://" class=" btn btn-group-sm btn-outline btt-btn " pkg="'+pkg+'" onclick="addMoreRoomDynamicCustomize(this)">Add room</a></span>'+
                '<span class="pull-right"> <a href="javascript://" class=" btn btn-group-sm btn-outline btt-btn " onclick="closeTravellersFormDynamicCustomize(this)" pkg="'+pkg+'">Done</a> </span>'+
                '<div class="cl"></div>'+
                '</div></div>  </div><input name="noofNights" value="'+noofNights+'" type="hidden"><input name="DestinationsIds" value="'+DestinationsId+'" type="hidden"><input name="hotelid" value='+hotelid+' type="hidden"><input name="hotelCategory" value='+my_custom_select_field_+' type="hidden"><input name="SourcePlaceSysId" value='+SourcePlaceSysId+' type="hidden"><input name="DestinationPlacesSysId" value='+DestinationPlacesSysId+' type="hidden"><input name="SourcePlace" value='+SourcePlace+' type="hidden"><input name="DestinationPlaces" value='+DestinationPlaces+' type="hidden"><input name="CountryIds" value='+CountryIds+' type="hidden"><input name="pkg" value='+pkg+' type="hidden"><input name="gtxpackage" value='+gtxpackage+' type="hidden"><input name="hotelcategoryid" value='+hotelcategoryid+' type="hidden">'; 
    $('#myModalcustomizePackageHtml').html(html); 
    $('#myModalcustomizePackage').modal('show');
}

function opentravelerboxDynamicCustom(){ $('.roomBoxMainDynamicCustom').toggle(); }
$("#calendarDynamic").asDatepicker({   outputFormat: 'dd/mm/yyyy', onceClick: true });

function dynamicCustomizePackageFunc(){
    
    var data = $('.dynamicCustomizePackage').serialize();
     $.ajax({
        url: SITEURL + 'tours/package/get-customize-dynamic-package-detail',
        type: 'POST',
        data: data, 
        dataType: 'html', 
        beforeSend: function () {},
        success: function (result) {
    
        $('#myModalcustomizePackage').modal('hide');
        $('#customizeDynamicPackageDetailHtml').html(result); 
        $('#customizeDynamicPackageDetail').modal('show');
        }, 
        error: function (result) {

        }
    });
}


function addChangeHotelDynamic(hotelId,nights,DestinationsId,checkInDate,checkOutDate){
    var Price = $('#hotelPrice'+parseInt(hotelId)).val();
    var data = $('.dynamicCustomizePackage').serialize();
    $.ajax({
        url: SITEURL + 'tours/package/get-hotel-list',
        type: 'POST',
        data: data+'&nightsNew='+nights+'&DestinationsId='+DestinationsId+'&checkInDate='+checkInDate+'&checkOutDate='+checkOutDate+'&hotelId='+hotelId+'&Price='+Price, 
        dataType: 'html', 
        beforeSend: function () {},
        success: function (result) {

        $('#changeHotelHtml').html(result); 
//        $('#changeHotel').show();
        $('#changeHotel').slideDown("slow");
        }, 
        error: function (result) {

        }
    });
}
function changePreviousHotel(hoteljson,hotelId){
//  alert(hotelId)
    $.ajax({
        url: SITEURL + 'tours/package/get-hotel-data-by-id',
        type: 'POST',
        data: '&hoteljson='+hoteljson+'&prehotelId='+hotelId, 
        dataType: 'html', 
        beforeSend: function () {},
        success: function (result) {
            $('#appendHotelonChangeHtml'+parseInt(hotelId)).html(result); 
            $('.addChangeHotelDynamic'+parseInt(hotelId)).html('Change Hotel'); 
            var price = 0;
            $("input[id^='hotelPrice']").each(function (i) {  
              price = parseInt(parseInt(price)+parseInt($(this).val()));  
            }) 
            $('.finalPriceHtml').html(price);
            $('.finalhotelPrice').val(price);
        }, 
        error: function (result) {

        }
    });
}


function closeHotelList(){
    $('#changeHotel').slideUp("slow");
}

function saveCustomizeDynamicData(){
    
    var data = $('.saveCustomizeDynamicDataForm').serialize();
    $.ajax({
        url: SITEURL + 'tours/package/save-customize-dynamic-data',
        type: 'POST',
        data: data, 
        dataType: 'html', 
        beforeSend: function () { $('.saveCustomizeDynamicBtn').html('Please Wait...').attr('disabled',true);},
        success: function (result) {
        if(result.status == true){
            $('.msgSuccess').html('Data Save Successfully.');
        }
        $('.saveCustomizeDynamicBtn').html('Get Quote');
        alert('Customized Successfully.');
        }, 
        error: function (result) {

        }
    });
   
}


function selectTransportVehicle(that,RouteVechSysId){
    var totalcapacity = 0;
    var TotalAdultChild = parseInt($('#TotalAdultChild').val());
    if($(that).prop('checked') == true){
        
    $('.transportSelectCheck').each(function(e){
        if($(this).prop("checked") == true ){
            var noofVehicles = $('.noofVehicles'+parseInt($(this).attr('routevechsysid'))).val();
            var capacity = parseInt($(this).attr('capacity'));
            var capacityT = (parseInt(capacity) * parseInt(noofVehicles));
            totalcapacity += parseInt(capacityT - capacity); 
           
        }
    })

    if(totalcapacity > TotalAdultChild){ 
        alert('Can Not Select'); $(that).prop('checked',false); return false;
    }else{
        $('.noofVehicles'+parseInt(RouteVechSysId)).val(1);
     

    }
    }
    
            var price = $('.finalhotelPrice').val();
        var Cost = 0;
        $('.transportSelectCheck').each(function(e){
        if($(this).prop("checked") == true ){
            var routevechsysid = parseInt($(this).attr('routevechsysid'))
            var routesysid = parseInt($(this).attr('routesysid'));
            Cost = parseInt(parseInt(Cost) + $('.Cost'+parseInt(routesysid)+'_'+parseInt(routevechsysid)).val());
        }
        })
        //alert(Cost);
        $('.finalPrice').val(parseInt(price) + parseInt(Cost));
        $('.finalPriceHtml').html(parseInt(price) + parseInt(Cost));
    
}
function changeNoofVehicle(that,RouteVechSysId){
    var totalcapacity = 0;
    var TotalAdultChild = parseInt($('#TotalAdultChild').val());
     $('.transportSelectCheck').each(function(e){
        if($(this).prop("checked") == true ){
            var noofVehicles = $('.noofVehicles'+parseInt($(this).attr('routevechsysid'))).val();
            var capacity = parseInt($(this).attr('capacity'));
            var capacityT = (parseInt(capacity) * parseInt(noofVehicles));
            totalcapacity += parseInt(capacityT - capacity); 
           
        }
    })

    if(totalcapacity > TotalAdultChild){
        alert('Can Not Select'); $(that).val(1); return false;
    }else{
 
    }
           var price = $('.finalhotelPrice').val();
        var Cost = 0;
        $('.transportSelectCheck').each(function(e){
        if($(this).prop("checked") == true ){
            var routevechsysid = parseInt($(this).attr('routevechsysid'));
            var routesysid = parseInt($(this).attr('routesysid'));
            Cost = parseInt(parseInt(Cost) + $('.Cost'+parseInt(routesysid)+'_'+parseInt(routevechsysid)).val());
        }
        })
        $('.finalPrice').val(parseInt(price) + parseInt(Cost));
        $('.finalPriceHtml').html(parseInt(price) + parseInt(Cost));
}

    </script>


</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit