| 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 : |
<?php
$FlightBookingData = $this->FlightBookingData;
$arrtravellerList = $this->arrtravellerList;
$fare = $this->fare;
$gstData = $this->gstData;
$selectedSeatSession = $this->selectedSeatSession;
$SelectedBaggSessionNew = $this->SelectedBaggSessionNew;
$SelectedMealSessionNew = $this->SelectedMealSessionNew;
$TrevllerDetails = $this->arrTrevllerDetails[0][0];
$isgstapply = $gstData['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'];
//$FareRuleData = isset($FlightBookingData[0]['FareRuleData']) ? $FlightBookingData[0]['FareRuleData'] : [];
// echo '<pre>';
// print_r($arrtravellerList);
// echo '</pre>';
// die;
?>
<style>
b,
strong {
font-weight: 600;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
$(".grandtotal").html($(".payable").html());
});
</script>
<input type="hidden" value="<?= $this->strUrlData ?>" id="strUrlData">
<input type="hidden" value="<?= $this->confirm ?>" id="confirm">
<!--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-primarygray 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>
<?php if (!empty($this->Error)) { ?>
<div class="col-md-12" style="" id="confRev">
<div class="alert alert-danger"><?php echo $this->Error; ?></div>
</div>
<?php } ?>
<div class="col-md-9">
<div class="col-md-12 no-padding">
<?php if (empty($sessionFlightInventoryBookingParams->intAirInvenSysId)) { ?>
<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
$segArray = [];
if ($FlightBookingData) {
foreach ($FlightBookingData as $kkkk => $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['FairRules']['FareClass'] ?></p>
</div>
<div class="destination_right_details">
<div class="destination_name"> <?= date('d M Y', strtotime($Data['FromUTCTime'])) ?>
</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['filePath'] ?>" 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"><?= isset($value['Baggage']) ? $value['Baggage'] : $value['CheckinBaggage'] ?></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>
<?php if($ICSourceSysId == 9){ ?>
<span class="yesmtpmytrip"><?= ($value['IsMealIncludes'] == 1) ? 'Yes' : 'No'; ?></span>
<?php }else{ ?>
<span class="yesmtpmytrip"><?= ($Data['IsLCC'] == 1) ? 'No' : 'Yes' ?></span>
<?php } ?>
</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>
<?php } ?>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Passenger Details & Add ons<a href="/flight-new/travellers/data/<?= $this->strUrlData ?>" class="pull-right selectCustomernav">Change Pax Details</a></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;">PNR, Ticket No.</th>
<th style="font-weight: 700;">Baggage & Meal</th>
<th style="font-weight: 700;">Seat</th>
</tr>
</thead>
<tbody>
<?php
$ARR_SALUTION = unserialize(ARR_SALUTIONTBO);
$ARR_SALUTION_CHILD = unserialize(ARR_SALUTIONTBO);
if (!empty($this->arrtravellerList)) {
foreach ($this->arrtravellerList as $keys => $citem) {
$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['salution']];
} else {
$paxType = 'INFANT';
$CustomerTitle = $ARR_SALUTION_CHILD[$citem['salution']];
}
$TicketNumbers = (isset($citem['TicketNumbers']) ) ? trim($citem['TicketNumbers']) : '';
$ticketNumberView = (isset($citem['ticketNumberView']) && is_array($citem['ticketNumberView'])) ? $citem['ticketNumberView'] : array();
$ticketNumberViewA = !empty(array_filter($ticketNumberView)) ? implode('-',$ticketNumberView) : '';
?>
<tr>
<td style="width: '5%'"><?= $keys + 1 ?></td>
<td>
<?= $CustomerTitle ?>. <?= $citem['firstname'] ?> <?= $citem['lastname'] ?> (<?= $paxType ?>)<br>
<?php if (!empty($citem['dateofbirth'])) { ?>
<small className="text-muted"><b>DOB</b>:<?= !empty($citem['dateofbirth']) ? date('d M Y', strtotime($citem['dateofbirth'])) : '' ?></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 } ?>
<?php if (!empty($citem['docid'])) { ?>
<small className="text-muted"><b>Document ID</b>:<?= !empty($citem['docid']) ? ($citem['docid']) : '' ?></small>
<?php } ?>
</td>
<td>
<?php echo $TicketNumbers.(!empty($ticketNumberViewA) ? ' ('.$ticketNumberViewA.')' : '');?>
</td>
<td>
<p style="font-size:12px">
<?php
if ($SelectedBag) {
foreach ($SelectedBag as $bg) { ?>
<br>
<span style="font-size:12px">
<b>Baggage:</b> <?= $bg[0]['Weight'] ?>
</span>
<?php
}
}
?>
<?php if ($SelectedMeal) { //echo "<pre>";print_r($SelectedMeal);die;
foreach ($SelectedMeal as $mlk => $ml) { ?>
<br>
<span style="font-size:12px">
<b>Meal:</b> <?= ($ICSourceSysId == 9) ? $mlk.': ' : '';?> <?= ($ICSourceSysId == 3) ? $ml[0]['AirlineDescription'] : $ml[0]['Description'] ?>
</span>
<?php
}
}
?>
</p>
</td>
<td>
<?php if ($SelectedSeat) {
foreach ($SelectedSeat as $ml) { ?>
<br>
<span style="font-size:12px">
<b>Seat:</b> <?= ($ICSourceSysId == 3) ? $ml[0]['seatNo'] : $ml[0]['seatNo'] ?>
</span>
<?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>
<?= $gstData['GstNumber'] ?></p>
<p><span class="text_bold_flight">Company Name:</span>
<?= $gstData['GstCompany'] ?></p>
<p><span class="text_bold_flight">Email:</span>
<?= $gstData['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>
<?= $gstData['GstPhone'] ?></p>
<p><span class="text_bold_flight">Address:</span>
<?= $gstData['GstAddress'] ?></p>
<!-- <p><span class="text_bold_flight">State:</span> India</p> -->
</div>
</div>
</div>
</div>
</div>
<?php
}
?>
<?php if ($mydevice == 'desktop') { ?>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Terms & Condition</h3>
</div>
<div class="panel-body mt_topbtm0">
<label class="checkbox_popup">
<input type="checkbox" id="agreeTerms" value="option1">
I have reviewed and agreed on the rates and commission offered for this booking.
<span class="checkmark"></span>
</label>
</div>
</div>
<?php } ?>
<?php if ($mydevice == 'desktop') { ?>
<div class="col-md-12 text-left no-padding">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Payment Mode</h3>
</div>
<div class="panel-body mt_topbtm0">
<div class="form-group form-group1 mobileflight_txtcenter2 mobile-hide" style="margin-bottom: 45px;">
<?php if ($this->IsCheckWallet != 1) { ?>
<span style="float: left;"> <a href="javascript:void(0);" class="btn btn-primarygray pull-right mobile_rechargenow_flght" onclick="return rechargeNow();" style="margin-left:0px;padding: 8px 12px; font-size: 13px;">Recharge
Now</a></span>
<?php } ?>
<span style="float: left;">
<input type="radio" name="paymentModebyUser" id="radioRedCheckbox4_2" value="1" <?= ($this->IsB2BCustomer == '0' && $this->IsEnabledWallet == 0) ? 'disabled' : ' checked' ?>>
<label for="radioRedCheckbox4_2" class="packageshow">
<strong> Credit Balance: </strong> <?= $this->CurrencyTitle ?>
<?= $this->walletBalanceAmount ?>
</label>
<?php if ($this->intLoggedinUserAgencySysId) { ?>
<input type="radio" name="paymentModebyUser" id="radioRedCheckbox4_22" <?= ($this->IsB2BCustomer == '0') ? 'checked' : ' ' ?> value="2">
<label for="radioRedCheckbox4_22" class="packageshow">
<strong> Pay Later </strong>
</label>
<?php } ?>
</span>
<span style="float: right;">
<label class="checkbox_popup checkbox_popupwidth" style="top: 6px;left:2px; background:none;"> Ticket with price
<input type="checkbox" name="withprice" id="withprice" value="1">
<span class="checkmark"></span>
</label>
<?php if ($ICSourceSysId == 9) { ?>
<a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="return verifying();" id="netbankingReview" href="javascript:void(0);">Issue Ticket</a>
<?php } else { ?>
<?php if ($this->isHoldAllowed == 1 && $this->confirm == 0) { ?>
<a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="return payNow(1);" id="netbankingReview" href="javascript:void(0);">Hold Ticket</a>
<?php } ?>
<?php if ($this->IsCheckWallet == 1) { ?>
<a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="return payNow(0);" id="netbankingReview" href="javascript:void(0);">Issue Ticket</a>
<?php } else { ?>
<a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="return payNow(0);" id="netbankingReview" href="javascript:void(0);">Pay with Wallet</a>
<?php } ?>
<?php } ?>
<?php if ($this->walletBalanceAmount >= $this->intChargeFromWallet) { ?>
<!-- <a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="return payNow();" id="netbankingReview" href="javascript:void(0);">Pay with Wallet</a> -->
<?php } else { ?>
<!-- <a href="javascript:void(0);" class="btn btn-primarygray btn-sm" onclick="return alert('You do not have sufficient balance to make this booking. Please recharge before proceed');" id="netbankingReview" href="javascript:void(0);">Pay with Wallet</a> -->
<?php } ?>
<?php if ($this->IsCheckWallet == 1 && $this->IsAllowFlightBooking == 1) { ?>
<!-- <a href="javascript:void(0);" class="btn btn-primarygray pull-right mobile_rechargenow_flght" onclick="return CustomerCard();" style="margin-left:8px;padding: 8px 12px; font-size: 13px;">Customer Card</a> -->
<?php } ?>
</span>
<?php if ($this->IsCheckWallet != 1) { ?>
<span style="float: right;line-height: 16px;margin-right: 10px;"><strong style="font-size: 12px;">Your Wallet Balance:</strong>
<?php echo number_format($this->walletBalanceAmount, 2); ?><br>
<strong style="font-size: 12px;">Your Deduction:</strong>
<?php echo number_format($this->intChargeFromWallet, 2); ?>
</span>
<?php } ?>
</div>
</div>
</div>
</div>
<?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>
<?php if ($mydevice == 'mobile') { ?>
<div class="panel panel-primary" style="margin-bottom: 105px;margin-top: 15px;clear: both;">
<div class="panel-heading">
<h3 class="panel-title">Terms & Condition</h3>
</div>
<div class="panel-body mt_topbtm0">
<label class="checkbox_popup">
<input type="checkbox" id="agreeTerms" value="option1">
I have reviewed and agreed on the rates and commission offered for this booking.
<span class="checkmark"></span>
</label>
</div>
</div>
<?php } ?>
</div>
</div>
<!-- Main Content Element End-->
</div>
</div>
<div class="mobile_footer_bottomcontinuefixedtop fixedtop_padding bottom_space">
<div class="mobile_footerlefttop footer_bottom_w100">
<?php if ($this->IsCheckWallet != 1 && $ICSourceSysId != 9) { ?>
<span class="mobile_totalamounttop footer_bottom_w100">
Your Wallet Balance: <?php echo number_format($this->walletBalanceAmount, 2); ?><br>
Your Deduction:</strong> <?php echo number_format($this->intChargeFromWallet, 2); ?>
<div class="clearfix"></div>
</span>
<?php
}
?>
</div>
<?php if ($mydevice == 'mobile') { ?>
<div class="mobile_footerrighttop footer_bottom_w100">
<span style="float: left;">
<input type="radio" name="paymentModebyUser" id="radioRedCheckbox4_" value="1" <?= ($this->IsB2BCustomer == '0' && $this->IsEnabledWallet == 0) ? 'disabled' : ' checked' ?>>
<label for="radioRedCheckbox4_" class="packageshow">
<strong> Credit Balance: </strong> <?= $this->CurrencyTitle ?> <?= $this->walletBalanceAmount ?>
</label>
<?php if ($this->intLoggedinUserAgencySysId) { ?>
<input type="radio" name="paymentModebyUser" id="radioRedCheckbox4_2" <?= ($this->IsB2BCustomer == '0') ? 'checked' : ' ' ?> value="2">
<label for="radioRedCheckbox4_2" class="packageshow">
<strong>Pay Later</strong>
</label>
<?php } ?>
</span>
<label class="checkbox_popup checkbox_popupwidth" style="top: 6px;left:2px; background:none;"> Ticket with
price
<input type="checkbox" name="withprice" id="withprice" value="1">
<span class="checkmark"></span>
</label>
<?php if ($ICSourceSysId == 9) { ?>
<a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="return verifying();" id="netbankingReview" href="javascript:void(0);">Issue Ticket</a>
<?php } else { ?>
<a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="return payNow(0);" id="netbankingReview" href="javascript:void(0);">Issue Ticket</a>
<?php } ?>
<?php if ($this->walletBalanceAmount >= $this->intChargeFromWallet) { ?>
<!-- <a href="javascript:void(0);" class="btn btn-primary btn-sm" onclick="return payNow();" id="netbankingReview" href="javascript:void(0);">Pay with Wallet</a> -->
<?php } else { ?>
<!-- <a href="javascript:void(0);" class="btn btn-primarygray btn-sm" onclick="return alert('You do not have sufficient balance to make this booking. Please recharge before proceed');" id="netbankingReview" href="javascript:void(0);">Pay with Wallet</a> -->
<?php } ?>
<?php if ($this->IsCheckWallet != 1) { ?>
<!-- <a href="javascript:void(0);" class="btn btn-primarygray pull-right mobile_rechargenow_flght" onclick="return rechargeNow();" style="margin-left:8px;padding: 8px 12px; font-size: 13px;">Recharge Now</a> -->
<?php } ?>
</div>
<?php } ?>
<div class="clearfix"></div>
</div>
<div class="modal fade" id="myModal_viewmore" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body">
<div class="view_deatils_wrapper">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<div class="table-responsive cancell-fligt">
<?php
if ($FlightBookingData) {
foreach ($FlightBookingData as $kkkk => $fr) {
if ($kkkk == 0) {
echo $this->partial('flight/getflightfarerules.phtml', array('ApiResultIndexRequest' => $fr['ApiResultIndex'], 'FareRulesCancel' => $fr['FareRuleData'], 'FlightBooking' => $fr, 'IsLCC' => $IsLCC, 'intMarkUp' => $intMarkUp, 'CurrencyTitle' => $this->CurrencyTitle, 'CurrencyRate' => $this->CurrencyRate));
}
}
}
?>
</div>
</div>
</div> <!-- modal-body -->
</div> <!-- modal-content -->
</div> <!-- modal-dialog -->
</div>
<div class="modal fade" id="updatePaxDetails" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" style="color:white; font-size: 18px;">Update Pax Details</h4>
</div>
<div class="modal-body">
<div class="view_deatils_wrapper">
<div class="table-responsive cancell-fligt">
<table class="table table-bordered no-margin no-border">
<thead>
<tr>
<th style="font-weight: 700;">Title</th>
<th style="font-weight: 700;">First Name</th>
<th style="font-weight: 700;">Last name</th>
<th style="font-weight: 700;">Document ID</th>
<th style="font-weight: 700;">DOB</th>
<th style="font-weight: 700;">Passport Natiobality</th>
<th style="font-weight: 700;">Passport No</th>
<th style="font-weight: 700;">Passport Issue</th>
<th style="font-weight: 700;">Passport Expiry</th>
</tr>
</thead>
<tbody>
<?php
$ARR_SALUTION_TJ = unserialize(ARR_SALUTIONTBO);
unset($ARR_SALUTION_TJ[4]);
unset($ARR_SALUTION_TJ[5]);
$ARR_SALUTION_CHILD = unserialize(ARR_SALUTIONTBO);
unset($ARR_SALUTION_CHILD[1]);
unset($ARR_SALUTION_CHILD[2]);
unset($ARR_SALUTION_CHILD[3]);
if (!empty($this->arrtravellerList)) {
foreach ($this->arrtravellerList as $keys => $citem) {
$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($ARR_SALUTION_TJ);
// echo '</pre>';
if ($citem['paxType'] == 1) {
$paxType = 'ADULT';
$CustomerTitle = $ARR_SALUTION_TJ[$citem['salution']];
} elseif ($citem['paxType'] == 2) {
$paxType = 'CHILD';
$CustomerTitle = $ARR_SALUTION_CHILD[$citem['salution']];
} else {
$paxType = 'INFANT';
$CustomerTitle = $ARR_SALUTION_CHILD[$citem['salution']];
}
?>
<tr>
<td style="width: 12%">
<select id="passenger-salutation-<?php echo $i; ?>" name="passenger-salutation-<?php echo $i; ?>" class="form-control whbg">
<option value="">select</option>
<?php
if ($citem['paxType'] == 1) {
foreach ($ARR_SALUTION_TJ as $key => $value) {
$selected = @(trim($citem['salution']) == $key) ? 'selected' : '';
echo "<option value='$value' $selected>$value</option>";
}
} else {
foreach ($ARR_SALUTION_CHILD as $key => $value) {
$selected = @(trim($citem['salution']) == $key) ? 'selected' : '';
echo "<option value='$value' $selected>$value</option>";
}
}
?>
</select>
</td>
<td>
<input type="text"
id="firstname[]"
name="firstname[]"
value="<?= $citem['firstname'] ?>"
class="form-control whbg">
</td>
<td>
<input type="text"
id="lastname[]"
name="lastname[]"
value="<?= $citem['lastname'] ?>"
class="form-control whbg">
</td>
<td>
<input type="text"
id="docid[]"
name="docid[]"
value="<?= $citem['docid'] ?>"
class="form-control whbg">
</td>
<td>
<?php if (!empty($citem['dateofbirth'])) { ?>
<small className="text-muted"><b>DOB</b>:<?= !empty($citem['dateofbirth']) ? date('d M Y', strtotime($citem['dateofbirth'])) : '' ?></small>
<?php } ?>
</td>
<td>
<?php if (!empty($citem['passportno'])) { ?>
<small className="text-muted"><b>Passport No.</b>:<?= !empty($citem['passportno']) ? $citem['passportno'] : '' ?></small>
<?php } ?>
</td>
<td>
<?php if (!empty($citem['passportno'])) { ?>
<small className="text-muted"><b>Passport No.</b>:<?= !empty($citem['passportno']) ? $citem['passportno'] : '' ?></small>
<?php } ?>
</td>
<td>
<?php if (!empty($citem['passportno'])) { ?>
<small className="text-muted">
<b>Passport Issue</b>:<?= !empty($citem['passporIssue']) ? date('d M Y', strtotime($citem['passporIssue'])) : '' ?>
</small>
<?php } ?>
</td>
<td>
<?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>
</tr>
<?php
}
}
?>
</tbody>
</table>
</div>
</div>
</div> <!-- modal-body -->
</div> <!-- modal-content -->
</div> <!-- modal-dialog -->
</div>
<div class="modal fade" id="OTPVerifying" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-keyboard="false" data-backdrop="static">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" style="color:white; font-size: 18px;">OTP Verify</h4>
</div>
<div class="modal-body">
<div class="view_deatils_wrapper">
<div class="row" style="text-align: center;">
<div class="col-md-12">
<p style="line-height: 25px;margin: 5px 0;">We have sent otp to <span id="PhoneNumberDigit"></span></p>
<div class="form-group">
<label for="OTPNumber">Enter OTP</label>
<input type="number" max="6" id="OTPNumber" name="OTPNumber" value="" class="form-control">
</div>
</div>
<div class="col-md-12">
<a href="javascript:void(0)" class="btn btn-danger btn-sm btn-small-1 ContinueAccept" onclick="return verifying();">Continue Booking</a>
<a href="javascript:void(0)" class="resend" onclick="return payNow(0);">Resend</a>
</div>
</div>
</div>
</div> <!-- modal-body -->
</div> <!-- modal-content -->
</div> <!-- modal-dialog -->
</div>
<input id="isHoldBooking" value="0" type="hidden">
<?php
$sessionFareFinal = new Zend_Session_Namespace('sessionFareFinal');
if (!empty($sessionFlightInventoryBookingParams->intAirInvenSysId)) {
$TotalPublishedFare = $sessionFlightInventoryBookingParams->netAmt;
} else {
$TotalPublishedFare = $sessionFareFinal->TotalPublishedFare;
}
?>
<form id="paynow" method="post" name="paynow" action="<?php echo $this->strPayWithWalletUrl; ?>">
<input name="guid" value="<?php echo $this->guid; ?>" type="hidden">
<input name="walletcode" value="<?php echo $this->walletCode; ?>" type="hidden">
<input name="amount" id="amount" value="<?php echo $this->intChargeFromWallet; ?>" type="hidden">
<input name="Firstname" value="<?php echo trim($this->customerDetsils['FirstName']); ?>" type="hidden">
<input name="AgencyUserSysId" value="<?php echo $this->intLoggedinUserId; ?>" type="hidden">
<input name="AgencySysId" value="<?php echo $this->intLoggedinUserAgencySysId; ?>" type="hidden">
<input name="TrxType" value="<?php echo $this->strTrxType; ?>" type="hidden">
<input name="PlanType" value="<?php echo $this->intPlanType; ?>" type="hidden">
<input name="TPSysId" value="<?php echo $this->intTpSysId; ?>" type="hidden">
<input name="CustomerSysId" value="<?php echo $this->intCustomerSysId; ?>" type="hidden">
<input name="returnURL" value="<?php echo $this->strReturnURL; ?>" type="hidden">
<input name="errorURL" value="<?php echo $this->strErrorURL; ?>" type="hidden">
<input name="stringData" value='<?php echo $this->stringData; ?>' type="hidden">
<input name="IsB2BCustomer" value='<?php echo $this->IsB2BCustomer; ?>' type="hidden">
</form>
<form method="post" id="recharge_from" name="recharge_from" action="<?php echo $this->strRechargeNowUrl; ?>">
<input name="guid" value="<?php echo $this->guid; ?>" type="hidden">
<input name="securecode" value="<?php echo $this->securecode; ?>" type="hidden">
<input name="Firstname" value="<?php echo isset($this->intLoggedinUserFirstName) ? trim($this->intLoggedinUserFirstName) : ''; ?>" type="hidden">
<input name="email" value="<?php echo isset($this->intLoggedinUserEmailId) ? trim($this->intLoggedinUserEmailId) : ''; ?>" type="hidden">
<input name="phone" value="<?php echo isset($this->intLoggedinUserContactNo) ? trim($this->intLoggedinUserContactNo) : ''; ?>" type="hidden">
<input name="AgencySysId" value="<?php echo $this->intLoggedinUserAgencySysId; ?>" type="hidden">
<input name="AgencyUserSysId" value="<?php echo $this->intLoggedinUserId; ?>" type="hidden">
<input name="returnURL" value="<?php echo $this->strErrorURL; ?>" type="hidden">
</form>
<form method="post" id="bookflight" name="bookflight" action="<?php echo $this->strReturnURL; ?>">
<input name="status" id="trxstatushidden" value="" type="hidden">
<input name="TrxSysId" value="0" type="hidden">
<input name="TPSysId" value="<?php echo $this->TPSysId; ?>" type="hidden">
<input name="guid" id="guidhidden" value="" type="hidden">
<input type="hidden" value="<?= $this->strUrlData ?>" name="strUrlData">
</form>
<form id="CustomerCard" method="post" name="paynow" action="<?php echo $this->strPayWithPaymentGatewayUrl; ?>">
<input name="guid" value="<?php echo $this->guid; ?>" type="hidden">
<input name="securecode" value="<?php echo $this->walletCode; ?>" type="hidden">
<input name="Firstname" value="<?php echo isset($this->arrTrevllerDetails[0][0]['FirstName']) ? trim($this->arrTrevllerDetails[0][0]['FirstName']) : ''; ?>" type="hidden">
<input name="email" value="<?php echo isset($this->arrTrevllerDetails[0][0]['EmailId']) ? trim($this->arrTrevllerDetails[0][0]['EmailId']) : ''; ?>" type="hidden">
<input name="phone" value="<?php echo isset($this->arrTrevllerDetails[0][0]['Contacts']) ? trim($this->arrTrevllerDetails[0][0]['Contacts']) : ''; ?>" type="hidden">
<input id="premium_val" name="amount" value="<?php echo $this->intGrandPayableAmount; ?>" type="hidden">
<input name="AgencyUserSysId" value="<?php echo $this->intLoggedinUserId; ?>" type="hidden">
<input name="AgencySysId" value="<?php echo $this->intLoggedinUserAgencySysId; ?>" type="hidden">
<input name="TrxType" value="<?php echo $this->strTrxType; ?>" type="hidden">
<input name="PlanType" value="<?php echo $this->intPlanType; ?>" type="hidden">
<input name="TPSysId" value="<?php echo $this->TPSysId; ?>" type="hidden">
<input name="IsCardChrgToCustomer" value="1" type="hidden">
<input name="CustomerSysId" value="<?php echo isset($this->intCustomerSysId) ? trim($this->intCustomerSysId) : ''; ?>" type="hidden">
<input name="returnURL" value="<?php echo $this->strReturnURLCustomerPayment; ?>" type="hidden">
<input type="hidden" name="stringData" value='<?php echo $this->stringData; ?>'>
<input name="errorURL" value="<?php echo $this->strErrorURL; ?>" type="hidden">
</form>
<div class="countdownDiv"><i class="fa fa-clock-o tgs-clock"></i> Your Session will expire in <span class="countdown"></span></div>
<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">
$(document).ready(function() {
//localStorage.clear();
var timer2 = localStorage.getItem('timer');
if (timer2 === null) timer2 = "14:00";
$('.countdown').html(timer2);
var interval = setInterval(function() {
var timer = timer2.split(':');
var minutes = parseInt(timer[0], 10);
var seconds = parseInt(timer[1], 10);
--seconds;
minutes = (seconds < 0) ? --minutes : minutes;
if (minutes < 0) {
clearInterval(interval);
localStorage.removeItem('timer');
alert('Your session has been expired. please try again.');
//window.location.href = '/customer/customer-profile-desc/id/<?= base64_encode($this->arrTrevllerDetails['CustomerSysId']) ?>';
//$('button').show();
} else {
seconds = (seconds < 0) ? 59 : seconds;
seconds = (seconds < 10) ? '0' + seconds : seconds;
$('.countdown').html(minutes + ':' + seconds);
timer2 = minutes + ':' + seconds;
localStorage.setItem('timer', timer2);
}
}, 1000);
});
// $(document).on('click', '.selectCustomernav', function() {
// var bookingid = $(this).attr('data');
// $('#updatePaxDetails').modal('show');
// });
$(document).on('click', '.GetFareRules', function() {
var IsLCC = $(this).attr('IsLCC');
var index = $(this).attr('index');
var TraceId = $(this).attr('TraceId');
var ApiResultIndex = $(this).attr('ApiResultIndex');
var supplier = $(this).attr('supplier');
var SearchTraceId = $(this).attr('SearchTraceId');
$('#myModal_viewmore').modal('show');
// $.ajax({
// type: "POST",
// url: "/flight/getflightfarerules",
// dataType: 'json',
// data: {
// TraceId: TraceId,
// ApiResultIndex: ApiResultIndex,
// SearchTraceId: SearchTraceId,
// supplier: supplier,
// IsLCC: IsLCC
// },
// beforeSend: function() {
// $("#FareRulesDiv").html('<div style="text-align:center;padding-top:30px;"><img src="/public/images/load1.gif"/></div>');
// },
// success: function(data) {
// // console.log(data);
// $("#FareRulesDiv").html(data.html);
// }
// });
});
$("#Preloader").hide('slow');
function CustomerCard() {
var checked = $("#agreeTerms").is(":checked");
if (!checked) {
alert('Please check the terms & conditions.');
return false;
}
var confrm = confirm(
"Are you sure ? You want to pay the amount <?php echo trim($this->Symbol); ?> <?php echo number_format($this->intGrandPayableAmount, 2); ?> ."
);
if (confrm) {
$("#CustomerCard").submit();
}
}
$(document).on('click', '.resend', function() {
$(".resend").html('Sending..');
});
function payNow(isHoldBooking = 0) {
var checked = $("#agreeTerms").is(":checked");
var withprice = $("#withprice").is(":checked");
var paymentModebyUser = $("input[name='paymentModebyUser']:checked").val();
if (!checked) {
alert('Please check the terms & conditions.');
return false;
}
var amount = $("#amount").val();
var confirm = $("#confirm").val();
var isHoldBookingClick = $("#isHoldBooking").val();
if (isHoldBookingClick > 0) {
isHoldBooking = isHoldBookingClick;
}
$("#isHoldBooking").val(isHoldBooking);
var strUrlData = $("#strUrlData").val();
$.ajax({
type: "POST",
url: "/flight-new/verifying-booking",
dataType: 'json',
data: {
amount: amount,
strUrlData: strUrlData,
withprice: withprice,
paymentModebyUser: paymentModebyUser,
isHoldBooking: isHoldBooking,
confirm: confirm,
},
beforeSend: function() {
$("#netbankingReview").attr('disabled', true);
},
success: function(data) {
if (data.success) {
$("#netbankingReview").removeAttr('disabled');
if (data.checkOTP) {
$("#PhoneNumberDigit").html(data.PhoneNumberDigit);
$("#guidhidden").val(data.guid);
$("#trxstatushidden").val(data.trxstatus);
$("#OTPVerifying").modal();
}
$(".resend").html('Resend');
} else {
$("#netbankingReview").removeAttr('disabled');
alert(data.message);
return false;
}
}
});
// var confrm = confirm("Are you sure ? You want to pay the amount INR <?php echo number_format($this->intGrandPayableAmount, 2); ?> from your agency wallet.");
// if (confrm) {
// $("#paynow").submit();
// }
}
function verifying() {
var checked = $("#agreeTerms").is(":checked");
var withprice = $("#withprice").is(":checked");
var paymentModebyUser = $("input[name='paymentModebyUser']:checked").val();
if (!checked) {
alert('Please check the terms & conditions.');
return false;
}
var amount = $("#amount").val();
var isHoldBooking = $("#isHoldBooking").val();
var OTPNumber = $("#OTPNumber").val();
var confirm = $("#confirm").val();
var strUrlData = $("#strUrlData").val();
$.ajax({
type: "POST",
url: "/flight-new/verifying-booking",
dataType: 'json',
data: {
amount: amount,
OTPNumber: OTPNumber,
strUrlData: strUrlData,
verifying: 'true',
withprice: withprice,
isHoldBooking: isHoldBooking,
paymentModebyUser: paymentModebyUser,
confirm: confirm,
},
beforeSend: function() {
$(".ContinueAccept").html('Please wait..');
$(".ContinueAccept").attr('disabled', true);
},
success: function(data) {
if (data.success) {
$(".ContinueAccept").html('Continue Booking');
$(".ContinueAccept").removeAttr('disabled');
if (data.walletPay) {
//$("#amount").val(data.checkpr);
$("#paynow").submit();
} else {
$("#trxstatushidden").val(data.trxstatus);
$("#bookflight").submit();
}
} else {
$(".ContinueAccept").html('Continue Booking');
$(".ContinueAccept").removeAttr('disabled');
alert(data.message);
return false;
}
}
});
}
function rechargeNow() {
$("#recharge_from").submit();
}
$(document).on('keyup', '#totaladvance', function() {
var totaladvance = parseFloat($(this).val());
var totalsalesprice = parseFloat($('#totalsalesprice').val());
if (totaladvance > totalsalesprice) {
totaladvance = 0;
alert("Advance can't be greater than total sales price");
$(this).val(totaladvance);
}
$('#totalbalance').val((totalsalesprice - totaladvance));
});
</script>