Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/vahtuksanghatana.com/admin/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/vahtuksanghatana.com/admin/sell-purchase-edit-report.php

<?php

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

require_once('lib/function.php');
$flag=0;

$db = new login_function();
if(isset($_GET['edit_id']))
{
	$var_edit_id = $_GET['edit_id'];
	$_SESSION['edit_id'] = $var_edit_id;
}
$var_edit_id = $_SESSION['edit_id'];
$veh_no = "";
$owner_no = "";
$company_name = "";
$model_no = "";
$purchase_year = "";
$insurance_details = "";
$expiry_date = "";
$permit_date = "";
$permit = "";
$fitness = "";
$executed_sell_rate = "";
$state = "";
$city = "";
$running_km = "";
$other_1 = "";
$other_2 = "";
$owner_name = "";
$mob_no_1 = "";
$mob_no_2 = "";
$post_status = "";
$deal_compl_status = "";
if(isset($_POST['submit_btn']))
{
    
	 
	 $var_veh_no = $_POST['veh_no'];
	    $var_owner_no = $_POST['owner_no'];
	    $var_company_name = $_POST['company_name'];
	    $var_model_no = $_POST['model_no'];
	    $var_purchase_year = $_POST['purchase_year'];
	    $var_insurance_details = $_POST['insurance_details'];
	    $var_expiry_date = $_POST['expiry_date'];
	    $var_permit_date = $_POST['permit_date'];
		$var_permit = $_POST['permit'];
	    $var_fitness = $_POST['fitness'];
		$var_executed_sell_rate = $_POST['executed_sell_rate'];
		$var_state = $_POST['state'];
		$var_city = $_POST['city'];
		$var_running_km = $_POST['running_km'];
		$var_other_1 = $_POST['other_1'];
		$var_other_2 = $_POST['other_1'];
		$var_owner_name = $_POST['owner_name'];
		$var_mob_no_1 = $_POST['mob_no_1'];
		$var_mob_no_2 = $_POST['mob_no_2'];
		$var_post_status = $_POST['post_status'];
	    $var_deal_compl_status = $_POST['deal_compl_status'];
	
    if($db->update_sell_purchase_entry($var_veh_no,$var_owner_no,$var_company_name,$var_model_no,$var_purchase_year,$var_insurance_details,$var_expiry_date,$var_permit,$var_permit_date,$var_fitness,$var_executed_sell_rate,$var_state,$var_city,$var_running_km,$var_other_1,$var_other_2,$var_owner_name,$var_mob_no_1,$var_mob_no_2,$var_post_status,$var_deal_compl_status,$var_edit_id))
	{
		$flag=1;
	}	
}

$vehical_data = array();
$vehical_data = $db->get_sell_purchase_details($var_edit_id);
 //print_r($vehical_data);
 
if(!empty($vehical_data))
{
    $res_veh_no = $vehical_data[1];
    $res_owner_no =$vehical_data[2];
    $res_company_name =$vehical_data[3];
    $res_model_no = $vehical_data[4];
    $res_purchase_year =$vehical_data[5] ;
    $res_insurance_details = $vehical_data[6];
    $res_expiry_date =$vehical_data[7];
    $res_permit_date = $vehical_data[8];
    $res_permit = $vehical_data[9];
    $res_fitness = $vehical_data[10];
    $res_executed_sell_rate =$vehical_data[11];
	$res_state =$vehical_data[12];
	$res_city =$vehical_data[13];
	$res_running_km =$vehical_data[14];
	$res_other_1 =$vehical_data[15];
	$res_other_2 =$vehical_data[16];
	$res_owner_name =$vehical_data[17];
	$res_mob_no_1 =$vehical_data[18];
	$res_mob_no_2 =$vehical_data[19];
    $res_post_status =$vehical_data[20];
	$res_deal_compl_status =$vehical_data[21];
    $date = $vehical_data[22];
    $time= $vehical_data[23];
}

?>





<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width initial-scale=1.0">
    <title>sell purchase edit report  </title>
    <!-- GLOBAL MAINLY STYLES-->
    <link href="css/bootstrap.min.css" rel="stylesheet" />
    <link href="css/font-awesome.min.css" rel="stylesheet" />
    <link href="css/line-awesome.min.css" rel="stylesheet" />
    <link href="css/themify-icons.css" rel="stylesheet" />
    <link href="css/animate.min.css" rel="stylesheet" />
    <link href="css/toastr.min.css" rel="stylesheet" />
    <link href="css/bootstrap-select.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
  
    <!-- THEME STYLES-->
    <link href="css/main.min.css" rel="stylesheet" />
	<link href="datatable/datatables.min.css" rel="stylesheet" />

	<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
	<script src="js/wow.min.js"></script>
	<script>
	function validateForm() {
	  var a = document.forms["myForm"]["customer_name"].value;
	  var c = document.forms["myForm"]["primary_contact"].value;
	 
	 if (a == "") {
		alert("Enter Customer Name");
		return false;
	  }
	 
	  if (c == "") {
		alert("Enter Mobile Number");
		return false;
	  }
	  
	}
	</script>
	

</head>
<body class="fixed-navbar">
  
<div class="page-wrapper" style="min-height:500px;">
<?php include('header.php'); ?>
<?php include('side-bar.php'); ?>
<div class="content-wrapper">
<div class="row" style="padding:0px; margin:0px; margin-top:15px; border-radius:15px;">
				<?php
					if($flag == 1)
					{
					?>
					<div class="alert alert-success">
						Updated Successfully.
					</div>
					<?php
					}
					if($flag == 2)
					{
					?>
					<div class="alert alert-warning">
						Failed to Add.
						</div>
					<?php
					}
					?>
<div class="ibox" style="border-radius:5px; padding:7px;">
	 <form class="form-pink" method="post" action="<?php echo $_SERVER['PHP_SELF']?>" name="myForm" enctype="multipart/form-data">
		
		<div class="ibox-head">
			<div class="ibox-title"><i class="fas fa-user-tie" style="margin-right:10px;"></i>SELL PURCHASE EDIT REPORT</div>
		</div>
		
		<div class="ibox-body">
			<div class="row">
				
				<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>Enter vehical No</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas fa-building"></i></span>
						<input type="text" name="veh_no" class="form-control form-control-air"  placeholder="Enter vehical No"  value="<?php echo $res_veh_no; ?>"  /> 
					</div>
				</div>
				
				<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>Enter Ower No</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas fa-building"></i></span>
						<input type="text" name="owner_no" class="form-control form-control-air"  placeholder="Enter Ower No" value="<?php echo $res_owner_no; ?>"   required />
					</div>
				</div>
				<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>Enter Company Name</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas "></i></span>
						<input type="text" name="company_name" class="form-control form-control-air"  placeholder="Enter Company Name"  value="<?php echo $res_company_name; ?>"   required />
						
					</div>
				</div>
				<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>Enter Model No</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas "></i></span>
						<input type="text"  class="form-control form-control-air" name="model_no" placeholder="Enter Model No"  value="<?php echo $res_model_no; ?>"   required />
						
					</div>
				</div>
				<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>Enter Purchase year</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas fa-building"></i></span>
						<input type="date" name="purchase_year" class="form-control form-control-air"   placeholder="Enter Purchase year" value="<?php echo $res_purchase_year; ?>"   />
					</div>
				</div>
				<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
			  <label class="form-group mb-4 set-row label_marg"><b>Insurance Details</b></label><br /><br />
			  	<div class="input-group-icon input-group-icon-left  set-row">
					<span class="input-icon input-icon-left">
					<?php if($res_insurance_details=='yes'){?>
					<label class="form-group mb-4 set-row label_marg"><b>Yes</b></label>
					<input type="radio" name="insurance_details" 
						  
						  value="yes"
						  placeholder="yes" checked />
						  
						  <label class="form-group mb-4 set-row label_marg"><b>No</b></label>
					<input type="radio" name="insurance_details"
						 
						  value="No"
						  placeholder="No" />
					<?php } else { ?>
					<label class="form-group mb-4 set-row label_marg"><b>Yes</b></label>
					<input type="radio" name="insurance_details" 
						  
						  value="yes"
						  placeholder="yes" />
						  <label class="form-group mb-4 set-row label_marg"><b>No</b></label>
					<input type="radio" name="insurance_details"
						 
						  value="No"
						  placeholder="No"  checked />
					<?php } ?>		  
						</div>

						  
						 </div>
						 <div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>Enter Expiry Date</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas fa-building"></i></span>
						<input type="date" name="expiry_date" class="form-control form-control-air"   placeholder="Enter expiry Date" value="<?php echo $res_expiry_date; ?>"   />
					</div>
				</div>
				 <div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>Permit Date</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas fa-building"></i></span>
						<input type="date" name="permit_date" class="form-control form-control-air"   placeholder="Enter expiry Date" value="<?php echo $res_permit_date; ?>"  />
					</div>
				</div>
				<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
			  <label class="form-group mb-4 set-row label_marg"><b>Permit</b></label><br /><br />
			  	<div class="input-group-icon input-group-icon-left  set-row">
					<span class="input-icon input-icon-left">
					<?php if($res_permit=='yes'){?>
					<label class="form-group mb-4 set-row label_marg"><b>Yes</b></label>
					<input type="radio" name="permit" 
						  
						  value="yes"
						  placeholder="yes" checked />
						  
						  <label class="form-group mb-4 set-row label_marg"><b>No</b></label>
					<input type="radio" name="permit"
						 
						  value="No"
						  placeholder="No" />
					<?php } else { ?>
					<label class="form-group mb-4 set-row label_marg"><b>Yes</b></label>
					<input type="radio" name="permit" 
						  
						  value="yes"
						  placeholder="yes" />
						  <label class="form-group mb-4 set-row label_marg"><b>No</b></label>
					<input type="radio" name="permit"
						 
						  value="No"
						  placeholder="No"  checked />
					<?php } ?>		  
						</div>

						  
						 </div>
			<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
			  <label class="form-group mb-4 set-row label_marg"><b>Fitness</b></label><br /><br />
			  	<div class="input-group-icon input-group-icon-left  set-row">
					<span class="input-icon input-icon-left">
					<?php if($res_fitness=='yes'){?>
					<label class="form-group mb-4 set-row label_marg"><b>Yes</b></label>
					<input type="radio" name="fitness" 
						  
						  value="yes"
						  placeholder="yes" checked />
						  
						  <label class="form-group mb-4 set-row label_marg"><b>No</b></label>
					<input type="radio" name="fitness"
						 
						  value="No"
						  placeholder="No" />
					<?php } else { ?>
					<label class="form-group mb-4 set-row label_marg"><b>Yes</b></label>
					<input type="radio" name="fitness" 
						  
						  value="yes"
						  placeholder="yes" />
						  <label class="form-group mb-4 set-row label_marg"><b>No</b></label>
					<input type="radio" name="fitness"
						 
						  value="No"
						  placeholder="No"  checked />
					<?php } ?>		  
						</div>

						  
						 </div>
				<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>Enter Executed sell Rate</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas "></i></span>
						<input type="text" name="executed_sell_rate" class="form-control form-control-air"  placeholder="Enter Executed sell Rate" value="<?php echo $res_executed_sell_rate; ?>"   />
					</div>
				</div>
				
				<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>state</b></label>
			  <div class="input-group-icon input-group-icon-left  set-row">
					<span class="input-icon input-icon-left"><i
								class="fas fa-note"></i></span>
					<select name="state"
						  class="form-control form-control-air">
						  <option value="<?php echo $res_state; ?>"><?php echo $res_state; ?></option>
						  <option value="Andhra Pradesh">Andhra Pradesh</option>
						  <option value="Arunachal Pradesh">Arunachal Pradesh</option>
						  <option value="Assam">Assam</option>
						  <option value="Bihar">Bihar</option>
						  <option value="Chhattisgarh">Chhattisgarh</option>
						  <option value="Goa">Goa</option>
						  <option value="Gujarat">Gujarat</option>
						  <option value="Haryana">Haryana</option>
						  <option value="Himachal Pradesh">Himachal Pradesh</option>
						  <option value="Jammu and Kashmir">Jammu and Kashmir</option>
						  <option value="Jharkhand">Jharkhand</option>
						  <option value="Karnataka">Karnataka</option>
						  <option value="Kerala">Kerala</option>
						  <option value="Madhya Pradesh">Madhya Pradesh</option>
						  <option value="Maharashtra">Maharashtra</option>
						  <option value="Manipur">Manipur</option>
						  <option value="Meghalaya">Meghalaya</option>
						  <option value="Mizoram">Mizoram</option>
						  <option value="Nagaland">Nagaland</option>
						  <option value="Odisha">Odisha</option>
						  <option value="Punjab">Punjab</option>
						  <option value="Rajasthan">Rajasthan</option>
						  <option value="Sikkim">Sikkim</option>
						  <option value="Tamil Nadu">Tamil Nadu</option>
						  <option value="Telangana">Telangana</option>
						  <option value="Tripura">Tripura</option>
						  <option value="Uttar Pradesh">Uttar Pradesh</option>
						  <option value="Uttarakhand">Uttarakhand</option>
						  <option value="West Bengal">West Bengal</option>
						  
						  </option>
					</select>

			  </div>
		</div>
		<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>city</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas "></i></span>
						<input type="text" name="city" class="form-control form-control-air"  placeholder="city" value="<?php echo $res_city; ?>"   />
					</div>
				</div>
				
				<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>Running km</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas "></i></span>
						<input type="text" name="running_km" class="form-control form-control-air"  placeholder="Running km" value="<?php echo $res_running_km; ?>"  />
					</div>
				</div>
				<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>other 1</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas "></i></span>
						<input type="text" name="other_1" class="form-control form-control-air"  placeholder="other 1" value="<?php echo $res_other_1; ?>"  />
					</div>
				</div>
				<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>other 2</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas "></i></span>
						<input type="text" name="other_2" class="form-control form-control-air"  placeholder="other 2" value="<?php echo $res_other_2; ?>"  />
					</div>
				</div>
				<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>Owner Name</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas "></i></span>
						<input type="text" name="owner_name" class="form-control form-control-air"  placeholder="Owner Name" value="<?php echo $res_owner_name; ?>"  />
					</div>
				</div>
				<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>Mobile Number 1</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas "></i></span>
						<input type="text" name="mob_no_1" class="form-control form-control-air"  placeholder="Mobile Number 1" value="<?php echo $res_mob_no_1; ?>"  />
					</div>
				</div>
				<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>Mobile Number 2</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas "></i></span>
						<input type="text" name="mob_no_2" class="form-control form-control-air"  placeholder="Mobile Number 2" value="<?php echo $res_mob_no_2; ?>"  />
					</div>
				</div>
				<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>Post Status</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas "></i></span>
						<input type="text" name="post_status" class="form-control form-control-air"  placeholder="post status" value="<?php echo $res_post_status; ?>"  />
					</div>
				</div>
				<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>Deal Completed status</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas "></i></span>
						<input type="text" name="deal_compl_status" class="form-control form-control-air"  placeholder="deal compl status" value="<?php echo $res_deal_compl_status; ?>"  />
					</div>
				</div>
				
				
				
				<!--<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>Select Service Type</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas fa-info"></i></span>
						<select name="c_email" class="form-control form-control-air">
							<option value="Select">Select</option>
							<option value="New Construction">New Construction</option>
							<option value="Maintenance Work">Maintenance Work</option>
						</select>
					</div>
				</div>				
				<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>Site Description</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas fa-address-book"></i></span>
						<textarea name="description_box" class="form-control form-control-air" placeholder="Enter Site Description"><?php echo $description_box; ?></textarea>
					</div>
				</div>
				
				<div class="col-sm-6 col-md-6 col-lg-6 form-group mb-6">
					<label class="form-group mb-4 set-row label_marg"><b>Upload Site Plan</b></label>
					<div class="input-group-icon input-group-icon-left  set-row">
						<span class="input-icon input-icon-left"><i class="fas fa-upload"></i></span>
						<input class="form-control form-control-air" type="file" name="logo" >
						<span style="color:red;"><?php echo $image_error; ?></span>
					</div>
				</div>-->
			
				<div class="col-sm-12 form-group mb-12" style="text-align:center; padding-left:0px; padding-right:0px; padding-top:20px;">
					<div class="col-sm-4 form-group mb-4" style="margin:auto;">
						<button class="btn btn-pink btn-air" type="submit" name="submit_btn" style="width:100%;">UPDATE SELL PURCHASE DETAILS</button>
					</div>
				</div>
			</div>
			<center><a href="sell-purchase-report.php" style="color:red;font-weight:bold;">Back To List</a></center>
		</div>
		</div>
	</form>
	</div>
</div>
</div>

</div>
</div>
<?php include('footer.php'); ?>
</div>
    </div>
    <?php //include('search.php'); ?>
   
    <div class="sidenav-backdrop backdrop"></div>
    <div class="preloader-backdrop">
        <div class="page-preloader">Loading</div>
    </div>
    
    <script src="js/jquery.min.js"></script>
    <script src="js/popper.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/metisMenu.min.js"></script>
    <script src="js/jquery.slimscroll.min.js"></script>
    <script src="js/idle-timer.min.js"></script>
    <script src="js/toastr.min.js"></script>
    <script src="js/jquery.validate.min.js"></script>
    <script src="js/bootstrap-select.min.js"></script>
	<script src="datatable/datatables.min.js"></script>
    <script src="js/app.min.js"></script>
	
</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