| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/b2c.hellogtx.com/application/views/scripts/flight/ |
Upload File : |
<?php
$baseUrl = $this->baseUrl;
$tollfreenumber = $this->tollfreenumber;
$Data = $FlightBookingData = $this->FlightBookingData;
$class = $this->class;
$traceId = $this->traceId;
$CustomerSession = $this->CustomerSession[0];
$sessionFlightSearchParams = $this->sessionFlightSearchParams;
$interNationalSearch = $sessionFlightSearchParams['interNationalSearch'];
$route = $sessionFlightSearchParams['route'];
$departure_date = $this->departure_date;
$strReturnDate = $this->strReturnDate;
$objHelper = Zend_Controller_Action_HelperBroker::getStaticHelper('General');
$mydevice = Zend_Controller_Action_HelperBroker::getStaticHelper('General')->getDevice(); // get the device
$Baggage = $Data['Segments'][0];
$arrFlightClass = Zend_Controller_Action_HelperBroker::getStaticHelper('Flight')->getFlightClasses();
$intOtherCharges = $Data['FairRules']['OtherCharges'];
$intBaseFare = $Data['FairRules']['BaseFare'];
$intTax = $Data['FairRules']['Tax'];
$intAdditionalTxnFeePub = $Data['FairRules']['AdditionalTxnFeePub'];
$intServiceFee = $Data['FairRules']['ServiceFee'];
$intPublishedFare = $Data['FairRules']['PublishedFare'];
$intFarePerHeadPublish = $intBaseFare + $intTax + $intOtherCharges;
$intNetPublishedFare = $intPublishedFare;
$adults = $sessionFlightSearchParams['adults'];
$childs = $sessionFlightSearchParams['childs'];
$infants = $sessionFlightSearchParams['infants'];
$ARR_CUSTOMER_RELATION = unserialize(ARR_CUSTOMER_RELATION);
$ARR_SALUTION = unserialize(ARR_SALUTION);
$CONST_YEAR_NAME = unserialize(CONST_YEAR_NAME_SMALL);
$AgentSysId = $this->AgentSysId;
$AgencySysId = $this->AgencySysId;
$apiTraceId = [];
if ($FlightBookingData) {
foreach ($FlightBookingData as $value) {
$apiTraceId[] = $value['FairRules']['PriceID'];
}
}
if ($route == 2 && $interNationalSearch == 1) {
$DataTraceId = $FlightBookingData[0]['FairRules']['PriceID'];
} else {
$DataTraceId = implode(',', $apiTraceId);
}
//if($adults>0){
//for($i = 1; $i <= $adults; $i++) {
// print_r($i);
//}
//}
//die;
//echo"<pre>"; print_r($Data['FairRules']['FareBreakdown']);
// echo"<pre>"; print_r($traceId);
// echo"<pre>"; print_r($DataTraceId);
// die;
?>
<style>
.textcolor {
color: green !important;
}
.checked {
color: #fff !important;
background-color: #e74c3c !important;
}
.checked span {
color: #fff !important;
}
</style>
<main>
<section class="booking_review_flight">
<div class="container">
<div class="row">
<div class="col-lg-2 col-sm-2 col-md-3 col-x-12">
<div class="booking_review">Booking Details</div>
</div>
<div class="col-lg-8 col-sm-8 col-md-8 col-xs-12">
<div class="wizard-progress">
<div class="step complete">
Review
<div class="node"></div>
</div>
<div class="step in-progress">
Traveller Details
<div class="node"></div>
</div>
<div class="step">
Payment
<div class="node"></div>
</div>
</div>
</div>
<!--end of col-lg-12 col-sm-12 col-md-12 col-xs-12-->
</div>
<!--end of row-->
</div>
<!--end of container-->
<div class="clearfix"></div>
</section>
<!--end of booking_review_flight-->
<?php if ($traceId == $DataTraceId) { ?>
<!--booking review view -->
<div class="booking_form_warpper_review mobile_hide_section">
<div class="container">
<div class="row">
<?php if ($mydevice == 'desktop') { ?>
<div class="col-lg-9 col-sm-9 col-md-9 col-xs-12 flight_padding_0">
<div class="clearfix"></div>
<form name="passenger-details" id="passenger-details" method="POST">
</form>
<!--end of traveller_information_wrapper-->
<div class="clearfix"></div>
<div class="terms_condition_reviewaddons mobile_hide_section">
<p style="margin-bottom:0px;color:#a7a1a1;font-size: 30px; text-align:center;">oops!</p>
<p style="margin-bottom:0px;font-size: 20px;color: red; font-weight: 600;text-align:center;">Your transaction could not be processed!</p>
<p style="margin-bottom:0px;font-size: 15px;text-align:center;"> There is a problem connecting with the bank .Tip: We recommend to use Net Banking or other Debit/Credit Card to quickly complete your booking.</p>
<p style="margin-bottom:0px;font-size: 15px;text-align:center;">We request you to try making the payment again.</p>
<div class="clearfix"></div>
</div>
<div class="btnwrapper mobile_hide_section">
<!-- <a href="javascript://" type="button" class="btn btn-primary continue_btnddonsreview reviewbtn">Review </a> -->
<a href="flight/pay-now/<?= $DataTraceId?>" type="button" class="btn btn-primary continue_btnddonsreview_fillbg continue_btnddonsreview paynowbtn22">Pay Again</a>
<!-- <a href="javascript://" type="button" class="btn btn-primary continue_btnddonsreview paylaterbtn">Pay Later</a> -->
<div class="clearfix"></div>
</div>
</div>
<?php } ?>
<?php //}
?>
<!--end of col-lg-9 col-sm-9 col-md-9 col-xs-12-->
<?php if ($mydevice == 'desktop') { ?>
<div class="col-lg-3 col-sm-3 col-md-3 col-xs-12 fairsummarynopadding">
<div class="fair_summary">
<div class="fair_title">Fare Summary</div>
<div class="fair_content" id="FareChangeData">
<?php echo $this->partial('flight/faresummaryright.phtml', array("Data" => $this->FlightBookingData, "DataInbound" => $this->FlightBookingDataInbound,'CurrencyRate'=>$this->CurrencyRate,'CurrencyTitle'=>$this->CurrencyTitle,'param'=>$this->param)); ?>
</div>
</div>
<!--end of fair_summary-->
<!-- <div class="offers">
<div class="offers_title">Offers</div>
<div class="offers_content">
<div class="custom02">
<input type="radio" id="radio03-01" name="demo03" /><label for="radio03-01">MMHHGGSSA</label>
</div>
<div class="radio">
<label>
<span class="offer_text">Use this coupon and pay usin EMI on HDFC Credit
Card to get instant discount of Rs. 546. Also get 3 months NO Cost
EMI</span>
</label>
</div>
<div class="clearfix"></div>
<div class="apply_box">
<div class="form-group">
<input type="text" class="form-control" id="apply" placeholder="Enter Coupan Code">
</div>
<a href="#" class="apply">Apply</a>
</div>
</div>
</div> -->
<!--end of offers-->
<!-- <a href="flight/payment/<?= $Data['apiTraceId'] ?>" type="button" class="btn btn-primary btn-block continue_btn mobile_hide_section">Continue</a> -->
</div>
<?php } ?>
<!--end of col-lg-9 col-sm-9 col-md-9 col-xs-12-->
</div>
<!--end of row-->
</div>
<!--end of booking_form_warpper-->
</div>
<!--booking review view -->
<?php //if ($interNationalSearch == 1 && $route == 2) {
?>
<?php //echo $this->partial('flight/international-round-review-mobile.phtml', array("Data" => $this->FlightBookingData, 'class' => $class, 'FlightSearchUrl' => $this->FlightSearchUrl, 'sessionFlightSearchParams' => $sessionFlightSearchParams));
?>
<?php //} else {
?>
<?php if ($mydevice == 'mobile') { ?>
<div class="mobilebookingreview">
<div class="mobile_header">
<h1 class="mobile_flight_title"><a href="flight" class="backarrow"><img src="public/assets/img/new/backarrow.svg"></a> Payment Details</h1>
</div>
<div class="clearfix"></div>
<div class="container">
<div class="row">
<div class="fair_summary fairsummary_mobileshow">
<div class="fair_title">Payment Failed</div>
<div class="fair_content">
<div class="terms_condition_reviewaddons terms_mobileview terms_review_margin">
<p style="margin-bottom:0px;color:#a7a1a1;font-size: 30px;text-align:center;">oops!</p>
<p style="margin-bottom:0px;font-size: 15px;color: red; font-weight: 600;text-align:center;">Your transaction could not be processed!</p>
<p style="margin-bottom:0px;font-size: 12px;text-align:center;"> There is a problem connecting with the bank .Tip: We recommend to use Net Banking or other Debit/Credit Card to quickly complete your booking.</p>
<p style="margin-bottom:0px;font-size: 12px;text-align:center;">We request you to try making the payment again.</p>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
<!--container-fluid -->
</div>
<div class="mobile_footer_bottomcontinuefixed">
<div class="mobile_footerleft" style="width: 100%; margin: 0px 0 10px;">
<span class="mobile_totalamount pull-left">
Total Amount
<span class="price_mobile price_mobile_inline"><?= $Data['FairRules']['Currency'] ?> <span id="MobilePublishedFare"><?= number_format(($Data['PublishedFare'] + $DataInbound['PublishedFare']), 2) ?></span></span>
<div class="clearfix"></div>
</span>
<span class="mobile_info"><img src="public/assets/img/new/mobile_info.svg"> </span>
</div>
<div class="clearfix"></div>
<div class="mobile_footerbtn">
<!-- <a href="javascript://" type="button" class="btn btn-primary btn-block paylater_btn">Pay
Later</a> -->
<a href="flight/pay-now/<?= $DataTraceId?>" type="button" class="btn btn-primary btn-block paylater_btn2 paynowbtn22">Pay Again</a>
<div class="clearfix"></div>
</div>
</div>
<?php } ?>
<?php //}
?>
<!-- <div class="mobile_footer_bottomcontinuefixed">
<div class="mobile_footerleft">
<span class="mobile_totalamount">
Total Amount
<span class="price_mobile"><?= $Data['FairRules']['Currency'] ?> <span id="MobilePublishedFare"><?= number_format(($Data['PublishedFare'] + $DataInbound['PublishedFare']), 2) ?></span> </span>
<div class="clearfix"></div>
</span>
<span class="mobile_info"><img src="public/assets/img/new/mobile_info.svg" /> </span>
</div>
<div class="mobile_footerright">
<a href="flight/payment/<?= $Data['apiTraceId'] ?>" type="button" class="btn btn-primary btn-block continue_btn_22">Continue</a>
</div>
<div class="clearfix"></div>
</div> -->
<!--mobilebookingreview -->
<input type="hidden" value="<?= $FlightBookingData[0]['FairRules']['PriceID'] ?>" id="ApiResultIndex">
<input type="hidden" value="<?= $FlightBookingData[1]['FairRules']['PriceID'] ?>" id="ApiResultIndexInb">
<input type="hidden" value="<?= $traceId ?>" id="TraceId">
<?php } else { ?>
<div class="row">
<div class="col-lg-12 col-sm-12 col-md-12 col-xs-12" style="text-align: center;">
<p style="margin-bottom:0px;color:#a7a1a1;font-size: 30px;">oops!</p>
<p style="margin-bottom:0px;font-size: 20px;color: red; font-weight: 600;"><i class="fa fa-plane" aria-hidden="true"></i> This flight is sold out!</p>
<p style="margin-bottom:0px;font-size: 15px;"> sorry for the inconvenience caused.</p>
<p style="margin-bottom:0px;font-size: 15px;"> You will be re directed to the search result page.</p>
<p style="margin-bottom:0px;font-size: 15px;"> if not please <a href="flight" style="color:#1073ba;font-size:20px;">click here</a> to go back!</p>
</div>
</div>
<?php } ?>
</main>
<!--/main-->