| 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
$apiResponse = $this->apiResponse;
$IsLCC = $this->IsLCC;
$interNationalSearch = $this->interNationalSearch;
$ICSourceSysId = $this->ICSourceSysId;
$getData = $this->getData;
$intMarkUp = $this->intMarkUp;
$FareRules = $apiResponse['fareRule'];
$ErrorCode = $apiResponse['status']['success'];
$ErrorMessage = 'session expivar(---thirdcolor)';
//echo"<pre>";print_r($getData);die();
//echo '<pre>';print_r($apiResponse);echo '</pre>'
?>
<?php
if ($ICSourceSysId == 7 || $ICSourceSysId == 8) {
if ($interNationalSearch == '' || ($IsLCC == 'true' || $IsLCC == '1')) {
?>
<table border="1" width="100%">
<tbody>
<?php if ($ErrorCode == true) { ?>
<tr style="text-align: center;">
<td colspan="4" style="text-align: left; font-weight: 700;padding: 1px 5px;"><a flowType="SEARCH" IsLCC="<?= $getData['IsLCC'] ?>" id="<?= $getData['TraceId'] ?>" class="DetailedRules" href="javascript://">Detailed Rules</a></td>
</tr>
<?php if ($FareRules) {
foreach ($FareRules as $key => $val) {
$CANCELLATION = $val['fr']['CANCELLATION']['DEFAULT'];
//echo"<pre>";print_r($CANCELLATION);die;
$DATECHANGE = $val['fr']['DATECHANGE']['DEFAULT'];
$NO_SHOW = $val['fr']['NO_SHOW']['DEFAULT'];
$SEAT_CHARGEABLE = $val['fr']['SEAT_CHARGEABLE']['DEFAULT'];
?>
<tr style="text-align: center;">
<td colspan="4" style="text-align: center; background:var(--fourthcolor); font-size: 17px;"><?= $key ?></td>
</tr>
<tr style="text-align: center;">
<td colspan="4" style="text-align: center; color: var(--thirdcolor);">Mentioned fees is per pax per sector</td>
</tr>
<tr>
<td style="text-align: left;" valign="top">
<table border="0" width="100%">
<tr>
<td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700;font-size: 12px;height: 44px;">Cancellation Fee</td>
</tr>
<tr>
<td style="padding: 5px;">
<?php if (isset($CANCELLATION['amount']) && !empty($CANCELLATION['amount'])) {
echo '<i class="fa fa-inr" aria-hidden="true"></i>';
echo $CANCELLATION['amount'];
} else {
echo "Additional";
} ?> + <i class="fa fa-inr" aria-hidden="true"></i>
<?= $CANCELLATION['additionalFee'] + $intMarkUp ?>
<?php
echo str_replace('__nls__', '<br>', $CANCELLATION['policyInfo']);
?>
</td>
</tr>
</table>
</td>
<td style="text-align: left;" valign="top">
<table border="0" width="100%">
<tr>
<td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700;font-size: 12px;height: 44px;">Date Changes Fee</td>
</tr>
<tr>
<td style="padding: 5px;">
<?php if (isset($DATECHANGE['amount']) && !empty($DATECHANGE['amount'])) {
echo '<i class="fa fa-inr" aria-hidden="true"></i>';
echo $DATECHANGE['amount'];
} else {
echo "Additional";
} ?> + <i class="fa fa-inr" aria-hidden="true"></i>
<?= $CANCELLATION['additionalFee'] + $intMarkUp ?>
<?php echo str_replace('__nls__', '<br>', $CANCELLATION['policyInfo']); ?></td>
</tr>
</table>
</td>
<td style="text-align: left;" valign="top">
<table border="0" width="100%">
<tr>
<td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700;font-size: 12px;height: 44px;">No Show</td>
</tr>
<tr>
<td style="padding: 5px;"><?= $NO_SHOW['policyInfo'] ?></td>
</tr>
</table>
</td>
<td style="text-align: left;" valign="top">
<table border="0" width="100%" style="border-collapse: collapse;table-layout: fixed;width: 139px;">
<tr>
<td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700;font-size: 12px;height: 44px;">Seat Chargeable</td>
</tr>
<tr>
<td style="padding: 5px;"><?= ($SEAT_CHARGEABLE['policyInfo']) ? $SEAT_CHARGEABLE['policyInfo'] : 'As per Airlines' ?></td>
</tr>
</table>
</td>
</tr>
<?php }
}
} else { ?>
<tr style="text-align: center;">
<td style="text-align: center;"><?= $ErrorMessage ?></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php } elseif($this->route == 3 && $interNationalSearch == 1) { ?>
<table border="1" width="100%">
<tbody>
<?php if ($ErrorCode == true) { ?>
<tr style="text-align: center;">
<td colspan="4" style="text-align: left; font-weight: 700;padding: 1px 5px;"><a flowType="SEARCH" IsLCC="<?= $getData['IsLCC'] ?>" id="<?= $getData['TraceId'] ?>" class="DetailedRules" href="javascript://">Detailed Rules</a></td>
</tr>
<?php if ($FareRules) {
foreach ($FareRules as $key => $val) {
$CANCELLATION = $val['fr']['CANCELLATION']['DEFAULT'];
//echo"<pre>";print_r($CANCELLATION);die;
$DATECHANGE = $val['fr']['DATECHANGE']['DEFAULT'];
$NO_SHOW = $val['fr']['NO_SHOW']['DEFAULT'];
$SEAT_CHARGEABLE = $val['fr']['SEAT_CHARGEABLE']['DEFAULT'];
?>
<tr style="text-align: center;">
<td colspan="4" style="text-align: center; background:var(--fourthcolor); font-size: 17px;"><?= $key ?></td>
</tr>
<tr style="text-align: center;">
<td colspan="4" style="text-align: center; color: var(--thirdcolor);">Mentioned fees is per pax per sector</td>
</tr>
<tr>
<td style="text-align: left;" valign="top">
<table border="0" width="100%">
<tr>
<td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700;font-size: 12px;height: 44px;">Cancellation Fee</td>
</tr>
<tr>
<td style="padding: 5px;">
<?php
if (isset($CANCELLATION['amount']) && !empty($CANCELLATION['amount'])) {
echo '<i class="fa fa-inr" aria-hidden="true"></i>';
echo $CANCELLATION['amount'];
} else {
echo "Additional";
} ?> + <i class="fa fa-inr" aria-hidden="true"></i>
<?= isset($CANCELLATION['additionalFee'])?$CANCELLATION['additionalFee'] + $intMarkUp :$intMarkUp.' Airline Cancellation Charges + Taxes + Surcharges'; ?>
<?php
echo str_replace('__nls__', '<br>', $CANCELLATION['policyInfo']);
?>
</td>
</tr>
</table>
</td>
<td style="text-align: left;" valign="top">
<table border="0" width="100%">
<tr>
<td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700;font-size: 12px;height: 44px;">Date Changes Fee</td>
</tr>
<tr>
<td style="padding: 5px;">
<?php if (isset($DATECHANGE['amount']) && !empty($DATECHANGE['amount'])) {
echo '<i class="fa fa-inr" aria-hidden="true"></i>';
echo $DATECHANGE['amount'];
} else {
echo "Additional";
} ?> + <i class="fa fa-inr" aria-hidden="true"></i>
<?= $DATECHANGE['additionalFee'] + $intMarkUp ?>
<?php echo str_replace('__nls__', '<br>', $DATECHANGE['policyInfo']); ?></td>
</tr>
</table>
</td>
<td style="text-align: left;" valign="top">
<table border="0" width="100%">
<tr>
<td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700;font-size: 12px;height: 44px;">No Show</td>
</tr>
<tr>
<td style="padding: 5px;"><?= ($NO_SHOW['policyInfo'])?$NO_SHOW['policyInfo']:'Fees As Per Airline Rule + Surcharges' ?></td>
</tr>
</table>
</td>
<td style="text-align: left;" valign="top">
<table border="0" width="100%" style="border-collapse: collapse;table-layout: fixed;width: 139px;">
<tr>
<td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700;font-size: 12px;height: 44px;">Seat Chargeable</td>
</tr>
<tr>
<td style="padding: 5px;"><?= ($SEAT_CHARGEABLE['policyInfo']) ? $SEAT_CHARGEABLE['policyInfo'] : 'As per Airlines' ?></td>
</tr>
</table>
</td>
</tr>
<?php }
}
} else { ?>
<tr style="text-align: center;">
<td style="text-align: center;"><?= $ErrorMessage ?></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php }else{ ?>
<table border="1" width="100%">
<tbody>
<?php if ($ErrorCode == true) { ?>
<tr style="text-align: center;">
<td colspan="4" style="text-align: left; font-weight: 700;padding: 1px 5px;"><a flowType="SEARCH" IsLCC="<?= $getData['IsLCC'] ?>" id="<?= $getData['TraceId'] ?>" class="DetailedRules" href="javascript://">Detailed Rules</a></td>
</tr>
<?php if ($FareRules) {
foreach ($FareRules as $key => $val) {
$AFTER_DEPARTURE = $val['fr']['CANCELLATION']['AFTER_DEPARTURE'];
$BEFORE_DEPARTURE = $val['fr']['CANCELLATION']['BEFORE_DEPARTURE'];
$DATECHANGE_AFTER_DEPARTURE = $val['fr']['DATECHANGE']['AFTER_DEPARTURE'];
$DATECHANGE_BEFORE_DEPARTURE = $val['fr']['DATECHANGE']['BEFORE_DEPARTURE'];
$NO_SHOW_AFTER_DEPARTURE = $val['fr']['NO_SHOW']['AFTER_DEPARTURE'];
$NO_SHOW_BEFORE_DEPARTURE = $val['fr']['NO_SHOW']['BEFORE_DEPARTURE'];
?>
<tr style="text-align: center;">
<td colspan="4" style="text-align: center; background:var(--fourthcolor); font-size: 17px;"><?= $key ?></td>
</tr>
<tr style="text-align: center;">
<td colspan="4" style="text-align: center; color: var(--thirdcolor);">Mentioned fees is per pax per sector</td>
</tr>
<tr>
<td style="text-align: left;" valign="top">
<table border="0" width="100%">
<tr>
<td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700;">Cancellation Fee</td>
</tr>
<tr>
<td style="padding: 5px;">Before Departure <br>
<?php if (isset($BEFORE_DEPARTURE['amount']) && $BEFORE_DEPARTURE['amount'] > 0) { ?>
<i class="fa fa-inr" aria-hidden="true"></i> <?= $BEFORE_DEPARTURE['amount'] ?> +
<?php } ?>
<i class="fa fa-inr" aria-hidden="true"></i><?= $BEFORE_DEPARTURE['additionalFee'] + $intMarkUp ?> <?= $BEFORE_DEPARTURE['policyInfo'] ?>
</td>
</tr>
<tr>
<td style="padding: 5px;">After Departure <br>
<?php if (isset($AFTER_DEPARTURE['amount']) && $AFTER_DEPARTURE['amount'] > 0) { ?>
<i class="fa fa-inr" aria-hidden="true"></i> <?= $AFTER_DEPARTURE['amount'] ?> +
<?php } ?>
<i class="fa fa-inr" aria-hidden="true"></i><?= $AFTER_DEPARTURE['additionalFee'] + $intMarkUp ?> <?= $AFTER_DEPARTURE['policyInfo'] ?>
</td>
</tr>
</table>
</td>
<td style="text-align: left;" valign="top">
<table border="0" width="100%">
<tr>
<td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700;">Date Changes Fee</td>
</tr>
<tr>
<td style="padding: 5px;">Before Departure <br>
<?php if (isset($DATECHANGE_BEFORE_DEPARTURE['amount']) && $DATECHANGE_BEFORE_DEPARTURE['amount'] > 0) { ?>
<i class="fa fa-inr" aria-hidden="true"></i> <?= $DATECHANGE_BEFORE_DEPARTURE['amount'] ?> +
<?php } ?>
<i class="fa fa-inr" aria-hidden="true"></i> <?= $DATECHANGE_BEFORE_DEPARTURE['additionalFee'] + $intMarkUp ?> <?= $DATECHANGE_BEFORE_DEPARTURE['policyInfo'] ?>
</td>
</tr>
<tr>
<td style="padding: 5px;">After Departure <br>
<?php if (isset($DATECHANGE_AFTER_DEPARTURE['amount']) && $DATECHANGE_AFTER_DEPARTURE['amount'] > 0) { ?>
<i class="fa fa-inr" aria-hidden="true"></i> <?= $DATECHANGE_AFTER_DEPARTURE['amount'] ?> +
<?php } ?>
<i class="fa fa-inr" aria-hidden="true"></i> <?= $DATECHANGE_AFTER_DEPARTURE['additionalFee'] + $intMarkUp ?> <?= $DATECHANGE_AFTER_DEPARTURE['policyInfo'] ?>
</td>
</tr>
</table>
</td>
<td style="text-align: left;" valign="top">
<table border="0" width="100%">
<tr>
<td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700;">No Show</td>
</tr>
<tr>
<td style="padding: 5px;">Before Departure <br>
<?php if (isset($NO_SHOW_BEFORE_DEPARTURE['amount']) && $NO_SHOW_BEFORE_DEPARTURE['amount'] > 0) { ?>
<i class="fa fa-inr" aria-hidden="true"></i> <?= $NO_SHOW_BEFORE_DEPARTURE['amount'] ?> +
<?php } ?>
<i class="fa fa-inr" aria-hidden="true"></i> <?= $NO_SHOW_BEFORE_DEPARTURE['additionalFee'] + $intMarkUp ?> <?= $NO_SHOW_BEFORE_DEPARTURE['policyInfo'] ?>
</td>
</tr>
<tr>
<td style="padding: 5px;">After Departure <br>
<?php if (isset($NO_SHOW_AFTER_DEPARTURE['amount']) && $NO_SHOW_AFTER_DEPARTURE['amount'] > 0) { ?>
<i class="fa fa-inr" aria-hidden="true"></i> <?= $NO_SHOW_AFTER_DEPARTURE['amount'] ?> +
<?php } ?>
<i class="fa fa-inr" aria-hidden="true"></i> <?= $NO_SHOW_AFTER_DEPARTURE['additionalFee'] + $intMarkUp ?> <?= $NO_SHOW_AFTER_DEPARTURE['policyInfo'] ?>
</td>
</tr>
</table>
</td>
<td style="text-align: left;" valign="top">
<table border="0" width="100%" style="border-collapse: collapse;table-layout: fixed;width: 139px;">
<tr>
<td style="padding: 5px; border-bottom: 1px solid #ccc; font-weight: 700;">Seat Chargeable</td>
</tr>
<tr>
<td style="padding: 5px;">As per Airlines</td>
</tr>
</table>
</td>
</tr>
<?php }
}
} else { ?>
<tr style="text-align: center;">
<td style="text-align: center;"><?= $ErrorMessage ?></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php } ?>
<div id="FareRulesDdetails"></div>
<?php
}else{
$FareRules = $apiResponse['Response']['FareRules'];
$ErrorCode = $apiResponse['Response']['Error']['ErrorCode'];
$ErrorMessage = $apiResponse['Response']['Error']['ErrorMessage'];
?>
<table border="1" width="100%">
<tbody>
<?php if($ErrorCode==0){ ?>
<tr style="text-align: center;">
<td style="text-align: center;">Additional Service Fee <?=$intMarkUp?></td>
</tr>
<?php if($FareRules){ foreach($FareRules as $val){ ?>
<tr style="text-align: center;">
<td style="text-align: center; background:#C4EEC8;"><?=$val['Origin']?> - <?=$val['Destination']?></td>
</tr>
<tr>
<td style="text-align: center;"><?=$val['FareRuleDetail']?></td>
</tr>
<?php } } }else{ ?>
<tr style="text-align: center;">
<td style="text-align: center;"><?=$ErrorMessage?></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php
}
?>