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/amendment-itinerary.phtml
<?php
$baseUrl = $this->baseUrl;
$CurrencyRate = $this->CurrencyRate;
$CurrencyTitle = $this->CurrencyTitle;
$baseUrl = $this->baseUrl;
$apiResponse = $this->apiResponse;
$customerTripWise = $this->customerTripWise;
$BookingID = $this->BookingID;
$stylecss = $this->stylecss;

$B2BType = 0;
$bookingDataByAPI = $apiResponse['FlightBookingData'];
$customer = $customerTripWise;
$getSupportContact = $apiResponse['SupportContact'];
$CompanyName = $bookingDataByAPI[0]['MasterDisplayName'];
$strCompanyAddress = $bookingDataByAPI[0]['MasterAddress'];
$Pincode = $bookingDataByAPI[0]['MasterPincode'];
$strCityTitle = $bookingDataByAPI[0]['MasterCityTitle'];
$strCountry = $bookingDataByAPI[0]['MasterCountry'];
$PrimaryMobileNo = $bookingDataByAPI[0]['MasterPrimaryMobileNo'];
$countrycode = $bookingDataByAPI[0]['Mastercountrycode'];
$PrimaryContactNo = isset($bookingDataByAPI[0]['MasterPrimaryMobileNo']) && !empty(trim($bookingDataByAPI[0]['MasterPrimaryMobileNo'])) ? $bookingDataByAPI[0]['MasterPrimaryMobileNo'] : $bookingDataByAPI[0]['PrimaryContactNo'];
$PrimaryContactNo = $countrycode . $PrimaryContactNo;
$PrimaryEmail = isset($bookingDataByAPI[0]['MasterPrimaryEmail']) && !empty(trim($bookingDataByAPI[0]['MasterPrimaryEmail'])) ? $bookingDataByAPI[0]['MasterPrimaryEmail'] : $bookingDataByAPI[0]['PrimaryEmail'];

if (isset($getSupportContact['EmailId']) && !empty($getSupportContact['EmailId']) && $B2BType == 2) {
  $PrimaryEmail = trim($getSupportContact['EmailId']);
}
if (isset($getSupportContact['EmailId']) && !empty($getSupportContact['EmailId']) && $B2BType == 2) {
  $PrimaryContactNo = trim($getSupportContact['countrycode']) . '-' . trim($getSupportContact['ContactNo1']);
}
$arrBookingDate = $bookingDataByAPI[0]['bookingDate'];
$BookingStatus = $bookingDataByAPI[0]['BookingStatus'];
$ICSourceSysId = $bookingDataByAPI[0]['ICSourceSysId'];
$TPSysId = $bookingDataByAPI[0]['TPSysId'];

// echo '<pre>';
// print_r($TPSysId);
// echo '</pre>';
?>
<style>
  .block {
    display: block;
  }

  .padding0 {
    padding: 0;
  }

  .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
  }

  .checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
  }

  .checkbox-group label {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
  }

  .gap-10 {
    gap: 10px;
  }

  .paxcancel {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e6e6e6;
    padding: 15px;
    margin-bottom: 10px;
  }

  .cancel-header {
    background: #f4f4f4;
    padding: 10px;
    margin-bottom: 5px;
    color: black;
    font-size: 14px;
    font-weight: 600;
  }

  .chk {
    text-align: left;
    column-count: 2;
    padding: 15px 0;
  }

  .chk input {
    width: 20px;
    height: 20px;
    accent-color: #e46c6c;
  }

  .chk label {
    position: relative;
    top: 5px;
  }

  .newboxcss {
    padding: 20px 0 !important;
    background: #f3f3f3;
    margin: 13px 0 20px;
  }

  .newboxcss .amendment_lefttxt img {
    width: 35px;
    margin: 0 auto 10px;
  }

  .newboxcss span.img_amendment2 {
    font-size: 16px;
  }

  .newboxcss .invoiceflight .destname {
    font-size: 22px;
    font-weight: normal;
    line-height: 24px;
  }

  .newboxcss .invoiceflight .destportname {
    font-size: 14px;
    font-weight: bold;
    line-height: normal;
  }

  .newboxcss .invoiceflight i {
    font-size: 38px;
    color: #0b74c4;
  }

  .newboxcss .invoiceflight .smallname {
    font-size: 12px;
    line-height: 30px;
  }

  .newboxcss .invoiceflight .brdrtop {
    border: none;
    padding-top: 2px;
    font-weight: 600;
    font-size: 12px;
  }

  .col-lg-12.col-sm-12.col-md-12.col-xs-12.smalltxt.text-left {
    padding-bottom: 20px;
  }

  .top46 {
    position: relative;
    top: 46px;
  }

  textarea#cancellation_comments:focus-visible {
    outline: none;
  }

  textarea#cancellation_comments::placeholder {
    font-size: 12px;
  }

  @media (max-width: 992px) {
    .newboxcss span.img_amendment2 {
      font-size: 16px;
      margin-left: 0;
      margin-bottom: 20px ! IMPORTANT;
      display: block;
    }

    .chk label {
      position: relative;
      top: 0px;
    }

    .newboxcss {
      margin: 30px 0 20px;
    }

    .newboxcss {
      padding: 20px 20px !important;
      display: block;
      box-shadow: #dedede 2px 2px 3px;
    }

    .paxcancel {
      display: flex;
      flex-direction: inherit;
      justify-content: left;
    }

    .customgst.checkboxcontainerreviewaddons.amendment_checkbx_align {
      width: auto;
    }
  }

  .box-header .smalltxt {
    font-size: 18px;
  }
</style>

<style>
  table {
    width: 100%;
    border-spacing: 0;
  }
</style>


<div id="main-content">
  <div class="container-fluid">
    <div class="row">
      <div class="col-lg-12 col-sm-12 col-md-12 col-xs-12 padres">
        <div class="panel">
          <div class="panel-body no-padding">
            <div class="box box-default no-margin">
              <div class="box-header align-center col-md-12 no-pad-bot"><strong>Amendment
                  Itinerary</strong></div>
            </div>
            <div class="col-md-12 col-xs-12 text-center box-header" style="line-height:10px;">
              <strong class="smalltxt">Booking Id: <?= $BookingID ?></strong>
            </div>
            <div class="box-body">
              <div class="row">
                <div class="col-lg-12 col-sm-12 col-md-12 col-xs-12">
                  <div class="flightbooking-list no-pad-top no-pad-bot" style="line-height:40px; margin: 0 0 37px 0;">
                    <div class="row">
                      <div class="col-lg-12 col-sm-12 col-md-12 col-xs-12 smalltxt  text-left">
                        <strong>Cancellation Type:</strong>
                        <select id="requestTypeNew" name="requestTypeNew" class="form-control" style="width: 40%;">
                          <option value="">-Select-</option>
                          <?php if ($ICSourceSysId == 8) { ?>
                            <option data-value="CANCELLATION" value="8">Cancellation</option>
                            <option data-value="CORRECTION" value="19">Correction</option>
                            <option data-value="FULL_REFUND" value="20">Full Refund </option>
                          <?php }
                          if ($ICSourceSysId == 7) { ?>
                            <option data-value="CANCELLATION" value="8">Cancellation</option>
                            <option data-value="PARTIAL_CANCELLATION" value="2">Partial Cancellation </option>
                            <option data-value="FULL_REFUND" value="20">Full Refund </option>
                            <option data-value="SSR" value="11">Ssr</option>
                            <option data-value="CANCELLATION_QUOTATION" value="12">Cancellation Quotation</option>
                            <option data-value="REISSUE_QUOTATION" value="13">Reissue Quotation </option>
                            <option data-value="REISSUE" value="14">Re-Issue</option>
                            <option data-value="FARE_CHANGE" value="15">Fare Change</option>
                            <option data-value="MISCELLANEOUS" value="16">Miscellaneous</option>
                            <option data-value="NO_SHOW" value="17">No Show</option>
                            <option data-value="VOIDED" value="18">Void/Release PNR</option>
                            <option data-value="CORRECTION" value="19">Correction</option>
                          <?php }
                          if ($ICSourceSysId == 3) { ?>
                            <option data-value="CANCELLATION" value="8">Full Cancellation</option>
                            <option data-value="PARTIAL_CANCELLATION" value="2">Partial Cancellation </option>
                            <option data-value="REISSUE" value="14">Re-Issue</option>
                            <option data-value="FULL_REFUND" value="20">Full Refund </option>
                          <?php } ?>
                        </select>
                      </div>
                    </div>
                    <div class="clearfix"></div>
                  </div>
                  <?php
                  $IsRefundable = isset($bookingDataByAPI[0]['IsRefundable']) ? $bookingDataByAPI[0]['IsRefundable'] : 0;
                  if ($bookingDataByAPI) {
                    foreach ($bookingDataByAPI as $keys => $Data) {
                      // echo '<pre>';print_r($Data);die;
                      $SEctors = trim($Data['SourceAirportCode']) . '-' . trim($Data['DestAirportCode']);
                      $APIBookingId = $Data['APIBookingId'];
                      $departureDate__ = str_replace('T', ' ', $Data['LocalFromTime']);
                  ?>
                      <div class="row">
                        <div class="col-lg-12 col-sm-12 col-md-12 col-xs-12 smalltxt  text-left">
                          <div class="col-md-12 cancel-header"><?= $Data['SourceAirportCode'] ?> - <?= $Data['DestAirportCode'] ?> On <?= Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->getArrivalDepartureIndianFormat($Data['LocalFromTime']) ?></div>
                          <?php
                          if ($Data['Segments']) {
                            foreach ($Data['Segments'] as $key => $value) {
                              $originDepTime = Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->getArrivalDepartureIndianFormat(str_replace('T', ' ', $value['originDepTime']));
                              $destinationArrTime = Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->getArrivalDepartureIndianFormat(str_replace('T', ' ', $value['destinationArrTime']));
                              $Duration = Zend_Controller_Action_HelperBroker::getStaticHelper("Flight")->convertMinutesToHoursFormat((isset($value['Duration']) ? $value['Duration'] : 0));
                              $LAYOVERMinutes = ((isset($value['GroundTime']) ? $value['GroundTime'] : 0));
                              $LAYOVERDuration = Zend_Controller_Action_HelperBroker::getStaticHelper('Flight')->convertMinutesToHoursFormat($LAYOVERMinutes);
                              $departureDate = str_replace('T', ' ', $value['originDepTime']);
                              $SourceAirportCode = ($value['OriginAirportCode']) ? $value['OriginAirportCode'] : $value['originAirportCode'];
                              $DestAirportCode = ($value['DestAirportCode']) ? $value['DestAirportCode'] : $value['destinationAirportCode'];
                              $TBOSector[] = $picksector = $SourceAirportCode . '-' . $DestAirportCode;
                              $tempsec = $picksector;
                              $pickPass = isset($passengerDataArr[$tempsec]) ? $passengerDataArr[$tempsec] : [];

                          ?>
                              <div class="col-md-12 box-header no-pad-top newboxcss">
                                <?php if ($value['GroundTime'] > 0 && $ICSourceSysId == 3) { ?>
                                  <div class="col-lg-12 col-sm-12 col-md-12 col-xs-12 invoiceflight ">
                                    <span class="brdrtop brdrbot"><img src="<?= $baseUrl ?>public/asset/images/clock.png" style="height: 18px;" /> LAYOVER <?= $LAYOVERDuration ?></span>
                                  </div>
                                <?php
                                }
                                ?>
                                <div class="col-lg-3 col-sm-3 col-md-3 col-xs-12 invoiceflight amendment_lefttxt padding0">
                                  <img class="img_amendment" src="<?= ($value['logo']) ? $value['logo'] : $value['filePath'] ?>" height="30"><br />
                                  <span class="img_amendment2"><?= $value['AirlineName'] ?> <?= ($value['FlightNumber']) ? $value['FlightNumber'] : $value['SegFlightNumber'] ?></span>
                                </div>

                                <div class="col-lg-3 col-sm-3 col-md-3 col-xs-4 invoiceflight amendment_lefttxt">
                                  <div class="destname"><?= ($value['OriginAirportCode']) ? $value['OriginAirportCode'] : $value['originAirportCode'] ?></div>
                                  <div class="destportname"><?= $value['originAirportName'] ?></div>
                                  <div class="smallname"><?= $value['originCityName'] ?>, <?= $value['originCountryCode'] ?>, Terminal<?= $value['DepTerminal'] ?></div>
                                  <span class="brdrtop brdrbot"><?= $originDepTime ?></span>
                                </div>

                                <div class="col-lg-3 col-sm-3 col-md-3 col-xs-4 invoiceflight"><i class="fa fa-plane" aria-hidden="true"></i>
                                  <br /><span><?= $value['FlightDuration'] ?></span><br /><span class="brdrtop">Class:
                                    <?= ($value['cabinClass']) ? $value['cabinClass'] : $value['FareClass'] ?>
                                  </span>
                                </div>

                                <div class="col-lg-3 col-sm-3 col-md-3 col-xs-4 invoiceflight amendment_righttxt">
                                  <div class="destname"><?= ($value['DestAirportCode']) ? $value['DestAirportCode'] : $value['destinationAirportCode'] ?></div>
                                  <div class="destportname"><?= $value['destinationAirportName'] ?></div>
                                  <div class="smallname"><?= $value['destinationCityName'] ?>, <?= $value['destinationCountryCode'] ?>, Terminal<?= $value['ArrTerminal'] ?></div>
                                  <span class="brdrtop brdrbot"><?= $destinationArrTime ?></span>
                                </div>
                                <?php if ($value['GroundTime'] > 0 && $ICSourceSysId != 3) { ?>
                                  <div class="col-lg-12 col-sm-12 col-md-12 col-xs-12 invoiceflight top46">
                                    <span class="brdrtop brdrbot"><img src="<?= $baseUrl ?>public/asset/images/clock.png" style="height: 18px;" /> LAYOVER <?= $LAYOVERDuration ?></span>
                                  </div>
                                <?php
                                }
                                ?>
                                <div class="clearfix"></div>

                              </div>
                          <?php
                            }
                          }
                          ?>

                          <div class="col-md-12 box-header no-pad-top padding0">
                            <?php
                            if ($customer[$Data['AirVersionId']]) {
                              foreach ($customer[$Data['AirVersionId']] as $keypax => $valuePax) {
                                // echo '<pre>';print_r($valuePax);echo '</pre>';
                                $docid = isset($valuePax['docid']) ? ($valuePax['docid']) : '';
                                if ($valuePax['paxType'] == 1) {
                                  $PaxType = 'AD';
                                } elseif ($valuePax['paxType'] == 2) {
                                  $PaxType = 'CH';
                                } else {
                                  $PaxType = 'IN';
                                }

                            ?>
                                <div class="col-lg-3 col-sm-3 col-md-3 col-xs-12 invoiceflight amendment_lefttxt padding0">
                                  <div class="paxcancel">
                                    <?php if ($valuePax['ChangeRequestStatus'] != 1) { ?>
                                      <div class="customgst checkboxcontainerreviewaddons amendment_checkbx_align">
                                        <input class="PaxDetails checkme" id="comment-cookies-consent_<?= $keypax ?>_<?= $keys ?>_<?= $SEctors ?>" sectorsSelectors=<?= $SEctors ?>" type="checkbox" value="<?= $valuePax['FirstName'] ?>-<?= $valuePax['LastName'] ?>__<?= $PaxType ?>__<?= date('Y-m-d', strtotime($departureDate__)) ?>__<?= $valuePax['TPPaxSysId'] ?>__<?= $valuePax['TicketNumber'] ?>" name="PaxDetails_<?= $SEctors ?>" APIBookingId="<?= $APIBookingId ?>" Dates="<?= date('Y-m-d', strtotime($departureDate__)) ?>">
                                        <label for="comment-cookies-consent_<?= $keypax ?>_<?= $keys ?>_<?= $SEctors ?>"></label>
                                      </div>
                                    <?php } ?>
                                    <div>
                                      <strong class="">
                                        <?= $valuePax['Title'] ?>. <?= $valuePax['FirstName'] ?>
                                        <?= $valuePax['LastName'] ?> (<?= $PaxType ?>)
                                    </div>
                                    <span style="color:red"> <?php echo (isset($valuePax['ChangeRequestStatus']) && $valuePax['ChangeRequestStatus'] > 0) ? 'CAN/MODE' : ''; ?></span>
                                  </div>

                                </div>
                            <?php
                              }
                            }
                            ?>
                          </div>

                        </div>
                      </div>
                  <?php
                    }
                  }
                  ?>
                  <table style="width:100%">
                    <tr>
                      <td>
                        <table>
                          <tr>
                            <td style="text-align: left;padding-bottom: 5px;">Amendment Remarks</td>
                          </tr>
                          <tr>
                            <td>
                              <textarea class="cancellation_comments" id="cancellation_comments" name="cancellation_comments" placeholder="Enter Your Remarks Here" style="height:55px; width: 100%;border: 1px solid #e6e6e6;font-weight: normal;padding: 5px;"></textarea>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr style="display:none;" class="FullCancellation">
                      <td>
                        <div class="chk">
                          <form action="#">
                            <div class="checkbox-group">
                              <input type="checkbox" id="cancel1" name="extraRemarks" value="Full cancelled by Airline">
                              <label for="cancel1">Full cancelled by Airline</label>
                            </div>
                            <div class="checkbox-group">
                              <input type="checkbox" id="cancel2" name="extraRemarks" value="Already cancelled by directly contacting airline customer support team">
                              <label for="cancel2">Already cancelled by directly contacting airline customer support team</label>
                            </div>

                            <div class="checkbox-group">
                              <input type="checkbox" id="cancel3" name="extraRemarks" value="Refund under DGCA policy">
                              <label for="cancel3">Refund under DGCA policy</label>
                            </div>

                            <div class="checkbox-group">
                              <input type="checkbox" id="cancel4" name="extraRemarks" value="Passenger is medically unfit for travel">
                              <label for="cancel4">Passenger is medically unfit for travel</label>
                            </div>

                            <div class="checkbox-group">
                              <input type="checkbox" id="cancel5" name="extraRemarks" value="Airline rescheduled flight, revised timings are not suitable">
                              <label for="cancel5">Airline rescheduled flight, revised timings are not suitable</label>
                            </div>

                            <div class="checkbox-group">
                              <input type="checkbox" id="cancel6" name="extraRemarks" value="Airline confirmed, refund is already processed.">
                              <label for="cancel6">Airline confirmed, refund is already processed.</label>
                            </div>

                            <div class="checkbox-group">
                              <input type="checkbox" id="cancel7" name="extraRemarks" value="Personal loss or bereavement">
                              <label for="cancel7">Personal loss or bereavement</label>
                            </div>

                            <div class="checkbox-group">
                              <input type="checkbox" id="cancel8" name="extraRemarks" value="Refund Under empowerment policy">
                              <label for="cancel8">Refund Under empowerment policy</label>
                            </div>
                          </form>
                        </div>
                      </td>
                    </tr>
                    <tr>
                      <td style="border-top: 1px solid #ccc;">
                        <table style="margin-top:12px;  text-align:left;">
                          <tbody>
                            <tr>
                              <td style="background: #ffffff; color:#d51313;padding:5px; padding-left: 5px; font-weight:700;">
                                Disclaimer
                              </td>
                            </tr>
                          </tbody>
                        </table>
                        <table style=" margin-bottom: 40px;padding-top: 15px;text-align:left; line-height: 20px;" class="print-info">
                          <tbody>
                            <tr>
                              <td style="padding: 0 8px; font-size: 12px; color:#d51313; width:100%">
                                Full Refund is only applicable for Flight Cancelled by Airline OR Schedule/Time Change by Airline
                              </td>
                            </tr>
                            <tr>
                              <td style="padding: 0 8px; font-size: 12px; color:#d51313; width:100%">
                                For all other cases please send “Cancellation” Amendment only.
                              </td>
                            </tr>
                            <tr>
                              <td style="padding: 0 8px; font-size: 12px; color:#d51313; width:100%">
                                For faster processing and immediate closures please call the airline
                                directly and get the refunds processed.
                              </td>
                            </tr>

                            <tr>
                              <td style="padding: 0 8px; font-size: 12px; color:#d51313; width:100%">
                                Cancel through Portal for Auto-Refund.
                              </td>
                            </tr>

                            <tr>
                              <td style="padding: 0 8px; font-size: 12px; color:#d51313; width:100%">
                                If Mix Airline Bookings raise amendment for Indigo separately for
                                Auto-Refund.
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </td>
                    </tr>


                    <tr>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td style="text-align: right;"><button class="btn btn-warning btn-sm ladda-button" id="cancel_booking_new" type="button" onclick="cancelBookingNew('<?= $TPSysId ?>',1)">Submit</button></td>
                    </tr>
                  </table>
                  <div class="clearfix"></div>


                </div>
              </div>
            </div>



          </div>

        </div>
      </div>
    </div>

  </div>

</div>


</div>
<div class="modal fade" id="cancelBookingNow" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">Cancellation Charge<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button></div>
      <div class="modal-body">
        <div class="">
          <div id="GetCancelCharge" style="text-align: center;"><img src="<?= $baseUrl ?>public/images/loader.gif" /></div>
        </div>
      </div> <!-- modal-body -->
    </div> <!-- modal-content -->
  </div> <!-- modal-dialog -->
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit