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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/application/views/scripts/booking-flight/getcancelcharge.phtml
<?php
$baseUrl = $this->baseUrl;
$intMarkUp = $this->intMarkUp;
$ICSourceSysId = $this->ICSourceSysId;
$ARR_SALUTION = unserialize(ARR_SALUTION);
$ARR_SALUTION_CHILD = unserialize(ARR_SALUTION_CHILD);

$ChangeResponse = $this->ChangeResponse;
 
if ($ICSourceSysId == 3 ||$ICSourceSysId == 9) {
    $Response = $ChangeResponse['Response'];
    $status = $ChangeResponse['Response']['ResponseStatus'];
    $errors = $ChangeResponse['Response']['Error']['ErrorMessage'];
} else {
    $status = $ChangeResponse['status']['success'];
    $errors = isset($ChangeResponse['errors']) ? $ChangeResponse['errors'] : [];
    $trips = $ChangeResponse['trips'];
}

// echo "<pre>";
// print_r($ChangeResponse);
// print_r($this->PaxDetails);
// print_r($this->PaxType);
// echo "</pre>";
$TotalCancellation = 0;
$TotalrefundAmount = 0;
$TotalServiceFee = 0;
?>
<div class="table-responsive">
    <table class="table table-bordered" border="1">
        <tbody>
            <tr style="text-align: center;">
                <th style="text-align: left; border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;">Passenger Name</th>
                <th style="text-align: left; border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;">Amendment Charges</th>
                <th style="text-align: left; border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;">Refundable Amount</th>
                <th style="text-align: left; border-bottom: 1px solid #ccc;">Service Fee </th>
            </tr>
            <?php
            if ($ICSourceSysId == 3 || $ICSourceSysId == 9) {
                if ($status == 1) {
                    $paxName = [];
                    if ($this->PaxDetails) {
                        foreach ($this->PaxDetails as $keys => $value) {
                            $PaxType = isset($this->PaxType[$keys]) ? $this->PaxType[$keys] : '';
                            $PaxDetailsEX = explode('-', $value);
                            $paxName[] = $PaxDetailsEX[0] . ' ' . $PaxDetailsEX[1] . ' | ' . $PaxType;
                        }
                    }
            ?>

                    <tr style="text-align: center;">
                        <td style="text-align: left; color: #000;border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;"><?= implode('<br>', $paxName) ?></td>
                        <td style="text-align: right; color: #000;border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;"><?= $Response['Currency'] ?> <?= $Response['CancellationCharge'] ?></td>
                        <td style="text-align: right; color: #000;border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;"><?= $Response['Currency'] ?> <?= $Response['RefundAmount'] ?></td>
                        <td style="text-align: right; color: #000;border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;"><?= $this->CurrencyTitle ?> <?= number_format($intMarkUp, 2) ?></td>
                    </tr>
                    <tr style="text-align: right;">
                        <td colspan="2" style="font-weight: 500;font-size: 15px;border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;">Total Cancellation charges: </td>
                        <td colspan="2" style="font-weight: 500;font-size: 15px;border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;">₹<?= number_format($Response['CancellationCharge'], 2) ?></td>
                    </tr>
                    <tr style="text-align: right;">
                        <td colspan="2" style="font-weight: 500;font-size: 15px;border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;">Amount to be Refunded:</td>
                        <td colspan="2" style="font-weight: 500;font-size: 15px;border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;">₹<?= number_format(($Response['RefundAmount'] - $intMarkUp), 2) ?></td>
                    </tr>
                    <tr style="text-align: right;">
                        <td colspan="4"><button onclick="SubmitcancelBooking()" id="cancel_ticket" type="button" class="button btn btn-warning btn-sm ladda-button" value="">Continue To Cancel</button></td>
                    </tr>
                <?php
                } else {
                ?>
                    <tr style="text-align: left; color:red;">
                        <td colspan="4"><?= $errors ?></td>
                    </tr>
                <?php
                }
                ?>
            <?php
            } else {
            ?>
                <?php
                if ($trips && $status == 1) {
                    foreach ($trips as $val) {
                        $src = $val['src'];
                        $dest = $val['dest'];
                        echo '<tr style="text-align: left;border-bottom: 1px solid #ccc;">
                        <td colspan="4">' . $src . ' - ' . $dest . '</td>
                        </tr>';
                        if ($this->PaxDetails) {
                            foreach ($this->PaxDetails as $keys => $value) {
                                $PaxType = isset($this->PaxType[$keys]) ? $this->PaxType[$keys] : '';
                                $PaxDetailsEX = explode('-', $value);
                                $paxName = $PaxDetailsEX[0] . ' ' . $PaxDetailsEX[1];
                                // echo "<pre>";
                                // print_r($PaxType);
                                // print_r($value);
                                // echo "</pre>";

                                $amendmentInfo = $val['amendmentInfo'][$PaxType];
                                $TotalCancellation += $amendmentInfo['amendmentCharges'];
                                $TotalrefundAmount += $amendmentInfo['refundAmount'];

                ?>

                                <tr style="text-align: center;">
                                    <td style="text-align: left; color: #000;border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;"><?= $paxName ?> | <?= $PaxType ?></td>
                                    <td style="text-align: right; color: #000;border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;"><?= $this->CurrencyTitle ?> <?= number_format($amendmentInfo['amendmentCharges'], 2) ?></td>
                                    <td style="text-align: right; color: #000;border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;"><?= $this->CurrencyTitle ?> <?= number_format($amendmentInfo['refundAmount'], 2) ?></td>
                                    <td style="text-align: right; color: #000;border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;"><?= $this->CurrencyTitle ?> <?= number_format($intMarkUp, 2) ?></td>
                                </tr>
                    <?php
                            }
                        }
                    }

                    ?>

                    <tr style="text-align: right;">
                        <td colspan="2" style="font-weight: 500;font-size: 15px;border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;">Total Cancellation charges: </td>
                        <td colspan="2" style="font-weight: 500;font-size: 15px;border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;">₹<?= number_format($TotalCancellation, 2) ?></td>
                    </tr>
                    <tr style="text-align: right;">
                        <td colspan="2" style="font-weight: 500;font-size: 15px;border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;">Amount to be Refunded:</td>
                        <td colspan="2" style="font-weight: 500;font-size: 15px;border-bottom: 1px solid #ccc;border-right: 1px solid #ccc;">₹<?= number_format(($TotalrefundAmount - $TotalServiceFee), 2) ?></td>
                    </tr>

                    <tr style="text-align: right;">
                        <td colspan="4"><button onclick="SubmitcancelBooking()" id="cancel_ticket" type="button" class="button btn btn-warning btn-sm ladda-button" value="">Continue To Cancel</button></td>
                    </tr>
                    <?php
                } else {
                    if ($errors) {
                        foreach ($errors as $error) {
                    ?>

                            <tr style="text-align: left; color:red;">
                                <td colspan="4"><?= $error['details'] ?></td>
                            </tr>

                <?php
                        }
                    }
                }
                ?>
            <?php
            }
            ?>


        </tbody>
    </table>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit