| 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/junkdata/ineedtrip/application/layouts/scripts/ |
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'];
$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();
//echo $action; die();
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 charset="UTF-8">
<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/images/favicon.ico">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<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/assets/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 appmode = '<?php echo $options['appmode'] ?>';
var dvc = '<?php echo ($mydevice == "mobile") ? "m" : "d" ?>';
</script>
</head>
<body>
<!-- <div class="loader" >-->
<!-- <div class="loadingio-spinner-ripple-zdgradklyya">-->
<!-- <div class="ldio-50dj1g083ax">-->
<!-- <div></div> -->
<!-- </div>-->
<!-- </div>-->
<!-- </div>-->
<?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 lang="en">
<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/images/favicon.ico">
<?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);die;
$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;
$metaImage = (isset($detailLayout['metaImage']) && trim($detailLayout['metaImage']) != '') ? $detailLayout['metaImage'] : $options['websiteUrl'].'/public/images/ftr-logo.png';
?>
<meta name="image" content="<?php echo $metaImage; ?>">
<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 $options['websiteUrl'] . $_SERVER[REQUEST_URI]; ?>" />
<meta property="og:image" content="<?php echo $metaImage;?>" />
<meta name="image" content="<?php echo $metaImage;?>">
<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 $metaImage;?>">
<!-- 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">
<meta name="p:domain_verify" content="ad7f915dea4182cf9f24faa361ed56d5" />
<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 $metaImage;?>">
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-142190766-1"></script>
<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; ?>
<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="public/images/favicon.ico">
<link rel="preload" type="text/css" as="style" href="<?php echo $baseUrl ?>public/assets/css/common.css?v=<?= $cssversion ?>">
<link rel="preload" type="text/css" as="style" href="<?php echo $baseUrl ?>public/assets/css/main.css?v=<?= $cssversion ?>">
<link rel="preload" type="text/css" as="style" href="<?php echo $baseUrl ?>public/assets/css/font-awesome.min.css?v=<?= $cssversion ?>">
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiAyp8kv8JHgFVrJJLmE0tDMPKzSQ.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiEyp8kv8JHgFVrJJfecg.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLDz8Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiAyp8kv8JHgFVrJJLmE0tCMPI.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiAyp8kv8JHgFVrJJLmE0tDMPKzSQ.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiAyp8kv8JHgFVrJJLmE0tMMPKzSQ.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLBT5Z1JlFc-K.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLBT5Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLBT5Z11lFc-K.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLCz7Z1JlFc-K.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLCz7Z11lFc-K.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLDD4Z1JlFc-K.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLDD4Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLDD4Z11lFc-K.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLDz8Z1JlFc-K.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLDz8Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLDz8Z11lFc-K.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLEj6Z11lFc-K.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLFj_Z1JlFc-K.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLFj_Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLFj_Z11lFc-K.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLGT9Z11lFc-K.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLm21lVF9eO.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLm21lVFteOcEg.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLm21lVGdeOcEg.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLm81xVF9eO.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLm81xVFteOcEg.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLm81xVGdeOcEg.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLm111VF9eO.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLm111VFteOcEg.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLm111VGdeOcEg.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmg1hVF9eO.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmg1hVFteOcEg.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmr19VF9eO.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmr19VFteOcEg.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmr19VGdeOcEg.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmv1pVF9eO.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmv1pVFteOcEg.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmv1pVGdeOcEg.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmy15VF9eO.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiDyp8kv8JHgFVrJJLmy15VFteOcEg.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/fonts/poppins/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2" as="font" type="font/woff2" crossorigin>
<!-- <link rel="preload" href="<?php echo $baseUrl ?>public/assets/js/jquery.min.js?v=<?= $cssversion ?>" as="script" async defer>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/js/custom.js?v=<?= $cssversion ?>" as="script" async defer>
<link rel="preload" href="<?php echo $baseUrl ?>public/js/custom.js?v=<?= $cssversion ?>" as="script" async defer>
<link rel="preload" href="<?php echo $baseUrl ?>public/js/visa.js?v=<?= $cssversion ?>" as="script" async defer>
<link rel="preload" href="<?php echo $baseUrl ?>public/js/checkrate_sendenquiry.js?v=<?= $cssversion ?>" as="script" async defer>
<link rel="preload" href="<?php echo $baseUrl ?>public/js/common_function.js?v=<?= $cssversion ?>" as="script" async defer>
<link rel="preload" href="<?php echo $baseUrl ?>public/js/custom_mangal.js?v=<?= $cssversion ?>" as="script" async defer>
<link rel="preload" href="<?php echo $baseUrl ?>public/js/package_customize.js?v=<?= $cssversion ?>" as="script" async defer>
<link rel="preload" href="<?php echo $baseUrl ?>public/assets/js/select2.full.min.js?v=<?= $cssversion ?>" as="script" async defer>
<link rel="preload" href="<?php echo $baseUrl ?>public/countrycode/script.js?v=<?= $cssversion ?>" as="script" async defer>
<link rel="preload" href="<?php echo $baseUrl ?>public/js/function.js?v=<?= $cssversion ?>" as="script" async defer>
<link rel="preload" href="<?php echo $baseUrl ?>public/js/autocomplete.js?v=<?= $cssversion ?>" as="script" async defer>
<script rel="preload" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB0G1HvaynGZ2BP71ciLjVKUMqDfFu8YUA&libraries=places" as="script" async defer></script>
<script rel="preload" src="https://apis.google.com/js/api.js?v=<?= $cssversion ?>" as="script" async defer></script>
<script rel="preload" src="https://apis.google.com/js/platform.js?v=<?= $cssversion ?>" as="script" async defer></script> -->
<link rel="stylesheet" type="text/css" href="<?php echo $baseUrl ?>public/assets/css/font-awesome.min.css?v=<?= $cssversion ?>">
<link rel="stylesheet" type="text/css" href="<?php echo $baseUrl ?>public/assets/css/common.css?v=<?= $cssversion ?>">
<link rel="stylesheet" type="text/css" href="<?php echo $baseUrl ?>public/assets/css/main.css?v=<?= $cssversion ?>">
<script type='text/javascript' src='https://platform-api.sharethis.com/js/sharethis.js#property=61d2ec6acb125900193f457c&product=inline-share-buttons' async='async'></script>
<script>
var SITEURL = '<?php echo $baseUrl ?>';
var appmode = '<?php echo $options['appmode'] ?>';
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
];
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);
}
?>
<?php
echo $this->layout()->content;
echo $this->render("footer.phtml");
?>
</div>
<script type="text/javascript" src="public/assets/js/jquery.min.js?v=<?= $cssversion ?>"></script>
<!-- manish test -->
<script type="text/javascript">
$(document).ready(function() {
$('#partmanish').owlCarousel({
loop: true,
nav: true,
margin: 10,
responsiveClass: true,
responsive: {
0: {
items: 1,
dots: true,
nav: false
},
600: {
items: 1,
dots: true,
nav: false
},
1000: {
items: 2,
nav: true,
loop: false
}
}
});
});
</script>
<!-- manish test -->
<script type="text/javascript" src="public/assets/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/assets/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 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",
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) {
//event.preventDefault();
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();
var route = $(".tripType:checked").val();
if (route === '3') {
var returnvalue = true;
$(".countSectore").each(function(i, field) {
var ind = $(this).attr('counter');
var mytrip_city_from = $('#mytrip_city_from' + ind).val();
var mytrip_city_to = $('#mytrip_city_to' + ind).val();
var departure_dates = $('#departure_dates' + ind).val();
if (mytrip_city_from === '') {
alert('Please enter source city name');
returnvalue = false;
return false;
}
if (mytrip_city_to === '') {
alert('Please enter destination city name');
returnvalue = false;
return false;
}
if (departure_dates === '') {
alert('Please enter departure date');
returnvalue = false;
return false;
}
});
if (returnvalue) {
// $('.flightsearch').submit();
} else {
return false;
}
//console.log(returnvalue);
} else {
// 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");
// $(".formullist").removeClass("extend_width_list");
// $(".flight-search-flight1").removeClass("extend_width_list");
$(".flight-search-flight2").removeClass("extend_width2");
$(".apendn_2").removeClass("showsecond");
$(".formtitlecls").removeClass("showsecond");
// $(".formullist").removeClass("ss");
// $(".srch_form").removeClass("ss");
// $(".search-form-box").removeClass("extend_width");
// $(".formullist").removeClass("extend_width");
// $(".searchf1").removeClass("extend_width_input");
// $(".formtitlecls").removeClass("extend_width_formtitlecls");
$(".frmclose").removeClass("extend_width_frmclose");
// $(".ui-front").removeClass("extend_width_ui-front");
// $(".ui-front .ui-menu-item").removeClass("extend_width_ui-front_list");
// $(".formtitlecls").removeClass("extend_width_formtitlecls");
// $(".search-form-box").removeClass("extend_width_home-srch");
// $(".exchange_transfer").removeClass("frmhidesection");
$(".custom-nav").removeClass("frmhidesection");
}
}).focus(function() {
$(this).val('');
// debugger;
$(this).addClass("extend_width");
// $("#bannerslider").addClass("ss");
$(".search-box").addClass("extend_width2");
// $(".formullist").addClass("extend_width_list");
// $(".flight-search-flight1").addClass("extend_width_list");
$(".flight-search-flight2").addClass("extend_width2");
$(".apendn_2").addClass("showsecond");
$(".formtitlecls").addClass("showsecond");
// $(".formullist").addClass("ss");
// $(".srch_form").addClass("ss");
// $(".search-form-box").addClass("extend_width");
// $(".formullist").addClass("extend_width");
// $(".flight-search-flight1").addClass("extend_width_list");
// $(".searchf1").addClass("extend_width_input");
// $(".formtitlecls").addClass("extend_width_formtitlecls");
$(".frmclose").addClass("extend_width_frmclose");
// $(".ui-front").addClass("extend_width_ui-front");
// $(".ui-front .ui-menu-item").addClass("extend_width_ui-front_list");
// $(".formtitlecls").addClass("extend_width_formtitlecls");
// $(".search-form-box").addClass("extend_width_home-srch");
// $(".exchange_transfer").addClass("frmhidesection");
$(".custom-nav").addClass("frmhidesection");
// 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");
});
// $('.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');
$('.frmclose').removeClass('frmcloseshow');
});
$("#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);
}
},
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);
}
// 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");
});
var counter = 3;
$(document).on('click', '.tripType', function() {
var tripType = $(this).val();
var from = $('#from').val();
if (tripType == 2) {
$('.disableres').show();
$('.addSegment').hide();
$('.multitraveller').hide();
$('.block').hide();
$('#oneRound :input').prop("disabled", false);
$('#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 if (tripType == 3) {
$('.disableres').hide();
$('.multitraveller').show();
$('.block').show();
$('.addSegment').show();
$(".addSegment").trigger('click');
$(".addSegment").trigger('click');
$('#oneRound :input').prop("disabled", true);
$("#to").attr("readonly", "readonly");
} else {
$('.addSegment').hide();
$('.disableres').show();
$('.multitraveller').hide();
$('.block').hide();
$('#oneRound :input').prop("disabled", false);
$('#to').val('');
$('.Return').html('');
$('#return_date').val('');
$("#to").attr("readonly", "readonly");
$("#to").addClass("disabledcls");
}
});
$('.addSegment').click(function() {
var removeTag = ''
if (counter == 3) {
var CurrentDate = "<?= date('d M Y') ?>";
var CurrentDate2 = "<?= date('Y/m/d') ?>";
} else {
CurrentDate = '';
}
if (counter > 4) {
removeTag = `<li class="multicity_filghtremoveicon" id="removeDIV` + counter + `">
<a href="javascript:void(0);" style="margin-top: 6px;" index="` + counter + `" class="multiremove removeSeg"><i class="fa fa-minus-circle" aria-hidden="true"></i></a>
</li>`
}
if (counter == 6) {
$('.addSegment').hide();
}
$('.block').append(`<div class="DeleteRow_` + counter + `"><li class="multicity_filght">
<span class="formtitlecls" id="title_` + counter + `">Source city</span>
<div class="searchf1 searchinput">
<input class="form-control airport_search countSectore apendn_1` + counter + `" index="1` + counter + `" type="text" name="mytrip_city_from[]" id="mytrip_city_from` + counter + `" placeholder="Type source city.." value="" counter="` + counter + `" autocomplete="off" autosuggestion="off" />
<ul id="sourcesjd"></ul>
</div>
</li>
<li class="multicity_filght ">
<span class="formtitlecls" id="title_1` + counter + `">Destination city</span>
<div class="searchinput">
<input class="form-control airport_search apendn_2` + counter + `" index="2` + counter + `" type="text" name="mytrip_city_to[]" id="mytrip_city_to` + counter + `" placeholder="Type destination city.." value="" counter="` + counter + `" autocomplete="off" autosuggestion="off" />
<ul id="destinjd"></ul>
</div>
</li>
<li class="multicity_filghtdate">
<span class="formtitlecls" id="title_2` + counter + `">Departure Date</span>
<div class="date-parent searchinput">
<input class="form-control" type="text" index="` + counter + `" name="departure_dates[]" id="departure_dates` + counter + `" value="` + CurrentDate + `" counter="` + counter + `" readonly />
</div>
</li>
` + removeTag + `
<input type="hidden" id="airport_search_1` + counter + `" name="source_city[]" value="">
<input type="hidden" id="ContSysId_1` + counter + `" name="ContSysId_1[]" value="" />
<input type="hidden" id="airport_search_2` + counter + `" name="destination_city[]" value="">
<input type="hidden" id="ContSysId_2` + counter + `" name="ContSysId[]" value="" />
<input type="hidden" id="FromToCIty_1` + counter + `" name="source[]" value="">
<input type="hidden" id="FromToCIty_2` + counter + `" name="destination[]" value="">
<input type="hidden" id="departure_date` + counter + `" name="departure_date[]" value="` + CurrentDate2 + `">
<input type="hidden" id="return_date` + counter + `" name="return_date[]" value="">
<input type="hidden" id="mytrip_city_1` + counter + `" name="from_mytrip_city[]" value="">
<input type="hidden" id="mytrip_city_2` + counter + `" name="to_mytrip_city[]" value="">
<div class="clearfix"></div>
</div> `);
var mytrip_city_to = $('#mytrip_city_to' + (counter - 1)).val();
var ContSysId_1 = $('#ContSysId_1' + (counter - 1)).val();
var airport_search_2 = $('#airport_search_2' + (counter - 1)).val();
var FromToCIty_2 = $('#FromToCIty_2' + (counter - 1)).val();
var mytrip_city_2 = $('#mytrip_city_2' + (counter - 1)).val();
$('#mytrip_city_from' + (counter)).val(mytrip_city_to);
$('#ContSysId_1' + (counter)).val(ContSysId_1);
$('#airport_search_1' + (counter)).val(airport_search_2);
$('#FromToCIty_1' + (counter)).val(FromToCIty_2);
$('#mytrip_city_1' + (counter)).val(mytrip_city_2);
if (counter == 3) {
$('#title_' + counter).html('Source city');
$('#title_1' + counter).html('Destination city');
$('#title_2' + counter).html('Departure Date');
} else { //
$('#title_' + counter).html('');
$('#title_1' + counter).html('');
$('#title_2' + counter).html('');
}
$('#removeDIV' + (counter - 1)).hide();
$('#departure_dates' + counter).datepicker({
changeMonth: false,
dateFormat: "d M yy",
numberOfMonths: 2,
minDate: 0,
buttonImage: true,
buttonImageOnly: true,
beforeShow: function(ct, en) {
var index = $(this).attr('index');
var CheckIn = $("#departure_dates" + (index - 1)).val();
if (typeof CheckIn !== 'undefined') {
var dateMin = new Date(CheckIn);
var rMin = new Date(dateMin.getFullYear(), dateMin.getMonth(), dateMin.getDate());
$('#departure_dates' + index).datepicker("option", "minDate", rMin);
}
//console.log($(this).attr('index'));
},
onSelect: function(selectedDate, inst) {
var index = $(this).attr('index');
var dateMin = new Date(selectedDate);
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 FromFormatted = $.datepicker.formatDate('yy/mm/dd', theDate);
$('#departure_date' + (parseInt(index))).val(FromFormatted);
}
});
setTimeout(function() {
$.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 counter = $(this).attr('counter');
var name = $(this).attr('name');
var index = $(this).attr('index');
var value = ui.item.value;
console.log(index);
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");
if (name === 'mytrip_city_to[]') {
var fromcity = dddd[0] + '(' + ui.item.AirportCode + ')';
//console.log(fromcity);
//$('#mytrip_city_from' + (parseInt(counter) + 1)).attr('readonly', true);
//$('#mytrip_city_from' + (parseInt(counter) + 1)).removeClass('airport_search');
$('.apendn_1' + (parseInt(counter) + 1)).val(dddd[0]);
$('.fromText_1' + (parseInt(counter) + 1)).html(dddd[1]);
$('#mytrip_city_1' + (parseInt(counter) + 1)).val(dddd[1]);
$('#FromToCIty_1' + (parseInt(counter) + 1)).val(value);
$('#airport_search_1' + (parseInt(counter) + 1)).val(ui.item.AirportCode);
$('#ContSysId_1' + (parseInt(counter) + 1)).val(ui.item.ContSysId);
$('#mytrip_city_from' + (parseInt(counter) + 1)).val(fromcity);
}
}
}).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");
$('html, body').animate({
scrollTop: $("#bannerslider").offset().top - 460
}, 200);
//$(this).autocomplete('search');
});
});
}, 1000);
counter++;
});
$('body').on('click', '.removeSeg', function() {
var index = $(this).attr('index');
$(".DeleteRow_" + index).remove();
$('#removeDIV' + (index - 1)).show();
$('.addSegment').show();
counter--;
});
$(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');
});
$('.sortingpoint').click(function() {
$(this).children('i').toggleClass('fa-long-arrow-up fa-long-arrow-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();
}
});
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);
//alert("alph123a");
// console.log(mytrip_city_1);
});
});
$(document).ready(function() {
$(" #travller_search").on("click", function() {
$('.hotelserchcls').prop("disabled", false);
<?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;
var activitiesBox = ui.item.value;
//console.log(cityid);
$(".cityid").val(cityid);
$(".hcode").val(code);
window.location.href = 'activities/' + getSeoName1(activitiesBox).toLowerCase();
}
});
});
}, 1000);
<?php } ?>
</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?=111");
}
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;
var destinationBox = ui.item.value;
// console.log(cityid);
$(".cityid").val(cityid);
$(".hcode").val(code);
window.location.href = 'tour-destination/' + getSeoName1(destinationBox).toLowerCase() + '/';
}
});
});
}, 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() {
$('.hotelserchcls').prop("disabled", false);
$(".roomBoxMain").toggle("show_hiddenpart_hidden");
});
$('#travller_search').on("click", function() {
$(".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 nationality');
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,
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);
//console.log(c_out_date);
}
},
onSelect: function(selectedDate, inst) {
var tripType = $('.tripType:checked').val(); // retrieve the value
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(dateMin);
//console.log(Departure_dob);
///$('#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);
// 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.CityName || 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, 15));
},
response: function(e) {},
select: function(event, ui) {
var index = $(this).attr('index');
var value = ui.item.value;
$('.hotelserchcls').prop("disabled", false);
$('#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 } ?>
$(document).on('change', '.MealBaseArr', function() {
var value = $(this).val();
if (value === 'All') {
$('.MealBase_All').show();
} else {
$('.MealBase_' + value).removeClass('MealBase_All');
$('.MealBase_' + value).show();
$('.MealBase_All').hide();
$('.MealBase_' + value).addClass('MealBase_All');
}
});
<?php if (($modulename == 'hotels') && ($controller == 'index')) { ?>
function hotelscancellationpolicy(hotelId, optionId) {
$('#cancelationPlolicy').modal('show');
$.ajax({
type: "POST",
url: SITEURL + "hotel/hotel-cancelation-plolicy",
data: {
hotelId: hotelId,
optionId: optionId
},
beforeSend: function() {
},
success: function(result) {
$('#cancelationPlolicyDIV').html(result);
}
});
}
function saveHotelPassengerDetails() {
var b = 1;
var cont = true;
$(".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();
}
$(document).ready(function() {
localStorage.clear();
var timer2 = localStorage.getItem('timer');
if (timer2 === null) timer2 = "05:00";
$('.countdown').html(timer2);
var interval = setInterval(function() {
var timer = timer2.split(':');
var minutes = parseInt(timer[0], 10);
var seconds = parseInt(timer[1], 10);
--seconds;
minutes = (seconds < 0) ? --minutes : minutes;
if (minutes < 0) {
clearInterval(interval);
localStorage.removeItem('timer');
$('#sessionexpired').modal('show');
//$('button').show();
} else {
seconds = (seconds < 0) ? 59 : seconds;
seconds = (seconds < 10) ? '0' + seconds : seconds;
$('.countdown').html(minutes + ':' + seconds);
timer2 = minutes + ':' + seconds;
localStorage.setItem('timer', timer2);
}
}, 1000);
});
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);
if (response.idIpr == false) {
if (response.country != 'India') {
$('.pass').show();
$('.inputDisabled').removeAttr("disabled")
} else {
$('.pannumber').show();
}
}
}
}
});
<?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;
//alert(emailId);
//return false;
var mobile = response.UserData.mobile;
var CustomerSysId = response.UserData.CustomerSysId;
var FLBookingID = response.FLBookingID;
var lastInsertId = response.lastInsertId;
//alert(strReturnURL);
//return false;
$("#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>
</body>
<?php
echo $seoFContent = (isset($detailLayout['seoFcontent']) && $detailLayout['seoFcontent'] != '') ? $detailLayout['seoFcontent'] : '';
echo $footerScript1;
echo $footerScript2;
echo $footerScript3;
?>
<!--<script type="text/javascript">
$(window).on('load',function(){
$('#sessionModal').modal('show');
});
</script>-->
<script type="text/javascript">
<?php if (($modulename == 'default') && ($controller == 'index') && ($action == 'index')) {
} else { ?>
let sessTimeout = 900000;
function sessionshow() {
$('#sessionModal').modal({
backdrop: 'static',
keyboard: true,
show: true
});
}
var myTimeOut = setTimeout(sessionshow, sessTimeout);
$("body").click(function(event) {
// alert('manish');
clearTimeout(myTimeOut);
// console.log('clicked');
myTimeOut = setTimeout(sessionshow, sessTimeout);
});
<?php } ?>
</script>
<!-- Modal -->
<div class="modal fade" id="sessionModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Session Timeout</h5>
<!-- <button type="button" class="close" data-dismiss="modal" aria-label="Close">-->
<!-- <span aria-hidden="true">×</span>-->
<!-- </button>-->
</div>
<div class="modal-body">
<div style="text-align: center;"><img src="<?php echo $baseUrl; ?>public/images/stop_emoji.png" /> </div>
<div class="text_sesion" style="text-align: center;margin-top: 10px;">Are you still here? Please get back to home page and browse again!</div>
</div>
<div class="modal-footer">
<a href="<?php echo $baseUrl; ?>">
<button type="button" class="btn btn-primary getback">Get Back</button>
</a>
</div>
</div>
</div>
</div>
</html>
<?php } ?>