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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2b.hellogtx.com/application/views/scripts/flight/e-ticket-supplier.phtml
<?php
$baseUrl = $this->baseUrl;
$B2BType = $this->B2BType;
$CurrencyRate = (isset($this->CurrencyRate) && !empty($this->CurrencyRate)) ? $this->CurrencyRate : 1;
$CurrencyTitle = $this->CurrencyTitle;
$MasterAgencyLogo = $this->MasterAgencyLogo;
$getAgencyData = $this->getAgencyData;
$MasterAgencyData = $this->MasterAgencyData;
$AgentAddress = $this->AgentAddress;
$FlightBookingData = $this->FlightBookingData;
$ForCustomerSession = $this->ForCustomerSession;
$SelectedBaggSessionNew = $this->SelectedBaggSessionNew;
$SelectedMealSessionNew = $this->SelectedMealSessionNew;
$selectedSeatSession = $this->selectedSeatSession;
$API_Response_Ticket = $this->FlightBookingTicketArr;
$Email = isset($this->Email) ? $this->Email : false;
$withprice = isset($this->withprice) ? $this->withprice : 0;

$sessionFlightSearchParams = $post = $this->sessionFlightSearchParams;
$interNationalSearch = $sessionFlightSearchParams['interNationalSearch'];
$FlightTraceId = $sessionFlightSearchParams['FlightTraceId'];
$source = isset($sessionFlightSearchParams['source']) ? $sessionFlightSearchParams['source'][0] : '';
$destination = isset($sessionFlightSearchParams['destination']) ? $sessionFlightSearchParams['destination'][0] : '';
$departure_date = isset($sessionFlightSearchParams['departure_date']) ? $sessionFlightSearchParams['departure_date'][0] : date('d/m/Y');
$strDepatureDate = isset($sessionFlightSearchParams['strDepatureDate']) ? $sessionFlightSearchParams['strDepatureDate'][0] : date('d M Y');
$strReturnDate = isset($sessionFlightSearchParams['strReturnDate']) ? $sessionFlightSearchParams['strReturnDate'] : '';
$return_date = isset($sessionFlightSearchParams['return_date']) ? $sessionFlightSearchParams['return_date'][0] : '';
$source_city = isset($sessionFlightSearchParams['source_city']) ? $sessionFlightSearchParams['source_city'][0] : '';
$ContSysId_1 = isset($sessionFlightSearchParams['ContSysId']) ? $sessionFlightSearchParams['ContSysId'][0] : '';
$destination_city = isset($sessionFlightSearchParams['destination_city']) ? $sessionFlightSearchParams['destination_city'][0] : '';
$ContSysId = isset($sessionFlightSearchParams['ContSysId']) ? $sessionFlightSearchParams['ContSysId'][1] : '';
$route = isset($sessionFlightSearchParams['route']) ? $sessionFlightSearchParams['route'][0] : '';
$mytrip_city_from = isset($sessionFlightSearchParams['mytrip_city_from']) ? $sessionFlightSearchParams['mytrip_city_from'][0] : '';
$mytrip_city_to = isset($sessionFlightSearchParams['mytrip_city_to']) ? $sessionFlightSearchParams['mytrip_city_to'][0] : '';
$from_mytrip_city = isset($sessionFlightSearchParams['from_mytrip_city']) ? $sessionFlightSearchParams['from_mytrip_city'][0] : '';
$from_city = isset($sessionFlightSearchParams['from_city']) ? $sessionFlightSearchParams['from_city'][0] : '';
$to_city = isset($sessionFlightSearchParams['to_city']) ? $sessionFlightSearchParams['to_city'][0] : '';
$adults = isset($sessionFlightSearchParams['adults']) ? $sessionFlightSearchParams['adults'] : '';
$childs = isset($sessionFlightSearchParams['childs']) ? $sessionFlightSearchParams['childs'] : '';
$infants = isset($sessionFlightSearchParams['infants']) ? $sessionFlightSearchParams['infants'] : '';
$class = isset($sessionFlightSearchParams['class']) ? $sessionFlightSearchParams['class'] : '';
$ARR_SALUTION_TJ = unserialize(ARR_SALUTION_TJ);
$ARR_SALUTION_CHILD = unserialize(ARR_SALUTION_CHILD);
$arrDepartureDates  = explode("/", $departure_date);
$departureDates       = $arrDepartureDates[2] . "/" . $arrDepartureDates[1] . "/" . ($arrDepartureDates[0] - 1);

$BagPrice = 0;
$InbBagPrice = 0;
$MealPrice = 0;
$InbMealPrice = 0;
$SeatPrice = 0;
$SelectedBagg = [];
$SelectedMeal = [];
$SelectedSeat = [];
if ($SelectedBaggSessionNew) {
    foreach ($SelectedBaggSessionNew as $values) {
        foreach ($values as $val) {
            $BagPrice += $val['Price'];
        }
        $SelectedBagg = $values;
    }
}
if ($SelectedMealSessionNew) {
    foreach ($SelectedMealSessionNew as $values) {
        foreach ($values as $val) {
            $MealPrice += $val['Price'];
        }
        $SelectedMeal = $values;
    }
}
if ($selectedSeatSession) {
    foreach ($selectedSeatSession as $values) {
        foreach ($values as $val) {
            $SeatPrice += $val['amount'];
        }
        $SelectedSeat = $values;
    }
}

$intNetPublishedFare = 0;
$AdditionalTxnFeePub = 0;
$TotalBaseFare = 0;
$AdditionalTxnFeePubR = 0;
$TotalTaxsandFees = 0;
$TotalExtraMarkUpSum = 0;
$TotalExtraMarkup = 0;
$TotalExtraMarkupOnGST = 0;
$CommRetained = 0;
$TotalCommEarned = 0;
$TotalAgentMarkUp = 0;
$TotalAgencyComm = 0;
$TotalGSTOnAgentMarkUp = 0;
$CostToAgent = 0;
$TotalIntCommission = 0;
$ToTalGSTFees = 0;
$FareRules = isset($FlightBookingData[0]['FareRules']) ? $FlightBookingData[0]['FareRules'] : '';
$CancellationPolicy = isset($FlightBookingData[0]['CancellationPolicy']) ? $FlightBookingData[0]['CancellationPolicy'] : '';
$Currency = $FlightBookingData[0]['FairRules']['Currency'];
$bookingId = $FlightBookingData[0]['bookingId'];
$IsSeriesFareData = isset($FlightBookingData[0]['IsSeriesFareData']) ? $FlightBookingData[0]['IsSeriesFareData'] : 0;
$SegmentsBaggageArr = [];
$SegmentsArr = [];

if ($FlightBookingData) {
    foreach ($FlightBookingData as $Data) {
        $intNetPublishedFare += $Data['FairRules']['PublishedFare'];
        $ExtraMarkup = isset($Data['FairRules']['ExtraMarkup']) ? $Data['FairRules']['ExtraMarkup'] : 0;
        $ExtraMarkupOnGST = isset($Data['FairRules']['ExtraMarkupOnGST']) ? $Data['FairRules']['ExtraMarkupOnGST'] : 0;
        $TotalExtraMarkUp = ($ExtraMarkup + $ExtraMarkupOnGST);
        $TotalExtraMarkUpSum += ($ExtraMarkup + $ExtraMarkupOnGST);
        $TotalExtraMarkup += ($ExtraMarkup);
        $TotalExtraMarkupOnGST += ($ExtraMarkupOnGST);

        if ($Data['FairRules']['FareBreakdown']) {
            foreach ($Data['FairRules']['FareBreakdown'] as $value) {
                //echo '<pre>';print_r($value);echo '</pre>';

                $TDS = $value['TDS']; //Management Fee
                $MF = $value['MF']; //Management Fee
                $YQ = $value['YQ']; //Fuel Surcharge
                $AGST = $value['AGST']; //Airline GST Component
                $MFT = $value['MFT']; //Management Fee Tax
                $OT = $value['OT']; //Other Charges
                $YR = $value['YR'];
                $other = $MF + $YQ + $AGST + $MFT + $OT + $YR;

                $PBaseFare = $value['BaseFare'];
                $intTotalGST = $value['intTotalGST'];
                $intGTXMarkUp = $value['intGTXMarkUp'];
                $GTXMarkUpGST = $value['GTXMarkUpGST'];
                $apiMarkup = $value['apiMarkup'];
                $AgentMarkUp = $value['AgentMarkUp'];
                $CommEarned = $value['CommEarned'];
                $IntCommission = $value['IntCommission'];
                $GSTOnAgentMarkUp = $value['GSTOnAgentMarkUp'];
                $apiTaxOnMarkup = $value['apiTaxOnMarkup'];
                $GSTOnMarkUp = $value['GSTOnMarkUp'];
                $FixedMarkUp = $value['FixedMarkUp'];

                $paxPublishedFare = ($PBaseFare);
                $PassengerType = $value['PassengerType'];
                $PassengerCount = $value['PassengerCount'];
                $AdditionalTxnFeePub += $value['AdditionalTxnFeePub'];

                $CommRetained += $value['AdminComminAmount_ag'];
                $TotalCommEarned += $CommEarned;
                $TotalAgentMarkUp += $AgentMarkUp;
                $TotalAgencyComm += $value['Agencycommission'];
                $TotalGSTOnAgentMarkUp += $GSTOnAgentMarkUp;
                $CostToAgent += $value['CostToAgent'];
                $TotalIntCommission += $IntCommission;

                //$TaxesFees = ($apiMarkup + $intGTXMarkUp + $GTXMarkUpGST + $intTotalGST + $other + $AgentMarkUp + $GSTOnAgentMarkUp - $IntCommission);
                $otherBase = ($apiMarkup + $intGTXMarkUp + $GTXMarkUpGST + $intTotalGST + $other);
                if ($this->IsTJFlightAPI) {
                    $OTTax = ($MF + $MFT + $OT + $YR);
                } else {
                    $OTTax = ($MF + $MFT + $OT + $YR + $TDS);
                }
                $ServiceFee = ($apiMarkup + $apiTaxOnMarkup);
                if ($IsSeriesFareData == 1) {
                    $TotalFare = ($PBaseFare);
                    $TaxesFees = ($OTTax + $ServiceFee);
                } else {
                    $TotalFare = ($PBaseFare + $AGST + $YQ + $OTTax + $ServiceFee);
                    $TaxesFees = ($AgentMarkUp);
                }
                $ToTalGSTFees += ($GSTOnAgentMarkUp);
                $TotalBaseFare += ($TotalFare);
                $TotalTaxsandFees += ($TaxesFees);
            }
        }
        foreach ($Data['Segments'] as $seg) {
            $SegmentsArr[] = $seg;
            $SegmentsBaggageArr[] = ['Baggage' => $seg['Baggage'], 'CabinBaggage' => $seg['CabinBaggage']];
        }
    }
}


if (($this->IsTJFlightAPI == 1) || ($this->IsTJFlightAPI == 0 && $IsSeriesFareData == 1)) {

    $success = $API_Response_Ticket['status']['success'];
    $status = $API_Response_Ticket['order']['status'];
    $errorsMessage = $API_Response_Ticket['errors'];
    $bookingIds = $API_Response_Ticket['order']['bookingId'];
    $tripInfos = $API_Response_Ticket['itemInfos']['AIR']['tripInfos'];
    $travellerInfos = $API_Response_Ticket['itemInfos']['AIR']['travellerInfos'];
    $pnrDetails = $travellerInfos[0]['pnrDetails'];
    $sector = implode(",<br>", array_keys($pnrDetails));
    $PNRNumber = implode(",", $pnrDetails);
    $TotalBaseFare = ($TotalBaseFare + $BagPrice + $MealPrice + $SeatPrice);
} else {
    $TotalBaseFare = ($TotalBaseFare + $BagPrice + $MealPrice + $SeatPrice);
    $Response['onward'] = $API_Response_Ticket[0];
    if (isset($API_Response_Ticket[1])) {
        $Response['return'] = $API_Response_Ticket[1];
    }
    $ErrorMessageonward = !empty($Response['onward']['Response']['Error']['ErrorMessage']) ? $Response['onward']['Response']['Error']['ErrorMessage'] : 'Oops somethings went wrong. please note reference number for future use.';
    $ResponseStatusonward  = $success = $Response['onward']['Response']['ResponseStatus'];
    if ($ResponseStatusonward == 1) {
        $status = 'SUCCESS';
    } else {
        $status = '';
    }

    $Responseonward = $Response['onward']['Response']['Response'];
    $Responsereturn = $Response['return']['Response']['Response'];
    $FlightItineraryonward = $Response['onward']['Response']['Response']['FlightItinerary'];
    $PNR = $Responseonward['PNR'];
    $BookingId = $Responseonward['BookingId'];
    $PNReturn = $Responsereturn['PNR'];
    $BookingIdReturn = $Responsereturn['BookingId'];
    $FareRules = $FlightItineraryonward['FareRules'];
    // echo '<pre>';
    // print_r($FareRules);
    // echo '</pre>';
    if ($PNReturn) {
        $PNRNumber = $PNR . ',' . $PNReturn;
    } else {
        $PNRNumber = $PNR;
    }
    if ($BookingIdReturn) {
        $bookingId = $BookingId . ',' . $BookingIdReturn;
    } else {
        $bookingId = $BookingId;
    }
    $TicketArray = [];
    if ($FlightBookingData) {
        foreach ($FlightBookingData as $key => $Data) {
            $TBORes = isset($API_Response_Ticket[$key]) ? $API_Response_Ticket[$key] : '';
            $Origin = $TBORes['Response']['Response']['FlightItinerary']['Origin'];
            $Destination = $TBORes['Response']['Response']['FlightItinerary']['Destination'];
            $PassengerTBO = $TBORes['Response']['Response']['FlightItinerary']['Passenger'];
            if ($PassengerTBO) {
                foreach ($PassengerTBO as $ps => $pass) {
                    $TicketArray[][$ps] = array(
                        'Origin' => $Origin,
                        'Destination' => $Destination,
                        'Ticket' => $pass['Ticket'],
                        'Ssr' => $pass['Ssr'],
                    );
                }
            }
        }
    }
}
$ARR_SALUTION_TJ = unserialize(ARR_SALUTION_TJ);
$gtxagencysysid = $this->MasterAgencySysId;
$IsCancellationProtection = (isset($this->BookingData['IsCancellationProtection'])) ? $this->BookingData['IsCancellationProtection'] : 0;
$CancellationProtectionPrice = 0;
if($IsCancellationProtection == 1){
    $CancellationProtectionPrice = $this->BookingData['CancellationProtectionPrice'];
}
$TPSysId = $this->BookingData['TPSysId'];

$getAgencySupplierUserData = $this->getAgencySupplierUserData;
//echo "<pre>";print_r($MasterAgencyData);echo "</pre>";

?>
<!DOCTYPE html>
<html>

<head lang="en">
    <meta charset="UTF-8">
    <title>E-Ticket</title>
    <link rel="icon" type="image/png" sizes="32x32" href="<?php echo $baseUrl; ?>public/upload/<?php echo $gtxagencysysid;?>/images/favicon-icon.png" />
    <link href="https://fonts.googleapis.com/css?family=Lato&display=swap" rel="stylesheet">
</head>

<style>
    .block {
        display: block;
    }

    body {
        font-family: 'Roboto', sans-serif;
    }

    body {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    @media print {
        #button-container {
            display: none;
        }
    }
</style>

<body>
     

    <table width="900px" border="0" cellspacing="0" cellpadding="0" align="center" style="position: relative;background: #ffffff;border-top: 3px solid #d2d6de;padding:15px;
    margin-bottom: 20px;box-shadow: 0 1px 1px rgb(0 0 0 / 10%);border: 1px solid #d7d7d7;line-height:20px;">
        
        <tr>
            <td colspan="3" align="right" valign="top">
                <span style="padding:10px 0 0 0;display: block;color: #000; font-weight: 400; text-align: left; font-size:14px; font-family: 'Lato';">Dear <?php echo trim($getAgencySupplierUserData['SupplierName']);?>,</span>  <br>
                <span style="display: block;color: #444; font-weight: 400; text-align: left; font-size:14px; font-family: 'Lato';">
                    
                    Your below ticket is sold on our portal. You are requested to block the inventory as per below information and <span style="color:red;">share the PNR</span> on priority or update the same in the login: 
                </span>  
            </td>
        </tr>
        <tr><td>&nbsp;</td></tr>
        <tr>
            <td colspan="3" align="left" valign="top">

                <table width="100%"  bordercolor="#d7d7d7" cellspacing="0" cellpadding="0" style="padding:0px;border:1px solid #000;">
                    <tr >
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;">
                            <div style="color: #000; font-size: 13px;display: block; padding:3px 0px;">Reference Number </div>
                        </td>
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;border-left: 1px solid #000;">
                            <div style="color: #000; font-size: 13px;display: block; padding:3px 0px;"><?php echo $bookingId ?> </div>
                        </td>

                    </tr>
                    <tr>
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;border-top: 1px solid #000;">
                            <div style="color: #000; font-size: 13px;display: block; padding:3px 0px;">Inventory Name  </div>
                        </td>
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;border-top: 1px solid #000;border-left: 1px solid #000;">
                            <div style="color: #000; font-size: 13px;display: block; padding:3px 0px;">
                            <?php foreach($SegmentsArr as $key => $value){ 
                                    echo ($key>0) ? ',<br>' : '';
                                    echo $value['originAirportCode'].'-'.$value['destinationAirportCode'];
                                }
                            ?>
                            </div>
                        </td>

                    </tr>
                    <tr>
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;border-top: 1px solid #000;">
                            <div style="color: #000; font-size: 13px;display: block; padding:3px 0px;">Supplier Name   </div>
                        </td>
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;border-top: 1px solid #000;border-left: 1px solid #000;">
                            <div style="color: #000; font-size: 13px;display: block; padding:3px 0px;">
                                <?php echo trim($getAgencySupplierUserData['CompanyName']);?>
                                <br><?php echo trim($getAgencySupplierUserData['ContactNo']);?>
                            </div>
                        </td>

                    </tr>
                    <tr>
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;border-top: 1px solid #000;">
                            <div style="color: #000; font-size: 13px;display: block; padding:3px 0px;">Date of Travel  </div>
                        </td>
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;border-top: 1px solid #000;border-left: 1px solid #000;">
                            <div style="color: #000; font-size: 13px;display: block; padding:3px 0px;">
                            <?php foreach($SegmentsArr as $key => $value){ 
                                    echo ($key>0) ? ',<br>' : '';
                                    echo date('d/m/Y',strtotime($value['originDepTime']));
                                }
                            ?>
                            </div>
                        </td>

                    </tr>
                    <tr>
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;border-top: 1px solid #000;">
                            <div style="color: #000; font-size: 13px;display: block; padding:3px 0px;">Date of Booking   </div>
                        </td>
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;border-top: 1px solid #000;border-left: 1px solid #000;">
                            <div style="color: #000; font-size: 13px;display: block; padding:3px 0px;"><?= date('d-m-Y H:i:s', strtotime($this->created_at)) ?></div>
                        </td>

                    </tr>
                    <tr>
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;border-top: 1px solid #000;">
                            <div style="color: #000; font-size: 13px;display: block; padding:3px 0px;">Flight Details </div>
                        </td>
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;border-top: 1px solid #000;border-left: 1px solid #000;">
                            <div style="color: #000; font-size: 13px;display: block; padding:3px 0px;">
                                <?php foreach($SegmentsArr as $key => $value){ 
                                        echo ($key>0) ? ',<br>' : '';
                                        echo $value['SegFlightNumber'].' ('.$value['AirlineName'].')<br>';
                                        echo 'Departs: '.$value['originAirportCode'].' at '.$value['strDepartureDtTime'].'<br>';
                                        echo 'Arrives: '.$value['destinationAirportCode'].' at '.$value['strArrivalDtTime'];
                                         
                                    }
                                ?></div>
                        </td>

                    </tr>
                    <?php if($FlightBookingData[0]['IsInternational'] != 1){ ?>
                    <tr>
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;border-top: 1px solid #000;">
                            <div style="color: #000; font-size: 13px;display: block; padding:3px 0px;">Passenger Names  </div>
                        </td>
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;border-top: 1px solid #000;border-left: 1px solid #000;">
                            <div style="color: #000; font-size: 13px;display: block; padding:3px 0px;">
                                <?php 
                                    foreach ($this->passengerData as $k => $value) {
                                        if ($value['paxType'] == 1) {
                                            $paxdetail = 'ADULT';
                                        } elseif ($value['paxType'] == 2) {
                                            $paxdetail = 'CHILD';
                                        } else {
                                            $paxdetail = 'INFANT';
                                        }
                                        $ARR_SALUTION_TJ_ = $ARR_SALUTION_CHILD;
                                        if ($value['paxType'] == 1) {
                                            $ARR_SALUTION_TJ_ = $ARR_SALUTION_TJ;
                                        }
                                        echo $ARR_SALUTION_TJ_[$value['Salutation']].' '.$value['FirstName'].' '.$value['LastName'].'('.$paxdetail.')';
                                    }
                                ?>
                            </div>
                        </td>

                    </tr>
                    <?php } ?>
                    <tr>
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;border-top: 1px solid #000;">
                            <div style="color: #000; font-size: 13px;display: block; padding:3px 0px;">Airline PNR  </div>
                        </td>
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;border-top: 1px solid #000;border-left: 1px solid #000;">
                            <div style="color: #000; font-size: 13px;display: block; padding:3px 0px;"><?php echo $PNRNumber ?></div>
                        </td>

                    </tr>
                    <tr>
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;border-top: 1px solid #000;">
                            <div style="color: #000; font-size: 13px;display: block; padding:3px 0px;">Cost <Orgoto>  </div>
                        </td>
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;border-top: 1px solid #000;border-left: 1px solid #000;">
                            <div style="color: #000; font-size: 13px;display: block; padding:3px 0px;"> <?= $CurrencyTitle ?> <?= number_format(((($TotalBaseFare + $TotalExtraMarkUpSum + $TotalTaxsandFees + $ToTalGSTFees) * $CurrencyRate) + $CancellationProtectionPrice), 2) ?></div>
                        </td>

                    </tr>
                    <tr><td>&nbsp;</td></tr>
                    
                </table>
            </td>
        </tr>
        <br>
       <?php if($FlightBookingData[0]['IsInternational'] == 1 && $FlightBookingData[0]['ICSourceSysId'] == 8){ ?>
        <tr>
            <td colspan="3" align="left" valign="top">

                <table width="100%"  bordercolor="#d7d7d7" cellspacing="0" cellpadding="0" style="padding:0px;border:1px solid #000;">
                    <tr><th>Passenger Name</th><th> Details</th></tr>
                    
                        <?php 
                            foreach ($this->passengerData as $k => $value) {
                                if ($value['paxType'] == 1) {
                                    $paxdetail = 'ADULT';
                                } elseif ($value['paxType'] == 2) {
                                    $paxdetail = 'CHILD';
                                } else {
                                    $paxdetail = 'INFANT';
                                }
                                $ARR_SALUTION_TJ_ = $ARR_SALUTION_CHILD;
                                if ($value['paxType'] == 1) {
                                    $ARR_SALUTION_TJ_ = $ARR_SALUTION_TJ;
                                }
                        ?>
                        <tr>
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;border-top: 1px solid #000;border-left: 1px solid #000;">
                            
                                    <?php echo $ARR_SALUTION_TJ_[$value['Salutation']].' '.$value['FirstName'].' '.$value['LastName'].'('.$paxdetail.')';
                                    
                                ?>
                        </td>
                        <td align="left" valign="center" width="20%" style="padding: 8px 12px;border-top: 1px solid #000;border-left: 1px solid #000;">
                            
                            <?= '<b>Date Of Birth : </b> '.date('d-m-Y ', strtotime($value['DOB'])).'<br><b> Passport No : </b> '.$value['PassportNo'].'<br>'
                           .'<b> Nationality : </b> '.$value['PassportNation'].'<br>'
                            .'<b>Passport Issue date : </b> '.date('d-m-Y ', strtotime($value['passporIssue'])).
                            '<br><b>Passport Expiry date : </b> '.date('d-m-Y ', strtotime($value['PassportExpiry']));?>
                </td>
                    </tr>
                      <?php  } ?>
                    <tr><td>&nbsp;</td></tr>
                    
                </table>
            </td>
        </tr>
        <?php } ?>
        <tr>
            <td colspan="3" align="right" valign="top">
                 <span style="padding:10px 0 0 0;display: block;color: #000; font-weight: 400; text-align: left; font-size:14px; font-family: 'Lato';">
                     For any further assistance, please contact us at <a href="tel:<?php echo $MasterAgencyData['countrycode'] ?><?= $MasterAgencyData['PrimaryMobileNo'] ?>"><?php echo $MasterAgencyData['countrycode'] ?><?= $MasterAgencyData['PrimaryMobileNo'] ?></a> or send an email to <a href="mailto:<?php echo $MasterAgencyData['PrimaryEmail'] ?>"><?php echo $MasterAgencyData['PrimaryEmail'] ?></a>
                </span>  
            </td>
        </tr>
        <tr>
            <td colspan="3" align="right" valign="top">
                 <span style="padding:10px 0 0 0;display: block;color: #000; font-weight: 400; text-align: left; font-size:14px; font-family: 'Lato';">
                    Thanks & Regards, <br>
                    Team <?php echo $MasterAgencyData['DisplayName'] ?><br>
                    <?php echo $MasterAgencyData['PrimaryEmail'] ?><br>
                    <?php echo $MasterAgencyData['countrycode'] ?><?= $MasterAgencyData['PrimaryMobileNo'] ?> <br>
                    <?php echo $MasterAgencyData['Address'] ?> 
                    
                </span> 
                
            </td>
        </tr>
        <tr>
            <td colspan="3" align="right" valign="top">
                 <span style="padding:10px 0 0 0;display: block;color: #000; font-weight: 600; text-align: center; font-size:14px; font-family: 'Lato';">
                    Note: This is an auto generated email, please do not reply
                </span>  
            </td>
        </tr>

    </table>
    <script type="text/javascript">
        function printDiv() {
            document.getElementById('printDiv').style.display = "none";
            window.print();
            document.body.innerHTML = printContents;
            document.body.innerHTML = originalContents;
        }
        window.onafterprint = function() {
            document.getElementById('printDiv').style.display = "block";
            //window.close();
        }
    </script>
</body>

</html>

Youez - 2016 - github.com/yon3zu
LinuXploit