| 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/b2c.hellogtx.com/application/layouts/template1/ |
Upload File : |
<?php
$object = Zend_Controller_Front::getInstance();
$options = $object->getParam('bootstrap')->getOption('bootstrap');
$baseUrl = $options['siteUrl'];
$siteName = $options['siteName'];
$tollfreenumber = $options['tollfreenumber'];
$whatsappnumber = $options['whatsappnumber'];
$stylecss = $options['stylecss'];
$modulename = $object->getRequest()->getModuleName();
//echo $siteName;
// $staticDataDomestic1 = $this->staticDataDomestic;
// echo"<pre>"; print_r($staticDataDomestic1);die();
$controller = $object->getRequest()->getControllerName();
//echo $controller; die();
$action = $object->getRequest()->getActionName();
$currentPaymentGateway = Catabatic_Helper::getCurrentPaymentGateway();
$actionArray = array(
'modulename' => $modulename,
'controller' => $controller,
'action' => $action,
'PaymentGateway' => $currentPaymentGateway,
);
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']);
$mydevice = Zend_Controller_Action_HelperBroker::getStaticHelper('General')->getDevice();
$getMypopCookie = Zend_Controller_Action_HelperBroker::getStaticHelper('General')->getMypopCookie('MyCookies'); // get the popup sessions
$contactDetail = Zend_Controller_Action_HelperBroker::getStaticHelper('Custom')->getContactDetailForFooter();
$tollfreenumber = ($contactDetail['phone']) ? $contactDetail['phone'] : $tollfreenumber;
$whatsappnumber = ($contactDetail['whatsapp_no']) ? $contactDetail['whatsapp_no'] : $whatsappnumber;
$countrycode = (isset($getMypopCookie['countrycode']) && $getMypopCookie['countrycode'] != '') ? $getMypopCookie['countrycode'] : '+91';
$getCountryFlag = Zend_Controller_Action_HelperBroker::getStaticHelper('General')->getCountryCodeData($countrycode);
$session = new Zend_Session_Namespace('User');
$cssversion = 3.7;
$commonBoxVal_ = Zend_Controller_Action_HelperBroker::getStaticHelper('custom')->getCommonBoxVal();
$home_script = (isset($commonBoxVal_['home_content_script']) && trim($commonBoxVal_['home_content_script']) != '') ? $commonBoxVal_['home_content_script'] : '';
$headerScript1 = (isset($commonBoxVal_['common_content_header_1']) && trim($commonBoxVal_['common_content_header_1']) != '') ? $commonBoxVal_['common_content_header_1'] : '';
$headerScript2 = (isset($commonBoxVal_['common_content_header_2']) && trim($commonBoxVal_['common_content_header_2']) != '') ? $commonBoxVal_['common_content_header_2'] : '';
$headerScript3 = (isset($commonBoxVal_['common_content_header_3']) && trim($commonBoxVal_['common_content_header_3']) != '') ? $commonBoxVal_['common_content_header_3'] : '';
$footerScript1 = (isset($commonBoxVal_['common_content_footer_1']) && trim($commonBoxVal_['common_content_footer_1']) != '') ? $commonBoxVal_['common_content_footer_1'] : '';
$footerScript2 = (isset($commonBoxVal_['common_content_footer_2']) && trim($commonBoxVal_['common_content_footer_2']) != '') ? $commonBoxVal_['common_content_footer_2'] : '';
$footerScript3 = (isset($commonBoxVal_['common_content_footer_3']) && trim($commonBoxVal_['common_content_footer_3']) != '') ? $commonBoxVal_['common_content_footer_3'] : '';
//echo"<pre>"; print_r($session);die();
if (($modulename == 'agentlogin') && ($controller == 'index') && ($action == 'index')) {
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title><?php echo $options['siteName']; ?> Travel Agent Login</title>
<base href="<?php echo Catabatic_Helper::getSiteUrl(); ?>" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<link rel="shortcut icon" href="<?php echo $baseUrl ?>public/upload/<?php echo $stylecss ?>/images/favicon.ico ">
<link rel="stylesheet" href="<?php echo $baseUrl; ?>public/assets/fonts/fonts.css" type="text/css" media="all">
<link href="<?php echo $baseUrl; ?>public/assets/css/font-awesome/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="public/countrycode/style.css?v=<?= $cssversion ?>">
<link rel="stylesheet" type="text/css" href="public/assets/css/select2.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo $baseUrl; ?>public/assets/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo $baseUrl; ?>public/upload/<?php echo $stylecss ?>/css/style.css?v=<?= $cssversion ?>">
<link rel="stylesheet" type="text/css" href="public/assets/css/hotel_style.css?v=<?= $cssversion ?>">
<link rel="stylesheet" type="text/css" href="public/assets/css/activitycss.css?v=<?= $cssversion ?>">
<script>
var SITEURL = '<?php echo $baseUrl ?>';
var stylecss = '<?php echo $stylecss ?>';
var appmode = '<?php echo $options['appmode'] ?>';
var UserLogin = '<?php (isset($session->session) && !empty($session->session)) ? true : false ?>';
var actionArray = '<?php echo json_encode($actionArray) ?>';
var dvc = '<?php echo ($mydevice == "mobile") ? "m" : "d" ?>';
</script>
</head>
<body>
<?php
echo $this->layout()->content;
?>
<form id="auth_login_B2B_submit" method="POST" action="<?php echo $baseUrl; ?>agentlogin/index/agentlogin">
<div class="auth_login_submit_B2B">
<input type="hidden" name="EmailId" id="EmailIdB2B">
<input type="hidden" name="UserSysId" id="UserSysIdB2B">
<input type="hidden" name="CustomerSysId" id="CustomerSysIdB2B">
<input type="hidden" name="AgencySysId" id="AgencySysId_B2B">
<input type="hidden" name="MasterAgencySysId" id="MasterAgencySysIdB2B">
<input type="hidden" name="FirstName" id="FirstNameB2B">
<input type="hidden" name="LastName" id="LastNameB2B">
<input type="hidden" name="Password_cu" id="Password_cuB2B">
<input type="hidden" name="AgencyName" id="AgencyNameB2B">
<input type="hidden" name="AgencyCode" id="AgencyCodeB2B">
<input type="hidden" name="ContactNo1" id="Contact_noB2B">
</div>
</form>
<script type="text/javascript" src="public/assets/js/jquery.min.js"></script>
<script type="text/javascript" src="public/assets/js/select2.full.min.js"></script>
<script type="text/javascript" src="public/assets/js/custom.js?v=111"></script>
<script type="text/javascript" src="public/js/custom.js"></script>
<script type="text/javascript" src="public/js/checkrate_sendenquiry.js"></script>
<script type="text/javascript" src="public/js/common_function.js"></script>
<script type="text/javascript" src="public/js/custom_mangal.js"></script>
<script type="text/javascript" src="public/js/login.js"></script>
<script type="text/javascript" src="public/js/package_customize.js"></script>
<script type="text/javascript" src="public/js/jquery-ui.js?v=111"></script>
<script type="text/javascript" src="public/js/jquery-ui-1.12.1.js?v=111"></script>
<script type="text/javascript" src="public/countrycode/script.js"></script>
<script src="https://apis.google.com/js/platform.js" async defer></script>
</body>
</html>
<?php } else { ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="<?php echo $baseUrl ?>public/upload/<?php echo $stylecss ?>/images/favicon.ico ">
<meta name="image" content="<?php echo $options['websiteUrl'] . $_SERVER['REQUEST_URI']; ?>public/images/ftr-logo.png">
<?php //echo "<pre>"; print_r($metaTitle);die();
?>
<?php
$commonmetaTitle = (isset($commonBoxVal_['metaTitle']) && trim($commonBoxVal_['metaTitle']) != '') ? trim($commonBoxVal_['metaTitle']) : $siteName;
$commonmetaKeyword = (isset($commonBoxVal_['Keyword']) && trim($commonBoxVal_['Keyword']) != '') ? trim($commonBoxVal_['Keyword']) : $siteName;
$commonmetaDescription = (isset($commonBoxVal_['Description']) && trim($commonBoxVal_['Description']) != '') ? trim($commonBoxVal_['Description']) : $siteName;
$detailLayout = $this->detailLayout;
// print_r($detailLayout);
$metaTitle = (isset($detailLayout['metaTitle']) && trim($detailLayout['metaTitle']) != '') ? $detailLayout['metaTitle'] : $commonmetaTitle;
$metaKeyword = (isset($detailLayout['Keyword']) && trim($detailLayout['Keyword']) != '') ? $detailLayout['Keyword'] : $commonmetaKeyword;
$metaDescription = (isset($detailLayout['Description']) && trim($detailLayout['Description']) != '') ? $detailLayout['Description'] : $commonmetaDescription;
?>
<title><?php echo $metaTitle; ?></title>
<meta name="description" content="<?php echo $metaDescription; ?>" />
<meta name="keywords" content="<?php echo $metaKeyword; ?>" />
<meta name="author" content="<?php echo $siteName; ?>">
<meta property="og:title" content="<?php echo $metaTitle; ?> " />
<meta property="og:description" content="<?php echo $metaDescription; ?>" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo $baseUrl; ?>" />
<meta property="og:image" content="<?php echo $websiteUrl; ?>/public/upload/og/home.jpg" />
<meta name="image" content="<?php echo $websiteUrl; ?>public/upload/og/home.jpg">
<meta property="og:site_name" content="<?php echo $metaTitle; ?>" />
<!-- Schema.org for Google -->
<meta itemprop="name" content="<?php echo $metaTitle; ?>">
<meta itemprop="description" content="<?php echo $metaDescription; ?>">
<meta itemprop="image" content="<?php echo $websiteUrl; ?>public/upload/og/home.jpg">
<!-- TWITTER -->
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="<?php echo $metaTitle; ?>">
<meta name="twitter:description" content="<?php echo $metaDescription; ?> ">
<meta name="author" content="<?php echo $siteName; ?> ">
<meta name="robots" content="index, follow" />
<meta name="language" content="English">
<link rel="alternate" href="<?php echo $options['websiteUrl'] . $_SERVER['REQUEST_URI']; ?>" hreflang="en-us" />
<link rel="canonical" href="<?php echo $options['websiteUrl'] . $_SERVER['REQUEST_URI']; ?>" />
<meta name="image" content="<?php echo $options['websiteUrl'] . $_SERVER['REQUEST_URI']; ?>public/images/ftr-logo.png">
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-142190766-1');
</script>
<?php if (($modulename == 'default') && ($controller == 'index')) { ?>
<?php echo $home_script; ?>
<?php } ?>
<?php
echo $headerScript1;
echo $headerScript2;
echo $headerScript3;
?>
<base href="<?php echo Catabatic_Helper::getSiteUrl(); ?>" />
<?php if (($modulename == 'default') && ($controller == 'customer') && ($action == 'myprofile')) { ?>
<link href="<?php echo $baseUrl; ?>public/css/jquery.atAccordionOrTabs.css" rel="stylesheet">
<?php } ?>
<link rel="shortcut icon" href="<?php echo $baseUrl ?>public/upload/<?php echo $stylecss ?>/images/favicon.ico ">
<link rel="stylesheet" type="text/css" href="public/upload/<?php echo $stylecss ?>/css/select2.min.css?v=<?= $cssversion ?>">
<link rel="stylesheet" type="text/css" href="public/upload/<?php echo $stylecss ?>/css/bootstrap.min.css?v=<?= $cssversion ?>">
<link rel="stylesheet" type="text/css" href="public/countrycode/style.css?v=<?= $cssversion ?>">
<link rel="stylesheet" href="<?php echo $baseUrl; ?>public/upload/<?php echo $stylecss ?>/fonts/fonts.css" type="text/css" media="all">
<link href="<?php echo $baseUrl; ?>public/upload/<?php echo $stylecss ?>/css/font-awesome/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="public/upload/<?php echo $stylecss ?>/css/style.css?v=<?= $cssversion ?>">
<link rel="stylesheet" type="text/css" href="public/upload/<?php echo $stylecss ?>/css/hotel_style.css?v=<?= $cssversion ?>">
<link rel="stylesheet" type="text/css" href="public/upload/<?php echo $stylecss ?>/css/activitycss.css?v=<?= $cssversion ?>">
<!-- Modernizr JS -->
<script>
var SITEURL = '<?php echo $baseUrl ?>';
var stylecss = '<?php echo $stylecss ?>';
var appmode = '<?php echo $options['appmode'] ?>';
var UserLogin = '<?php (isset($session->session) && !empty($session->session)) ? true : false ?>';
var actionArray = '<?php echo json_encode($actionArray) ?>';
var dvc = '<?php echo ($mydevice == "mobile") ? "m" : "d" ?>';
</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>
<?php
echo $seoContent = (isset($detailLayout['seoHcontent']) && $detailLayout['seoHcontent'] != '') ? $detailLayout['seoHcontent'] : '';
?>
</head>
<body ng-app="Farohar">
<!-- <div class="loader" >-->
<!-- <div class="loadingio-spinner-ripple-zdgradklyya">-->
<!-- <div class="ldio-50dj1g083ax">-->
<!-- <div></div> -->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<div id="page">
<?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,
'POPUPCOOKIES' => $getMypopCookie,
'tollfreenumber' => $tollfreenumber
];
require_once(APPLICATION_PATH . '/sites/' . $stylecss . '/layouts/header.phtml');
//echo $this->render("header.phtml");
echo $this->partial('models/modal-enquiry.phtml', ['baseUrl' => $baseUrl, 'siteName' => $siteName, 'tollfreenumber' => $tollfreenumber, 'POPUPCOOKIESENQUIRY' => $getMypopCookie]);
echo $this->partial('models/modal-signin.phtml', ['baseUrl' => $baseUrl]);
if (($modulename == 'tours') && ($controller == 'package') && ($action == 'index')) {
echo $this->partial('models/modal-checkrate-enquiry.phtml', $data);
}
if (($modulename == 'detail') && ($controller == 'index') && ($action == 'index')) {
echo $this->partial('models/modal-checkrate-enquiry.phtml', $data);
}
?>
<div class="all-wrapper-content">
<?php
echo $this->layout()->content;
?>
</div>
<?php
require_once(APPLICATION_PATH . '/sites/' . $stylecss . '/layouts/footer.phtml');
//echo $this->render("footer.phtml");
?>
</div>
<script type="text/javascript">
var hotel_enable_status = '<?php echo $this->check_hotel_enable; ?>';
</script>
<script type="text/javascript" src="public/upload/<?php echo $stylecss ?>/js/jquery.min.js?v=<?= $cssversion ?>"></script>
<script type="text/javascript" src="public/upload/<?php echo $stylecss ?>/js/custom.js?v=<?= $cssversion ?>"></script>
<script type="text/javascript" src="public/js/custom.js?v=<?= $cssversion ?>"></script>
<script type="text/javascript" src="public/js/visa.js?v=<?= $cssversion ?>"></script>
<script type="text/javascript" src="public/js/checkrate_sendenquiry.js?v=<?= $cssversion ?>"></script>
<script type="text/javascript" src="public/js/common_function.js?v=<?= $cssversion ?>"></script>
<script type="text/javascript" src="public/js/custom_mangal.js?v=<?= $cssversion ?>"></script>
<script type="text/javascript" src="public/js/package_customize.js?v=<?= $cssversion ?>"></script>
<!-- <script type="text/javascript" src="public/js/jquery-ui.js"></script>-->
<!-- <script type="text/javascript" src="public/js/jquery-ui-1.12.1.js"></script>-->
<script type="text/javascript" src="public/upload/<?php echo $stylecss ?>/js/select2.full.min.js?v=<?= $cssversion ?>"></script>
<script type="text/javascript" src="public/countrycode/script.js?v=<?= $cssversion ?>"></script>
<script src="https://apis.google.com/js/api.js?v=<?= $cssversion ?>" async defer></script>
<script src="https://apis.google.com/js/platform.js?v=<?= $cssversion ?>" async defer></script>
<script type="text/javascript" src="public/js/login.js?v=<?= $cssversion ?>"></script>
<!-- <script type="text/javascript" src="public/js/car.js?v=<?= $cssversion ?>"></script> -->
<script type="text/javascript" src="public/js/function.js?v=<?= $cssversion ?>"></script>
<script type="text/javascript" src="public/js/autocomplete.js?v=<?= $cssversion ?>"></script>
<script type="text/javascript" src="public/js/autocompletesr.js?v=<?= $cssversion ?>"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB0G1HvaynGZ2BP71ciLjVKUMqDfFu8YUA&libraries=places"></script>
<script>
$('form').attr('autocomplete', 'off');
$('input').attr('autocomplete', 'off');
$(function() {
$('.flightsearch').disableAutoFill();
});
function onSignIn(googleUser) {
var profile = googleUser.getBasicProfile();
var familyname = profile.getFamilyName();
var name = profile.getName();
var image = profile.getImageUrl();
var email = profile.getEmail();
var gid = profile.getId();
$.ajax({
type: "POST",
url: "<?php echo $baseUrl; ?>customer/loginwith-google",
// dataType: 'html',
data: {
name: name,
email: email,
},
success: function(data) {
console.log(data);
}
});
}
function signOut() {
var auth2 = gapi.auth2.getAuthInstance();
auth2.signOut().then(function() {
console.log('User signed out.');
});
}
</script>
<script type="text/javascript">
$(document).on('click', '.ViewDetails', function() {
var TraceId = $(this).attr('data');
var journeyType = $(this).attr('journeyType');
$('#myModalViewDetails').modal('show');
$.ajax({
type: "POST",
url: "<?php echo $baseUrl; ?>flight/view-details-pending",
dataType: 'html',
data: {
TraceId: TraceId,
journeyType: journeyType
},
beforeSend: function() {
$("#ViewDetailsLoad").html('<div style="text-align:center;padding-top:30px;"><img src="<?php echo $baseUrl; ?>public/images/loader.gif"/></div>');
},
success: function(data) {
// console.log(data);
$("#ViewDetailsLoad").html(data);
}
});
});
$(document).ready(function() {
$('.flightsearch').on('submit', function(event) {
var paxHtm = $('#mobilecls').html();
$('#modalPaxvalues').html(paxHtm);
var source = $('.flightsearch input[name="source"]').val();
var mytrip_city_from = $('.flightsearch input[name="mytrip_city_from"]').val();
var mytrip_city_to = $('.flightsearch input[name="mytrip_city_to"]').val();
var destination = $('.flightsearch input[name="destination"]').val();
var source_city = $('.flightsearch input[name="source_city"]').val();
var destination_city = $('.flightsearch input[name="destination_city"]').val();
// alert(destination);
if (mytrip_city_from === '') {
alert('Please enter from city name');
$('input[name="mytrip_city_from"]').focus();
return false;
} else if (mytrip_city_to === '') {
alert('Please enter to city name');
$('input[name="mytrip_city_to"]').focus();
return false;
} else if (source === '') {
alert('Please enter from city name');
$('input[name="source"]').focus();
return false;
} else if (destination === '') {
alert('Please enter to city name');
$('input[name="destination"]').focus();
return false;
} else if (source_city === '') {
alert('Please enter valif from city name');
$('input[name="source"]').focus();
return false;
} else if (destination_city === '') {
alert('Please enter valif to city name');
$('input[name="destination"]').focus();
return false;
} else if (mytrip_city_from == mytrip_city_to) {
alert('Source and destination can not be same');
return false;
}
});
setTimeout(function() {
$('.select2').select2();
$.getJSON(SITEURL + 'flight/getsetcity', function(source) {
$(".airport_search").autocomplete({
minLength: 0,
autoFocus: true,
source: function(request, response) {
var term = $.ui.autocomplete.escapeRegex(request.term),
startsWithMatcher = new RegExp("^" + term, "i"),
startsWith = $.grep(source, function(value) {
return startsWithMatcher.test(value.AirportCode || value.value || value);
}),
containsMatcher = new RegExp(term, "i"),
contains = $.grep(source, function(value) {
return $.inArray(value, startsWith) < 0 &&
containsMatcher.test(value.label || value.value || value);
});
response(startsWith.concat(contains).slice(0, 10));
},
response: function(e) {
//console.log(e);
},
select: function(event, ui) {
var index = $(this).attr('index');
var value = ui.item.value;
var dddd = value.split(',');
ui.item.value = dddd[0] + ' (' + ui.item.AirportCode + ')';
//alert(dddd[0]);
$('.apendn_' + index).val(dddd[0]);
$('.fromText_' + index).html(dddd[1]);
$('#mytrip_city_' + index).val(dddd[1]);
$('#FromToCIty_' + index).val(value);
$('#airport_search_' + index).val(ui.item.AirportCode);
$('#ContSysId_' + index).val(ui.item.ContSysId);
$(this).removeClass('extend_width');
$("#bannerslider").removeClass("ss");
$(".search-box").removeClass("extend_width2");
$(".flight-search-flight2").removeClass("extend_width2");
$(".apendn_2").removeClass("showsecond");
$(".formtitlecls").removeClass("showsecond");
$(".formullist").removeClass("ss");
$(".frmclose").removeClass("extend_width_frmclose");
$(".custom-nav").removeClass("frmhidesection");
$(".upperheadercls-new").removeClass("frmhidesection");
$(".home-tab-btns").removeClass("frmhidesection");
$(".search-form-box").removeClass("searchformbox_bx");
$(".flight-search-flight6").removeClass("frmhidesection");
$(".flight-search-flight3").removeClass("frmhidesection");
$(".exchange_transfer").removeClass("frmhidesection");
$(".flight-search-flight5").removeClass("frmhidesection");
// $(".exchangeroot").hide("#exchangerootwidth");
}
}).focus(function() {
$(this).val('');
// debugger;
$(this).addClass("extend_width");
$("#bannerslider").addClass("ss");
$(".search-box").addClass("extend_width2");
$(".flight-search-flight2").addClass("extend_width2");
$(".apendn_2").addClass("showsecond");
$(".formtitlecls").addClass("showsecond");
$(".formullist").addClass("ss");
$(".frmclose").addClass("extend_width_frmclose");
$(".custom-nav").addClass("frmhidesection");
$(".upperheadercls-new").addClass("frmhidesection");
$(".home-tab-btns").addClass("frmhidesection");
$(".search-form-box").addClass("searchformbox_bx");
$(".flight-search-flight6").addClass("frmhidesection");
$(".flight-search-flight3").addClass("frmhidesection");
$(".exchange_transfer").addClass("frmhidesection");
$(".flight-search-flight5").addClass("frmhidesection");
// $(".exchangeroot").show("#exchangerootwidth");
// alert('manish');
$('html, body').animate({
scrollTop: $("#bannerslider").offset().top - 460
}, 200);
$(this).autocomplete('search');
});
});
}, 1000);
$('.frmclose').click(function() {
$(".frmclose").removeClass("extend_width_frmclose");
$("#mytrip_city_from").removeClass("extend_width");
$("#mytrip_city_to").removeClass("extend_width");
$("#bannerslider").removeClass("ss");
$(".search-box").removeClass("extend_width2");
$(".flight-search-flight2").removeClass("extend_width2");
$(".apendn_2").removeClass("showsecond");
$(".formtitlecls").removeClass("showsecond");
$(".formullist").removeClass("ss");
$(".custom-nav").removeClass("frmhidesection");
$(".upperheadercls-new").removeClass("frmhidesection");
$(".home-tab-btns").removeClass("frmhidesection");
$(".search-form-box").removeClass("searchformbox_bx");
$(".flight-search-flight6").removeClass("frmhidesection");
$(".flight-search-flight3").removeClass("frmhidesection");
$(".exchange_transfer").removeClass("frmhidesection");
$(".flight-search-flight5").removeClass("frmhidesection");
// $(".exchangeroot").removeClass("exchangerootwidth");
// $(".exchangeroot").hide("#exchangerootwidth");
});
// $('.apendn_1').keyup(function(e) {
// var valofrom = $(this).val();
// if(valofrom.length >= 3){
// $('#sourcesjd').hide();
// }else{
// $('#sourcesjd').show();
// }
// });
// $('.apendn_2').keyup(function(e) {
// var valofrom = $(this).val();
// if(valofrom.length >= 3){
// $('#destinjd').hide();
// }else{
// $('#destinjd').show();
// }
// });
$('.frmclose').click(function() {
$('.flight-search-flight1').removeClass('mobile-as1');
$('.flight-search-flight2').removeClass('mobile-as1');
$('section.search-form-box').removeClass('mobile-asfrm');
$('.blackbar').removeClass('mobile_head1');
$('.custom-nav').removeClass('mobile_head1');
$('.upperheadercls-new').removeClass('mobile_head1');
$('.home-tab-btns').removeClass('mobile_head1');
$('.frmclose').removeClass('frmcloseshow');
$(".search-form-box").removeClass("searchformbox_bx");
$(".flight-search-flight6").removeClass("frmhidesection");
$(".flight-search-flight3").removeClass("frmhidesection");
$(".flight-search-flight5").removeClass("frmhidesection");
$(".exchange_transfer").removeClass("frmhidesection");
// $(".exchangeroot").hide("#exchangerootwidth");
});
$("#from, #to").datepicker({
//defaultDate: "+1w",
changeMonth: false,
dateFormat: "d M yy",
numberOfMonths: 2,
minDate: 0,
buttonImage: true,
buttonImageOnly: true,
beforeShow: function() {
if (this.id == 'to') {
// debugger;
var dateMin = $('#from').datepicker("getDate");
var TodateMin = $('#to').datepicker("getDate");
if (TodateMin === null) {
TodateMin = dateMin;
}
var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 180); // Max Date = Selected + 62d
var c_out_date = new Date(TodateMin.getFullYear(), TodateMin.getMonth(), TodateMin.getDate()); // Min Date = Selected + 1d
$('#to').datepicker("option", "minDate", rMin);
$('#to').datepicker("option", "maxDate", rMax);
$('#to').datepicker("setDate", c_out_date);
$('#RoundTrip').prop('checked', true);
}
if ($(window).width() < 768) {
return {
numberOfMonths: 12
};
} else {
return {
numberOfMonths: 2
};
}
},
onSelect: function(selectedDate, inst) {
var tripType = $('.tripType:checked').val(); // retrieve the value
if (this.id == 'from') {
var dateMin = $('#from').datepicker("getDate");
var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 180); // Max Date = Selected + 62d
var c_out_date = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
var theDate = new Date(Date.parse($(this).datepicker('getDate')));
var dateFormatted = $.datepicker.formatDate('DD', theDate);
var FromFormatted = $.datepicker.formatDate('dd/mm/yy', theDate);
$('.Departure').html(dateFormatted);
$('#departure_date').val(FromFormatted);
if (parseInt(tripType) === 2) {
$('#to').datepicker("option", "minDate", rMin);
$('#to').datepicker("option", "maxDate", rMax);
$('#to').datepicker("setDate", c_out_date);
$('.Return').html(dateFormatted);
$('#return_date').val(FromFormatted);
}
// console.log(c_out_date);
///$('#to').focus();return false;
} else {
var dateMin = $('#to').datepicker("getDate");
var c_out_date = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0);
var theDate = new Date(Date.parse(c_out_date));
var dateFormatted = $.datepicker.formatDate('DD', theDate);
var ToFormatted = $.datepicker.formatDate('dd/mm/yy', theDate);
$('.Return').html(dateFormatted);
$('#return_date').val(ToFormatted);
// console.log(ToFormatted);
}
}
});
var tripType = $('.SelectClass:checked').val();
var htmlval = $('#optionsRadios' + tripType).attr('data'); // retrieve the html value
$('.TravellersClass').html(htmlval);
$(document).on('click', '.onewayflight', function() {
var index = $(this).attr('index');
$('div.SingleSelect').removeClass("mobile_roundflight_active");
$('#SingleSelect_' + index).addClass("mobile_roundflight_active");
});
$(document).on('click', '.twowayflight', function() {
var index = $(this).attr('index');
$('div.roundSelect').removeClass("mobile_roundflight_active");
$('#roundSelect_' + index).addClass("mobile_roundflight_active");
});
$(document).on('click', '.tripType', function() {
var tripType = $(this).val();
var from = $('#from').val();
if (tripType == 2) {
$('#to').val(from);
var dateMin = $('#from').datepicker("getDate");
var c_out_date = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0);
var theDate = new Date(Date.parse(c_out_date));
var dateFormatted = $.datepicker.formatDate('DD', theDate);
var ToFormatted = $.datepicker.formatDate('dd/mm/yy', theDate);
$('.Return').html(dateFormatted);
$('#return_date').val(ToFormatted);
$("#to").removeAttr("readonly", "readonly");
$("#to").removeClass("disabledcls");
} else {
$('#to').val('');
$('.Return').html('');
$('#return_date').val('');
$("#to").attr("readonly", "readonly");
$("#to").addClass("disabledcls");
}
});
$(document).on('click', '.tripTypeRound', function() {
$("#to").removeClass("disabledcls"); // debugger;
$("#to").datepicker("show");
$("#RoundTrip").prop('checked', true);
});
$(".SelectClass") // select the radio by its id
.change(function() { // bind a function to the change event
if ($(this).is(":checked")) { // check if the radio is checked
var val = $(this).val(); // retrieve the value
var htmlval = $(this).attr('data'); // retrieve the html value
$('.TravellersClass').html(htmlval);
}
});
function openSearch() {
document.getElementById("mySidenavsearch").style.width = "100%";
}
function closeSearch() {
document.getElementById("mySidenavsearch").style.width = "0";
}
$('.exchange_transfer,.exchange_transfer_searchflight').on('click', function() {
var mytrip_city_from = $('#mytrip_city_from').val();
var mytrip_city_to = $('#mytrip_city_to').val();
$('#mytrip_city_from').val(mytrip_city_to);
$('#mytrip_city_to').val(mytrip_city_from);
var fromText_1 = $('.fromText_1').text();
var fromText_2 = $('.fromText_2').text();
$('.fromText_1').html(fromText_2);
$('.fromText_2').html(fromText_1);
var airport_search_1 = $('#airport_search_1').val();
var airport_search_2 = $('#airport_search_2').val();
$('#airport_search_1').val(airport_search_2);
$('#airport_search_2').val(airport_search_1);
var ContSysId_1 = $('#ContSysId_1').val();
var ContSysId_2 = $('#ContSysId_2').val();
$('#ContSysId_1').val(ContSysId_2);
$('#ContSysId_2').val(ContSysId_1);
var FromToCIty_1 = $('#FromToCIty_1').val();
var FromToCIty_2 = $('#FromToCIty_2').val();
$('#FromToCIty_1').val(FromToCIty_2);
$('#FromToCIty_2').val(FromToCIty_1);
var mytrip_city_1 = $('#mytrip_city_1').val();
var mytrip_city_2 = $('#mytrip_city_2').val();
$('#mytrip_city_1').val(mytrip_city_2);
$('#mytrip_city_2').val(mytrip_city_1);
});
});
function SetPaxData() {
if ($('#modalPaxvalues').length > 0) {
// debugger;
$('#modalPaxvalues').html('');
var paxHtm = $('#mobilecls').html();
$('#modalPaxvalues').html(paxHtm);
$('#mobilecls').html('');
$('#mobilecls').show();
//alert("Adult 3: "+$('input[name="adults"]').val());
}
}
$(document).ready(function() {
$('.sorting').click(function() {
$(this).children('i').toggleClass('icon-angle-up icon-angle-down');
});
$('.sortingRound').click(function() {
$(this).children('i').toggleClass('icon-angle-up icon-angle-down');
});
$("#datepicker, #datepicker_return").datepicker({
//defaultDate: "+1w",
changeMonth: false,
dateFormat: "d M yy",
numberOfMonths: 2,
minDate: 0,
buttonImage: true,
buttonImageOnly: true,
beforeShow: function() {
if (this.id == 'datepicker') {
var dateMin = $('#datepicker').datepicker("getDate");
var TodateMin = $('#datepicker_return').datepicker("getDate");
var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 180); // Max Date = Selected + 62d
var c_out_date = new Date(TodateMin.getFullYear(), TodateMin.getMonth(), TodateMin.getDate()); // Min Date = Selected + 1d
$('#datepicker_return').datepicker("option", "minDate", rMin);
$('#datepicker_return').datepicker("option", "maxDate", rMax);
$('#datepicker_return').datepicker("setDate", c_out_date);
}
},
onSelect: function(selectedDate, inst) {
var tripType = $('.tripType:checked').val(); // retrieve the value
if (this.id == 'datepicker') {
var dateMin = $('#datepicker').datepicker("getDate");
var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 180); // Max Date = Selected + 62d
var c_out_date = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
var theDate = new Date(Date.parse($(this).datepicker('getDate')));
var dateFormatted = $.datepicker.formatDate('DD', theDate);
var FromFormatted = $.datepicker.formatDate('dd/mm/yy', theDate);
$('.Departure').html(dateFormatted);
$('#departure_date').val(FromFormatted);
if (parseInt(tripType) === 2) {
$('#datepicker_return').datepicker("option", "minDate", rMin);
$('#datepicker_return').datepicker("option", "maxDate", rMax);
$('#datepicker_return').datepicker("setDate", c_out_date);
$('.date-parent').html(dateFormatted);
}
// console.log(c_out_date);
///$('#to').focus();return false;
} else {
var dateMin = $('#datepicker_return').datepicker("getDate");
var c_out_date = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0);
var theDate = new Date(Date.parse(c_out_date));
var dateFormatted = $.datepicker.formatDate('DD', theDate);
var ToFormatted = $.datepicker.formatDate('dd/mm/yy', theDate);
$('.date-parent').html(dateFormatted);
$('#return_date').val(ToFormatted);
//console.log(ToFormatted);
}
}
});
var tripType = $('.SelectClass:checked').val();
var htmlval = $('#optionsRadios' + tripType).attr('data'); // retrieve the html value
$('.TravellersClass').html(htmlval);
$(document).on('click', '.onewayflight', function() {
var index = $(this).attr('index');
$('div.SingleSelect').removeClass("mobile_roundflight_active");
$('#SingleSelect_' + index).addClass("mobile_roundflight_active");
});
$(document).on('click', '.twowayflight', function() {
var index = $(this).attr('index');
$('div.roundSelect').removeClass("mobile_roundflight_active");
$('#roundSelect_' + index).addClass("mobile_roundflight_active");
});
// $(document).ready(function(){
// $('.down_count-cls1').click(function(e){
// var button_classes, value = +$('.counter1').val();
// button_classes = $(e.currentTarget).prop('class');
// if(button_classes.indexOf('up_count') !== -1){
// value = (value) + 1;
// } else {
// value = (value) - 1;
// }
// value = value < 1 ? 1 : value;
// $('.counter1').val(value);
// });
// $('.counter1, .counter2, .counter3').click(function(){
// $(this).focus().select();
// });
// });
// $(document).ready(function(){
// $('.down_count-cls2').click(function(e){
// var button_classes, value = +$('.counter2').val();
// button_classes = $(e.currentTarget).prop('class');
// if(button_classes.indexOf('up_count') !== -1){
// value = (value) + 1;
// } else {
// value = (value) - 1;
// }
// value = value < 0 ? 0 : value;
// $('.counter2').val(value);
// });
// $('.counter2').click(function(){
// $(this).focus().select();
// });
// });
// $(document).ready(function(){
// $('.down_count-cls3').click(function(e){
// var button_classes, value = +$('.counter3').val();
// button_classes = $(e.currentTarget).prop('class');
// if(button_classes.indexOf('up_count') !== -1){
// value = (value) + 1;
// } else {
// value = (value) - 1;
// }
// value = value < 0 ? 0 : value;
// $('.counter3').val(value);
// });
// $('.counter3').click(function(){
// $(this).focus().select();
// });
// });
$('.ddSpinnerPlus').click(function() {
//var totalpass = $('.TotalTravellers').html();
var adult = $('.counter1').val();
var child = $('.counter2').val();
var totalpass = parseInt(adult) + parseInt(child);
if (totalpass < 9) {
if ($(this).prev().val() < 9) {
$(this).prev().val(+$(this).prev().val() + 1);
$('.counter1').val(+$(this).prev().val());
$('.counter1').attr('value', +$(this).prev().val());
}
SumTravellers();
} else {
alert('Total Passanger (Adult and Child) Can not be more than 9');
}
});
$('.ddSpinnerMinus').click(function() {
var infants = $('#infants').val();
var adult = $(this).next().val();
if (infants > 1) {
if (parseInt(infants) >= adult) {
$('#infants').val(infants - 1)
}
}
if ($('#adults').val() > 1) {
$(this).next().val(+$(this).next().val() - 1);
$('.counter1').val(+$(this).next().val());
$('.counter1').attr('value', +$(this).next().val());
$('.counter-int').attr('value', +$(this).next().val());
}
SumTravellers();
});
$('.chSpinnerPlus').click(function() {
var adult = $('.counter1').val();
var child = $('.counter2').val();
var totalpass = parseInt(adult) + parseInt(child);
if (totalpass < 9) {
if ($(this).prev().val() < 9) {
$(this).prev().val(+$(this).prev().val() + 1);
$('.counter2').val(+$(this).prev().val());
$('.counter2').attr('value', +$(this).prev().val());
}
SumTravellers();
} else {
alert('Total Passanger (Adult and Child) Can not be more than 9');
}
});
$('.chSpinnerMinus').click(function() {
//alert($(this).val());
if ($(this).next().val() > 0) {
if ($(this).next().val() > 0)
$(this).next().val(+$(this).next().val() - 1);
$('.counter2').val(+$(this).next().val());
$('.counter2').attr('value', +$(this).next().val());
}
SumTravellers();
});
$('.infSpinnerPlus').click(function() {
// var adult = $('.counter1').val();
var adults = $('#adults').val();
if (parseInt(adults) <= parseInt($(this).prev().val())) {
alert('Number of infant can not be greater than adult');
return false;
} else {
$(this).prev().val(+$(this).prev().val() + 1);
$('.counter3').val(+$(this).prev().val());
$('.counter3').attr('value', +$(this).prev().val());
SumTravellers();
}
});
$('.infSpinnerMinus').click(function() {
if ($(this).next().val() > 0) {
if ($(this).next().val() > 0)
$(this).next().val(+$(this).next().val() - 1);
$('.counter3').val(+$(this).next().val());
$('.counter3').attr('value', +$(this).next().val());
}
SumTravellers();
});
function SumTravellers() {
var a = 0;
$(".quantity").each(function() {
a += parseInt($(this).val());
});
$('.TotalTravellers').html(a);
return a;
}
function ValidateInfant() {
var a = 0;
$(".quantity").each(function() {
a += parseInt($(this).val());
});
$('.TotalTravellers').html(a);
return a;
}
$(".SelectClass") // select the radio by its id
.change(function() { // bind a function to the change event
if ($(this).is(":checked")) { // check if the radio is checked
var val = $(this).val(); // retrieve the value
var htmlval = $(this).attr('data'); // retrieve the html value
$('.TravellersClass').html(htmlval);
}
});
$(document).mouseup(function(e) {
if ($(e.target).closest(".hotelrooombox_main").length ===
0) {
$(".hotelrooombox_main").hide();
}
});
$('.exchange_transfer,.exchange_transfer_searchflight').on('click', function() {
var mytrip_city_from = $('#mytrip_city_from').val();
var mytrip_city_to = $('#mytrip_city_to').val();
$('#mytrip_city_from').val(mytrip_city_to);
$('#mytrip_city_to').val(mytrip_city_from);
var fromText_1 = $('.fromText_1').text();
var fromText_2 = $('.fromText_2').text();
$('.fromText_1').html(fromText_2);
$('.fromText_2').html(fromText_1);
var airport_search_1 = $('#airport_search_1').val();
var airport_search_2 = $('#airport_search_2').val();
$('#airport_search_1').val(airport_search_2);
$('#airport_search_2').val(airport_search_1);
var ContSysId_1 = $('#ContSysId_1').val();
var ContSysId_2 = $('#ContSysId_2').val();
$('#ContSysId_1').val(ContSysId_2);
$('#ContSysId_2').val(ContSysId_1);
var FromToCIty_1 = $('#FromToCIty_1').val();
var FromToCIty_2 = $('#FromToCIty_2').val();
$('#FromToCIty_1').val(FromToCIty_2);
$('#FromToCIty_2').val(FromToCIty_1);
var mytrip_city_1 = $('#mytrip_city_1').val();
var mytrip_city_2 = $('#mytrip_city_2').val();
$('#mytrip_city_1').val(mytrip_city_2);
$('#mytrip_city_2').val(mytrip_city_1);
});
function openSearch() {
document.getElementById("mySidenavsearch").style.width = "100%";
}
function closeSearch() {
document.getElementById("mySidenavsearch").style.width = "0";
}
$('.exchange_transfer,.exchange_transfer_searchflight').on('click', function() {
var mytrip_city_from = $('#mytrip_city_from').val();
var mytrip_city_to = $('#mytrip_city_to').val();
$('#mytrip_city_from').val(mytrip_city_to);
$('#mytrip_city_to').val(mytrip_city_from);
// console.log(mytrip_city_to , mytrip_city_from);
var fromText_1 = $('.fromText_1').text();
var fromText_2 = $('.fromText_2').text();
$('.fromText_1').html(fromText_2);
$('.fromText_2').html(fromText_1);
var airport_search_1 = $('#airport_search_1').val();
var airport_search_2 = $('#airport_search_2').val();
$('#airport_search_1').val(airport_search_2);
$('#airport_search_2').val(airport_search_1);
var ContSysId_1 = $('#ContSysId_1').val();
var ContSysId_2 = $('#ContSysId_2').val();
$('#ContSysId_1').val(ContSysId_2);
$('#ContSysId_2').val(ContSysId_1);
var FromToCIty_1 = $('#FromToCIty_1').val();
var FromToCIty_2 = $('#FromToCIty_2').val();
$('#FromToCIty_1').val(FromToCIty_2);
$('#FromToCIty_2').val(FromToCIty_1);
var mytrip_city_1 = $('#mytrip_city_1').val();
var mytrip_city_2 = $('#mytrip_city_2').val();
$('#mytrip_city_1').val(mytrip_city_2);
$('#mytrip_city_2').val(mytrip_city_1);
// alert("alpha");
// console.log(mytrip_city_1 , mytrip_city_2 , FromToCIty_2 , FromToCIty_1 , ContSysId_1 , ContSysId_2);
});
});
$(document).ready(function() {
$(" #travller_search").on("click", function() {
<?php if ($mydevice == "desktop") { ?>
// alert('test');
$(".room_boxcls").show();
// plusdata();
<?php } else { ?>
$('#mypopupsectionModal').modal('show');
$("#mypopupsectionModalHtml").html($("#mypopupsectiondata").html());
//plusdata();
<?php } ?>
});
});
// $("#car-Start_Date, #car-end-Date").datepicker({
// //defaultDate: "+1w",
// changeMonth: false,
// dateFormat: "d-M-yy",
// numberOfMonths: 2,
// minDate: 0,
// buttonImage: true,
// buttonImageOnly: true,
// beforeShow: function() {
// if (this.id == 'car-end-Date') {
// var dateMin = $('#car-Start_Date').datepicker("getDate");
// var TodateMin = $('#car-end-Date').datepicker("getDate");
// var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
// var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 180); // Max Date = Selected + 62d
// var c_out_date = new Date(TodateMin.getFullYear(), TodateMin.getMonth(), TodateMin.getDate()); // Min Date = Selected + 1d
// $('#car-end-Date').datepicker("option", "minDate", rMin);
// $('#car-end-Date').datepicker("option", "maxDate", rMax);
// $('#car-end-Date').datepicker("setDate", c_out_date);
// }
// },
// onSelect: function(selectedDate, inst) {
// var tripType = $('.tripType:checked').val(); // retrieve the value
// if (this.id == 'car-Start_Date') {
// var dateMin = $('#car-Start_Date').datepicker("getDate");
// var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
// var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 180); // Max Date = Selected + 62d
// var c_out_date = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
// var theDate = new Date(Date.parse($(this).datepicker('getDate')));
// var dateFormatted = $.datepicker.formatDate('DD', theDate);
// var FromFormatted = $.datepicker.formatDate('dd/mm/yy', theDate);
// $('.Departure').html(dateFormatted);
// $('#departure_date').val(FromFormatted);
// $('#car-end-Date').datepicker("option", "minDate", rMin);
// $('#car-end-Date').datepicker("option", "maxDate", rMax);
// $('#car-end-Date').datepicker("setDate", c_out_date);
// $('.Return').html(dateFormatted);
// }
// }
// });
<?php if (($modulename != 'hotels')) { ?>
setTimeout(function() {
$.getJSON('public/data/dynamic/package_destinations.json', function(destinations) {
$(".destinationBox").autocomplete({
minLength: 3,
source: destinations,
autoFocus: true,
select: function(event, ui) {
var code = ui.item.code;
var cityid = ui.item.id;
// console.log(cityid);
$(".cityid").val(cityid);
$(".hcode").val(code);
}
});
});
}, 1000);
setTimeout(function() {
$.getJSON('public/data/dynamic/package_destinations.json', function(visa) {
$(".visaSearchBox").autocomplete({
minLength: 3,
source: visa,
autoFocus: true,
select: function(event, ui) {
var code = ui.item.code;
var cityid = ui.item.id;
console.log(cityid);
$(".cityid").val(cityid);
$(".hcode").val(code);
}
});
});
}, 1000);
setTimeout(function() {
$.getJSON('public/data/dynamic/package_destinations.json', function(destinations) {
$(".activitiesBox").autocomplete({
minLength: 3,
source: destinations,
autoFocus: true,
select: function(event, ui) {
var code = ui.item.code;
var cityid = ui.item.id;
//console.log(cityid);
$(".cityid").val(cityid);
$(".hcode").val(code);
}
});
});
}, 1000);
<?php } ?>
</script>
<script type="text/javascript">
$(window).on('load', function() {
$('#myModalauto').modal('show');
});
</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 == 'tours') && ($controller == 'package') && ($action == 'index')) {
$scriptsAngular->appendFile($baseUrl . "public/js/ng/package_search.js?=1111111111");
}
if (($modulename == 'tours') && ($controller == 'activity') && ($action == 'index')) {
$scriptsAngular->appendFile($baseUrl . "public/js/ng/activities_search.js?=111112222");
}
if (($modulename == 'hotels') && ($controller == 'index') && ($action == 'search-results')) {
$scriptsAngular->appendFile($baseUrl . "public/js/ng/hotel-search-result.js?1112121");
}
// if (($modulename == 'car') && ($controller == 'index') && ($action == 'search-results')) {
// $scriptsAngular->appendFile($baseUrl . "public/js/ng/car-search-result.js?1112121");
// }
$scriptsAngular->appendFile($baseUrl . "public/js/ng/ng-infinite-scroll.min.js");
$scriptsAngular->appendFile($baseUrl . "public/js/ng/ng-infinite-scroll.js");
echo $scriptsAngular;
?>
<?php
if (($modulename == 'detail') && ($controller == 'index') && ($action == 'index' || $action == 'index-ajax-data')) {
$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,
'POPUPCOOKIES' => $getMypopCookie,
];
echo $this->partial('models/send-enquiry-modal.phtml', $data);
echo $this->partial('models/modal-change-options.phtml', ['baseUrl' => $baseUrl]);
// echo $this->partial('models/modal-checkrate-enquiry.phtml', $data);
echo $this->partial('models/modal-hotel-view-and-options.phtml', ['baseUrl' => $baseUrl]);
if ($mydevice == "mobile")
$charlimit = 150;
else
$charlimit = 400;
?>
<?php }
?>
<?php
if (($modulename == 'detail') && ($controller == 'index') && ($action == 'index' || $action == 'index-ajax-data')) {
$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,
'POPUPCOOKIES' => $getMypopCookie,
];
echo $this->partial('models/send-enquiry-modal.phtml', $data);
echo $this->partial('models/modal-change-options.phtml', ['baseUrl' => $baseUrl]);
// echo $this->partial('models/modal-checkrate-enquiry.phtml', $data);
echo $this->partial('models/modal-hotel-view-and-options.phtml', ['baseUrl' => $baseUrl]);
if ($mydevice == "mobile")
$charlimit = 150;
else
$charlimit = 400;
?>
<script type="text/javascript">
trimcontent(<?php echo $charlimit; ?>);
function openpopupModel(n, type) {
var hotelId = n;
var type = type;
var categoryId = $("#categoryId").val();
var packageId = $("#packageId").val();
var gtxID = $("#gtxID").val();
$.ajax({
type: "POST",
url: "<?php echo $baseUrl; ?>detail/index/get-hotel-detail",
async: true,
data: "type=" + type + "&hotelId=" + hotelId + "&categoryId=" + categoryId + "&packageId=" + packageId + ">xID=" + gtxID,
beforeSend: function() {
$("#myModa1hotelview").modal('show');
$('#hotelDetailViewList').html('<div style="text-align:center;padding-top:30px;"><img src="<?php echo $baseUrl; ?>public/images/loader.gif"/></div>');
},
success: function(data) {
//console.log(data);
$("#hotelDetailViewList").html(data);
return false;
}
});
}
$("#selectDestination").autocomplete({
source: function(request, response) {
var query = $("#selectDestination").val();
var countryId = '';
$.getJSON("/index/autosuggest", {
query: query,
countryId: countryId
},
response);
},
minLength: 2,
autoFocus: true,
select: function(event, ui) {
var CityId = ui.item.CityId;
var CityName = ui.item.CityName;
$("#hidden_selected_hotel_cityid").val(CityId);
$("#hidden_selected_city_name").val(CityName);
}
});
$('#travelerDatePicker').datepicker({
dateFormat: 'dd/mm/yy',
minDate: 0,
numberOfMonths: 1,
});
</script>
<?php }
?>
<script>
<?php if (($modulename != 'hotels')) { ?>
setTimeout(function() {
$.getJSON('public/data/dynamic/package_destinations.json', function(destinations) {
$(".destinationBox").autocomplete({
minLength: 3,
source: destinations,
autoFocus: true,
select: function(event, ui) {
var code = ui.item.code;
var cityid = ui.item.id;
// console.log(cityid);
$(".cityid").val(cityid);
$(".hcode").val(code);
}
});
});
}, 1000);
setTimeout(function() {
$.getJSON('public/data/dynamic/package_destinations.json', function(visa) {
$(".visaSearchBox").autocomplete({
minLength: 3,
source: visa,
autoFocus: true,
select: function(event, ui) {
var code = ui.item.code;
var cityid = ui.item.id;
console.log(cityid);
$(".cityid").val(cityid);
$(".hcode").val(code);
}
});
});
}, 1000);
<?php } ?>
</script>
<script>
$(document).ready(function() {
$(".expanded").hide();
$(".expanded a, .collapsed a").click(function(eve) {
eve.preventDefault();
$(".expanded, .collapsed").toggle();
});
$('#itenerary_click').on("click", function() {
$('html, body').animate({
scrollTop: $("#itenary").offset().top - 250
}, 200);
});
$('#termscondition_click').on("click", function() {
$('html, body').animate({
scrollTop: $("#terms_condition").offset().top - 250
}, 200);
});
$('.gotohotel').on("click", function() {
$('html, body').animate({
scrollTop: $("#Hotelstab_slide").offset().top - 300
}, 200);
});
});
function activaTab(tab) {
// alert(tab);
$('.nav-tabs a[href="#' + tab + '"]').tab('show');
$('html, body').animate({
scrollTop: $("#Hotelstab_slide").offset().top - 460
}, 200);
}
</script>
<script>
// $('.showmore1').click(function(){
// $('.fl-checkbox_list1').animate({height:'400px'}, 500);
// });
//
// $('.fa-minus').click(function(){
// $('.fl-checkbox_list1').animate({height:'0px'}, 500);
// });
//
// $('.showmore2').click(function(){
// $('.fl-checkbox_list2').animate({height:'400px'}, 500);
// });
// $('.showmore3').click(function(){
// $('.fl-checkbox_list3').animate({height:'400px'}, 500);
// });
// $('.showmore4').click(function(){
// $('.fl-checkbox_list4').animate({height:'400px'}, 500);
// });
//
//
// $('.showmore1, .showmore2, .showmore3, .showmore4').on('click', function() {
// $(this).toggleClass('fa-plus fa-minus');
// });
<?php
// if (($modulename == 'car') && ($controller == 'index') && ($action == 'pay-now')) {
?>
// function PayNowTicket() {
// var ApiResultIndex = $('#ApiResultIndex').val();
// var TraceId = $('#TraceId').val();
// $.ajax({
// type: "POST",
// url: "<?php echo $baseUrl; ?>car/pay-now/",
// dataType: 'json',
// data: {
// TraceId: TraceId,
// ApiResultIndex: ApiResultIndex
// },
// beforeSend: function() {
// $('.continue_btn').hide();
// $("#FareChangeData").html('<div style="text-align:center;padding-top:30px;"><img src="<?php echo $baseUrl; ?>public/images/loader.gif"/></div>');
// },
// success: function(response) {
// if (response.success) {
// //console.log(response);
// //return false;
// var guid = response.guid;
// var walletCode = response.walletCode;
// var stringData = response.stringData;
// var strReturnURL = response.strReturnURL;
// var TPSysId = response.TPSysId;
// var amount = response.amount;
// var name = response.UserData.name;
// var emailId = response.UserData.email;
// //alert(emailId);
// //return false;
// var mobile = response.UserData.mobile;
// var CustomerSysId = response.UserData.CustomerSysId;
// $("#guid").val(guid);
// $("#securecode").val(walletCode);
// $("#returnURL").val(strReturnURL);
// $("#errorURL").val(strReturnURL);
// $("#stringData").val(stringData);
// $("#premium_val").val(amount);
// $("#custFirstname").val(name);
// $("#custemail").val(emailId);
// $("#custphone").val(mobile);
// $("#CustomerSysId").val(CustomerSysId);
// setTimeout(function() {
// $("#paymentsubmit").submit();
// }, 2000);
// } else {
// alert(data.message);
// window.location.href = 'car';
// }
// }
// });
// }
//alert('tests');
// PayNowTicket();
<?php
// }
?>
</script>
<?php
if ((($modulename == 'default')) && (($controller == 'customer')) && ($action == 'login')) {
?>
<script type="text/javascript">
Continue_login();
</script>
<?php } ?>
<?php
if ((($modulename == 'default')) && (($controller == 'customer')) && ($action == 'loginfacebook')) {
?>
<script type="text/javascript">
Continue_loginfacebook();
</script>
<?php } ?>
<?php if ($mydevice == "mobile") { ?>
<script>
function myFunction(id) {
$(window).scrollTop($("." + id).offset().top);
}
</script>
<?php } else { ?>
<script>
function myFunction(id) {
}
</script>
<?php } ?>
<script>
$(document).ready(function() {
$('#hotel_travller_search').on("click", function() {
$(".roomBoxMain").toggle("show_hiddenpart_hidden");
});
$('#travller_search').on("click", function() {
$("#myModal_Travellers").modal('show');
$(".roomBoxMain").toggle("show_hiddenpart_hidden");
});
$('#done_traveller').on("click", function() {
$(".roomBoxMain").toggle("show_hiddenpart_hidden");
});
$('#done_travellerFlight').on("click", function() {
$(".roomBoxMain").toggle("show_hiddenpart_hidden");
});
$('.flight_infotitle_dd').on("click", function() {
$(".flight_information_details_content").toggle("show_hiddenpart_hidden");
});
$('#done_traveller2').on("click", function() {
$(".hoteltarvller_main").hide("slow");
});
});
function hotelselect(hotelId, optionId, count, roomcate, totalprice, mealbase) {
$('.roomcatg').html(roomcate);
$('.money').html(totalprice);
$('.mealbasee').html(mealbase);
$('.sleact').removeClass('active');
$('#hotelID').val(hotelId);
$('#optionID').val(optionId);
$('.add' + count).addClass('active');
$('html, body').animate({
scrollTop: $(".hotel-leftborder").offset().top
}, 500);
}
$('#hotelbook').on('click', function(e) {
$('#hotel_review').submit();
});
// hotel submit section
$('#Residence').on('change', function(e) {
$('.hotelserchcls').prop("disabled", false);
});
$('.submithotel').on('click', function(e) {
var cityId = $('form[name=hotelsearch] #hidden_selected_hotel_cityid').val();
var nationality = $('form[name=hotelsearch] #hidden_selected_hotel_countryCode').val();
var checkIn = $('form[name=hotelsearch] #Departure-Date').val();
var checkout = $('form[name=hotelsearch] #Departure_dob').val();
var residence = $('form[name=hotelsearch] #Residence').val();
// var currency = $('form[name=hotelsearch] #currency').val();
//alert('test');
// if(cityId == ''){
// alert('please enter city name');
// return false;
// }
if (checkIn == '') {
alert('please select checkin date');
return false;
}
if (checkout == '') {
alert('please select checkout date');
return false;
}
if (residence == '') {
alert('please select residence');
return false;
}
/*if(currency == ''){
alert('currency is not defined contact support');
return false;
}*/
$('form[name=hotelsearch]').submit();
});
$('form[name=hotelsearch]').on('submit', function(e) {
e.preventDefault();
var cityId = $('#hidden_selected_hotel_cityid').val();
var nationality = $('#hidden_selected_hotel_countryCode').val();
var checkIn = $('form[name=hotelsearch] .Departure-Date').val();
var checkout = $('form[name=hotelsearch] .Departure_dob').val();
var data = $(this).serialize();
$.ajax({
type: "GET",
url: SITEURL + "hotel/hotelsearchdata",
data: data,
dataType: 'json',
success: function(result) {
window.location.href = SITEURL + 'hotel/search-results?' + result.url;
}
});
});
$(window).on('scroll', function() {
if ($(window).scrollTop() + $(window).height() >= $(document).height() - 400) {
$('.loadMoreNew').trigger('click');
/// infinite-scroll="loadMoreNew()"
}
});
$("#Departure-Date, #Departure_dob").datepicker({
//defaultDate: "+1w",
changeMonth: false,
dateFormat: "d-M-yy",
numberOfMonths: 2,
minDate: 0,
buttonImage: true,
showButtonPanel: true,
buttonImageOnly: true,
beforeShow: function() {
if (this.id == 'Departure_dob') {
// debugger;
var dateMin = $('#Departure-Date').datepicker("getDate");
var TodateMin = $('#Departure_dob').datepicker("getDate");
if (TodateMin === null) {
TodateMin = dateMin;
}
var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 180); // Max Date = Selected + 62d
var c_out_date = new Date(TodateMin.getFullYear(), TodateMin.getMonth(), TodateMin.getDate()); // Min Date = Selected + 1d
$('#Departure_dob').datepicker("option", "minDate", rMin);
$('#Departure_dob').datepicker("option", "maxDate", rMax);
$('#Departure_dob').datepicker("setDate", c_out_date);
$('#RoundTrip').prop('checked', true);
}
if ($(window).width() < 768) {
return {
numberOfMonths: 12
};
} else {
return {
numberOfMonths: 2
};
}
},
onSelect: function(selectedDate, inst) {
var tripType = $('.tripType:checked').val(); // retrieve the value
$('.hotelserchcls').prop("disabled", false);
if (this.id == 'Departure-Date') {
var dateMin = $('#Departure-Date').datepicker("getDate");
var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 180); // Max Date = Selected + 62d
var c_out_date = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
var theDate = new Date(Date.parse($(this).datepicker('getDate')));
var dateFormatted = $.datepicker.formatDate('DD', theDate);
var FromFormatted = $.datepicker.formatDate('dd-mm-yy', theDate);
$('.Departure').html(dateFormatted);
$('#departure_date').val(FromFormatted);
if (parseInt(tripType) === 2) {
$('#Departure_dob').datepicker("option", "minDate", rMin);
$('#Departure_dob').datepicker("option", "maxDate", rMax);
$('#Departure_dob').datepicker("setDate", c_out_date);
$('#return_date').val(FromFormatted);
}
var Departure_dob = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 1);
$('#Departure_dob').datepicker("setDate", Departure_dob);
$('.hotelserchcls').prop("disabled", false);
// console.log(c_out_date);
///$('#to').focus();return false;
} else {
var dateMin = $('#Departure_dob').datepicker("getDate");
var c_out_date = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0);
var theDate = new Date(Date.parse(c_out_date));
var dateFormatted = $.datepicker.formatDate('DD', theDate);
var ToFormatted = $.datepicker.formatDate('dd-mm-yy', theDate);
$('.hotelserchcls').prop("disabled", false);
// console.log(ToFormatted);
}
}
});
// setTimeout(function() {
// //$('.select2').select2();
// $.getJSON(SITEURL + 'hotel/hotel-city', function(source) {
// $(".hotel_name_search").autocomplete({
// minLength: 0,
// autoFocus: true,
// source: function(request, response) {
// var term = $.ui.autocomplete.escapeRegex(request.term),
// startsWithMatcher = new RegExp("^" + term, "i"),
// startsWith = $.grep(source, function(value) {
// return startsWithMatcher.test(value.AirportCode || value.value || value);
// }),
// containsMatcher = new RegExp(term, "i"),
// contains = $.grep(source, function(value) {
// return $.inArray(value, startsWith) < 0 &&
// containsMatcher.test(value.label || value.value || value);
// });
// response(startsWith.concat(contains).slice(0, 10));
// },
// response: function(e) {},
// select: function(event, ui) {
// var index = $(this).attr('index');
// var value = ui.item.value;
// $('#hidden_selected_hotel_cityid').val(ui.item.TBBCityId);
// }
// }).focus(function() {
// // $(this).val('');
// // $(this).addClass("extend_width");
// // $("#bannerslider").addClass("ss");
// // $(".search-box").addClass("extend_width2");
// // $(".flight-search-flight2").addClass("extend_width2");
// // $(".apendn_2").addClass("showsecond");
// // $(".formtitlecls").addClass("showsecond");
// // $(".formullist").addClass("ss");
// // $(".frmclose").addClass("extend_width_frmclose");
// // $(".custom-nav").addClass("frmhidesection");
// // $(this).autocomplete('search');
// });
// });
// }, 1000);
<?php if (($modulename == 'hotels') && ($controller == 'index') && ($action == 'search-results')) { ?>
function findrooms(data) {
alert(data);
}
<?php } ?>
<?php if (($modulename == 'hotels') && ($controller == 'index')) { ?>
function hotelscancellationpolicy(hotelId, optionId, rid = null) {
$('#cancelationPlolicy').modal('show');
$.ajax({
type: "POST",
url: SITEURL + "hotel/hotel-cancelation-plolicy",
data: {
hotelId: hotelId,
optionId: optionId,
rid: rid,
},
beforeSend: function() {
},
success: function(result) {
$('#cancelationPlolicyDIV').html(result);
}
});
}
function saveHotelPassengerDetails() {
var b = 1;
var cont = true;
var leadMobile = $.trim($("#leadMobile").val());
var leadEmail = $.trim($("#leadEmail").val());
var regex = /^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (leadMobile === '') {
alert('Please enter lead pax mobile no.');
$("#leadMobile").focus();
cont = false;
return false;
}
if (leadMobile.length !== 10) {
alert('Mobile no. should be 10 digit.');
$("#leadMobile").focus();
cont = false;
return false;
}
if (leadEmail === '') {
alert('Please enter lead pax email id.');
$("#leadEmail").focus();
cont = false;
return false;
}
if (!regex.test(leadEmail)) {
alert('Please enter valid email id.');
$("#leadEmail").focus();
cont = false;
return false;
}
$(".familyNumber").each(function() {
var salution = $.trim($("#salution-" + b).val());
var firstname = $.trim($("#passenger-firstname-" + b).val());
var lastname = $.trim($("#passenger-lastname-" + b).val());
var PassportNationality = $.trim($("#PassportNationality-" + b).val());
var passportno = $.trim($("#passportno-" + b).val());
var passporIssue = $.trim($("#passporIssue-" + b).val());
var passportnoexpiry = $.trim($("#passportnoexpiry-" + b).val());
if (salution === '') {
alert('Please select title');
$("#salution-" + b).focus();
cont = false;
return false;
}
if (firstname === '') {
alert('Please enter first name');
$("#passenger-firstname-" + b).focus();
cont = false;
return false;
}
if (lastname === '') {
alert('Please enter first name');
$("#passenger-lastname-" + b).focus();
cont = false;
return false;
}
if ($("#PassportNationality-" + b).prop('disabled') === false && PassportNationality === '') {
alert('Please select Passport Nationality');
$("#PassportNationality-" + b).focus();
cont = false;
return false;
}
if ($("#passportno-" + b).prop('disabled') === false && passportno === '') {
alert('Please enter passport no.');
$("#passportno-" + b).focus();
cont = false;
return false;
}
if ($("#passporIssue-" + b).prop('disabled') === false && passporIssue === '') {
alert('Please enter passport issuse date');
$("#passporIssue-" + b).focus();
cont = false;
return false;
}
if ($("#passportnoexpiry-" + b).prop('disabled') === false && passportnoexpiry === '') {
alert('Please enter passport expiry date');
$("#passportnoexpiry-" + b).focus();
cont = false;
return false;
}
b++;
});
if (cont === true) {
$('#hotel-traveller').submit();
}
//alert('test');
}
$('.passporIssue').datepicker({
dateFormat: 'dd/mm/yy',
maxDate: 0,
numberOfMonths: 1,
});
$('.passportnoexpiry').datepicker({
dateFormat: 'dd/mm/yy',
minDate: 0,
numberOfMonths: 1,
});
function Selectmember(data, paxType) {
var checkedornot = $("#custMember" + data.value).prop('checked');
var customerMember = JSON.parse(GetData('customerMember'));
var obj = customerMember[data.value];
//console.log(obj);
var b = 1;
$("#custMember" + data.value).attr('disabled', 'disabled');
$(".familyNumber").each(function() {
var CustomerSysId = $.trim($("#CustomerSysId-" + b).val());
console.log(obj);
var firstname = $.trim($("#passenger-firstname-" + b).val());
if (firstname == '' || CustomerSysId == 0 || CustomerSysId == '') {
if (obj.paxType == 1) {
var paxTypes = 'Adult';
} else if (obj.paxType == 2) {
var paxTypes = 'Child';
} else {
var paxTypes = 'Infant';
}
var DOB = obj.dobday + '/' + obj.dobmonth + '/' + obj.dobyear;
console.log(obj);
$("#CustomerSysId-" + b).val(obj.CustomerMemberSysId);
$("#CRADULT-" + b).attr('value', obj.CustomerMemberSysId);
$("#CRADULT-" + b).show();
$("#passenger-firstname-" + b).val(obj.FirstName);
$("#passenger-lastname-" + b).val(obj.LastName);
$("#dobday" + b).val(obj.dobday);
$("#dobmonth" + b).val(obj.dobmonth);
$("#dobyear" + b).val(obj.dobyear);
$("#passenger-dob-" + b).val(DOB);
$("#PassportNationality-" + b).val(obj.PassportNation);
$("#relation-" + b).val(obj.Relation);
$("#salution-" + b).val(obj.SalutationTxt);
$("#passportno-" + b).val(obj.PassportNo);
$("#passportnoexpiry-" + b).val(obj.PassportExpiry);
$("#passporIssue-" + b).val(obj.passporIssue);
$("#passenger-address-" + b).val(obj.Address);
$("#passenger-city-name-1").val(obj.CityTitle);
$("#passenger-city-1").val(obj.CitySysId);
$("#passenger-country-1").val(obj.CountrySysId);
$("#passenger-address-" + b).val(obj.Address);
return false;
} else {
}
b++;
});
return false;
}
$(document).on('click', '.removePax', function() {
var CustomerSysId = $(this).attr('value');
var b = $(this).attr('data');
$("#custMember_" + CustomerSysId).removeAttr('disabled', 'disabled');
$("#custMember_" + CustomerSysId).removeAttr('checked', 'checked');
$("#CustomerSysId-" + b).val(0);
$("#passenger-firstname-" + b).val('');
$("#passenger-lastname-" + b).val('');
$("#salution-" + b).val('');
$("#relation-" + b).val(9);
$("#passenger-dob-" + b).val('__/__/____');
$("#passportno-" + b).val('');
$("#passporIssue-" + b).val('__/__/____');
$("#passportnoexpiry-" + b).val('__/__/____');
$("#CRADULT-" + b).hide();
});
<?php } ?>
<?php
if (($modulename == 'hotels') && ($controller == 'index') && ($action == 'hotel-travellers')) {
?>
var CheckMobile = $("#leadMobile").val();
var leadEmail = $("#leadEmail").val();
if (CheckMobile !== '') {
getSearchCutomer();
}
function getSearchCutomer() {
$('#CustomerSysId-1').val('0');
var leadMobile = $('#leadMobile').val();
var leadEmail = $('#leadEmail').val();
if (leadMobile === '') {
alert('Please enter mobile number');
$("#leadMobile").focus();
$("#leadEmail").val('');
return false;
}
$.ajax({
url: '<?php echo $baseUrl; ?>flight/searchcutomer',
data: {
leadEmail: leadEmail,
leadMobile: leadMobile
},
dataType: 'json',
type: 'POST',
error: function() {},
success: function(response) {
if (response.success) {
var leadPax = (response.leadPax);
$("#passenger-address-1").val(leadPax.Address);
$("#passenger-city-1").val(leadPax.CitySysId);
$("#passenger-country-1").val(leadPax.CountrySysId);
$("#passenger-city-name-1").val(leadPax.CityTitle);
// $("#companyname").val(leadPax.companyname);
// $("#gstnnumber").val(leadPax.gstnnumber);
// $("#gstaddress").val(leadPax.gstaddress);
// $("#gstcity").val(leadPax.gstcity);
// $("#gststate").val(leadPax.gststate);
// $("#gstpincode").val(leadPax.gstpincode);
if (JSON.stringify(response.data).length > 0) {
$('#savedtraveller').show();
var values = 0;
$("#relation-1 option[value='" + values + "']").css("display", "none");
$('#relation-1').val(1);
} else {
$('#savedtraveller').hide();
}
var data = (response.data);
SetData('customerMember', JSON.stringify(data));
var ind = 0;
var Listul = $('<div></div>');
$.each(data, function(index, obj) {
if (ind == 0) {
var CustomerSysId = obj.CustomerSysId;
} else {
var CustomerSysId = obj.CustomerMemberSysId;
}
//<span class="checkmark"></span>
Listul.append('<div class="gst_add_align2"><label class="checkboxcontainerreviewaddons_savedlist" style="width:100%;"><input id="custMember_' + CustomerSysId + '" name="cusmemberSelected[]" onclick="Selectmember(this,' + obj.paxType + ')" type="checkbox" value="_' + CustomerSysId + '"/> ' + obj.SalutationTxt + ' ' + obj.FirstName + ' ' + obj.LastName + ' <br><span class="adult_listtitle">' + obj.paxTypeName + '</span></label></div>');
ind++;
});
var ListulMob = $('<div></div>');
$.each(data, function(index, obj) {
ListulMob.append(`<div class="customgst_savedlist gst_add_align2_mobile"><label class="checkboxcontainerreviewaddons_savedlist" for="custMember_` + obj.CustomerMemberSysId + `"><input type="checkbox" id="custMember_` + obj.CustomerMemberSysId + `" name="cusmemberSelected[]" onclick="Selectmember(this,` + obj.paxType + `)" value="` + obj.CustomerMemberSysId + `">` + obj.SalutationTxt + ` ` + obj.FirstName + ` ` + obj.LastName + `<br> <span class="adult_listtitle">` + obj.RelationTxt + ` | ` + obj.paxTypeName + `</span> </label></div>`);
});
var lenght = Object.keys(data).length;
if (lenght > 0) {
$(".saved_btn").show();
}
$('#dynamic_div').html(Listul);
$('.RefreshTraveller').show();
$('#dynamic_div__k').html(ListulMob);
setTimeout(function() {
$('.RefreshTraveller').removeClass("fa-spin");
}, 2000);
} else {
var values = 0;
$("#relation-1 option[value='" + values + "']").css("display", "block");
$('#relation-1').val(0);
$('#savedtraveller').hide();
}
}
});
return false;
}
$.ajax({
type: "POST",
url: "<?php echo $baseUrl; ?>hotel/review-hotel",
dataType: 'json',
data: {},
beforeSend: function() {
$('.travellerform').hide();
$("#PleaseWaitLoader").html('<div style="text-align:center;padding-top:30px;"><img src="<?php echo $baseUrl; ?>public/images/loader.gif"/></div>');
$("#loadtravellerdata").html('<div style="text-align:center;padding-top:30px;"><img src="<?php echo $baseUrl; ?>public/images/loader.gif"/></div>');
},
success: function(response) {
$("#loadtravellerdata").hide();
if (response.success == true) {
$('.travellerform').show();
$("#PleaseWaitLoader").html(response.bodyText);
//console.log(response);
//country = response.country.toLowerCase();
if (response.idIpr) {
$('.pannumber').show();
$('.inputDisabledPan').removeAttr("disabled");
}
if (response.isipm) {
//if (country != 'india') {
$('.pass').show();
$('.inputDisabled').removeAttr("disabled")
//}
}
} else {
alert('Session expired');
window.location.href = '/';
}
}
});
<?php } ?>
<?php
if (($modulename == 'hotels') && ($controller == 'index') && ($action == 'pay-now')) {
?>
function PayNowTicket() {
var ApiResultIndex = $('#ApiResultIndex').val();
var TraceId = $('#TraceId').val();
//alert(TraceId);
$.ajax({
type: "POST",
url: "<?php echo $baseUrl; ?>hotel/pay-now/" + TraceId,
dataType: 'json',
data: {
TraceId: TraceId,
ApiResultIndex: ApiResultIndex
},
beforeSend: function() {
$('.continue_btn').hide();
$("#FareChangeData").html('<div style="text-align:center;padding-top:30px;"><img src="<?php echo $baseUrl; ?>public/images/loader.gif"/></div>');
},
success: function(response) {
if (response.success) {
//console.log(response);
//return false;
var guid = response.guid;
var walletCode = response.walletCode;
var stringData = response.stringData;
var strReturnURL = response.strReturnURL;
var TPSysId = response.TPSysId;
var amount = response.amount;
var name = response.UserData.name;
var emailId = response.UserData.email;
var mobile = response.UserData.mobile;
var CustomerSysId = response.UserData.CustomerSysId;
var FLBookingID = response.FLBookingID;
var lastInsertId = response.lastInsertId;
$("#guid").val(guid);
$("#securecode").val(walletCode);
$("#returnURL").val(strReturnURL);
$("#errorURL").val(strReturnURL);
$("#stringData").val(stringData);
$("#premium_val").val(amount);
$("#custFirstname").val(name);
$("#custemail").val(emailId);
$("#custphone").val(mobile);
$("#CustomerSysId").val(CustomerSysId);
$("#FLBookingID").val(FLBookingID);
$("#lastInsertId").val(lastInsertId);
setTimeout(function() {
$("#paymentsubmit").submit();
}, 2000);
} else {
alert(data.message);
window.location.href = 'hotels';
}
}
});
}
//alert('tests');
PayNowTicket();
<?php } ?>
// $(window).load(function() {
if ($('#content_overviewm').length > 0) {
var content_overviewHeight = $('#content_overviewm').height();
//$('#content_overview').css('height',content_overviewHeight);
if (content_overviewHeight < 88) {
$('.readMore_overview').hide();
$('.readLess_overview').hide();
}
var content_highlightm = $('#content_highlightm').height();
//$('#content_overview').css('height',content_overviewHeight);
if (content_highlightm < 88) {
$('.readMore_highlight').hide();
$('.readLess_highlight').hide();
}
}
// $("div[id^='content_']").each(function (i) {
// $('.show_wrap_less').each(function(i, obj) {
$('.show_wrap_less').each(function(i, obj) {
// debugger;
// alert(i);
var index = formatted_string('00', parseInt(i) + 1, 'l');
var content_h = $('#content_' + index).height();
// alert($(obj).html());
// var index = parseInt(i) + 1;
// alert(index);
// alert(content_h);
if (content_h < 62) {
$('.readLess_' + index).hide();
$('.readMore_' + index).hide();
// $(".viewbtn1211212").addClass("hideviewbtn");
}
var style1 = BrowserVal(2);
$(this).addClass('show_wrap_less').css(style1);
});
function formatted_string(pad, user_str, pad_pos) {
if (typeof user_str === 'undefined')
return pad;
if (pad_pos == 'l') {
return (pad + user_str).slice(-pad.length);
} else {
return (user_str + pad).substring(0, pad.length);
}
}
function SetData(key, value) {
if (typeof(localStorage) != "undefined") {
//ikinci önce html5 localStorage desteği varmı ona bakılır
try {
localStorage.setItem(key, value);
return true;
} catch (e) {
return false;
}
} else {
//son olarak cookie desteği varmı ona bakılır
try {
$.cookie(key, value);
return true;
} catch (e) {
return false;
}
}
}
function GetData(key) {
// alert(key);
var sonuc = "";
if (typeof(localStorage) != "undefined") {
//İkinci html5 localStorage desteği varmı ona bakılır
if (localStorage[key] != null) {
sonuc = localStorage[key];
}
} else {
//son olarak cookie desteği varmı ona bakılır
sonuc = $.cookie(key);
}
return sonuc;
}
//})
</script>
<script src="<?php echo $baseUrl; ?>public/js/jquery-scrolltofixed.js" type="text/javascript"></script>
<script type="text/javascript">
if (dvc == "d") {
function fixDiv() {
}
$(window).scroll(fixDiv);
$(document).ready(function() {
var summaries = $('.hotel-filter');
summaries.each(function(i) {
var summary = $(summaries[i]);
var next = summaries[i + 1];
summary.scrollToFixed({
marginTop: $('.header').outerHeight(true) - 10,
limit: function() {
var limit = 0;
if (next) {
limit = $(next).offset().top - $(this).outerHeight(true) + 0;
} else {
limit = $('footer').offset().top - $(this).outerHeight(true) + 0;
}
return limit;
},
zIndex: 999
});
});
});
}
</script>
<script type="text/javascript">
if (dvc == "d") {
function fixDiv() {
}
$(window).scroll(fixDiv);
$(document).ready(function() {
var summaries = $('.package-filter');
summaries.each(function(i) {
var summary = $(summaries[i]);
var next = summaries[i + 1];
summary.scrollToFixed({
marginTop: $('.header').outerHeight(true) - 10,
limit: function() {
var limit = 0;
if (next) {
limit = $(next).offset().top - $(this).outerHeight(true) + 0;
} else {
limit = $('footer').offset().top - $(this).outerHeight(true) + 0;
}
return limit;
},
zIndex: 999
});
});
});
}
</script>
<script type="text/javascript">
if (dvc == "d") {
// get header height (without border)
var getHeaderHeight = $('.detial-headercls, .fair_summaryfixed').outerHeight();
// border height value (make sure to be the same as in your css)
var borderAmount = 2;
// shadow radius number (make sure to be the same as in your css)
var shadowAmount = 30;
// init variable for last scroll position
var lastScrollPosition = 0;
// set negative top position to create the animated header effect
$('.detial-headercls, .fair_summaryfixed').css('top', '-' + (getHeaderHeight + shadowAmount + borderAmount) + 'px');
$(window).scroll(function() {
var currentScrollPosition = $(window).scrollTop();
if ($(window).scrollTop() > 2 * (getHeaderHeight + shadowAmount + borderAmount)) {
$('body').addClass('scrollActive').css('padding-top', getHeaderHeight);
$('.detial-headercls, .fair_summaryfixed').css('top', 0);
if (currentScrollPosition < lastScrollPosition) {
$('.detial-headercls, .fair_summaryfixed').css('top', '-' + (getHeaderHeight + shadowAmount + borderAmount) + 'px');
}
lastScrollPosition = currentScrollPosition;
} else {
$('body').removeClass('scrollActive').css('padding-top', 0);
}
});
}
</script>
<script type="text/javascript">
if (dvc == "d") {
function fixDiv() {
}
$(window).scroll(fixDiv);
$(document).ready(function() {
var summaries = $('.hotel-fair_summary');
summaries.each(function(i) {
var summary = $(summaries[i]);
var next = summaries[i + 1];
summary.scrollToFixed({
marginTop: $('.header').outerHeight(true) - 10,
limit: function() {
var limit = 0;
if (next) {
limit = $(next).offset().top - $(this).outerHeight(true) + 0;
} else {
limit = $('footer').offset().top - $(this).outerHeight(true) + 0;
}
return limit;
},
zIndex: 999
});
});
});
}
</script>
<script type="text/javascript">
if (dvc == "d") {
function fixDiv() {
}
$(window).scroll(fixDiv);
$(document).ready(function() {
var summaries = $('.hotel-detail-box');
summaries.each(function(i) {
var summary = $(summaries[i]);
var next = summaries[i + 1];
summary.scrollToFixed({
marginTop: $('.header').outerHeight(true) - 10,
limit: function() {
var limit = 0;
if (next) {
limit = $(next).offset().top - $(this).outerHeight(true) + 0;
} else {
limit = $('footer').offset().top - $(this).outerHeight(true) + 0;
}
return limit;
},
zIndex: 999
});
});
});
}
</script>
<script>
$("#from_enquiry, #to_enquiry").datepicker({
//defaultDate: "+1w",
changeMonth: false,
dateFormat: "d M yy",
numberOfMonths: 2,
minDate: 0,
buttonImage: true,
buttonImageOnly: true,
beforeShowDay: function(DepDate) {
var day = DepDate.getDay();
var date1 = $("#from_enquiry").datepicker("getDate");
var date2 = $("#to_enquiry").datepicker("getDate");
var calUI = '';
if (day == 0) {
calUI = calUI + 'markholiday';
}
if (DepDate >= date1 && DepDate <= date2) {
calUI = calUI + ' ui-state-range';
}
return [true, calUI];
},
beforeShow: function() {
if (this.id == 'to_enquiry') {
// debugger;
var dateMin = $('#from_enquiry').datepicker("getDate");
var TodateMin = $('#to_enquiry').datepicker("getDate");
if (TodateMin === null) {
TodateMin = dateMin;
}
var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 180); // Max Date = Selected + 62d
var c_out_date = new Date(TodateMin.getFullYear(), TodateMin.getMonth(), TodateMin.getDate() + 1); // Min Date = Selected + 1d
$('#to_enquiry').datepicker("option", "minDate", rMin);
$('#to_enquiry').datepicker("option", "maxDate", rMax);
$('#to_enquiry').datepicker("setDate", c_out_date);
$('#RoundTrip_enquiry').prop('checked', true);
if (TodateMin != null) {
$('#to_enquiry').val($.datepicker.formatDate('d M yy', TodateMin));
}
}
if ($(window).width() < 768) {
return {
numberOfMonths: 12
};
} else {
return {
numberOfMonths: 2
};
}
},
onSelect: function(selectedDate, inst) {
var tripType = $('.tripType:checked').val(); // retrieve the value
// alert(this.id);
if (this.id == 'from_enquiry') {
var dateMin = $('#from_enquiry').datepicker("getDate");
var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 0); // Min Date = Selected + 1d
var rMax = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 180); // Max Date = Selected + 62d
var c_out_date = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate() + 1); // Min Date = Selected + 1d
var theDate = new Date(Date.parse($(this).datepicker('getDate')));
var dateFormatted = $.datepicker.formatDate('DD', theDate);
var FromFormatted = $.datepicker.formatDate('dd/mm/yy', theDate);
var ToFormatted = $.datepicker.formatDate('dd/mm/yy', c_out_date);
$('.Departure').html(dateFormatted);
$('#departure_date').val(FromFormatted);
if (parseInt(tripType) === 2) {
$('#to_enquiry').datepicker("option", "minDate", rMin);
$('#to_enquiry').datepicker("option", "maxDate", rMax);
$('#to_enquiry').datepicker("setDate", c_out_date);
$('.Return').html(dateFormatted);
$('#return_date').val(ToFormatted);
}
} else {
var dateMin = $('#to_enquiry').datepicker("getDate");
var c_out_date = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate());
var theDate = new Date(Date.parse(c_out_date));
var dateFormatted = $.datepicker.formatDate('DD', theDate);
var ToFormatted = $.datepicker.formatDate('dd/mm/yy', theDate);
$('.Return').html(dateFormatted);
$('#return_date').val(ToFormatted);
}
}
});
$('#from_hotel , #to_hotel').datepicker({
dateFormat: 'dd/mm/yy',
numberOfMonths: 2,
minDate: 0,
beforeShow: function(input, inst) {
var rect = input.getBoundingClientRect();
setTimeout(function() {
inst.dpDiv.css({
top: rect.top + 40,
left: rect.left + 0
});
}, 0);
}
});
</script>
<script type="text/javascript">
if (dvc == "d") {
function fixDiv() {
}
$(window).scroll(fixDiv);
$(document).ready(function() {
var summaries = $('.sortingfixed');
summaries.each(function(i) {
var summary = $(summaries[i]);
var next = summaries[i + 1];
summary.scrollToFixed({
marginTop: $('.header').outerHeight(true) - 10,
limit: function() {
var limit = 0;
if (next) {
limit = $(next).offset().top - $(this).outerHeight(true) + 0;
} else {
limit = $('footer').offset().top - $(this).outerHeight(true) + 0;
}
return limit;
},
zIndex: 999
});
});
});
}
</script>
<script type="text/javascript">
$('#offer-zone').owlCarousel({
items: 3,
loop: false,
margin: 10,
dots: false,
slideSpeed: 4000,
responsiveClass: true,
responsive: {
0: {
items: 1,
nav: true,
dots: true
},
600: {
items: 1,
nav: true,
dots: true
},
1000: {
items: 3,
nav: true,
loop: false,
dots: true
}
}
});
</script>
<script>
$(function() {
$('.mutliple-address-tabs li').on('click', function() {
$('.mutliple-address-tabs li').removeClass('active');
$(this).addClass('active');
var currentIndex = $('.mutliple-address-tabs li').index(this);
$('.mutliple-address-content .tab-pane').removeClass('active');
$('.mutliple-address-content .tab-pane').eq(currentIndex).addClass('active');
});
});
</script>
</body>
<?php
echo $seoFContent = (isset($detailLayout['seoFcontent']) && $detailLayout['seoFcontent'] != '') ? $detailLayout['seoFcontent'] : '';
echo $footerScript1;
echo $footerScript2;
echo $footerScript3;
?>
</html>
<?php } ?>
<script>
$('#myModa1packageRateEnquiry').on('shown.bs.modal', function () {
const captcha = document.getElementById('captcha_two');
if (captcha) {
captcha.src = '<?php echo $baseUrl; ?>public/captcha/captcha.php?' + Date.now();
}
});
$('#myModa1Enquiry').on('shown.bs.modal', function () {
const captcha = document.getElementById('captcha_three');
if (captcha) {
captcha.src = '<?php echo $baseUrl; ?>public/captcha/captcha.php?' + Date.now();
}
});
</script>