MMCT TEAM
Server IP : 82.112.239.40  /  Your IP : 3.15.233.123
Web Server : LiteSpeed
System : Linux in-mum-web1676.main-hosting.eu 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
User : u641149403 ( 641149403)
PHP Version : 7.4.33
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u641149403/domains/cabz4you.com/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u641149403/domains/cabz4you.com/public_html/airport-rental.php
<?php include('include/common.php');
if(isset($_SESSION['airport'])){
  $session = $_SESSION['airport'];
  $origin = $session['o'];
  $destination = $session['d'];
  $pickup_date = $session['pickup_date'];
  $pickup_time = $session['pickup_time'];
  $lat = $session['lat'];
  $long = $session['long'];
  $lat_from = $session['lat_from'];
  $long_from = $session['long_from'];
  $trip_type = $session['trip_type'];
  $trip = $session['a_trip'];
}else{
  header('location:'.BASE_URL);
}

$formatted_pickupdate = date('D jS M Y', strtotime($pickup_date));
?>
<!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">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Airport Rental - <?=SITE_NAME?></title>
<meta name="description" content="Book reliable and affordable airport taxi rental services with <?=SITE_NAME?>. We offer comfortable rides to and from the airport with professional drivers and 24/7 availability.">
<meta name="keywords" content="airport taxi, airport rental service, Dehradun airport taxi, taxi from airport, airport pickup, Dehradun airport transfer, cab rental service, affordable airport rental">
<meta name="robots" content="index, follow">
<meta name="language" content="English">
<meta name="rating" content="General">
<meta name="distribution" content="Global">
<meta name="revisit-after" content="7 days">
<meta property="og:title" content="Airport Rental - <?=SITE_NAME?>" />
<meta property="og:description" content="Book a comfortable airport taxi rental with <?=SITE_NAME?>. Our professional drivers provide 24/7 airport pickup and drop services at affordable rates." />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?=BASE_URL?>airport-rental.php"/>
<meta property="og:image" content="<?=BASE_URL?>images/airport-rental.jpg" />
<meta property="og:site_name" content="<?=SITE_NAME?>" />
<meta property="og:locale" content="en_US" />
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Airport Rental - <?=SITE_NAME?>">
<meta name="twitter:description" content="Affordable and reliable airport rental service by <?=SITE_NAME?>. Book now for a comfortable and safe journey to/from the airport." />
<meta name="twitter:image" content="<?=BASE_URL?>images/airport-rental.jpg">
<meta name="twitter:site" content="@Cabsz4u">
<meta name="twitter:creator" content="@Cabsz4u">
<meta name="twitter:url" content="<?=BASE_URL?>">
<meta name="twitter:label1" content="Written by">
<meta name="twitter:data1" content="<?=SITE_NAME?>">
<meta name="twitter:label2" content="Time to read">
<meta name="twitter:data2" content="3 minutes">
<meta name="twitter:domain" content="<?=DOMAIN?>">
<meta name="twitter:image:width" content="1200">
<meta name="twitter:image:height" content="630">
<meta name="format-detection" content="telephone=no">
<meta name="theme-color" content="#ff0000">

<!-- Schema.org structured data for Airport Rental page -->
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Service",
  "name": "<?=SITE_NAME?> Airport Rental",
  "url": "<?=BASE_URL?>airport-rental.php",
  "logo": "<?=BASE_URL?>images/logo.png",
  "description": "Reliable and affordable airport rental services with <?=SITE_NAME?>. We offer professional drivers and 24/7 availability for airport pickups and drops.",
  "serviceType": "Airport Taxi Rental",
  "provider": {
    "@type": "Organization",
    "name": "<?=SITE_NAME?>",
    "url": "<?=BASE_URL?>",
    "logo": "<?=BASE_URL?>images/logo.png"
  },
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "<?=ADDRESS?>",
    "addressLocality": "Dehradun",
    "addressRegion": "Uttarakhand",
    "postalCode": "249401",
    "addressCountry": "IN"
  },
  "telephone": "+91-7830530004",
  "sameAs": [
    "https://www.facebook.com/profile.php?id=61554848866697&mibextid=JRoKGi",
    "https://x.com/Cabsz4u",
    "https://www.instagram.com/cabz4u/"
  ],
  "contactPoint": {
    "@type": "ContactPoint",
    "telephone": "+91-7830530004",
    "contactType": "customer service",
    "areaServed": "IN",
    "availableLanguage": "English"
  }
}
</script>

      <?php
  include "include/header.php";
  $current_date= date("Y-m-d h:i:s");

  if ($pickup_date===date('Y-m-d')) { ?>
    <style>
      .time2{
        display: none;
      }
    </style>
  <?php }else{ ?>
    <style>
      .time1{
        display: none;
      }
    </style>
  <?php }
  ?>

    <section class="search-details">
        <div class="container">
          <div class="card locationbox">
            <ul class="list-unstyled locationstyle">
              <li class="pick-up"><span><?=$origin; ?><br>
                <span class="display_none_phone">( <?=$formatted_pickupdate?> <?=$pickup_time?> )</span></span></li>
                <li class="icon"><div><i class="fa fa-chevron-right"></i></div></li>
                <li class="droploc"><span><?=$destination; ?><br><span class="display_none_phone">( <?=$formatted_pickupdate?> 11:59 PM )</span></span></li>
            </ul>
        </div>

        <div class="head">
          <p><span class="d-lg-none"><?=$formatted_pickupdate?> <?=$pickup_time?></span></p>
          <button type="button" class="btn-theme" data-toggle="modal" data-backdrop="false" data-target="#myModal"><i class="fa fa-pencil-square-o"></i> Modify</button>
      </div>
  </div>
</section>

<!-- ===============modal form============= -->

<div class="modal fade" id="myModal" role="dialog" style="z-index: 10000000;">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
    </div>
    <form method="POST" action="recent_form_submision.php">
        <h4 class="form-heading">Airport</h4>

        <input type="hidden" name="trip_type" value="Airport">
        <input type="hidden" name="lat" id="lat">
        <input type="hidden" name="long" id="long">

        <div class="form-group row">
          <div class="col-md-3">
            <label>From:</label>
        </div>
        <div class="col-md-9">
            <input required type="text" class="form-control" placeholder="Start Typing City" id="autocomplete" name="o" value="<?php echo $origin; ?>">
        </div>
    </div>

    <div class="form-group row">
      <div class="col-md-3">
        <label>Airport City:</label>
    </div>
    <div class="col-md-9">
        <select id="se" class="form-control" name="a_trip">
          <option value="Cab to the Airport" <?php if($trip=='Cab to the Airport'){echo 'selected';}?>>Cab to the Airport</option>
          <option value="Cab From the Airport" <?php if($trip=='Cab From the Airport'){echo 'selected';}?>>Cab From the Airport</option>
      </select>
  </div>
</div>

<div class="form-group row">
  <div class="col-md-3">
    <label>To:</label>
</div>
<div class="col-md-9">
    <input required type="text" class="form-control" placeholder="Start Typing City" id="autocomplete2" name="d" value="<?php echo $destination; ?>">
</div>
</div>
<div class="form-group row">
    <div class="col-md-6"> 
        <label>Pick Up:</label>
        <input type="date" required class="date form-control" placeholder="Pickup Date" min="<?php echo date('Y-m-d'); ?>" id="out_pick_date" name="pickup_date" value="<?php echo $pickup_date; ?>">
    </div>

    <div class="col-md-6"> 
        <label>Pick At:</label>
        <select class="form-control" name="pickup_time" id="time" placeholder="Time" required>
          <?php 
          $q = "select * from time_slots";
          $query = mysqli_query($db,$q);
          while($time = mysqli_fetch_array($query)) {
            $start = strtotime($time['opening_time']);
            $end = strtotime($time['closing_time']);
            $timeSlot = $time['time_slot'];
            for ($i=$start; $i<$end; $i = $i + $timeSlot*60){
              $timeFrom = date('h:i A',$i);
              $timeTo = date('h:i A',strtotime('+'.$timeSlot.'minutes',strtotime($timeFrom)));
              ?>
              <?php
              date_default_timezone_set('Asia/Kolkata');
              $timestamp = strtotime(date('H:i')) + 60*60;
              $currentTime = strtotime(date('h:i A', $timestamp));
              if($currentTime <= strtotime($timeFrom)){ ?>
                <option value="<?php echo $timeFrom; ?>" <?php if($pickup_time==$timeFrom){echo 'selected';} ?> class="time1"><?php echo $timeFrom; ?></option>
            <?php } ?>
            <option value="<?php echo $timeFrom; ?>" <?php if($pickup_time==$timeFrom){echo 'selected';} ?> class="time2"><?php echo $timeFrom; ?></option>
        <?php } } ?>
    </select>
</div>
</div>
<div class="text-center ">
  <input type="submit" class="btn btn-theme" name="submit" value="Select Car" />
</div>
</form>
</div>
</div>
</div>

<!-- ===============modal form============= -->


<div class="bg-background pt-3" style="padding: 5px 0;">

    <!--cab type-->
    <div id="secondPageSearchBarid" style="margin-bottom: -15px;">
        <?php
        $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;

        $distance = round($distance);
        $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();
            $ExtraPrice=$AirportExtraPrice['price_km'];
        }else{
            $ExtraPrice=0;
        }

        $sql2 = "SELECT * FROM airport";
        $result2 = mysqli_query($db, $sql2);
        $tabs_result = mysqli_query($db, $sql2);

        ?>

        <section class="cab-price-section">
            <div class="container">
              <ul class="nav nav-tabs d-lg-none" id="myTab" role="tablist">
                <?php $i=1; while ($tab = mysqli_fetch_array($tabs_result)) {
                  if ($i==1) {
                    $active = 'active';
                }else{
                    $active='';
                }

                $rate = round(($ExtraPrice+$tab['price']) * $distance);
                ?>
                <!-- tabs -->
                <li class="nav-item">
                  <a class="nav-link <?=$active?>" data-toggle="tab" href="#tabs-<?=$i?>" role="tab">
                    <p><?php echo $tab['type']; ?></p>
                    <img src="admin/<?php echo $tab['img'] ?>">
                    <p>₹<?=$rate?></p>
                </a>
            </li>
            <!-- tabs -->
            <?php $i++; } ?>
        </ul>
        <!-- tabs end -->
        <div class="tab-content">
            <?php $i=1; while ($row2 = mysqli_fetch_array($result2)) {
                if ($i==1) {
                    $active = 'active';
                }else{
                    $active='';
                }
                $rate = round(($ExtraPrice+$row2['price']) * $distance);
                ?>
                <div class="tab-pane p-3 <?=$active?>" id="tabs-<?=$i?>" role="tabpanel">
                    <form method="POST" action="final_form_submit.php">
                        <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="trip_type" value="<?php echo $trip_type; ?>" />
                        <input type="hidden" name="trip" value="<?php echo $trip; ?>" />
                        <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_id" value="<?php echo $row2['type']; ?>" />
                        <input type="hidden" name="rate" value="<?php echo $rate; ?>" />
                        <input type="hidden" name="extra_km" value="<?=$tab['price']?>" />

                        <div class="cab-card-phone d-lg-none">
                            <div class="cab-name"><?php echo $row2['type']; ?></div>
                            <div class="d-flex">
                              <div class="cab-card-body">
                                <div class="cab-price">
                                  <div class="price">₹ <?=$rate?></div>
                              </div>
                          </div>
                          <div class="card-img">
                            <img src="admin/<?php echo $row2['img'] ?>">
                        </div>
                    </div>
                    <ul>
                      <li><i class="fa fa-check"></i><span class="text-danger">Free Cancellation</span> till 4 hours of departure.</li>
                      <li><i class="fa fa-check"></i>100% Verified Drivers.</li>
                      <li class="text-success"><i class="fa fa-check"></i>Best Price Guaranteed.</li>
                      <li><i class="fa fa-check"></i> <?=$distance;?> km Included</li>
                      <li class="text-danger"><i class="fa fa-check"></i><?=$tab['price']?>/Km After <?=$distance;?> Kms.</li>
                  </ul>

                  <div class="select-btn">
                      <button type="submit" class="btn-theme w-100" name="cab_cat_id" value="<?=$row2['id']; ?>">Select</button>
                  </div>
              </div>
          </form>
      </div>


      <div class="border-box">
        <form method="POST" action="final_form_submit.php">
          <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="trip_type" value="<?php echo $trip_type; ?>" />
          <input type="hidden" name="trip" value="<?php echo $trip; ?>" />
          <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_id" value="<?php echo $row2['type']; ?>" />
          <input type="hidden" name="rate" value="<?php echo $rate; ?>" />
          <input type="hidden" name="extra_km" value="0" />
          <div class="row align-items-center">
            <div class="col-md-4">
              <div class="cab-detail">
                <img src="admin/<?php echo $row2['img'] ?>">
                <div class="cab-name"><?php echo $row2['type']; ?></div>
            </div>
        </div>
        <div class="col-md-2">
          <div class="cab-price">
            <div class="price">₹ <?=$rate?></div>
        </div>
    </div>
    <div class="col-md-4">
      <ul>
        <li><i class="fa fa-check"></i><span class="text-danger">Free Cancellation</span> till 4 hours of departure.</li>
        <li><i class="fa fa-check"></i>100% Verified Drivers.</li>
        <li class="text-success"><i class="fa fa-check"></i>Best Price Guaranteed.</li>
        <li><i class="fa fa-check"></i> <?=$distance;?> km Included</li>
    </ul>
</div>
<div class="col-md-2">
  <div class="select-btn">
    <button type="submit" class="btn-theme" name="cab_cat_id" value="<?=$row2['id']; ?>">Select</button>
</div>
</div>
</div>
</form>
</div>

<?php $i++; } ?>
</div>

</div>
</div>

<!--search form-->


<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=<?=$google_key?>&libraries=places"></script>
<script>
  function initialize() {
    var options = {
      types: "cities",
      componentRestrictions: {
        country: "ind"
    },
};
var input = document.getElementById("autocomplete");
var autocomplete = new google.maps.places.Autocomplete(input, options);
var input = document.getElementById("autocomplete2");
var autocomplete102 = new google.maps.places.Autocomplete(input, options);
google.maps.event.addListener(autocomplete102, "place_changed", function() {
  var one_way = autocomplete102.getPlace();

  document.getElementById("lat").value = one_way.geometry.location.lat();
  document.getElementById("long").value = one_way.geometry.location.lng();
});
}
google.maps.event.addDomListener(window, "load", initialize);


$(".date").on('change', function() {
    var selectdate = $(this).val();
    var minDate = $(this).attr('min');
    if (minDate != selectdate) {
      $(".time2").show();
      $(".time1").hide();
      $("#first_opt").html('Select Pick Up Time');
  } else {
      $(".time1").show();
      $(".time2").hide();
      $("#first_opt").html('Select Pick Up Time');;
  }
});


</script>
<?php include "include/footer.php" ?>

MMCT - 2023