<?

require("islogin.php");

require("customfunction.php");  

$CustomerId=$_COOKIE["cookCustomersId"];

?>

<div class="searchHomeFormWrap">
  <form action="/proccessform.php?actions=apisearchfleets"  name="frmsearchHome" id="tripSarchHome" method="post" onsubmit="return checkSearchformHome();"> 
	<input type="hidden" id="searchfromHome" name="searchfrom" value="Web"/>
	<input type="hidden" id="customers_idHome" name="customers_id" value="<?=$CustomerId?>"/>

    <div class="searchHomeForm">

				<h3>Search Vehicles</h3>

      <div class="row">

        <div class="col-sm-12">

          <div class="form-group">

            <select name="services_id" id="services_idHome" class="form-control selectRideMain" onchange="changeFormFieldsHome(this.value);">
                <option value="">Where do you want to go?</option>
               <optgroup label="Most Popular:">
				<option value="1000">To Airport</option>
				<option value="1001">From Airport</option>
				<option value="1002">Point-to-Point (one-way)</option>
				<option value="1003">Just Drive (hourly)</option>
              </optgroup>
              <optgroup label="Special Occasions:">
				<option value="27">Prom / School Event</option>
				<option value="25" >Wedding</option>
				<option value="24" >Birthday and Anniversary</option>
				<option value="3" >Night On The Town</option>
				<option value="12" >Concert / Sporting Events</option>
				<option value="11" >Bachelor (ette) Party</option>
				<option value="10" >Executive & Corporate</option>
				<option value="7" >Wine Tours</option>
				<option value="30" >To & From Sea-Port</option>
				<option value="31" >Funeral</option>
              </optgroup>
            </select>
          </div>

        </div>

      </div>

      <div class="row">

        <div class="col-sm-12">

          <div class="form-group">
			<input type="text" size="30" placeholder="Pickup: Address, City, of Zip-code" name="autocomplete" id="autocompleteHome" onFocus="geolocate()" autocomplete="off" class="form-control locationIcon topLocation" />
			<input id="street_numberHome" name="street_number" type="hidden"/>
			<input id="routeHome" name="route" type="hidden"/>
			<input id="countryHome" name="country" type="hidden"/>
			<input id="administrative_area_level_1Home" name="administrative_area_level_1" type="hidden"/>
			
           <div class="form-group cf cols2" style="display:none;">
											<div class="alignLeft ones">
												<input type="text" size="10" placeholder="City" name="locality" id="localityHome"/>
											</div>
											<div class="alignRight ones">
												<input type="text" size="10" placeholder="Zipcode" name="postal_code" id="postal_codeHome"/>
											 </div>             
										</div>

          </div>

        </div>

      </div>

						 <div id="hdn_airportHome" style="display:none;">	

      <div class="row">

        <div class="col-sm-12">

          <div class="form-group">
			<input type="text" size="30" placeholder="Drop-off: Address, city, or zip-code" name="autocomplete_DA" id="autocomplete_DAHome" onFocus="geolocate()" autocomplete="off" class="form-control locationIcon" />
			<input id="street_number_DAHome" name="street_number_DA" type="hidden"/>
			<input id="route_DAHome" name="route_DA" type="hidden"/>
			<input id="administrative_area_level_1_DAHome" name="administrative_area_level_1_DA" type="hidden"/>
			<input id="country_DAHome" name="country_DA" type="hidden"/>				
            <div class="form-group cf cols2" style="display:none;" id="dropup_zipcityHome">
				<div class="alignLeft ones">
					<input type="text" size="10" placeholder="City" name="locality_DA" id="locality_DAHome"/>
				</div>
				<div class="alignRight ones">
					<input type="text" size="10" placeholder="Zipcode" name="postal_code_DA" id="postal_code_DAHome"/>
				 </div>             
			</div>
          </div>

        </div>

      </div>
	</div>

      <div class="row pad5">

        <div class="col-sm-6">

          <div class="form-group">
			<input type="text" readonly="readonly" size="15" class="form-control PickupDate datepicker" placeholder="What date?" id="pickup_dateHome" name="pickup_date" />
          </div>

        </div>

								

								<div class="col-xs-6">

          <div class="form-group">
			<select id="no_of_passengersHome" name="no_of_passengers" class="form-control">
				<option value="">No of people</option>
				<?					
				if($no_of_passengers==0){
					$lastCond=50;
				}else{
					$lastCond=$no_of_passengers;
				}
				for($i=1;$i<=$lastCond;$i=$i+1){
					if($i<10){
						$ddText="0".$i;
					}else{
						$ddText=$i;
					}
				?>
					<option value="<?=$ddText?>" <? //if($no_of_passengers==$ddText){?> <? //}?>><?=$ddText?></option>
			<? }?>
		  </select>		  
          </div>
        </div>
	</div>
	<div class="row pad5">

        <div class="col-xs-6">

          <div class="form-group">
			<select id="pickup_timeHHome" name="pickup_timeH" onchange="getDropupTimeHome();" class="form-control">
				<option value="">Pickup Hour</option>
				<?=fnGetSearchTime('')?>
		    </select>
          </div>

        </div>

        <div class="col-xs-6">
          <div class="form-group">
			<select id="pickup_timeMHome" name="pickup_timeM" onchange="getDropupTimeHome();" class="form-control">
			   <option value="0">Pickup minute</option>
			   <option value="00" selected="selected">:00 minute</option>
			   <option value="15">:15 minutes</option>
			   <option value="30">:30 minutes</option>
			   <option value="45">:45 minutes</option>
			</select>
          </div>
        </div>
      </div>
	<div id="dropup_timeDIVHome" style="display:none;">

						<div class="row pad5">

        <div class="col-xs-6">

          <div class="form-group">
 			<select id="dropup_timeHHome" name="dropup_timeH" onchange="getDropupTimeHrHome();" class="form-control">
			   <option value="">Drop-Off Hour</option>
			   <?=fnGetSearchTime('')?>
			</select>
          </div>
        </div>
        <div class="col-xs-6">
          <div class="form-group">
			  <select id="dropup_timeMHome" name="dropup_timeM" onchange="getDropupTimeHrHome();" class="form-control">
				   <option value="0">Drop-Off minute</option>
				   <option value="00" selected="selected">:00 minute</option>
				   <option value="15">:15 minutes</option>
				   <option value="30">:30 minutes</option>
				   <option value="45">:45 minutes</option>
			  </select>
          </div>
        </div>
      </div>
	</div>
   </div>

    <div class="searchBtnSec">
	   <input type="hidden" id="no_of_hrsHome" name="no_of_hrs" value=""/>
      <input name="findBtn" type="submit" class="BtnSearch" value="CALCULATE PRICES"> <span id="loadingsearchHome"></span>
    </div>

  </form>
</div>