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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2b.hellogtx.com/application/layouts/scripts/layout.phtml
<?php
$object = Zend_Controller_Front::getInstance();
$options = $object->getParam('bootstrap')->getOption('bootstrap');
$session = new Zend_Session_Namespace('User');
//echo "<pre>"; print_r($session->data['MasterAgencySysId']); die();
$baseUrl = $options['siteUrl'];
$stylecss = $options['stylecss'];
$siteName = $options['siteName'];
$gtxBtoBsite = $options['gtxBtoBsite'];
$MenuOption = isset($options['MenuOption']) ? $options['MenuOption'] : 0;
$gtxagencysysid = $options['gtxagencysysid'];
$tollfreenumber = $options['tollfreenumber'];
$whatsappnumber = $options['whatsappnumber'];
$modulename = $object->getRequest()->getModuleName();
$controller = $object->getRequest()->getControllerName();
$action = $object->getRequest()->getActionName();
$TransFailedMsg = new Zend_Session_Namespace('TransFailedMsg');
$contactDetail = Zend_Controller_Action_HelperBroker::getStaticHelper('Custom')->getContactDetailForFooter();

$tollfreenumber = ($contactDetail['phone']) ? $contactDetail['phone'] : $tollfreenumber;
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']);
$currentPaymentGateway = Catabatic_Helper::getCurrentPaymentGateway();
$cssversion = 1.4;
$REQUEST_URI = $_SERVER['REQUEST_URI'];
$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'] : '';
$siteName = isset($options['siteName']) ? $options['siteName'] : '';
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <base href="<?php echo Catabatic_Helper::getSiteUrl(); ?>" />
    <!-- <title><?php  // echo isset($options['Title']) ? $options['Title'] : $options['siteName']; 
                ?></title> -->
    <!--  <base href="<?php // echo Catabatic_Helper::getSiteUrl(); 
                        ?>" />
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -->

    <!-- Viewport metatags -->
    <!-- <meta name="HandheldFriendly" content="true" />
    <meta name="MobileOptimized" content="320" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> -->

    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!--  <meta name="viewport" content="width=device-width, initial-scale=1"> -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="shortcut icon" href="<?php echo $baseUrl ?>public/upload/<?php echo $stylecss ?>/images/favicon.ico ">

    <?php
    $commonmetaTitle = (isset($commonBoxVal_['metaTitle']) && trim($commonBoxVal_['metaTitle']) != '') ? trim($commonBoxVal_['metaTitle']) : $siteName;
    $commonmetaTitle1 = (isset($commonBoxVal_['Title']) && trim($commonBoxVal_['Title']) != '') ? trim($commonBoxVal_['Title']) : $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;
    $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'] : $baseUrl . 'public/upload/' . $stylecss . '/images/ftr-logo.png';
    ?>

    <meta name="image" content="<?php echo $metaImage; ?>">
    <title><?php echo $commonmetaTitle1; ?></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['b2cSiteUrl'] . $_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">

    <link rel="alternate" href="<?php echo $options['b2cSiteUrl'] . $_SERVER['REQUEST_URI']; ?>" hreflang="en-us" />
    <link rel="canonical" href="<?php echo $options['b2cSiteUrl'] . $_SERVER['REQUEST_URI']; ?>" />
    <meta name="image" content="<?php echo $metaImage; ?>">



    <!-- iOS webapp metatags -->
    <!-- <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" /> -->

    <!-- iOS webapp icons -->
    <!-- <link rel="apple-touch-icon-precomposed" href="<?php echo $baseUrl; ?>public/asset/assets/images/ios/fickle-logo-72.png" />
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo $baseUrl; ?>public/asset/assets/images/ios/fickle-logo-72.png" />
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo $baseUrl; ?>public/asset/assets/images/ios/fickle-logo-114.png" /> -->

    <!--===============================================================================================-->
    <link rel="icon" type="image/png" sizes="32x32" href="<?php echo $baseUrl; ?>public/upload/<?php echo $gtxagencysysid; ?>/images/favicon-icon.png" />
    <!--===============================================================================================-->
    <?php if (($modulename == 'byo') && ($controller == 'index')) { ?>
        <link rel="stylesheet" href="<?php echo $baseUrl; ?>/public/css/animate.css">
        <link rel="stylesheet" href="<?php echo $baseUrl; ?>/public/css/icomoon.css">
        <link rel="stylesheet" href="<?php echo $baseUrl; ?>/public/css/bootstrap.css">
        <link rel="stylesheet" href="<?php echo $baseUrl; ?>/public/css/flexslider.css">
        <link rel="stylesheet" href="<?php echo $baseUrl; ?>/public/css/jcarousel.responsive.css">
        <link rel="stylesheet" href="<?php echo $baseUrl; ?>/public/css/style.css">
        <link rel="stylesheet" href="<?php echo $baseUrl; ?>/public/css/custom.css">
        <link rel="stylesheet" type="text/css" href="<?php echo $baseUrl; ?>/public/assets/css/font-awesome/css/font-awesome.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo $baseUrl; ?>/public/css/tabs.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo $baseUrl; ?>/public/css/cs-select.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo $baseUrl; ?>/public/assets/css/plugins/icheck/skins/all.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo $baseUrl; ?>/public/css/easy-responsive-tabs-1.css " />
        <link rel="stylesheet" href="<?php echo $baseUrl; ?>/public/css/responsive-tabs-pop.css">
        <link rel="stylesheet" href="<?php echo $baseUrl; ?>public/css/selectize.bootstrap3.css">
    <?php } ?>
    <?php if (($modulename == 'dashboard') && ($controller == 'index') && $action == 'createquery') { ?>
        <link rel="stylesheet" href="<?php echo $baseUrl; ?>public/css/selectize.bootstrap3.css">
    <?php } ?>
    <?php if (($modulename == 'finance') && ($controller == 'ledger')) { ?>
        <!-- <link rel="stylesheet" href="<?php echo $baseUrl; ?>/public/css/style.css"> -->

    <?php } ?>
    <!-- Plugin Css Put Here -->
    <link href="<?php echo $baseUrl; ?>public/asset/assets/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="<?php echo $baseUrl; ?>public/asset/assets/css/plugins/jquery.datetimepicker.css">
    <link rel="stylesheet" href="<?php echo $baseUrl; ?>public/asset/assets/css/plugins/icheck/skins/all.css">

    <!-- Plugin Css End -->
    <!-- Custom styles Style -->
    <link href="<?php echo $baseUrl; ?>public/search/css/theme.css?v=1.0" rel="stylesheet">
    <?php if ($stylecss == 'connectindia' || $stylecss == 'atgtours' || $stylecss == 'tripjack') { ?>
        <link href="<?php echo $baseUrl; ?>public/asset/assets/css/<?php echo $stylecss; ?>style.css?v=1.0" rel="stylesheet">
    <?php } else { ?>
        <link href="<?php echo $baseUrl; ?>public/asset/assets/css/style.css?v=1.0" rel="stylesheet">
    <?php } ?>

    <!-- Custom styles Style End-->

    <!-- Responsive Style For-->
    <link href="<?php echo $baseUrl; ?>public/asset/assets/css/responsive.css" rel="stylesheet">
    <link href="<?php echo $baseUrl; ?>public/asset/assets/css/jquery-ui.css" rel="stylesheet">
    <link href="<?php echo $baseUrl; ?>public/asset/tipped/tipped.css" rel="stylesheet" />
    <link rel="stylesheet" href="<?php echo $baseUrl; ?>public/countrycode/style.css">
    <link rel="stylesheet" href="<?php echo $baseUrl; ?>public/asset/assets/css/plugins/bootstrap-multiselect.css">
    <!--accordin-menu-->
    <link rel="stylesheet" href="<?php echo $baseUrl; ?>public/asset/assets/css/easy-responsive-tabs.css">
    <?php if (($modulename != 'byo')) { ?>
        <link href="<?php echo $baseUrl; ?>public/asset/assets/css/jquery.mCustomScrollbar.css" rel="stylesheet" />
    <?php }
    if (($modulename != 'package') && ($controller != 'search-result')) { ?>
        <link rel="stylesheet" type="text/css" href="<?php echo $baseUrl; ?>public/asset/assets/css/easy-responsive-tabs-1.css " />

    <?php } ?>
    <link href="<?php echo $baseUrl; ?>public/css/icon_fonts/css/all_icons.min.css" rel="stylesheet">
    <?php if (($modulename == 'holidays')) { ?>
        <link rel="stylesheet" type="text/css" href="<?php echo $baseUrl; ?>public/asset/assets/css/select2.min.css?v=3.7">

    <?php }
    if (($modulename == 'holidays') && ($controller == 'detail') && ($action == 'index')) {
        echo $this->partial('models/modal-change-options.phtml', ['baseUrl' => $baseUrl]);
    } ?>
    <?php //echo"<pre>";print_r($action);die('here');
    ?>
    <link href="<?php echo $baseUrl; ?>public/upload/<?php echo $gtxagencysysid; ?>/css/<?php echo $stylecss; ?>.css?v=1.0" rel="stylesheet">
    <!--===============================================================================================-->
    <style>
        @keyframes placeHolderShimmer {
            0% {
                background-position: -468px 0
            }

            100% {
                background-position: 468px 0
            }
        }

        .flightSingleLoadLogo {
            animation-duration: 1s;
            animation-fill-mode: forwards;
            animation-iteration-count: infinite;
            animation-name: placeHolderShimmer;
            animation-timing-function: linear;
            background: #f6f7f8;
            background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
            background-size: 1000px 104px;
            height: 37px;
            position: relative;
            overflow: hidden;
            width: 15%;
            margin: auto;
        }

        .flightSingleLoad {
            animation-duration: 1s;
            animation-fill-mode: forwards;
            animation-iteration-count: infinite;
            animation-name: placeHolderShimmer;
            animation-timing-function: linear;
            background: #f6f7f8;
            background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
            background-size: 1000px 104px;
            height: 10px;
            position: relative;
            overflow: hidden;
            width: 30%;
            margin: auto;
        }

        .flightSingleLoadTime {
            animation-duration: 1s;
            animation-fill-mode: forwards;
            animation-iteration-count: infinite;
            animation-name: placeHolderShimmer;
            animation-timing-function: linear;
            background: #f6f7f8;
            background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
            background-size: 1000px 104px;
            height: 10px;
            position: relative;
            overflow: hidden;
            width: 90%;
            margin: auto;
        }

        .flightSingleLoadfare {
            animation-duration: 1s;
            animation-fill-mode: forwards;
            animation-iteration-count: infinite;
            animation-name: placeHolderShimmer;
            animation-timing-function: linear;
            background: #f6f7f8;
            background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
            background-size: 1000px 104px;
            height: 30px;
            position: relative;
            overflow: hidden;
            width: 90%;
            margin: auto;
        }

        .flightsorting {
            animation-duration: 1s;
            animation-fill-mode: forwards;
            animation-iteration-count: infinite;
            animation-name: placeHolderShimmer;
            animation-timing-function: linear;
            background: #f6f7f8;
            background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
            background-size: 1000px 104px;
            height: 20px;
            position: relative;
            overflow: hidden;
            width: 100%;
            margin: auto;
        }

        .flightFilter {
            animation-duration: 1s;
            animation-fill-mode: forwards;
            animation-iteration-count: infinite;
            animation-name: placeHolderShimmer;
            animation-timing-function: linear;
            background: #f6f7f8;
            background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
            background-size: 1000px 104px;
            height: 10px;
            position: relative;
            overflow: hidden;
            width: 90%;
            margin: auto;
        }

        .removeBaggage {
            float: right;
            /*margin-top: -32px;*/
            margin-top: -23px;
            display: block;
            color: #000 !important;
            padding: 0px 20px 13px 35px;
            cursor: pointer;
        }
    </style>
    <?php if (($modulename == 'holidays')) { ?>
        <style>
            .ui-widget-content {
                z-index: 9999999999 !important;
            }

            label {
                font-size: 14px;
            }
        </style>
    <?php } ?>

    <script>
        var SITEURL = '<?php echo $baseUrl ?>';
        var gtxagencysysid = '<?php echo $gtxagencysysid ?>';
        var appmode = '<?php echo $options['appmode'] ?>';
        var dvc = '<?php echo ($mydevice == "mobile") ? "m" : "d" ?>';
        var module = '<?php echo $modulename ?>';
        var controller = '<?php echo $controller ?>';
        var action = '<?php echo $action ?>';
    </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>
</head>

<body>
    <?php if ($action != 'hotel-voucher-download') {
        if ($stylecss == 'fly24hrs') {
            echo $this->render("new_nav_fly.phtml");
        } else if ($stylecss == 'mytravelbazaar' || $stylecss == 'staging_mytravelbazaar' || $stylecss == 'uat_mytravelbazaar') {
            echo $this->render("new_nav_mytravelbazaar.phtml");
        } else {
            echo $this->render("new_nav.phtml");
        }
    } ?>
    <section id="main-container" ng-app="myIndianHolidaysApp">
        <?php
        if ($MenuOption == 0 && $action != 'hotel-voucher-download') {
            echo $this->render("left-menu.phtml");
        }
        ?>
        <section id="<?= ($MenuOption == 0) ? 'min-wrapper' : 'min-wrapper-new' ?>" class="active">
            <?php
            //if (($modulename != 'finance') && ($controller != 'deposit')) {
            echo $this->partial('models/deposit-payment.phtml', ['baseUrl' => $baseUrl]);
            //}
            echo $this->layout()->content;
            // echo $this->render("new_footer.phtml");

            ?>
        </section>
        <div class="clearfix"></div>
    </section>
    <div class="clearfix"></div>

    <?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 "<pre>";print_r($data);die;
    echo $this->partial('models/modal-hotel-view-and-options.phtml', ['baseUrl' => $baseUrl]);
    echo $this->partial('models/modal-enquiry.phtml', ['baseUrl' => $baseUrl, 'siteName' => $siteName, 'stylecss' => $stylecss, 'tollfreenumber' => $tollfreenumber, 'POPUPCOOKIESENQUIRY' => $getMypopCookie]);
    echo $this->partial('models/modal-add-customer.phtml', ['baseUrl' => $baseUrl, 'gtxagencysysid' => $gtxagencysysid, 'siteName' => $siteName, 'stylecss' => $stylecss, 'gtxBtoBsite' => $gtxBtoBsite, 'tollfreenumber' => $tollfreenumber, 'POPUPCOOKIESENQUIRY' => $getMypopCookie]);
    if (($modulename == 'holidays') && ($controller == 'search-result') && ($action == 'compare-details')) {
        echo $this->partial('models/modal-checkrate-enquiry.phtml', $data);
    }
    // echo $this->partial('models/modal-enquiry2.phtml', ['baseUrl' => $baseUrl, 'siteName' => $siteName, 'tollfreenumber' => $tollfreenumber, 'POPUPCOOKIESENQUIRY' => $getMypopCookie]);
    if ($action != 'hotel-voucher-download') {
        if ($session->data['MasterAgencySysId'] == '5626') {
            echo $this->render("new_footer_travelbank.phtml");
        } else if ($stylecss == 'fly24hrs') {
            echo $this->render("new_footer_fly.phtml");
        } else if ($stylecss == 'mytravelbazaar' || $stylecss == 'staging_mytravelbazaar' || $stylecss == 'uat_mytravelbazaar') {
            echo $this->render("new_footer_mytravelbazaar.phtml");
        } else {
            echo $this->render("new_footer.phtml");
        }
    }

    ?>

    <!--===============================================================================================-->

    <!--Layout Script start -->
    <?php if (($modulename == 'byo' || $modulename == 'dashboard') && ($controller == 'index')) { ?>

        <?php
        // show only in tour package result page
        if (($modulename == 'byo' || $modulename == 'dashboard') && ($controller == 'index') && ($action == 'itinerary-desc-details' || $action == 'createquery' || $action == 'hotel-voucher-download')) {
        } else {
        ?>
            <script src="<?php echo $baseUrl; ?>public/js/modernizr-2.6.2.min.js"></script>
            <!-- jQuery -->
            <script src="<?php echo $baseUrl; ?>public/js/jquery.min.js"></script>
        <?php } ?>
        <!-- <script src="<?php echo $baseUrl; ?>public/js/bootstrap.min.js"></script> -->
        <script src="<?php echo $baseUrl; ?>public/js/jquery.easing.1.3.js"></script>
        <script src="<?php echo $baseUrl; ?>public/js/jquery.waypoints.min.js"></script>
        <!-- Waypoints -->
        <script src="<?php echo $baseUrl; ?>/public/js/jquery.stellar.min.js"></script>
        <!-- Flexslider -->
        <script src="<?php echo $baseUrl; ?>/public/js/jquery.flexslider-min.js"></script>
        <!-- Main -->
        <script src="<?php echo $baseUrl; ?>/public/js/main.js"></script>
        <script src="<?php echo $baseUrl; ?>/public/js/jquery.validate.min.js"></script>
        <script src="<?php echo $baseUrl; ?>/public/assets/js/jquery.datetimepicker.js"></script>
        <script src="<?php echo $baseUrl; ?>/public/js/hotels.js"></script>
        <script>
            $(window).scroll(fixDiv);
        </script>
    <?php } else { ?>
        <script src="<?php echo $baseUrl; ?>public/asset/assets/js/lib/jquery-1.12.4.min.js"></script>

    <?php } ?>
    <script type="text/javascript" src="<?php echo $baseUrl; ?>public/asset/assets/js/color.js"></script>

    <script type="text/javascript" src="<?php echo $baseUrl; ?>public/asset/assets/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="<?php echo $baseUrl; ?>public/asset/assets/js/multipleAccordion.js"></script>

    <script type="text/javascript" src="<?php echo $baseUrl; ?>public/asset/assets/js/pages/layout.js"></script>
    <!--Layout Script End -->
    <script type="text/javascript" src="<?php echo $baseUrl; ?>public/js/jquery-ui-1.12.1.js"></script>
    <!-- MiniColors Library Script Start -->
    <script src="<?php echo $baseUrl; ?>public/asset/assets/js/jquery.minicolors.min.js"></script>
    <!-- MiniColors Library Script Start -->

    <!-- Date & Time Picker Library Script Start -->
    <script src="<?php echo $baseUrl; ?>public/asset/assets/js/jquery.datetimepicker.js"></script>
    <!-- Date & Time Picker Library Script End -->

    <!--Demo for Date, Time Color Picker Script Start -->

    <script src="<?php echo $baseUrl; ?>public/asset/assets/js/pages/pickerTool.js?v=<?php echo $cssversion; ?>"></script>
    <script src="<?php echo $baseUrl; ?>public/asset/assets/js/lib/owl.carousel.js"></script>
    <script src="<?php echo $baseUrl; ?>public/asset/assets/js/function.js"></script>
    <script src="<?php echo $baseUrl; ?>public/asset/tipped/tipped.js"></script>
    <script src="<?php echo $baseUrl; ?>public/countrycode/script.js?rv=1144"></script>
    <script src="https://checkout.razorpay.com/v1/checkout.js"></script>
    <?php
    $scriptsAngular = $this->headScript(); // include the angular js here

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


    if (($modulename == 'default') && ($controller == 'dashboard') && ($action == 'index')) {
        $scriptsAngular->appendFile("$baseUrl/public/js/ng/homepage.js");
    }
    if (($modulename == 'holidays') && ($controller == 'search-result') && ($action == 'index')) {
        $scriptsAngular->appendFile("$baseUrl/public/js/ng/package_search.js?v=$cssversion");
    }
    if (($modulename == 'detail') && ($controller == 'index') && ($action == 'index')) {
        $scriptsAngular->appendFile("$baseUrl/public/js/ng/controller.js");
    }

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

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

    $scriptsAngular->appendFile("$baseUrl/public/js/ng/footer.js");


    echo $scriptsAngular;


    ?>

    <?php
    if (($modulename == 'staff') && ($controller == 'index')) {
    ?>
        <script src="<?php echo $baseUrl; ?>public/asset/assets/js/ng/staff.js"></script>
    <?php
    }
    ?>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/0.9.13/js/bootstrap-multiselect.js"></script>

    <script src="https://use.fontawesome.com/bd0355788f.js"></script>
    <!--Demo for Date, Time Color Picker Script End -->

    <!--Layout Script End -->
    <script type="application/x-javascript">
        $(function() {
            $(".header-nav .sub-categories li a").on("click", function(event) {
                event.stopPropagation();
            });
        });
        $(document).ready(function() {


            $('[data-toggle="tooltip"]').tooltip();
        });

        function GetData(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;
        }

        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 alertfunction() {
            alert('Coming soon...');
            return false;
        }
        $(function() {
            $('#multipleSelect').multiselect({
                includeSelectAllOption: true,
            });
        });
    </script>

    <script src="<?php echo $baseUrl; ?>public/js/login.js"></script>
    <script>
        $(document).on('click', '.refreshBalan', function() {
            $.ajax({
                url: SITEURL + 'dashboard/index/updatebalance',
                type: 'POST',
                dataType: 'json',
                beforeSend: function() {
                    $('.refreshBalan').addClass("fa-spin");
                },
                success: function(result) {
                    if (result.status == true) {
                        $('.creditBalance').html(result.Balance);
                        $('.refreshBalan').removeClass("fa-spin");
                    } else {
                        $('.refreshBalan').removeClass("fa-spin");
                        alert(result.message);
                    }
                },
                error: function(result) {
                    $('.refreshBalan').removeClass("fa-spin");
                    alert('Oops unable to connect with server!!');
                }

            });

        });

        $("#update_customer_data").on('submit', function(e) {
            e.preventDefault();
            var data = $(this).serialize();
            var fd = new FormData();
            var files1 = $('#document_file3')[0].files[0];
            var files2 = $('#document_file1')[0].files[0];
            var files3 = $('#document_file18')[0].files[0];
            fd.append('file3', files1);
            fd.append('file1', files2);
            fd.append('file18', files3);
            var params = new URLSearchParams(data);
            params.forEach((value, key) => {
                fd.append(key, value);
            });
            $.ajax({
                url: SITEURL + 'dashboard/index/updateprofile',
                type: 'POST',
                data: fd,
                dataType: 'json',
                contentType: false,
                processData: false,
                beforeSend: function() {
                    $('.change').html('<i class="ace-icon fa fa-spinner fa-spin orange bigger-125"></i> Please wait...');
                },
                success: function(result) {
                    if (result.status == true) {
                        $('.msg').html(result.message).css('color', 'green');
                        var LogoIconName = $('#LogoIconName').val();
                        $('.LogoIconNameImageDiv').html('<img src="' + LogoIconName + '" height="50px">');
                    } else {
                        $('.msg').html(result.message).css('color', 'red');
                    }
                    $('.change').html('Update Profile');
                },
                error: function(result) {
                    $('.change').html('Update Profile');
                    $('.change').removeAttr('disabled', 'disabled');
                    alert('Oops unable to connect with server!!');
                }

            });
            //alert('fsdfds');return false;
        });
    </script>
    <script>
        $("#addUserForm").on('submit', function(e) {
            e.preventDefault();
            var data = $(this).serialize();
            if ($('#title').val() == '') {
                $('.msg').html('Please enter salutation').css('color', 'red');
                $('#title').focus();
                return false;
            }
            if ($('#fname').val() == '') {
                $('.msg').html('Please enter first name').css('color', 'red');
                $('#fname').focus();
                return false;
            }
            if ($('#lname').val() == '') {
                $('.msg').html('Please enter last name').css('color', 'red');
                $('#lname').focus();
                return false;
            }
            if ($('#mobile').val() == '') {
                $('.msg').html('Please enter mobile number').css('color', 'red');
                $('#mobile').focus();

                return false;
            }
            if ($('#email').val() == '') {
                $('.msg').html('Please enter email id').css('color', 'red');
                $('#email').focus();
                return false;
            }

            $.ajax({
                url: SITEURL + 'staff/index/add-staff',
                type: 'POST',
                data: data,
                dataType: 'json',
                beforeSend: function() {
                    $('.addUser').html('<i class="ace-icon fa fa-spinner fa-spin orange bigger-125"></i> Please wait...');
                },
                success: function(result) {
                    if (result.status == true) {
                        $('.msg').html(result.message).css('color', 'green');
                        window.location.href = '/staff';
                    } else {
                        $('.msg').html('User Exists!!').css('color', 'red');
                    }
                    $('.addUser').html('Submit');
                },
                error: function(result) {

                    alert('Oops unable to connect with server!!');
                }

            });
            //alert('fsdfds');return false;
        });
        <?php
        if (isset($TransFailedMsg->params) && !empty($TransFailedMsg->params)) {
        ?>
            alert('<?= $TransFailedMsg->params ?>');
        <?php
            Zend_Session::namespaceUnset('TransFailedMsg');
        }
        ?>

        function toggleIcon(e) {
            $(e.target)
                .prev('.panel-heading')
                .find(".more-less")
                .toggleClass('glyphicon-plus glyphicon-minus');
        }
        $('.panel-group').on('hidden.bs.collapse', toggleIcon);
        $('.panel-group').on('shown.bs.collapse', toggleIcon);
        $("#booking_details_offline").on('submit', function(e) {
            e.preventDefault();
            var currLoc = $(location).attr('href');
            $('#currLoc').val(currLoc);
            var data = $(this).serialize();
            var PaymentMode = $('#booking_details_offline select[name="PaymentMode"]').val();
            if ($('#booking_details_offline input[name="Amount"]').val() == '') {
                $('#msg').html('Please enter amount').css('color', 'red').fadeIn().delay(3000).fadeOut();
                $('#booking_details_offline input[name="Amount"]').focus();
                return false;
            }
            if ($('#booking_details_offline input[name="RefrenceNo"]').val() == '' && PaymentMode !== 'ONLINE') {
                $('#msg').html('Please enter your refrence no.').css('color', 'red').fadeIn().delay(3000).fadeOut();
                $('#booking_details_offline input[name="RefrenceNo"]').focus();
                return false;
            }

            if ($('#booking_details_offline input[name="CreditDate"]').val() == '' || $('#booking_details_offline input[name="CreditDate"]').val() == '__/__/____') {
                $('#msg').html('Please enter credit date').css('color', 'red').fadeIn().delay(3000).fadeOut();
                $('#booking_details_offline input[name="CreditDate"]').focus();
                return false;
            }
            if ($('#booking_details_offline input[name="Remark"]').val() == '') {
                $('#msg').html('Please enter remark.').css('color', 'red').fadeIn().delay(3000).fadeOut();
                $('#booking_details_offline input[name="Remark"]').focus();
                return false;
            }
            $('.deposit').attr('disabled', 'disabled');

            $.ajax({
                url: SITEURL + 'finance/deposit',
                type: 'POST',
                data: data,
                dataType: 'json',
                success: function(result) {
                    // debugger;
                    if (result.status) {
                        if (result.PaymentMode) {
                            var guid = result.guid;
                            var walletCode = result.walletCode;
                            var stringData = result.stringData;
                            var strReturnURL = result.strReturnURL;
                            var TPSysId = result.TPSysId;
                            var amount = result.amount;
                            var gtxagencysysid = result.gtxagencysysid;
                            var gtxagentsysid = result.gtxagentsysid;
                            var lastInsertId = result.lastInsertId;
                            var name = result.UserData.name;
                            var emailId = result.UserData.email;
                            var mobile = result.UserData.mobile;
                            var CustomerSysId = result.UserData.CustomerSysId;


                            $("#guid").val(guid);
                            $("#securecode").val(walletCode);
                            $("#returnURL").val(strReturnURL);
                            $("#errorURL").val(strReturnURL);
                            $("#stringData").val(stringData);
                            $("#TPSysId").val(TPSysId);
                            $("#premium_val").val(amount);
                            $("#AgencyUserSysId").val(gtxagentsysid);
                            $("#AgencySysId").val(gtxagencysysid);
                            $("#lastInsertId").val(lastInsertId);
                            $("#custFirstname").val(name);
                            $("#custemail").val(emailId);
                            $("#custphone").val(mobile);
                            $("#CustomerSysId").val(CustomerSysId);
                            setTimeout(function() {
                                //$("#paymentsubmit").submit();
                            }, 2000);
                        } else {
                            $('#msg').html(result.message).css('color', 'green').fadeIn().delay(3000).fadeOut();
                            location.reload(true);
                        }
                    } else {
                        $('.deposit').removeAttr('disabled', 'disabled');
                        $('#msg').html(result.message).css('color', 'red').fadeIn().delay(3000).fadeOut();
                        //location.reload(true);
                        return false;
                    }
                },
                error: function() {
                    //  debugger;
                    $('.deposit').removeAttr('disabled', 'disabled');
                    alert('Oops unable to connect with server!!');
                }
            });
        });
        $(document).on('click', '.SyncLedger', function() {
            $.ajax({
                type: "POST",
                url: SITEURL + "finance/ledger",
                dataType: 'json',
                data: {
                    SaveAction: 'sync',
                },
                beforeSend: function() {
                    $(".SyncLedger").html('Please wait..');
                    $('.SyncLedger').attr('disabled', 'disabled');
                },
                success: function(response) {
                    if (response.success) {
                        $(".SyncLedger").html('Sync Ledger');
                        window.location.href = '/finance/ledger';
                    } else {
                        alert('Unable to sync');
                    }
                }
            });
        });

        function openSubmenu(x) {
            if ($("#mainMenu" + x).is(":checked")) {
                $('.removeAttr' + x).click();
                $(".open_" + x).show();
            } else {
                $('.removeAttr' + x).removeAttr('checked');
                $(".open_" + x).hide();
            }
        }

        function openMainmenu(x) {
            //var count_checked = $(".check_checkboxsub"+x+"").length; 
            var RR = $('.check_checkboxsub' + x).is(":checked");
            if (RR === false) {
                $('#mainMenu' + x).removeAttr('checked');
            }
        }
        onLoadCheck();

        function onLoadCheck() {
            $('.check_checkbox:checked').each(function(index, data) {
                var x = $(this).attr('index');
                $(".open_" + x).show();
                //console.log(x);
            });
        }
        $("#LogoIcon").on('change', function() {

            var fd = new FormData();
            var files = $('#LogoIcon')[0].files[0];
            var ext = files.name.substring(files.name.lastIndexOf('.') + 1);
            if ($.inArray(ext, ['jpg', 'jpeg', 'png', 'gif']) === -1 && ext !== '') {
                alert('Invalid Image file format! Only formats are allowed : .jpg, .jpeg, .png, .gif');
                $('#LogoIcon').val('');
                return false;
            }

            var fileUpload = document.getElementById("LogoIcon");
            //Initiate the FileReader object.
            var reader = new FileReader();
            //Read the contents of Image File.
            reader.readAsDataURL(fileUpload.files[0]);
            reader.onload = function(e) {
                var image = new Image();
                image.src = e.target.result;
                image.onload = function() {
                    var height = this.height;
                    var width = this.width;
                    console.log(width + " " + height);
                    //                    if (width > '160' || height > '50') {
                    //                        alert("Width and Height must not be exceed by 154x45px.");
                    //                        return false;
                    //                    }
                    fd.append('file', files);
                    $.ajax({
                        url: '/dashboard/index/upload-agent-logo',
                        type: 'post',
                        data: fd,
                        dataType: 'json',
                        contentType: false,
                        processData: false,
                        success: function(response) {
                            if (response.status == 'success') {
                                $('#LogoIconName').val(response.fileName);
                            } else {
                                alert('File not uploaded');
                            }
                        }
                    });
                };
            }


        });
        <?php if (($modulename == 'bookings' || $modulename == 'flight-inventory')) { ?>
            setTimeout(function() {

                $.getJSON('/hotels/index/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, 20));
                        },
                        response: function(e) {},

                        select: function(event, ui) {
                            var index = $(this).attr('index');
                            ui.item.value = ui.item.CityName;
                        }
                    }).focus(function() {

                    });

                });
            }, 1000);
            setTimeout(function() {
                $.getJSON(SITEURL + 'public/data/dynamic/flight_destinations.json', function(source) {
                    $(".airport_search").autocomplete({
                        minLength: 3,
                        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));
                        },
                        response: function(e) {
                            //console.log(e);
                        },
                        select: function(event, ui) {
                            ui.item.value = ui.item.AirportCode;
                        }
                    });

                });
            }, 1000);
            $(document).on('click', '.CheckStatus', function() {
                var ChangeRequestId = $(this).attr('ChangeRequestId');
                var BookingId = $(this).attr('BookingId');
                var countryCode = $(this).attr('countryCode');
                $('#AmendmentStatus').modal('show');
                $.ajax({
                    type: "POST",
                    url: SITEURL + "flight/amendment-details",
                    dataType: 'html',
                    data: {
                        amendmentId: ChangeRequestId,
                        BookingId: BookingId,
                        countryCode: countryCode,
                    },
                    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).on('click', '.CustInvoice', function() {
                var data = $(this).attr('data');
                $('#CustInvoice').modal('show');
                $.ajax({
                    type: "POST",
                    url: SITEURL + "flight/customer-invoice",
                    dataType: 'json',
                    data: {
                        data: data,
                    },
                    beforeSend: function() {
                        $(".loadingloader").html('<img src="<?php echo $baseUrl; ?>public/images/loader-sm.gif"/>');
                    },
                    success: function(response) {
                        if (response.success) {
                            $(".loadingloader").html('Submit');
                            var passenger = response.FlightBooking.passenger;
                            $('#cname').val(passenger[0].FirstName + ' ' + passenger[0].LastName);
                            $('#ids').val(response.FlightBooking.data.id);
                            $('#InvoiceNo').val(response.FlightBooking.data.InvoiceNo);
                            $('#address').val(response.FlightBooking.data.address);
                            $('#data').val(data);
                            var InvoiceDate = response.FlightBooking.data.InvoiceDate;
                            console.log(response.FlightBooking.data.InvoiceDate);
                            if (InvoiceDate) {
                                var res = InvoiceDate.split("-");
                                $('#InvoiceDate').val(res[2] + '/' + res[1] + '/' + res[0]);
                            } else {
                                $('#InvoiceDate').val('__/__/____');
                            }

                        }
                    }
                });
            });

            $(document).on('click', '.ETicketpr', function() {
                var data = $(this).attr('data');
                $('.apiTraceId').val(data);
                $('#ETicketOption').modal('show');
                GetTicketData(data);
                //

            });
            $(document).on('click', '.ETicketdw', function() {
                var data = $(this).attr('data');
                $('.apiTraceId').val(data);
                $('#ETicketDWOption').modal('show');

            });
            $(document).on('click', '.ETicketEmail', function() {
                var data = $(this).attr('data');
                $('.apiTraceId').val(data);
                $('#ETicketEmail').modal('show');

            });

            function GetTicketData(data) {
                $.ajax({
                    type: "POST",
                    url: SITEURL + "flight/getticketdata",
                    dataType: 'json',
                    data: {
                        data: data,
                    },
                    beforeSend: function() {
                        $(".loadingloader").html('<img src="<?php echo $baseUrl; ?>public/images/loader-sm.gif"/>');
                    },
                    success: function(response) {
                        if (response.success) {
                            $('#ExtraMarkup').val(response.TotalExtraMarkup);
                        }
                    }
                });
            }
            $(document).on('click', '.ETicketSubmit', function() {

                var checkaction = $(this).attr('checkaction');
                var apiTraceId = $('.apiTraceId').val();
                if (checkaction == 'download') {
                    var ExtraMarkup = $('#ExtraMarkupDW').val();
                } else {
                    var ExtraMarkup = $('#ExtraMarkup').val();
                }
                $.ajax({
                    type: "POST",
                    url: SITEURL + "flight/e-ticket",
                    dataType: 'json',
                    data: {
                        ExtraMarkup: ExtraMarkup,
                        data: apiTraceId,
                        checkaction: 'ExtraMarkup',
                    },
                    beforeSend: function() {
                        $(".EticketEmail").html('Please wait..');
                    },
                    success: function(response) {
                        if (response.success) {
                            if (checkaction == 'download') {
                                var withprice = $('input[name="withpriceDW"]:checked').length;
                                window.open('/flight/download-ticket/data/' + apiTraceId + '/withprice/' + withprice, '_blank');
                            } else {
                                var withprice = $('input[name="withpricePR"]:checked').length;
                                window.open('/flight/e-ticket/data/' + apiTraceId + '/withprice/' + withprice, '_blank');
                            }
                        } else {
                            alert('Unable to add markup');
                        }
                    }
                });
                return false;
                if (checkaction == 'download') {
                    // var doc = new jsPDF();
                    // var elementHTML = $('#contnetCUstom').html();
                    // var specialElementHandlers = {
                    //     '#elementH': function(element, renderer) {
                    //         return true;
                    //     }
                    // };
                    // doc.fromHTML(elementHTML, 15, 15, {
                    //     'width': 170,
                    //     'elementHandlers': specialElementHandlers
                    // });
                    // doc.save('Eticket.pdf');
                    var withprice = $('input[name="withpriceDW"]:checked').length;
                    window.open('/flight/download-ticket/data/' + apiTraceId + '/withprice/' + withprice, '_blank');
                } else {
                    var withprice = $('input[name="withpricePR"]:checked').length;
                    window.open('/flight/e-ticket/data/' + apiTraceId + '/withprice/' + withprice, '_blank');
                }
            });

            $(document).on('click', '.EticketEmail', function() {
                var EticketEmail = $('#EticketEmail').val();
                var withprice = $('input[name="withprice"]:checked').length;
                var apiTraceId = $('.apiTraceId').val();
                if (EticketEmail === "") {
                    alert('Please enter email id.');
                    $('input[name="EticketEmail"]').focus();
                    return false;
                }

                $.ajax({
                    type: "POST",
                    url: SITEURL + "flight/e-ticket",
                    dataType: 'json',
                    data: {
                        EticketEmail: EticketEmail,
                        data: apiTraceId,
                        withprice: withprice,
                    },
                    beforeSend: function() {
                        $(".EticketEmail").html('Please wait..');
                    },
                    success: function(response) {
                        if (response.success) {
                            $(".EticketEmail").html('Email');
                            alert('Mail sent successfully');
                            $('#ETicketEmail').modal('hide');
                            return false;
                        } else {
                            alert('Unable to generate');
                        }
                    }
                });
            });

            $(document).on('click', '.saveCustomerInv', function() {
                var InvoiceNo = $('#InvoiceNo').val();
                var InvoiceDate = $('#InvoiceDate').val();
                var address = $('#address').val();
                var cname = $('#cname').val();
                var ids = $('#ids').val();
                var data = $('#data').val();
                if (cname === "") {
                    alert('Please enter customer name.');
                    return false;
                }
                if (InvoiceNo === "") {
                    alert('Please enter invoice number.');
                    return false;
                }
                if (InvoiceDate === "" || InvoiceDate === "__/__/____") {
                    alert('Please select invoice date.');
                    return false;
                }
                if (address === "") {
                    alert('Please enter address.');
                    return false;
                }
                $.ajax({
                    type: "POST",
                    url: SITEURL + "flight/customer-invoice",
                    dataType: 'json',
                    data: {
                        InvoiceNo: InvoiceNo,
                        InvoiceDate: InvoiceDate,
                        address: address,
                        cname: cname,
                        ids: ids,
                        data: data,
                        SaveAction: 'save',
                    },
                    beforeSend: function() {
                        $(".loadingloader").html('Please wait..');
                    },
                    success: function(response) {
                        if (response.success) {
                            $(".loadingloader").html('Submit');
                            $('#CustInvoice').modal('hide');
                            window.open('/flight/customer-invoice/data/' + data, '_blank');
                            //window.location.href = '/flight/customer-invoice/data/'+data;
                            //console.log(response);
                        } else {
                            alert('Unable to generate');
                        }
                    }
                });
            });

            $(document).on('click', '.modificationData', function() {
                var ChangeRequestId = $(this).attr('ChangeRequestId');
                var TraceId = $(this).attr('id');
                $('#modificationData').modal('show');

                $.ajax({
                    type: "POST",
                    url: SITEURL + "flight/modificationdata",
                    dataType: 'json',
                    data: {
                        amendmentId: ChangeRequestId,
                        TraceId: TraceId,
                    },
                    beforeSend: function() {
                        $("#AmendmentDetails").html('<div style="text-align:center;padding-top:30px;"><img src="<?php echo $baseUrl; ?>public/images/loader-sm.gif"/></div>');
                    },
                    success: function(data) {
                        $("#AmendmentDetails").html(data.htmlPage);
                    }
                });

            });
            $(document).on('click', '.updatePNR', function() {
                var APIBookingId = $(this).attr('APIBookingId');
                var TraceId = $(this).attr('id');
                $('#updatePNRModal').modal('show');

                $.ajax({
                    type: "POST",
                    url: SITEURL + "flight/updatepnr",
                    dataType: 'json',
                    data: {
                        APIBookingId: APIBookingId,
                        TraceId: TraceId,
                    },
                    beforeSend: function() {
                        $("#updatePNR").html('<div style="text-align:center;padding-top:30px;"><img src="<?php echo $baseUrl; ?>public/images/loader-sm.gif"/><br> Please wait updating pnr....</div>');
                    },
                    success: function(data) {
                        if (data.success) {
                            alert(data.message);
                            window.location.href = '/bookings/flight';
                        } else {
                            alert(data.message);
                            window.location.href = '/bookings/flight';
                            return false;
                        }
                    }
                });

            });
            $(document).on('click', '.cronscript__', function() {
                var APIBookingId = $(this).attr('APIBookingId');
                var TPSysId = $(this).attr('TPSysId');
                var BookingStatus = $(this).attr('BookingStatus');
                var BookingDetail = $(this).attr('BookingDetail');
                var ProposalStatus = $(this).attr('ProposalStatus');
                var QueryStatus = $(this).attr('QueryStatus');
                var searchID = $(this).attr('searchID');
                var mobileApp = $(this).attr('mobileApp');
                var TraceId = $(this).attr('id');
                $('#updatePNRModal').modal('show');

                $.ajax({
                    type: "POST",
                    url: SITEURL + "flight/cronscript",
                    dataType: 'json',
                    data: {
                        APIBookingId: APIBookingId,
                        TPSysId: TPSysId,
                        TraceId: TraceId,
                        BookingStatus: BookingStatus,
                        BookingDetail: BookingDetail,
                        ProposalStatus: ProposalStatus,
                        QueryStatus: QueryStatus,
                        searchID: searchID,
                        mobileApp: mobileApp,
                    },
                    beforeSend: function() {
                        $("#updatePNR").html('<div style="text-align:center;padding-top:30px;"><img src="<?php echo $baseUrl; ?>public/images/loader-sm.gif"/><br> Please wait updating pnr....</div>');
                    },
                    success: function(data) {
                        if (data.success) {
                            alert(data.message);
                            window.location.href = '/bookings/flight/new';
                        } else {
                            alert(data.message);
                            window.location.href = '/bookings/flight/new';
                            return false;
                        }
                    }
                });
            });
        <?php
        }
        ?>
        <?php if (($modulename == 'cancellation')) { ?>

            function cancellationChargeForm() {
                var MarkUp = $('#MarkUp').val();
                var MarkUpType = $('#MarkUpType').val();
                if (MarkUp == '') {
                    alert('Please enter markUp');
                    $('#MarkUp').focus();
                    return false;
                }
                if (MarkUpType == 2) {
                    if (MarkUp.length > 2) {
                        alert('Percentage value should be in two digit!!');
                        $('#MarkUp').val('');
                        return false;
                    }
                }
                var data = $('.cancellationChargeForm').serialize();
                $.ajax({
                    url: SITEURL + 'cancellation/index/save-cancellation-charge',
                    type: 'post',
                    data: data,
                    dataType: 'json',
                    beforeSend: function() {
                        $('.deposit').attr('disabled', 'disabled');
                    },
                    success: function(result) {
                        if (result.status) {
                            alert(result.message);
                            $('#msg').html(result.message).css('color', 'green').fadeIn().delay(3000).fadeOut();
                            window.location.href = '/cancellation';
                        } else {
                            $('.deposit').removeAttr('disabled', 'disabled');
                            alert(result.message);
                            $('#msg').html(result.message).css('color', 'red').fadeIn().delay(3000).fadeOut();
                            return false;
                        }
                    }
                })
            }
            $('.MarkUp').on('keyup', function() {
                var val = $(this).val();
                var MarkUpType = $('#MarkUpType').val();

                if (MarkUpType == 2) {
                    if (val.length > 2) {
                        alert('Percentage value should be in two digit!!');
                        $(this).val('');
                        return false;
                    }
                }
            });

            function deleteCancellationCharge(AgencySysId, SupplierType, ServiceType, ItemSourceType, MPType) {
                if (!confirm('Are you sure you want to delete?')) {
                    return false;
                }
                $.ajax({
                    url: SITEURL + 'cancellation/index/delete-cancellation-charge',
                    type: 'post',
                    data: 'AgencySysId=' + AgencySysId + '&SupplierType=' + SupplierType + '&ServiceType=' + ServiceType + '&ItemSourceType=' + ItemSourceType + '&MPType=' + MPType,
                    dataType: 'json',
                    beforeSend: function() {

                    },
                    success: function(result) {
                        if (result.status == true) {
                            $('.cancellationChargeRow' + result.allid).remove();
                        }
                    }
                })
            }
        <?php } ?>

        function addDetail() {

            var email = document.getElementById("send_email").value;

            if (email.length == 0) {
                var d = document.getElementById("eml");
                d.style.color = "red";
                d.style.fontWeight = "bold";
                d.innerHTML = "E-Mail Can't be Empty";

                count++;
            } else {
                var at = email.indexOf("@");
                var dot = email.lastIndexOf(".");
                if (at < 3 || dot - at < 3 || email.length - (dot) < 3) {
                    var d = document.getElementById("eml");
                    d.style.color = "red";
                    d.style.fontWeight = "bold";
                    d.innerHTML = "Enter valid email address";

                    count++;
                }
            }

            var url = $("#send_url").val();
            var requestData = $('#subscribe-form').serialize();
            $.ajax({
                url: url + "index/save-letter/",
                type: "POST",
                data: requestData,
                dataType: "json",
                //OnComplete = "ClearInputField"
                success: function(response) {
                    if (response.success === false) {
                        alert(response.msg);
                    }
                    if (response.success === true) {
                        alert(response.msg);
                    }

                    $("#send_email").val("");
                },
                error: function() {}
            });
            return false;
        }

        function x(a1) {
            var a1 = document.getElementById("eml");
            a1.innerHTML = "";
        }

        function openpopup(id) {

            $.ajax({
                url: '<?php echo $options['siteUrl']; ?>dashboard/index/offerpopup/id/' + id,
                type: 'POST',
                dataType: 'json',
                success: function(result) {
                    if (result.status) {
                        $('#myModalheading').html(result.data[0].heading);
                        $('#modelbodyds').html(result.data[0].subHeading);

                    } else {

                        $('#modelbodyds').html('No Data Found');
                    }
                }

            });

            $('#offerpopup').show();
        }

        function closepopup() {
            $('#offerpopup').hide();
        }
    </script>

    <script>
        $(document).ready(function() {
            $('#dashboard_close').on('click', function() {
                //               alert('manish');
                $(".mainNav").toggle("show_hiddenpart_hidden");
            });
        });
    </script>

    <script>
        $(document).ready(function() {


            $('.old_password').on("click", function() {
                //              alert('manish');
                $('html, body').animate({
                    scrollTop: $(".old_password").offset().top - 0
                }, 200);

            });
            $('.new_password').on("click", function() {
                //              alert('manish');
                $('html, body').animate({
                    scrollTop: $(".new_password").offset().top - 0
                }, 200);

            });

            $('.confirm_password').on("click", function() {

                $('html, body').animate({
                    scrollTop: $(".confirm_password").offset().top - 0
                }, 200);
            });
            $('.staff_mobile').on("click", function() {
                $('html, body').animate({
                    scrollTop: $(".staff_mobile").offset().top - 0
                }, 200);
            });

            $('.staff_email').on("click", function() {
                $('html, body').animate({
                    scrollTop: $(".staff_email").offset().top - 0
                }, 200);
            });

            $('.custoname').on("click", function() {
                $('html, body').animate({
                    scrollTop: $(".custoname").offset().top - 0
                }, 200);
            });

            $('.depoamtfocous').on("click", function() {
                $('html, body').animate({
                    scrollTop: $(".depoamtfocous").offset().top - 0
                }, 200);
            });
            $('.depreferencefocus').on("click", function() {
                $('html, body').animate({
                    scrollTop: $(".depreferencefocus").offset().top - 0
                }, 200);
            });
            $('.datePickerOnly').on("click", function() {
                $('html, body').animate({
                    scrollTop: $(".datePickerOnly").offset().top - 0
                }, 200);
            });
            $('.deporemarkfocus').on("click", function() {
                $('html, body').animate({
                    scrollTop: $(".deporemarkfocus").offset().top - 0
                }, 200);
            });


            $('.fltcustomername').on("click", function() {
                $('html, body').animate({
                    scrollTop: $(".fltcustomername").offset().top - 0
                }, 200);
            });
            $('.fltbookingdate').on("click", function() {
                $('html, body').animate({
                    scrollTop: $(".fltbookingdate").offset().top - 0
                }, 200);
            });
            $('.flttodesti').on("click", function() {
                $('html, body').animate({
                    scrollTop: $(".flttodesti").offset().top - 0
                }, 200);
            });
            $('.fltfromdesti').on("click", function() {
                $('html, body').animate({
                    scrollTop: $(".fltfromdesti").offset().top - 0
                }, 200);
            });
            $('.fltbookingid').on("click", function() {
                $('html, body').animate({
                    scrollTop: $(".fltbookingid").offset().top - 0
                }, 200);
            });



            $('.firstnmefocus').on("click", function() {
                $('html, body').animate({
                    scrollTop: $(".firstnmefocus").offset().top - 0
                }, 200);
            });

            $('.lastnamefocus').on("click", function() {
                $('html, body').animate({
                    scrollTop: $(".lastnamefocus").offset().top - 0
                }, 200);
            });

            $('.compnyfocus').on("click", function() {
                $('html, body').animate({
                    scrollTop: $(".compnyfocus").offset().top - 0
                }, 200);
            });



            $(document).on('keyup', '.onlyNumber', function(e) {
                if (/\D/g.test(this.value)) {
                    // Filter non-digits from input value.
                    this.value = this.value.replace(/\D/g, '');
                }
            });
            $('.dobfocus').on("click", function() {
                $('html, body').animate({
                    scrollTop: $(".dobfocus").offset().top - 0
                }, 200);
            });




        });
    </script>

    <script>
        $(document).ready(function() {

            $('.tours').owlCarousel({
                center: false,
                items: 4,
                nav: true,
                dots: false,
                //                loop: true,
                margin: 15,
                //                autoplay: true,
                autoplayTimeout: 3000,
                autoplaySpeed: 1000,
                autoplayHoverPause: true,
                responsive: {
                    279: {
                        center: false,
                        items: 1


                    },
                    600: {
                        center: false,
                        items: 3
                    },
                    1024: {
                        center: false,
                        items: 3
                    },
                    1200: {
                        center: false,
                        items: 4
                    }
                }
            });

            $('.tours2').owlCarousel({
                center: false,
                items: 3,
                dots: false,
                loop: true,
                margin: 30,
                autoplay: true,
                autoplayTimeout: 3000,
                autoplayHoverPause: false,
                responsive: {
                    300: {
                        center: false,
                        items: 1


                    },
                    600: {
                        center: false,
                        items: 2
                    },
                    1024: {
                        center: false,
                        items: 3
                    }
                }
            });

        });
        $('.dashboard_banner').owlCarousel({
            center: false,
            items: 1,
            dots: false,
            loop: true,
            margin: 30,
            autoplay: true,
            autoplayTimeout: 3000,
            autoplayHoverPause: false,
            responsive: {
                300: {
                    center: false,
                    items: 1
                },
                600: {
                    center: false,
                    items: 1
                },
                1024: {
                    center: false,
                    items: 1
                }
            }

        });
    </script>

    <script src="<?php echo $baseUrl; ?>public/asset/assets/js/easy-responsive-tabs.js"></script>
    <script>
        $(document).ready(function() {
            $('#verticalTab').easyResponsiveTabs({
                type: 'vertical',
                width: 'auto',
                fit: true
            });
        });

        $(document).ready(function() {
            $('#verticalTab1').easyResponsiveTabs({
                type: 'vertical',
                width: 'auto',
                fit: true
            });
        });

        $(document).ready(function() {
            $('#verticalTab2').easyResponsiveTabs({
                type: 'vertical',
                width: 'auto',
                fit: true
            });
        });

        $(document).ready(function() {
            $('#verticalTab3').easyResponsiveTabs({
                type: 'vertical',
                width: 'auto',
                fit: true
            });
        });

        $(document).ready(function() {
            $('#verticalTab4').easyResponsiveTabs({
                type: 'vertical',
                width: 'auto',
                fit: true
            });
        });

        $(document).ready(function() {
            $('#verticalTab5').easyResponsiveTabs({
                type: 'vertical',
                width: 'auto',
                fit: true
            });
        });

        $(document).ready(function() {
            $('[data-toggle="tooltip"]').tooltip();
        });

        $('.mdfy_search').on("click", function() {

            $(".modifyflight").toggle("show_hiddenpart_hidden");

        });
        $('.filtersearch').on("click", function() {

            $("#filters_col").toggle("show_hiddenpart_hidden");
        });
        $('.sort_search').on("click", function() {

            $(".sortbycontainer").toggle("show_hiddenpart_hidden");
        });
        $('.viewcommission').on("click", function() {
            $(".commision_rate").toggle("show_hiddenpart_hidden");
            $(".additional_fare_box").toggle("show_hiddenpart_hidden");

        });

        $("#bookingbtn").click(function() {
            $("#booking").toggle('show_hiddenpart_hidden');
            $("#expandenquire").hide('slow');

        });
        $("#checkrate").click(function() {
            $("#ratedetail").toggle('show_hiddenpart_hidden');

        });

        $("#enquirebtn").click(function() {
            $("#expandenquire").toggle('show_hiddenpart_hidden');
            $("#booking").hide('slow');

        });

        function myFunction() {
            // Get the checkbox
            var checkBox = document.getElementById("shareid");
            // Get the output text
            var text = document.getElementById("sharebox");

            // If the checkbox is checked, display the output text
            if (checkBox.checked == true) {
                text.style.display = "block";
            } else {
                text.style.display = "none";
            }
        }
        $('#strTravdate').datepicker({
            dateFormat: 'dd/mm/yy',
            numberOfMonths: 2,
            minDate: 0,
            beforeShow: function(input, inst) {
                var rect = input.getBoundingClientRect();
                setTimeout(function() {
                    inst.dpDiv.css({
                        top: rect.top + 45,
                        left: rect.left + 0
                    });
                }, 0);
            }
        });
        $('#travelerDatePicker').datepicker({
            dateFormat: 'dd/mm/yy',
            minDate: 0,
            numberOfMonths: 1,
        });
        $('.datepicker').datepicker({
            dateFormat: 'dd/mm/yy',
            minDate: 0,
            numberOfMonths: 1,
        });
    </script>
    <?php if (($modulename != 'package') && ($controller != 'search-result')) { ?>
        <script src="<?php echo $baseUrl; ?>public/asset/assets/js/easyResponsiveTabs-1.js"></script>
        <script src="<?php echo $baseUrl; ?>public/asset/assets/js/tabs.js"></script>
    <?php } ?>
    <script>
        $(document).ready(function() {
            $("#hotel_travller_search, #travller_search").on("click", function() {
                $(".room_boxcls").toggle()
            });
            $("#done_traveller2").on("click", function() {
                $(".room_boxcls").hide()
            });


        });
    </script>
    <?php if ($stylecss == 'andamanoceantourism' || $stylecss == 'megablueandaman') { ?>
        <script type="text/javascript">
            $('.datepicker_byo').datepicker({
                dateFormat: 'dd/mm/yy',
                autoclose: true,
                todayBtn: true,
                minDate: 10
            });
        </script>
    <?php } else { ?>
        <script type="text/javascript">
            $('.datepicker_byo').datepicker({
                dateFormat: 'dd/mm/yy',
                autoclose: true,
                todayBtn: true,
                minDate: 0
            });
            $('.datepicker_wallet').datepicker({
                dateFormat: 'dd/mm/yy',
                autoclose: true


            });

            $(".datepicker_wallet").change(function() {
                var date = $(".datepicker_wallet").datepicker("getDate");
                var date1 = new Date(date);
                //  alert(new Date(new Date(date1).setMonth(new Date().getMonth())));
                var minDate = date1;
                var maxDate = new Date(date1);
                maxDate.setMonth(maxDate.getMonth() + 2);
                $('.datepicker_wallet_end').datepicker({
                    dateFormat: 'dd/mm/yy',
                    autoclose: true,
                    minDate: minDate,
                    maxDate: maxDate
                });
            });


            $('.datepicker_flight_dept').datepicker({
                dateFormat: 'dd/mm/yy',
                autoclose: true,
                todayBtn: true,
                minDate: 0
            });
            $('.datepicker_flight_return').datepicker({
                dateFormat: 'dd/mm/yy',
                autoclose: true,
                todayBtn: true,
                minDate: 0
            });

            $('.datepicker_hotel_dept').datepicker({
                dateFormat: 'dd/mm/yy',
                autoclose: true,
                todayBtn: true,
                minDate: 0
            });
            $('.datepicker_hotel_return').datepicker({
                dateFormat: 'dd/mm/yy',
                autoclose: true,
                todayBtn: true,
                minDate: 0
            });
        </script>

    <?php } ?>

    <?php
    if (($modulename != 'staff' && $modulename != 'byo')) {
    ?>
        <script src="<?php echo $baseUrl; ?>public/js/custom.js?v=<?php echo $cssversion; ?>"></script>
    <?php }
    if (($modulename == 'byo') && ($controller == 'index')) { ?>
        <script src="<?php echo $baseUrl; ?>/public/js/byo.js?v=<?php echo $cssversion; ?>"></script>
        <script src="<?php echo $baseUrl; ?>/public/js/hotel_itinerary.js?v=<?php echo $cssversion; ?>"></script>
        <script src="<?php echo $baseUrl; ?>/public/js/choose_vehicles.js?v=<?php echo $cssversion; ?>"></script>
        <script>
            $(document).ready(function() {
                $("#tab1").click();
                $(window).scroll(function() {
                    if ($(window).scrollTop() >= ($(document).height() - $(window).height()) * 0.71) {
                        $("#show_button").click();
                    }
                });
            });

            function showPriceBreakUp(that) {
                $(".PriceBreakUp").toggleClass("collapse");
                if ($(that).find('i').hasClass('fa-plus')) {
                    $(that).find('i').addClass("fa-minus").removeClass('fa-plus');
                } else {
                    $(that).find('i').addClass("fa-plus").removeClass('fa-minus');
                }
            }
        </script>
    <?php } ?>
    <script src="<?php echo $baseUrl; ?>public/js/packageCompare.js"></script>
    <script src="<?php echo $baseUrl; ?>public/js/custom_mangal.js?v=<?php echo $cssversion; ?>"></script>

    <script src="<?php echo $baseUrl; ?>public/js/modal_date.js?v=<?php echo $cssversion; ?>"></script>
    <script type="text/javascript" src="<?php echo $baseUrl; ?>public/asset/assets/js/select2.full.min.js?v=3.7"></script>
    <script>
        $('.select2').select2();
    </script>


    <?php if ($REQUEST_URI == '/byonew') { ?>
        <script>
            setTimeout(function() {
                $('#INeedTransport').click();
            }, 1000);
        </script>
    <?php } ?>
    <script>
        //    $(document).ready(function() {
        function PlanTypePop(radioValue) {

            if (radioValue === 1) {
                //  alert(radioValue);
                $(".pkviewd").css({
                    "display": "none"
                });
                $("#nofday").css({
                    "display": "none"
                });
                $(".destinationBox").css({
                    "display": "none"
                });
                $("#flightview").css({
                    "display": "block"
                });
                $("#visaview").css({
                    "display": "none"
                });
                $("#hotelview").css({
                    "display": "none"
                });
                $("#sightseeingview").css({
                    "display": "none"
                });
                $("#miscellaneousview").css({
                    "display": "none"
                });
                $("#transferview").css({
                    "display": "none"
                });
                $("#messageDiv").css({
                    "display": "block"
                });
                $("#noofpaxDiv").css({
                    "display": "block"
                });
                $(".forexDiv").css({
                    "display": "none"
                });
            } else if (radioValue === 6) {
                $(".pkview").hide();
                $(".pkviewd").css({
                    "display": "block"
                });
                $("#nofday").css({
                    "display": "block"
                });
                $(".destinationBox").css({
                    "display": "none"
                });
                $("#flightview").css({
                    "display": "none"
                });
                $("#visaview").css({
                    "display": "block"
                });
                $("#hotelview").css({
                    "display": "none"
                });
                $("#sightseeingview").css({
                    "display": "none"
                });
                $("#miscellaneousview").css({
                    "display": "none"
                });
                $("#transferview").css({
                    "display": "none"
                });
                $("#messageDiv").css({
                    "display": "block"
                });
                $("#noofpaxDiv").css({
                    "display": "block"
                });
                $(".forexDiv").css({
                    "display": "none"
                });
            } else if (radioValue === 5) {
                $(".pkviewd").css({
                    "display": "block"
                });
                $("#nofday").css({
                    "display": "block"
                });
                $(".destinationBox").css({
                    "display": "block"
                });
                $("#flightview").css({
                    "display": "none"
                });
                $("#visaview").css({
                    "display": "none"
                });
                $("#hotelview").css({
                    "display": "none"
                });
                $("#sightseeingview").css({
                    "display": "none"
                });
                $("#miscellaneousview").css({
                    "display": "none"
                });
                $("#transferview").css({
                    "display": "none"
                });
                $("#messageDiv").css({
                    "display": "block"
                });
                $("#noofpaxDiv").css({
                    "display": "block"
                });
                $(".forexDiv").css({
                    "display": "none"
                });
            } else if (radioValue === 2) {
                $(".pkviewd").css({
                    "display": "none"
                });
                $("#nofday").css({
                    "display": "block"
                });
                $(".destinationBox").css({
                    "display": "block"
                });
                $("#flightview").css({
                    "display": "none"
                });
                $("#visaview").css({
                    "display": "none"
                });
                $("#hotelview").css({
                    "display": "block"
                });
                $("#sightseeingview").css({
                    "display": "none"
                });
                $("#miscellaneousview").css({
                    "display": "none"
                });
                $("#transferview").css({
                    "display": "none"
                });
                $("#messageDiv").css({
                    "display": "block"
                });
                $("#noofpaxDiv").css({
                    "display": "block"
                });
                $(".forexDiv").css({
                    "display": "none"
                });
            } else if (radioValue === 9) {
                $(".pkviewd").css({
                    "display": "block"
                });
                $("#nofday").css({
                    "display": "block"
                });
                $(".destinationBox").css({
                    "display": "block"
                });
                $("#flightview").css({
                    "display": "none"
                });
                $("#visaview").css({
                    "display": "none"
                });
                $("#hotelview").css({
                    "display": "none"
                });
                $("#sightseeingview").css({
                    "display": "block"
                });
                $("#miscellaneousview").css({
                    "display": "none"
                });
                $("#transferview").css({
                    "display": "none"
                });
                $("#messageDiv").css({
                    "display": "block"
                });
                $("#noofpaxDiv").css({
                    "display": "block"
                });
                $(".forexDiv").css({
                    "display": "none"
                });
            } else if (radioValue === 10) {
                $(".pkviewd").css({
                    "display": "block"
                });
                $("#nofday").css({
                    "display": "block"
                });
                $(".destinationBox").css({
                    "display": "block"
                });
                $("#flightview").css({
                    "display": "none"
                });
                $("#visaview").css({
                    "display": "none"
                });
                $("#hotelview").css({
                    "display": "none"
                });
                $("#sightseeingview").css({
                    "display": "none"
                });
                $("#miscellaneousview").css({
                    "display": "block"
                });
                $("#transferview").css({
                    "display": "none"
                });
                $("#messageDiv").css({
                    "display": "block"
                });
                $("#noofpaxDiv").css({
                    "display": "block"
                });
                $(".forexDiv").css({
                    "display": "none"
                });
            } else if (radioValue === 11) {
                $(".pkviewd").css({
                    "display": "block"
                });
                $("#nofday").css({
                    "display": "block"
                });
                $(".destinationBox").css({
                    "display": "none"
                });
                $("#flightview").css({
                    "display": "none"
                });
                $("#visaview").css({
                    "display": "none"
                });
                $("#hotelview").css({
                    "display": "none"
                });
                $("#sightseeingview").css({
                    "display": "none"
                });
                $("#miscellaneousview").css({
                    "display": "none"
                });
                $("#transferview").css({
                    "display": "block"
                });
                $("#messageDiv").css({
                    "display": "block"
                });
                $("#noofpaxDiv").css({
                    "display": "block"
                });
                $(".forexDiv").css({
                    "display": "none"
                });
            } else if (radioValue === 7) {
                $(".pkviewd").css({
                    "display": "none"
                });
                $("#nofday").css({
                    "display": "none"
                });
                $(".destinationBox").css({
                    "display": "none"
                });
                $("#flightview").css({
                    "display": "none"
                });
                $("#visaview").css({
                    "display": "none"
                });
                $("#hotelview").css({
                    "display": "none"
                });
                $("#sightseeingview").css({
                    "display": "none"
                });
                $("#miscellaneousview").css({
                    "display": "none"
                });
                $("#transferview").css({
                    "display": "none"
                });
                $("#messageDiv").css({
                    "display": "none"
                });
                $("#noofpaxDiv").css({
                    "display": "none"
                });
                $(".forexDiv").css({
                    "display": "block"
                });
            }
        };
        //    });
    </script>
    <script>
        let ascendingOrder = true;

        function parseCustomDate(dateStr) {
            const parts = dateStr.split('-');
            if (parts.length !== 3) {
                console.error('Invalid date format:', dateStr);
                return new Date(NaN); // Return an invalid date
            }

            const day = parseInt(parts[0], 10); // Parse day as an integer
            const monthStr = parts[1].trim(); // Get the month abbreviation
            const year = parseInt(parts[2], 10); // Parse year as an integer

            const monthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
            const monthIndex = monthNames.indexOf(monthStr);

            if (monthIndex === -1) {
                console.error('Invalid month:', monthStr);
                return new Date(NaN); // Return an invalid date
            }

            // Adjust the year to a four-digit format
            const fullYear = year < 100 ? 2000 + year : year;

            return new Date(fullYear, monthIndex, day); // Create a new Date object
        }


        function sortByOrder() {
            const table = document.querySelector('.table-bordered tbody');
            const rows = Array.from(table.querySelectorAll('tr')); // Get all rows in the tbody

            console.log('Rows:', rows); // Log the rows to see their structure

            // Log each row's inner HTML
            rows.forEach((row, index) => {
                console.log(`Row ${index}:`, row.innerHTML); // Log the inner HTML of each row
            });

            rows.sort((a, b) => {
                console.log('Processing Rows: ', a, b); // Log each row being processed

                // Define the date elements within the sort function
                const dateAElement = a.querySelector('.booking-date');
                const dateBElement = b.querySelector('.booking-date');

                // Log the date elements
                console.log('Date A Element:', dateAElement);
                console.log('Date B Element:', dateBElement);

                // Check if date elements are found
                if (!dateAElement || !dateBElement) {
                    console.error('Booking date element not found in one of the rows.');
                    return 0; // If not found, do not change order
                }

                // Parse the dates
                const dateA = parseCustomDate(dateAElement.textContent.trim().split('<br>')[0]); // Get the date part before <br>
                const dateB = parseCustomDate(dateBElement.textContent.trim().split('<br>')[0]); // Get the date part before <br>

                console.log('Date A:', dateA, 'Date B:', dateB); // Log parsed dates

                // Return comparison result for sorting
                // return dateA - dateB; // Sort in ascending order
                return ascendingOrder ? dateA - dateB : dateB - dateA;
            });

            // Clear the table body and re-append sorted rows
            table.innerHTML = ''; // Clear the current table body
            rows.forEach(row => table.appendChild(row)); // Append sorted rows

            // Toggle the sorting order for the next click
            ascendingOrder = !ascendingOrder;
        }

        $('.contact_floating').on('click', function() {
            var showPlanType = $('.showPlanType').val();
            var PlanType = $('.defaultSelectedPlanType').val();
            $('.PlanType' + PlanType).prop('checked', true);
            PlanTypePop(PlanType);
            if (showPlanType === 0) {
                $('.PlanTypeBtnHtml').hide();
            }

        })
    </script>

</body>

</html>

Youez - 2016 - github.com/yon3zu
LinuXploit