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/b2bzend/application/views/scripts/flight-new/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/application/views/scripts/flight-new/booking-confirmation.phtml
<?php
$FlightBookingData = $this->FlightBookingData;
$arrtravellerList = $this->arrtravellerList;
$fare = $this->fare;


$selectedSeatSession = $this->selectedSeatSession;
$SelectedBaggSessionNew = $this->SelectedBaggSessionNew;
$SelectedMealSessionNew = $this->SelectedMealSessionNew;
$TrevllerDetails = $this->arrTrevllerDetails[0][0];
$isgstapply = $TrevllerDetails['isgstapply'];
$sessionFlightSearchParams = $this->sessionFlightSearchParams;
$mydevice = Zend_Controller_Action_HelperBroker::getStaticHelper('General')->getDevice();
$interNationalSearch = $sessionFlightSearchParams['interNationalSearch'];
$route = $sessionFlightSearchParams['route'];
$ICSourceSysId = $FlightBookingData[0]['ICSourceSysId'];
$IsLCC = $FlightBookingData[0]['IsLCC'];
$CurrentStatus = $FlightBookingData[0]['CurrentStatus'];
$StatusType = $FlightBookingData[0]['StatusType'];
$PaymentStatus = $FlightBookingData[0]['PaymentStatus'];
$BookingID = $FlightBookingData[0]['PaymentStatus'];
$AirlineRefPNR = $FlightBookingData[0]['AirlineRefPNR'];
$BookingStatus = $FlightBookingData[0]['BookingStatus'];
//$FareRuleData = isset($FlightBookingData[0]['FareRuleData']) ? $FlightBookingData[0]['FareRuleData'] : [];

// echo '<pre>';
// print_r($FlightBookingData);
// echo '</pre>';
// die;


?>
<style>
    b,
    strong {
        font-weight: 600;
    }

    p {
        margin: 0 0 0px !important;
        line-height: 17px;
    }

    .updated-flight-nice-des>div {
        grid-template-columns: 50px 250px 1fr;
    }

    .d-above-xs-grid,
    .d-grid {
        display: grid;
    }

    .gap-20 {
        gap: 10px;
    }

    .align-items-center {
        -ms-flex-align: center !important;
        align-items: center !important;
    }

    .mr-0,
    .mx-0 {
        margin-right: 0 !important;
    }

    .p-0 {
        padding: 0 !important;
    }

    .nice-description h5 {
        color: #5b9876;
        margin-bottom: 2px;
        font-size: 18px;
    }

    .nice-description p {
        margin-bottom: 0;
        font-size: 14px;
    }

    .img-fluid {
        max-width: 100%;
        height: auto;
    }

    .nice-des img {
        width: 50px;
    }

    .p-2 {
        padding: 10px !important;
    }
</style>
<script type="text/javascript">
    $(document).ready(function() {
        $(".grandtotal").html($(".payable").html());
    });
</script>
<input type="hidden" value="<?= $this->TPSysId ?>" id="strUrlData">
<input type="hidden" id="BookingStatus" value="<?= $CurrentStatus ?>">
<input type="hidden" id="FlightTraceId" value="<?= $BookingId__ ?>">
<input type="hidden" id="ICSourceSysId" value="<?= $ICSourceSysId ?>">
<!--Page main section start-->
<section id="min-wrapper" class="active">
    <div id="main-content">
        <div class="container-fluid">
            <div class="row">
                <div class="col-md-12">
                    <!--Top header start-->
                    <h3 class="ls-top-header">Booking</h3>
                    <!--Top header end -->

                    <!--Top breadcrumb start -->
                    <ol class="breadcrumb">
                        <li><a href="#"><i class="fa fa-home"></i></a></li>
                        <li class="active">Travellers</li>
                        <li class="active">Review & Book</li>
                    </ol>
                    <!--Top breadcrumb start -->
                </div>
            </div>
            <!-- Main Content Element  Start-->
            <div class="row">
                <div class="col-md-12">
                    <div class="panel panel-default">
                        <div class="panel-body whbg">
                            <div class="mobile_scrolling">
                                <a href="javascript:void(0);">
                                    <label class="inlinebl orange small no-margin" style="padding-right:15px;"><span class="btn btn-warning btn-round btn-xs box-round_2" style="cursor:default;"><strong>1</strong></span> <strong>Flight
                                            Results</strong></label>
                                </a>
                                <a href="javascript:void(0);">
                                    <label class="inlinebl orange small no-margin" style="padding-right:15px;"><span class="btn btn-warning btn-round btn-xs box-round_2" style="cursor:default;"><strong>2</strong></span> <strong>Passenger
                                            Details</strong></label>
                                </a>
                                <label class="inlinebl orange small no-margin" style="padding-right:15px;"><span class="btn btn-warning btn-round btn-xs box-round_2" style="cursor:default;"><strong>3</strong></span> <strong>Review
                                        Booking</strong></label>
                                <label class="inlinebl orange small no-margin" style="padding-right:15px;"><span class="btn btn-warning btn-round btn-xs box-round_2" style="cursor:default;"><strong>4</strong></span> <strong>Booking
                                        Confirmation</strong></label>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </div>

                <div class="col-md-9">
                    <div class="col-md-12 text-left no-padding">
                        <div class="panel panel-primary">

                            <div class="row">
                                <div class="col-md-6">
                                    <div class="nice-des flight-nice-des bg-white p-2 rounded updated-flight-nice-des mb-2">
                                        <?php if (($PaymentStatus == 130 || $PaymentStatus == 129) && ($CurrentStatus == 142 || $CurrentStatus == 141)) {
                                        ?>
                                            <div class="d-grid align-items-center gap-20">
                                                <span class="mr-0"><img src="/public/images/air-icon.png" alt="Flight" class="img-fluid"></span>
                                                <div class="nice-description p-0">
                                                    <h5> <?= $BookingStatus ?> </h5>
                                                    <p>Booking ID : <?= implode(',', $this->XRefBookingId) ?></p>
                                                </div>
                                                <div class="nice-description p-0" style="white-space: nowrap;">
                                                    <h5>PNR No.</h5>
                                                    <p><?= !empty($this->AirlineRefPNR) ? implode(',', $this->AirlineRefPNR) : 'PENDING' ?></p>
                                                </div>
                                            </div>
                                        <?php } elseif ($PaymentStatus == 147 && ($CurrentStatus == 145 || $CurrentStatus == 146)) { ?>
                                            <div class="d-grid align-items-center gap-20">
                                                <span class="mr-0"><img src="/public/images/air-icon.png" alt="Flight" class="img-fluid"></span>
                                                <div class="nice-description p-0">
                                                    <h5> <?= $BookingStatus ?> </h5>
                                                    <p>Booking ID : <?= implode(',', $this->XRefBookingId) ?></p>
                                                </div>
                                                <div class="nice-description p-0" style="white-space: nowrap;">
                                                    <h5>PNR No.</h5>
                                                    <p><?= !empty($this->AirlineRefPNR) ? implode(',', $this->AirlineRefPNR) : 'PENDING' ?></p>
                                                </div>
                                            </div>
                                        <?php } else { ?>
                                            <div class="d-grid align-items-center gap-20">
                                                <span class="mr-0"><img src="/public/images/cancel.png" alt="Flight" class="img-fluid"></span>
                                                <div class="nice-description p-0" style="color: red;">
                                                    <h5 style="color: red;"> Booking Failed <?= $PaymentStatus ?> <?= $CurrentStatus ?></h5>
                                                    <p>Booking ID : <?= implode(',', $this->XRefBookingId) ?></p>
                                                </div>
                                                <div class="nice-description p-0" style="color: red;">
                                                    <h5 style="color: red;">PNR No.</h5>
                                                    <p>------</p>
                                                </div>
                                            </div>
                                        <?php } ?>

                                    </div>
                                </div>
                                <?php if ($PaymentStatus == 147 && ($CurrentStatus == 145)) { ?>
                                    <div class="col-md-3">
                                        <div class="nice-description p-2">
                                            <button class="btn btn-default UnHold" id="dLabel" type="button">
                                                UnHold/Release
                                            </button>
                                        </div>
                                    </div>
                                    <div class="col-md-3">
                                        <div class="nice-description p-2">
                                            <button class="dropdown_btn btn btn-primary PayConfirm" id="dLabel" type="button">
                                                Pay & Confirm
                                            </button>
                                        </div>
                                    </div>
                                <?php } ?>

                                <?php if (($PaymentStatus == 130 || $PaymentStatus == 129) && $CurrentStatus == 142) { ?>
                                    <div class="col-md-3">
                                        <?php if (!empty($this->AirlineRefGDSPNR)) { ?>
                                            <div class="nice-description p-2" style="float: right;">
                                                <h5>GDS PNR No.</h5>
                                                <p><?= implode(',', $this->AirlineRefGDSPNR) ?></p>
                                            </div>
                                        <?php } ?>
                                    </div>
                                <?php 
                                    $secureCode = Zend_Controller_Action_HelperBroker::getStaticHelper('SecureCode')->secureCode(trim($this->TPSysId), 1);
                                ?>
                                    <div class="col-md-3">
                                        <div class="nice-description p-2">
                                            <div class="dropdown" style="float: right;z-index: 999;top:10px;">
                                                <button class="dropdown_btn btn btn-primary" id="dLabel" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                                    More Options
                                                    <span class="caret"></span>
                                                </button>
                                                <ul class="dropdown-menu" aria-labelledby="dLabel" style="left:auto;right:0px;">
                                                    <?php if($PaymentStatus != 130 && $StatusType != 17){ ?>
                                                    <li><a href="javascript:void(0);" onclick="Updatepayment();"><i class="fa fa-inr" aria-hidden="true"></i> Update Payment</a></li>
                                                    <?php } ?>
                                                    <li><a href="/booking-flight/e-ticket-mail-download/id/<?= $this->TPSysId ?>" target="_blank"><i class="fa fa-download" aria-hidden="true"></i> Download as PDF</a></li>
                                                    <li><a href="/booking-flight/e-ticket-mail/id/<?= $this->TPSysId ?>/code/<?php echo $secureCode ?>" target="_blank"><i class="fa fa-share" aria-hidden="true"></i> Share Ticket</a></li>
                                                </ul>
                                            </div>
                                        </div>
                                    </div>
                                <?php } ?>
                            </div>

                            <?php if ($CurrentStatus == 141) { ?>
                                <div class="d-grid align-items-center gap-20">
                                    <div class="nice-description p-2">
                                        <p style="text-align: center;">We have received your booking.</p>
                                        <p style="text-align: center;">You will receive your ticket on your email id <strong><?= $this->CustomerDetails['EmailId'] ?></strong> in some time.</p>
                                        <p style="text-align: center;">It will take 30 min to <strong>confirm</strong> or <strong>aborted</strong>.</p>
                                        <p style="text-align: center;">Please note down below reference number and flight details for future reference.</p>
                                        <p style="text-align: center;">You can also download ticket from booking section once ticket is issued.</p>

                                    </div>

                                </div>
                            <?php } ?>

                        </div>
                    </div>
                    <div class="col-md-12 no-padding">
                        <div class="panel panel-primary">
                            <div class="panel-heading">
                                <h3 class="panel-title">Flight Information</h3>
                            </div>
                            <!-- <div class="panel-body"> -->
                            <div class="panel panel-info">

                                <div class="panel-body mt_top0">

                                    <?php
                                    $pnrDetails__ = [];
                                    $segArray = [];
                                    if ($FlightBookingData) {
                                        foreach ($FlightBookingData as $kkkk => $Data) {
                                            $SourceAirportCode = trim($Data['SourceAirportCode']);
                                            $DestAirportCode = trim($Data['DestAirportCode']);
                                            $pnrDetails__[$SourceAirportCode . '-' . $DestAirportCode] = $Data;

                                    ?>
                                            <div class="fair_details fiardetails_bg fair_information_details mt_top0" style="display:block;">
                                                <div class="fair_details_title fair_details_bg">
                                                    <div class="row">
                                                        <div class="col-lg-8 col-sm-8 col-md-8 col-xs-12">
                                                            <div class="destination_left_details leftwidth_50">
                                                                <div class="destination_name"> <?= $Data['SourceAirportCode'] ?>
                                                                    - <?= $Data['DestAirportCode'] ?></div>
                                                                <p><?= $Data['StopCount'] ?> |
                                                                    <?= $Data['Segments'][0]['cabinClass'] ?></p>
                                                            </div>
                                                            <div class="destination_right_details">
                                                                <div class="destination_name"> <?= date('d M Y', strtotime($Data['LocalFromTime'])) ?>
                                                                </div>
                                                                <p> <?= $Data['FlightDuration'] ?></p>
                                                            </div>

                                                        </div>
                                                        <div class="col-lg-4 col-sm-4 col-md-4 hidden-xs">
                                                            <?php if ($kkkk == 0) { ?>
                                                                <div class="fare_information return_info fare_information_mytrip">
                                                                    Onward
                                                                </div>
                                                            <?php } else { ?>
                                                                <div class="fare_information return_info fare_information_mytrip">
                                                                    <?= ($route == 3) ? 'Onward' : 'Return' ?>
                                                                </div>
                                                            <?php } ?>


                                                        </div>
                                                    </div>
                                                    <!--end of row-->
                                                </div>
                                                <!--end of fair_details-->
                                                <div class="clearfix"></div>
                                                <?php
                                                if ($Data['Segments']) {
                                                    foreach ($Data['Segments'] as $value) {

                                                        $segArray[] = $value;
                                                        $originDepTime = Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->getArrivalDepartureIndianFormat($value['originDepTime']);
                                                        $destinationArrTime = Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->getArrivalDepartureIndianFormat($value['destinationArrTime']);
                                                ?>
                                                        <div class="flight_search_list_details">
                                                            <?php if ($value['GroundTime'] > 0 && $ICSourceSysId == 3) { ?>
                                                                <div class="airport_timeinformation airport_width">
                                                                    <?= $value['LAYOVERDuration'] ?> LAYOVER at
                                                                    <?= $value['destinationCityName'] ?> Airport
                                                                </div>
                                                            <?php } ?>
                                                            <div class="row row_padding">
                                                                <div class="col-sm-2 col-md-2 col-lg-2 col-xs-12 flight_padding_0">
                                                                    <div class="fligt_logo">
                                                                        <img src="<?= $value['logo'] ?>" width="32" height="32" alt="SuperDMC">
                                                                        <h5><?= $value['AirlineName'] ?></h5>
                                                                        <h6><?= $value['SegFlightNumber'] ?></h6>
                                                                    </div>
                                                                </div>
                                                                <!--end of col-sm-2 col-md-2 col-lg-2 col-xs-6-->
                                                                <div class="col-sm-8 col-md-8 col-lg-8 col-xs-12 flight_padding_0">
                                                                    <div class="row">
                                                                        <div class="col-lg-4 col-sm-4 col-md-4 col-xs-6">
                                                                            <div class="flight_details review_left">
                                                                                <div class="flight_time">
                                                                                    <?= $value['strDepartureDtTime'] ?></div>
                                                                                <div class="flight_time2"><?= $originDepTime ?></div>
                                                                                <div class="flight_cityname">
                                                                                    <?= $value['originCityName'] ?></div>
                                                                                <div class="flight_cityname2">
                                                                                    <?= $value['originAirportName'] ?>, Terminal:
                                                                                    <?= $value['DepTerminal'] ?>,
                                                                                    <?= $value['originCountryName'] ?></div>
                                                                            </div>
                                                                            <!--end of flight_details-->
                                                                        </div>
                                                                        <!--end of col-lg-3 col-sm-3 col-md-3 col-xs-3-->
                                                                        <div class="col-lg-4 col-sm-4 col-md-4 col-xs-4 mobile_hide_section">
                                                                            <div class="theme-search-results-item-flight-section-path">
                                                                                <div class="theme-search-results-item-flight-section-path-fly-time">
                                                                                    <p><?= $value['FlightDuration'] ?></p>
                                                                                </div>
                                                                                <div class="theme-search-results-item-flight-section-path-line">
                                                                                </div>
                                                                                <div class="theme-search-results-item-flight-section-path-line-start">
                                                                                    <div class="theme-search-results-item-flight-section-path-line-dot">
                                                                                    </div>
                                                                                </div>
                                                                                <div class="theme-search-results-item-flight-section-path-line-end">
                                                                                    <div class="theme-search-results-item-flight-section-path-line-dot">
                                                                                    </div>
                                                                                </div>
                                                                                <?php if ($value['StopOver']) { ?>
                                                                                    <div class="theme-search-results-item-flight-section-path-fly-time" style="top: 36px;">
                                                                                        <p style="line-height: 15px;">Via -
                                                                                            <?= $value['StopPoint'] ?></p>
                                                                                        <p style="line-height: 15px;">Arr -
                                                                                            <?= date('d M Y H:i', strtotime($value['StopPointArrivalTime'])) ?>
                                                                                        </p>
                                                                                        <p style="line-height: 15px;">Dep -
                                                                                            <?= date('d M Y H:i', strtotime($value['StopPointDepartureTime'])) ?>
                                                                                        </p>
                                                                                    </div>
                                                                                <?php } ?>
                                                                            </div>
                                                                        </div>
                                                                        <!--end of col-lg-6 col-sm-6 col-md-6 col-xs-6-->
                                                                        <div class="col-lg-4 col-sm-4 col-md-4 col-xs-6">
                                                                            <div class="flight_details review_left flight_align_right">
                                                                                <div class="flight_time">
                                                                                    <?= $value['strArrivalDtTime'] ?></div>
                                                                                <div class="flight_time2"><?= $destinationArrTime ?>
                                                                                </div>
                                                                                <div class="flight_cityname">
                                                                                    <?= $value['destinationCityName'] ?></div>
                                                                                <div class="flight_cityname2">
                                                                                    <?= $value['destinationAirportName'] ?>, Terminal:
                                                                                    <?= $value['ArrTerminal'] ?>,
                                                                                    <?= $value['destinationCountryName'] ?></div>
                                                                            </div>
                                                                            <!--end of flight_details-->
                                                                        </div>
                                                                        <!--end of col-lg-3 col-sm-3 col-md-3 col-xs-3-->
                                                                    </div>
                                                                    <!--end of row-->
                                                                </div>
                                                                <!--end of col-sm-8 col-md-8 col-lg-8 col-xs-8-->
                                                                <div class="col-sm-2 col-md-2 col-lg-2 col-xs-2">

                                                                </div>
                                                                <!--end of col-sm-8 col-md-8 col-lg-8 col-xs-9-->
                                                            </div>
                                                            <!--end of row-->

                                                            <div class="clearfix"></div>
                                                            <div class="bagg_info">
                                                                <div class="mytrip_babbage_container">
                                                                    <div class="mytrip_babbage_wrapper">
                                                                        <span class="boxmytrip"><img src="../../../../../public/images/baggage.png"></span><span class="checkinmytrip">CHECK-IN: </span>
                                                                        <span class="weigthbagmytrip"><?= $value['Baggage'] ?></span>
                                                                        <span class="dotmtpmytrip"><img src="../../../../../public/images/luggage.png"></span>
                                                                        <span class="cab-inmytrip">CAB-IN: </span>
                                                                        <span class="weigthbagmytrip"><?= $value['CabinBaggage'] ?></span>
                                                                        <!-- <span class="dotmtpmytrip"><img src="../../../../../public/images/dot.png"></span> -->
                                                                        <span class="dotmtpmytrip"><img src="../../../../../public/images/meals.png"></span>
                                                                        <span class="mealmtpmytrip">MEAL:</span>
                                                                        <span class="yesmtpmytrip"><?= ($Data['IsLCC'] != 1) ? 'No' : 'Yes' ?></span>
                                                                    </div>

                                                                    <div class="clearfix"></div>
                                                                </div>
                                                                <div class="nonrefundable">
                                                                    <a href="javascript:void(0);" TraceId="<?= $Data['FairRules']['PriceID'] ?>" IsLCC="<?= $Data['IsLCC'] ?>" SearchTraceId="<?= $Data['SearchTraceId'] ?>" supplier="<?= $Data['IsTJFlightAPI'] ?>" class="">
                                                                        <span>Fare Rules <img src="../../../../../public/images/info.svg" alt="Fare Rules" title="Fare Rules"> </span>
                                                                    </a>
                                                                    <span class="<?= ($Data['IsRefundable'] == 1) ? 'textcolor' : 'textcolorred' ?>"><?= ($Data['IsRefundable'] == 1) ? 'Refundable' : 'Non-Refundable' ?></span>
                                                                </div>
                                                                <!--end of nonrefundable-->
                                                            </div>
                                                            <!--end of bagg_info-->
                                                            <div class="clearfix"></div>
                                                            <?php if ($value['GroundTime'] > 0 && $ICSourceSysId != 3) { ?>
                                                                <div class="airport_timeinformation airport_width">
                                                                    <?= $value['LAYOVERDuration'] ?> LAYOVER at
                                                                    <?= $value['destinationCityName'] ?> Airport
                                                                </div>
                                                            <?php } ?>

                                                        </div>
                                                <?php
                                                    }
                                                }
                                                ?>
                                                <div class="clearfix"></div>
                                            </div>
                                    <?php
                                        }
                                    }

                                    ?>

                                </div>
                            </div>
                        </div>

                        <div class="panel panel-primary">
                            <div class="panel-heading">
                                <h3 class="panel-title">Passenger Details & Add ons</h3>
                            </div>
                            <div class="panel-body mt_topbtm0">
                                <div class="col-md-12 table-responsive no-padding">
                                    <table class="table table-bordered no-margin no-border">
                                        <thead>
                                            <tr>
                                                <th style="font-weight: 700;">S.No</th>
                                                <th style="font-weight: 700;">Name</th>
                                                <th style="font-weight: 700;">Sector</th>
                                                <th style="font-weight: 700;">PNR, Ticket No.</th>
                                                <!-- <th style="font-weight: 700;">Baggage
                                                    <span style="font-size: 8px; line-height:12px; display: block">Check-in | Cabin </span>
                                                </th> -->
                                                <th style="font-weight: 700;">Meal, Seat & Other Preference</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <?php
                                            $ARR_SALUTION = unserialize(ARR_SALUTION);
                                            $ARR_SALUTION_CHILD = unserialize(ARR_SALUTION_CHILD);
                                            if ($ICSourceSysId == 3) {
                                                $ARR_SALUTION = unserialize(ARR_SALUTIONTBO);
                                                $ARR_SALUTION_CHILD = unserialize(ARR_SALUTIONTBO);
                                            }
                                            if (!empty($this->arrtravellerList)) {
                                                foreach ($this->arrtravellerList as $keys => $citem) {
                                                    $Sectors = explode('@@', $citem['Sectors']);
                                                    $CabinBaggage = $citem['CabinBaggage'];
                                                    $CheckinBaggage = !empty($citem['CheckinBaggage']) ? $citem['CheckinBaggage'] : 'NA';
                                                    $TicketId = explode('-', $citem['TicketId']);
                                                    $TicketNumber = explode('-', $citem['TicketNumber']);
                                                    $SelectedMeal = !empty($citem['SelectedMeal']) ? json_decode($citem['SelectedMeal'], 1) : [];
                                                    $SelectedSeat = !empty($citem['SelectedSeat']) ? json_decode($citem['SelectedSeat'], 1) : [];
                                                    $SelectedBag = !empty($citem['SelectedBag']) ? json_decode($citem['SelectedBag'], 1) : [];

                                                    // echo '<pre>';
                                                    // print_r($citem);
                                                    // echo '</pre>';
                                                    if ($citem['paxType'] == 1) {
                                                        $paxType = 'ADULT';
                                                        $CustomerTitle = $ARR_SALUTION[$citem['salution']];
                                                    } elseif ($citem['paxType'] == 2) {
                                                        $paxType = 'CHILD';
                                                        $CustomerTitle = $ARR_SALUTION_CHILD[$citem['Title']];
                                                    } else {
                                                        $paxType = 'INFANT';
                                                        $CustomerTitle = $ARR_SALUTION_CHILD[$citem['salution']];
                                                    }
                                            ?>
                                                    <tr>
                                                        <td style="width: '5%'"><?= $keys + 1 ?></td>
                                                        <td style="font-size: 14px;">
                                                            <?= $citem['Title'] ?>. <?= $citem['FirstName'] ?> <?= $citem['LastName'] ?> (<?= $paxType ?>)<br>
                                                            <?php if (!empty($citem['DOB'])) { ?>
                                                                <small className="text-muted"><b>DOB</b>:<?= !empty($citem['DOB']) ? date('d M Y', strtotime($citem['DOB'])) : '' ?></small>
                                                            <?php } ?>
                                                            <?php if (!empty($citem['passportno'])) { ?>
                                                                <small className="text-muted"><b>Passport No.</b>:<?= !empty($citem['passportno']) ? $citem['passportno'] : '' ?></small>
                                                            <?php } ?>
                                                            <?php if (!empty($citem['passportno'])) { ?>
                                                                <br>
                                                                <small className="text-muted">
                                                                    <b>Passport Issue</b>:<?= !empty($citem['passporIssue']) ? date('d M Y', strtotime($citem['passporIssue'])) : '' ?>
                                                                </small>
                                                            <?php } ?>
                                                            <?php if (!empty($citem['passportno'])) { ?>
                                                                <small className="text-muted"><b>Passport Issue</b>:<?= !empty($citem['passportnoexpiry']) ? date('d M Y', strtotime($citem['passportnoexpiry'])) : '' ?></small>
                                                            <?php } ?>
                                                        </td>
                                                        <td nowrap><?= implode('<br>', $Sectors) ?></td>
                                                        <td nowrap>
                                                            <?php
                                                            if ($TicketId) {
                                                                foreach ($TicketId as $tk => $pnr) {
                                                                    $TicketNum = isset($TicketNumber[$tk]) ? ' (' . $TicketNumber[$tk] . ')' : '';
                                                                    $pnrDetails___ = $pnr;
                                                            ?>
                                                                    <p style="font-size:12px; font-weight: bold" class="printSmTxt"> <?= $pnr . $TicketNum ?></p>
                                                            <?php
                                                                }
                                                            }
                                                            ?>
                                                        </td>
                                                        <!-- <td><?= $CheckinBaggage ?> | <?= $CabinBaggage ?></td> -->
                                                        <td>
                                                            <?php if ($Sectors) {
                                                                foreach ($Sectors as $sck) {
                                                            ?>
                                                                    <p style="font-size:12px">
                                                                        <?php
                                                                        if ($SelectedBag[$sck] && $ICSourceSysId != 3) {
                                                                            if ($SelectedBag[$sck]) {  ?>
                                                                                <span style="font-size:12px">
                                                                                    <b>Baggage:</b> <?= ($ICSourceSysId != 3) ? $SelectedBag[$sck][0]['Weight'] . ' ' : $SelectedBag[$sck][0]['Weight'] ?>
                                                                                </span>
                                                                        <?php
                                                                            }
                                                                        }
                                                                        ?>
                                                                        <?php
                                                                        if ($SelectedBag && $ICSourceSysId == 3) {
                                                                            foreach ($SelectedBag as $bg) {  ?>
                                                                                <span style="font-size:12px">
                                                                                    <b>Baggage:</b> <?= $bg[0]['Weight'] ?>
                                                                                </span>
                                                                        <?php
                                                                            }
                                                                        }
                                                                        ?>
                                                                        <?php if ($SelectedMeal[$sck]) {
                                                                            if ($SelectedMeal[$sck]) { ?>
                                                                                <br>
                                                                                <span style="font-size:12px">
                                                                                    <b>Meal:</b> <?= ($ICSourceSysId == 3) ? $SelectedMeal[$sck][0]['AirlineDescription'] : $SelectedMeal[$sck][0]['Description'] ?>
                                                                                </span>
                                                                        <?php
                                                                            }
                                                                        }
                                                                        ?>
                                                                        <?php if ($SelectedMeal && $ICSourceSysId == 3) {
                                                                            foreach ($SelectedMeal as $ml) { ?>
                                                                                <!-- <br>
                                                                                <span style="font-size:12px">
                                                                                    <b>Meal:</b> <?= $ml[0]['AirlineDescription'] ?>
                                                                                </span> -->
                                                                        <?php
                                                                            }
                                                                        }
                                                                        ?>
                                                                        <?php if ($SelectedSeat[$sck]) {
                                                                            if ($SelectedSeat[$sck]) { ?>
                                                                                <br>
                                                                                <span style="font-size:12px">
                                                                                    <b>Seat No.:</b> <?= $SelectedSeat[$sck][0]['seatNo'] ?>
                                                                                </span>
                                                                        <?php
                                                                            }
                                                                        }
                                                                        ?>

                                                                        <?php if ($SelectedSeat && $ICSourceSysId == 3) {
                                                                            foreach ($SelectedSeat as $ml) { ?>
                                                                                <!-- <br>
                                                                                <span style="font-size:12px">
                                                                                    <b>Seat No:</b> <?= (isset($ml[0]['seatNo']) && !empty($ml[0]['seatNo'])) ? $ml[0]['seatNo'] : $ml[0]['Code'] ?>
                                                                                </span> -->
                                                                        <?php
                                                                            }
                                                                        }
                                                                        ?>

                                                                    </p>
                                                            <?php
                                                                }
                                                            }
                                                            ?>
                                                        </td>
                                                    </tr>
                                            <?php
                                                }
                                            }
                                            ?>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                        <?php if ($isgstapply == 1) { ?>
                            <div class="panel panel-primary">
                                <div class="panel-heading">
                                    <h3 class="panel-title">GSTIN Details</h3>
                                </div>
                                <div class="panel-body mt_topbtm0">

                                    <div class="row">
                                        <div class="col-sm-6 col-md-6 col-lg-6 col-xs-12 col-12">
                                            <div class="titletext">
                                                <p class=""><span class="text_bold_flight">GST (GSTIN):</span>
                                                    <?= $TrevllerDetails['GstNumber'] ?></p>
                                                <p><span class="text_bold_flight">Company Name:</span>
                                                    <?= $TrevllerDetails['GstCompany'] ?></p>
                                                <p><span class="text_bold_flight">Email:</span>
                                                    <?= $TrevllerDetails['GstEmail'] ?></p>
                                            </div>

                                        </div>
                                        <div class="col-sm-6 col-md-6 col-lg-6 col-xs-12 col-12">
                                            <div class="titletext">
                                                <p class=""><span class="text_bold_flight">Phone:</span>
                                                    <?= $TrevllerDetails['GstPhone'] ?></p>
                                                <p><span class="text_bold_flight">Address:</span>
                                                    <?= $TrevllerDetails['GstAddress'] ?></p>
                                                <!-- <p><span class="text_bold_flight">State:</span> India</p> -->
                                            </div>

                                        </div>
                                    </div>

                                </div>
                            </div>
                        <?php
                        }
                        ?>

                        <?php if ($mydevice == 'desktop') { ?>


                        <?php } ?>
                    </div>
                    <div class="clear"></div>
                </div>

                <div class="col-md-3">
                    <div class="srchresultRight">
                        <?php
                        echo $this->partial('flight-new/sale-summary-tripjack.phtml', array("Data" => $this->FlightBookingData, 'fare' => $fare, 'CurrencyTitle' => $this->CurrencyTitle, 'CurrencyRate' => $this->CurrencyRate));
                        ?>

                    </div>

                </div>

            </div>

            <!-- Main Content Element  End-->
        </div>
    </div>

    <div class="modal fade" id="UnholdOptions" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false">
        <input type="hidden" class="form-control box-control apiTraceId" value="">
        <input type="hidden" class="form-control box-control bookingid" value="">
        <div class="modal-dialog " role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title">Unhold Options <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button></h4>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="comission_box" style="text-align: left;">
                                <label class="checkbox_popup" style="text-align: left;" for="unholdpnr">
                                    <input type="checkbox" name="" class="" id="unholdpnr" value=""> Booking Id/PNR number

                                </label>
                            </div>
                            <?php
                            $index = 0;
                            if ($pnrDetails__) {
                                foreach ($pnrDetails__ as $sec => $val) {
                            ?>
                                    <div class="comission_box" style="text-align: left;">
                                        <label class="checkbox_popup" style="text-align: left;" for="unholdpnr<?= $sec ?>">
                                            <?php if ($ICSourceSysId == 3) { ?>
                                                <input type="checkbox" name="unholdpnr" class="unholdpnr" id="unholdpnr<?= $sec ?>" value="<?= $val['APIBookingId'] ?>-<?= $index ?>"> <?= $val['XRefBookingId'] ?>/<?= $val['AirlineRefPNR'] ?> (<?= $sec ?>)
                                                <span class="checkmark"></span>
                                            <?php } else { ?>
                                                <input type="checkbox" name="unholdpnr" class="unholdpnr" id="unholdpnr<?= $sec ?>" value="<?= $val['AirlineRefPNR'] ?>"> <?= $val['XRefBookingId'] ?>/<?= $val['AirlineRefPNR'] ?> (<?= $sec ?>)
                                                <span class="checkmark"></span>
                                            <?php } ?>
                                        </label>
                                    </div>
                            <?php
                                    $index++;
                                }
                            }
                            ?>

                        </div>


                        <div class="col-md-6 ">
                            <label class="checkbox_popup" style="text-align: left;">
                                <input type="checkbox" name="Confirmtoproceed" id="Confirmtoproceed" value="1"> Confirm to proceed
                                <span class="checkmark"></span>
                            </label>

                        </div>
                        <div class="col-md-6 text-right">
                            <div class="form-group no-margin">
                                <p class="message"></p>
                                <button type="button" class="btn btn-primary unholdpnrSubmit">Submit</button>
                            </div>
                        </div>
                    </div>
                </div> <!-- modal-body -->
            </div> <!-- modal-content -->
        </div> <!-- modal-dialog -->
    </div>

    <div class="modal fade" id="PayConfirmOptions" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-keyboard="false" data-backdrop="static">
        <input type="hidden" class="form-control box-control apiTraceId" value="">
        <input type="hidden" class="form-control box-control bookingid" value="">
        <div class="modal-dialog " role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title">Fare Validate </h4>
                </div>
                <div class="modal-body">
                    <p class="validmessage"></p>
                    <p style="text-align: center;">Please wait fare validating.....</p>
                </div> <!-- modal-body -->
            </div> <!-- modal-content -->
        </div> <!-- modal-dialog -->
    </div>

    <div class="modal fade" id="Updatepayment" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog modal-sm" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title">Update Payment</h5>
                </div>
                <div class="modal-body">
                    <form>
                        <div class="form-group">
                            <label for="newpaymentamount" class="col-form-label">Amount:</label>
                            <input type="number" class="form-control" id="newpaymentamount" value="<?= $fare['TotalPay'] ?>">
                        </div>
                    </form>
                </div> <!-- modal-body -->
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                    <button type="button" class="btn btn-primary" onclick="offlinePaymentProcess();">Continue</button>
                </div>
            </div> <!-- modal-content -->
        </div> <!-- modal-dialog -->
    </div>

    <?php
    $sessionFareFinal = new Zend_Session_Namespace('sessionFareFinal');

    if (!empty($sessionFlightInventoryBookingParams->intAirInvenSysId)) {
        $TotalPublishedFare = $sessionFlightInventoryBookingParams->netAmt;
    } else {
        $TotalPublishedFare = $sessionFareFinal->TotalPublishedFare;
    }

    ?>

    <form id="form_repayment" method="post" name="form_repayment" action="" target="_blank">
        <input name="paymentType" id="paymentType" value="2" type="hidden">
        <input name="guid" id="guid_repayment" value="" type="hidden">
        <input name="securecode" id="securecode_repayment" value="" type="hidden">
        <input name="Firstname" id="Firstname" value="" type="hidden">
        <input name="email" id="email" value="" type="hidden">
        <input name="phone" id="phone" value="" type="hidden">
        <input id="premium_val" name="amount" value="<?= $fare['TotalPay'] ?>" type="hidden">
        <input name="AgencyUserSysId" id="AgencyUserSysId" value="" type="hidden">
        <input name="AgencySysId" id="AgencySysId" value="" type="hidden">
        <input name="TrxType" id="TrxType" value="" type="hidden">
        <input name="PlanType" id="PlanType" value="1" type="hidden">
        <input name="TPSysId" id="TPSysId" value="<?= $this->intTPSysId ?>" type="hidden">
        <input name="IsCardChrgToCustomer" id="IsCardChrgToCustomer" value="" type="hidden">
        <input name="CustomerSysId" id="CustomerSysId" value="" type="hidden">
        <input name="returnURL" id="returnURL" value="" type="hidden">
        <input name="stringData" id="stringData" value="" type="hidden">
        <input name="errorURL" id="errorURL" value="" type="hidden">
    </form>

    <script src="<?php echo $this->baseUrl('public/js/flight/flight.js'); ?>"></script>
    <?php echo $this->render("newfooter.phtml"); ?>

    <?php echo $this->render('copyrightfooter.phtml'); ?>
</section>
<!--Page main section end -->

<script type="text/javascript">
    $('.UnHold').on('click', function() {
        $('#UnholdOptions').modal('show');

    });
    $('.PayConfirm').on('click', function() {
        $('#PayConfirmOptions').modal('show');
        var FlightTraceId = $('#strUrlData').val();
        var BookingStatus = $('#BookingStatus').val();
        $.ajax({
            type: "POST",
            url: "/flight-new/farevalidate/data/" + FlightTraceId,
            dataType: 'json',
            data: {
                FlightTraceId: FlightTraceId,
            },
            beforeSend: function() {
                $(".validmessage").html('<div style="text-align:center;padding-top:30px;"><img src="<?php echo $this->baseUrl('public/assets/images/loader.gif'); ?>"/></div>');
            },
            success: function(data) {
                if (data.success) {
                    var FlightTraceId = (data.FlightTraceId);
                    window.location.href = '/flight-new/review/data/' + FlightTraceId + '?confirm=1';
                } else {
                    $('.validmessage').html(data.message);
                    setTimeout(function() {
                        $('#PayConfirmOptions').modal('hide');
                    }, 1000);

                }
            }
        });
    });

    $(document).on('click', '.unholdpnrSubmit', function() {
        var ICSourceSysId = $('#ICSourceSysId').val();

        var unholdpnr = $('.unholdpnr:checked').map(function(_, el) {
            return $(el).val();
        }).get();
        var Confirmtoproceed = $("input[name='Confirmtoproceed']:checked");
        if (unholdpnr.length == 0) {
            alert('Please select the PNR.');
            return false;
        }
        if (Confirmtoproceed.length == 0) {
            alert('Please confirm to proceed');
            return false;
        }

        var FlightTraceId = $('#strUrlData').val();
        var BookingStatus = $('#BookingStatus').val();

        var confrm = confirm("Are you sure to cancel...?");
        if (confrm) {
            if (BookingStatus == '145') {
                $.ajax({
                    type: "POST",
                    url: "/flight-new/booking-unhold/data/" + FlightTraceId,
                    dataType: 'json',
                    data: {
                        TPSysId: FlightTraceId,
                        Confirmtoproceed: Confirmtoproceed.val(),
                        unholdpnr: unholdpnr,
                    },
                    beforeSend: function() {
                        //$('.unholdpnrSubmit').hide();
                        //$(".message").html('<div style="text-align:center;padding-top:30px;">Please wait...</div>');
                    },
                    success: function(data) {
                        if (data.success) {
                            $('.message').html(data.message);
                            location.reload();
                        } else {
                            $('.unholdpnrSubmit').show();
                            alert(data.message);
                            $('.message').html(data.message);

                        }
                    }
                });
            }
        }

    });

    function Updatepayment() {
        $('#Updatepayment').modal();
    }

    function offlinePaymentProcess() {

        var newpaymentamount = $("#newpaymentamount").val();
        $("#premium_val").val(newpaymentamount);
        var formvalue = $("#form_repayment").serialize();
        $.ajax({
            url: '/packagesearch/offline-payment-process',
            data: formvalue,
            dataType: 'json',
            type: 'POST',
            beforeSend: function() {
                //$(".offline-buttons").hide();
                //$("#offline-buttons-inprocess").show();
            },
            success: function(response) {
                if (response.success) {
                    if (response.pType == '1') {
                        alert(response.msg);
                        $(".offline-buttons").show();
                        $("#offline-buttons-inprocess").hide();
                        $("#update-payment").modal('hide');
                    } else {
                        $("#guid_repayment").val(response.arrResponse.guid);
                        $("#securecode_repayment").val(response.arrResponse.securecode);
                        $("#Firstname").val(response.arrResponse.Firstname);
                        $("#email").val(response.arrResponse.email);
                        $("#phone").val(response.arrResponse.phone);
                        $("#premium_val").val(response.arrResponse.amount);
                        $("#AgencyUserSysId").val(response.arrResponse.AgencyUserSysId);
                        $("#AgencySysId").val(response.arrResponse.AgencySysId);
                        $("#TrxType").val(response.arrResponse.TrxType);
                        $("#PlanType").val(response.arrResponse.PlanType);
                        $("#TPSysId").val(response.arrResponse.TPSysId);
                        $("#IsCardChrgToCustomer").val(response.arrResponse.IsCardChrgToCustomer);
                        $("#CustomerSysId").val(response.arrResponse.CustomerSysId);
                        $("#returnURL").val(response.arrResponse.returnURL);
                        $("#stringData").val(response.arrResponse.stringData);
                        $("#errorURL").val(response.arrResponse.errorURL);
                        $("#strPaymentUrl").val(response.arrResponse.strPaymentUrl);
                        $('#form_repayment').attr('action', response.arrResponse.strPaymentUrl);
                        setTimeout(function() {
                            $('#form_repayment').submit();
                        }, 2000);
                    }
                } else {
                    alert(response.msg);
                    $(".offline-buttons").show();
                    $("#offline-buttons-inprocess").hide();
                }
            }
        });
    }
    $("#Preloader").hide('slow');
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit