Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/b2bflight.com/B2BFlight/project/dashboard/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/b2bflight.com/B2BFlight/project/dashboard/edit-flight.php

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

$flag = 0;

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

$res_edit_id	 = $_SESSION['edit_id'];
if(isset($_POST['transaction_id']))
	{

    $transaction_id    = $_POST['transaction_id'];
    $booking_type     = $_POST['booking_type'];
    $agent_id       = $_POST['agent_id'];
    $from_location    = $_POST['from_location'];
    $to_location      = $_POST['to_location'];
    $travel_date    = $_POST['travel_date'];
    $pax_size         = $_POST['pax_size'];
    $tour_code      = $_POST['tour_code'];
    $traveller_type     = $_POST['traveller_type'];
    $salutation     = $_POST['salutation'];
    $first_name     = $_POST['first_name'];
    $last_name      = $_POST['last_name'];
    $birth_dd       = $_POST['birth_dd'];
    $birth_mm       = $_POST['birth_mm'];
    $birth_year     = $_POST['birth_year'];
    $ticket_status    = $_POST['ticket_status'];
    $ticket_amount    = $_POST['ticket_amount'];
    $total_amount   = $_POST['total_amount'];
    $commission     = $_POST['commission'];
    $other_1      = $_POST['other_1'];
    $other_2      = $_POST['other_2'];
    $other_3      = $_POST['other_3'];
   	$booking_id      = 1;
      $pnr_no        = 2;
      $flight_no        = 3;
      $arrival_time        = 4;
      $departure_time         = 5;
      	

   if($db->update_flight_booking($transaction_id,$booking_type,$agent_id,$from_location,$to_location,$travel_date,$pax_size,$tour_code,$traveller_type,$salutation,$first_name,$last_name,$birth_dd,$birth_mm,$birth_year,$ticket_status,$ticket_amount,$total_amount,$commission,$other_1,$other_2,$other_3,$booking_id,$pnr_no,$flight_no,$arrival_time,$departure_time,$res_edit_id))
      {
        $flag = 1;
      }
}

$users_data = array();
$users_data = $db->get_flight_booking_from_id($res_edit_id);
//print_r($users_data);
if(!empty($users_data))
{
         $id                     = $users_data['id'];  
        $transaction_id                = $users_data['transaction_id'];             
        $var_booking_type                 = $users_data['booking_type'];                       
        $agent_id                  = $users_data['agent_id'];                   
        $from_location              = $users_data['from_location'];             
        $to_location                = $users_data['to_location'];           
        $travel_date                   = $users_data['travel_date'];              
        $pax_size                 = $users_data['pax_size'];                        
        $tour_code                    = $users_data['tour_code']; 
        $var_travel_type           = $users_data['traveller_type'];  
          $salutation                   = $users_data['salutation'];  
        $first_name                     = $users_data['first_name'];  
        $last_name                      = $users_data['last_name']; 
        $birth_dd                   = $users_data['birth_dd'];    
        $birth_mm               = $users_data['birth_mm'];    
        $birth_year             = $users_data['birth_year'];
        $ticket_status              = $users_data['ticket_status'];       
        $ticket_amount              = $users_data['ticket_amount'];   
        $total_amount           = $users_data['total_amount'];  
        $commission             = $users_data['commission'];    
        $other_1                        = $users_data['other_1'];   
        $other_2                      = $users_data['other_2'];   
        $other_3                        = $users_data['other_3'];   
        $date                         = $users_data['date'];                                  
        $time                         = $users_data['time'];            
}

?>
<!doctype html>
<html lang="en" dir="ltr">
  <head>
   <?php
		require_once('header-common.php');
   ?>
   <Style>
		.user_measurement
		{
			margin:0px;
			padding :0px;
			font-Size:13px !important;
		}
		.user_measurement_div
		{
			margin:0px;
			padding :0px;
			margin-left :2px;
			margin-bottom :0px;
			display:inline-table;
		}
   </Style>
  </head>
  <body class="  ">

    
    <aside class="sidebar sidebar-default sidebar-white sidebar-base navs-rounded-all ">
        <div class="sidebar-header d-flex align-items-center justify-content-start">
            <a href="index.php" class="navbar-brand">
				<img src="images/<?php echo $logo; ?>" class="software_logo" style="height:90px; width:220px;" />
            </a>
            <div class="sidebar-toggle" data-toggle="sidebar" data-active="true">
                <i class="icon">
                    <svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
                        <path d="M4.25 12.2744L19.25 12.2744" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                        <path d="M10.2998 18.2988L4.2498 12.2748L10.2998 6.24976" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
                    </svg>
                </i>
            </div>
        </div>
        
		<?php
		require_once('left-side.php');
	?>
		<div class="sidebar-footer"></div>
    </aside>   
	<main class="main-content">
    	<?php
			require_once('navbar.php');
		?>
	  
      <div class="conatiner-fluid content-inner mt-n5 py-0">
<div class="row">
    <div class="col-sm-12">
        <div class="card">
		
			<?php
			
				if($flag == 1)
				{
			?>
				<div class="mb-3 alert alert-left alert-success alert-dismissible fade show" role="alert" style="width:80%; margin:auto; margin-top:25px;">
					<span>Flight Booking Update Record Saved Successfully</span>
					<button type="submit" class="btn-close btn-close-white" data-bs-dismiss="alert" aria-label="Close"></button>
				</div>
				<script> 
				alert ("Record Updated Successfully");
				window.location = "booking-flight-report.php"
				</script>
			<?php
				}
			?>
			
		
            <div class="card-header d-flex justify-content-between flex-wrap">
                <div class="header-title">
                    <h4 class="card-title mb-0">Edit Flight Booking</h4>
                </div>
				
				        <div class="card-body">
					<div class="table-responsive">
                         <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
                              <div class="row">
                                
														 
								 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label  class="form-label">Transaction id</label>
                                       <input type="text" name="transaction_id" class="form-control"  value="<?php echo $transaction_id;?>" id="transaction_id"  />
                                    </div>
                                 </div>
								 
								  <div class="col-lg-3">
                                    <div class="form-group">
									 <label class="form-label" >booking type</label>
										<select class="form-control" placeholder=" " name="booking_type" id="booking_type" >
											<option value="Select" <?php if($var_booking_type=="Select"){ ?> selected <?php } ?>>Select</option>
											<option value="one-way"  <?php if($var_booking_type=="one-way"){ ?> selected <?php } ?>>one way</option>
											<option value="Round-trip" <?php if($var_booking_type=="Round-trip"){ ?> selected <?php } ?>>Round trip</option>
											
										</select>
									</div>
								 </div>
                                 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label  class="form-label">Agent id</label>
                                       <input type="text" name="agent_id" class="form-control" id="agent_id"value="<?php echo $agent_id;?>" placeholder=" "  />
                                    </div>
                                 </div>

								 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-label">From Location</label>
                                       <input type="text" name="from_location" class="form-control" id="from_location" value="<?php echo $from_location;?>"placeholder=" "  />
                                    </div>
                                 </div>
								 
								 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-label">To location</label>
                                       <input type="text" name="to_location" class="form-control" id="to_location"value="<?php echo $to_location;?>" placeholder=" "  />
                                    </div>
                                 </div>
								 
								 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-label">travel date</label>
                                       <input type="text" name="travel_date" class="form-control" id="travel_date" value="<?php echo $travel_date;?>"placeholder=" "  />
                                    </div>
                                 </div>
                                 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-label">pax size</label>
                                       <input type="text" name="pax_size" class="form-control" id="pax_size"value="<?php echo $pax_size;?> " placeholder=" "  />
                                    </div>
                                 </div>
                                 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-label"> tour code</label>
                                       <input type="text" name="tour_code" class="form-control" id="tour_code"value="<?php echo $tour_code;?>" placeholder=" "  />
                                    </div>
                                 </div>
                                  <div class="col-lg-3">
                                    <div class="form-group">
									 <label class="form-label">traveller type</label>
										<select class="form-control" placeholder=" " name="traveller_type"value="<?php echo $traveller_type;?>" id="traveller_type" >
											<option value="Select" <?php if($var_travel_type=="Select"){ ?> selected <?php } ?>>Select</option>
											<option value="Adult" <?php if($var_travel_type=="Adult"){ ?> selected <?php } ?>>Adult</option>
											<option value="Child" <?php if($var_travel_type=="Child"){ ?> selected <?php } ?>>Child</option>
											<option value="Mstr" <?php if($var_travel_type=="Mstr"){ ?> selected <?php } ?>>Mstr</option>
										</select>
									</div>
								 </div>
                                
                                 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-label">salutation</label>
                                       <input type="text" name="salutation" class="form-control" id="salutation" value="<?php echo $salutation;?>"placeholder=" "  />
                                    </div>
                                 </div>
								 
								 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-label">first name</label>
                                       <input type="text" name="first_name" class="form-control" id="first_name"value="<?php echo $first_name;?> " placeholder=" "  />
                                    </div>
                                 </div>
								 
								 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-label">last name</label>
                                       <input type="text" name="last_name" class="form-control" id="last_name"value="<?php echo $last_name;?>" placeholder=" "  />
                                    </div>
                                 </div>
                                  <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-label"> birth dd</label>
                                       <input type="text" name="birth_dd" class="form-control" id="birth_dd"value="<?php echo $birth_dd;?> " placeholder=" "  />
                                    </div>
                                 </div>
								 
								 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-label">birth mm</label>
                                       <input type="text" name="birth_mm" class="form-control" id="birth_mm"value="<?php echo $birth_mm;?> " placeholder=" "  />
                                    </div>
                                 </div>
								 
                                  <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-label">birth year</label>
                                       <input type="text" name="birth_year" class="form-control" id="birth_year" value="<?php echo $birth_year;?> "placeholder=" "  />
                                    </div>
                                 </div>
                                  <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-label">ticket status</label>
                                       <input type="text" name="ticket_status" class="form-control" id="ticket_status" value="<?php echo $ticket_status;?> "placeholder=" "  />
                                    </div>
                                 </div>
                                  <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-label">ticket amount</label>
                                       <input type="text" name="ticket_amount" class="form-control" id="ticket_amount" value="<?php echo $ticket_amount;?> "placeholder=" "  />
                                    </div>
                                 </div>
                                 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-label">total amount</label>
                                       <input type="text" name="total_amount" class="form-control" id="total_amount"value="<?php echo $total_amount;?> " placeholder=" "  />
                                    </div>
                                 </div>
                                 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-label"> commission</label>
                                       <input type="text" name="commission" class="form-control" id="commission"value="<?php echo $commission;?> " placeholder=" "  />
                                    </div>
                                 </div>
                                 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-label">other 1</label>
                                       <input type="text" name="other_1" class="form-control" id="other_1" value="<?php echo $other_1;?> "placeholder=" "  />
                                    </div>
                                 </div>
                                 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-label">other 2</label>
                                       <input type="text" name="other_2" class="form-control" id="other_2"value="<?php echo $other_2;?> " placeholder=" "  />
                                    </div>
                                 </div>

                                 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label class="form-label">other 3</label>
                                       <input type="text" name="other_3" class="form-control" id="other_3"value="<?php echo $other_3;?> " placeholder=" "  />
                                    </div>
                                 </div>
								
								
                              </div>
							  <div class="d-flex justify-content-center">
                                 <button type="submit" name="submit" class="btn btn-primary">Submit</button>
                              </div>
							</div>
						</form>
            </div>
        </div>
	</div>
</div>
</div>
    
    <!-- Library Bundle Script -->
    <script src="../assets/js/core/libs.min.js"></script>
    
    <!-- External Library Bundle Script -->
    <script src="../assets/js/core/external.min.js"></script>
    
    <!-- Widgetchart Script -->
    <script src="../assets/js/charts/widgetcharts.js"></script>
    
    <!-- mapchart Script -->
    <script src="../assets/js/charts/vectore-chart.js"></script>
    <script src="../assets/js/charts/dashboard.js" ></script>
    
    <!-- fslightbox Script -->
    <script src="../assets/js/plugins/fslightbox.js"></script>
    
    <!-- Settings Script -->
    <script src="../assets/js/plugins/setting.js"></script>
    
    <!-- Slider-tab Script -->
    <script src="../assets/js/plugins/slider-tabs.js"></script>
    
    <!-- Form Wizard Script -->
    <script src="../assets/js/plugins/form-wizard.js"></script>
    
    <!-- AOS Animation Plugin-->
    <script src="../assets/vendor/aos/dist/aos.js"></script>
    
    <!-- App Script -->
    <script src="../assets/js/hope-ui.js" defer></script>
     <style>
	.sidebar.sidebar-default .nav-link:not(.static-item).active , .sidebar.sidebar-default .nav-link:not(.static-item).active, .sidebar.sidebar-default .nav-link:not(.static-item)[aria-expanded=true]
	{
		background-color:#FE6600 !important;
	}
	</style>
  </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