hjkhhjhjol;io;ioio;ioiio;ioreererereio;;iooi;i;o;oii;o;ioo;iio;oi;
bnmbnmbnmnbmbio;io;irererereeo;o;oi;;oi;oioi;oi;oio;;oovn
/
home
/
u174022924
/
domains
/
rockonwheelstravels.in
/
public_html
/
Upload FileeE
HOME
<!DOCTYPE html> <html lang="en" style="overflow-x: hidden;"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Airport Rental - Rock On Wheels Travels</title> <?php include "include/header.php" ?> <style> .bg-banner { background: url(images/select_cab.jpg) no-repeat; background-size: cover; width: 100%; position: relative; } </style> <section class="same-section-spacing bg-banner"> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="banner-box"> <h2></h2> <nav aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="index">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Select Cabs</li> </ol> <h2 style="text-align: center; ">Select Cabs</h2> <hr id="hr3"> </nav> </div> </div> </div> </div> </section> <div class="wrapperhead bg-head pb-1"> <div class="container-fluid head-out fixed-top sticky-top bg-white"> <div class="secondPageSearchBar bg-secPageNavForm " style="margin-bottom:-15px!important; margin-left:-15px; margin-right:-15px; "> <div class="container-fluid"> <div class="row text-white secondPageSearchBarA navbar-collapse tab-content" id="secondPageSearchBarid" style="margin-bottom: -15px; "> <?php $lat = $_POST['lat']; $long = $_POST['long']; $lat_from = $_POST['lat_from']; $long_from = $_POST['long_from']; $origin = $_POST['o']; $destination = $_POST['d']; $pickup_date = $_POST['pickup_date']; $pickup_time = $_POST['pickup_time']; $trip_type = $_POST['a_trip']; $api = file_get_contents("https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=" . urlencode($origin) . "&destinations=" . urlencode($destination) . "&key=".$google_key); $data = json_decode($api); $distance1 = ((int)$data->rows[0]->elements[0]->distance->value / 1000) . ' Km'; $time = $data->rows[0]->elements[0]->duration->text; ?> <div class="tab-pane container-fluid active" id="rental"> <form method="POST" action=""> <div class="form-group mt-2 mb-2 pl-2 bg-lighttrans col-12 col-sm-6"> <div class="bg-transparent text-white border-0 pl-0 f-mFormIB" name="source" id="rental_source"><strong style="color:#ed1b24;">Cab From - </strong> <?php echo $origin; ?> <br><strong style="color:#ed1b24;"><?php echo $trip_type; ?> - </strong> <?php echo $destination; ?> </div> </div> <div class="form-group mt-2 mb-2 pl-2 bg-lighttrans col-6 col-sm-3"> <label for="rental_pickupdate" class="label-font text-colorSecPageNavFormLabel p-b">Pick Up Date:</label></br> <div class="bg-transparent text-white border-0 pl-0 f-mFormIB" name="pickup_date" id="rental_pickupdate"><?php echo $pickup_date; ?></div> </div> <div class="form-group mt-2 mb-2 pl-2 bg-lighttrans col-6 col-sm-3"> <label for="rental_pickupdate" class="label-font text-colorSecPageNavFormLabel p-b">Pick Up Time:</label></br> <div class="bg-transparent text-white border-0 pl-0 f-mFormIB" name="pickup_time" id="rental_pickupdate"><?php echo $pickup_time; ?></div> </div> </form> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="bg-background pt-3" style="padding: 5px 0;"> <style> .modal-backdrop { /* bug fix - no overlay */ display: none; } </style> <script> function openPage(pageName, elmnt, color) { var i, tabcontent2, tablinks; tabcontent2 = document.getElementsByClassName("tabcontent2"); for (i = 0; i < tabcontent2.length; i++) { tabcontent2[i].style.display = "none"; } tablinks = document.getElementsByClassName("tablink"); for (i = 0; i < tablinks.length; i++) { tablinks[i].style.backgroundColor = ""; } document.getElementById(pageName).style.display = "block"; elmnt.style.backgroundColor = color; } // Get the element with id="defaultOpen" and click on it document.getElementById("defaultOpen").click(); </script> <!--cab type--> <div id="secondPageSearchBarid" style="margin-bottom: -15px;"> <?php $origin = $_POST['o']; $destination = $_POST['d']; $pickup_date = $_POST['pickup_date']; $pickup_time = $_POST['pickup_time']; $api = file_get_contents("https://maps.googleapis.com/maps/api/distancematrix/json?units=imperial&origins=" . urlencode($origin) . "&destinations=" . urlencode($destination) . "&key=".$google_key); $data = json_decode($api); $distance = ((int)$data->rows[0]->elements[0]->distance->value / 1000); $time = $data->rows[0]->elements[0]->duration->text; $query = "SELECT * FROM `airport_routes` WHERE from_city='$origin' AND to_city='$destination'"; $result = mysqli_query($db, $query); // if ($result->num_rows > 0) { $AirportExtraPrice = $result->fetch_assoc(); $CabType=explode(',', $AirportExtraPrice['cab_type_id']); // $ExtraPrice=$AirportExtraPrice['price_km']; // }else{ // $ExtraPrice=0; // } $sql2 = "SELECT * FROM airport"; $result2 = mysqli_query($db, $sql2); ?> <div class="pb-4" id="rental"> <div class="container-fluid"> <div class="row"> <?php while ($row2 = mysqli_fetch_array($result2)) { if (in_array($row2['type'], $CabType)) { $ExtraPrice=$AirportExtraPrice['price_km']; } else { $ExtraPrice=0; } $dist = $distance; ?> <div class="col-md-3 mt-3"> <form method="POST" action="./airport-booking"> <input type="hidden" name="distance" value="<?php echo $distance; ?>" /> <input type="hidden" name="time" value="<?php echo $time; ?>" /> <input type="hidden" name="o" value="<?php echo $origin; ?>" /> <input type="hidden" name="d" value="<?php echo $destination; ?>" /> <input type="hidden" name="pickup_date" value="<?php echo $pickup_date; ?>" /> <input type="hidden" name="pickup_time" value="<?php echo $pickup_time; ?>" /> <!-- <input type="hidden" name="distance" value="<?php echo $distance; ?>" /> --> <input type="hidden" name="time" value="<?php echo $time; ?>" /> <input type="hidden" name="trip" value="<?php echo $trip_type; ?>" /> <input type="hidden" name="lat" value="<?php echo $lat; ?>" /> <input type="hidden" name="long" value="<?php echo $long; ?>" /> <input type="hidden" name="lat_from" value="<?php echo $lat_from; ?>" /> <input type="hidden" name="long_from" value="<?php echo $long_from; ?>" /> <input type="hidden" name="cab_cat_id" value="<?php echo $row2['type']; ?>" /> <div class="card card-blog shadow text-center"> <div class="card-image"> <img class="img img-raised car-image" src="admin/<?php echo $row2['img']; ?>" alt="<?php echo $row2['type'] ?>"></div> <div class="card-body"> <h3 class="margin-price"> <span class="font-weight-bold" style="color: #ed1b24;"> ₹ <?php echo number_format($rate = ($ExtraPrice+$row2['price']) * $dist ); ?> <input type="hidden" name="rate" value="<?php echo round($rate = ($ExtraPrice+$row2['price']) * $dist ); ?>" /> </span> <br> <span class="font-weight-bold" style="color: #000;"> Up to <?php echo (round($dist)); ?> km </span> </h3> <h6 class="card-category font-weight-bold text-uppercase text-dark" style="text-transform: uppercase;"><?php echo $row2['type']; ?></h6> <div class="row"> <div class="col-md-12"> <ul> <li><p class="include_tax my-0"><i class="fa fa-check" style="color: #4695f7!important;"></i> <span class="text-danger">Free Cancellation</span> till 4 hours of departure.</p></li> <li><p class="include_tax my-0" style="color:#000"><i class="fa fa-check" style="color: #4695f7!important;"></i> 100% Verified Drivers.</p></li> <li><p class="text-success include_tax my-0"><i class="fa fa-check" style="color: #4695f7!important;"></i> Best Price Guaranteed.</p></li> </ul> </div> <div class="col-md-12"> <button type="submit" class="btn custom-btn w-100" name="cab_id" value="<?php echo $row2['id']; ?>">SELECT</button> </div> </div> </div> </div> </form> </div> <?php } ?> </div> </div> </div> </div> </div> </div> </div> <!--search form--> <!-- try --> <style> .pac-container { z-index: 10000 !important; } </style> <script src="https://maps.google.com/maps/api/js?key=<?=$google_key?>&libraries=places&callback=initAutocomplete" type="text/javascript"></script> <script> // $(document).ready(function() { // $("#lat_area").addClass("d-none"); // $("#long_area").addClass("d-none"); // }); google.maps.event.addDomListener(window, 'load', initialize); function initialize() { var input = document.getElementById('autocomplete'); var autocomplete = new google.maps.places.Autocomplete(input); var input = document.getElementById('autocomplete2'); var autocomplete2 = new google.maps.places.Autocomplete(input); var input = document.getElementById('autocomplete3'); var autocomplete3 = new google.maps.places.Autocomplete(input); var input = document.getElementById('autocomplete4'); var autocomplete4 = new google.maps.places.Autocomplete(input); var input = document.getElementById('autocomplete5'); var autocomplete5 = new google.maps.places.Autocomplete(input); var input = document.getElementById('autocomplete6'); var autocomplete6 = new google.maps.places.Autocomplete(input); var input = document.getElementById('autocomplete7'); var autocomplete7 = new google.maps.places.Autocomplete(input); var input = document.getElementById('autocomplete8'); var autocomplete8 = new google.maps.places.Autocomplete(input); var input = document.getElementById('autocomplete101'); var autocomplete101 = new google.maps.places.Autocomplete(input); var input = document.getElementById('autocomplete102'); var autocomplete102 = new google.maps.places.Autocomplete(input); // autocomplete.addListener('place_changed', function() { // var place = autocomplete.getPlace(); // var input = document.getElementById('autocomplete2'); // var autocomplete2 = new google.maps.places.Autocomplete(input); // autocomplete2.addListener('place_changed', function() { // var place = autocomplete.getPlace(); // $('#latitude').val(place.geometry['location'].lat()); // $('#longitude').val(place.geometry['location'].lng()); // // --------- show lat and long --------------- // $("#lat_area").removeClass("d-none"); // $("#long_area").removeClass("d-none"); // }); } </script> <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.4.1.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js"></script> <script> $('.owl-carousel').owlCarousel({ loop:true, margin:10, autoplay:true, nav:false, dots:false, responsive:{ 0:{ items:1 }, 600:{ items:3 }, 1000:{ items:8 } } }) </script> <?php include "include/footer.php" ?>