<?php include "layouts/menu.php"; ?> 
<style>
.form-control::placeholder { 
color: black;
font-weight: bolder;
font-size: 16px; }
.form-control { 
font-weight: bolder;
display: block;
    width: 100%;
    height: 39px;
    padding: 6px 12px;
    font-size: 16px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc; } 
	/* WebKit, Blink, Edge */
.form-control:-moz-placeholder { color: blue; }  /* Mozilla Firefox 4 to 18 */
.form-control::-moz-placeholder { color: blue; }  /* Mozilla Firefox 19+ */
.form-control:-ms-input-placeholder { color: blue; }  /* Internet Explorer 10-11 */
.form-control::-ms-input-placeholder { color: blue; }  /* Microsoft Edge */


}
.form-control-feedback {
    right: 18px;
    size: 11px;
    font-size: larger;
	color: #3c763d;
	margin-top: 8px;
    height: 23px;
    color: #bbb;
    line-height: 24px;
    font-size: 15px;
}
</style>
	 <script>
	function autocomp() {
	var min_length = 0; // min caracters to display the autocomplete
	var keyword = $('#didn').val();
	if (keyword.length >= min_length) {
		$.ajax({
			url: 'ajax_sname.php',
			type: 'POST',
			data: {keyword:keyword},
			success:function(data){
				$('#dname').show();
				$('#dname').html(data);
			}
		});
	} else {
		$('#dname').hide();
	}
}

// set_item : this function will be executed when we select an item
function set_itemm(item) {
	// change input value
	$('#didn').val(item);
	// hide proposition list
	$('#dname').hide();
}
	</script>
		 <script>
	function autocomplett() {
	var min_length = 0; // min caracters to display the autocomplete
	var keyword = $('#zxcvb').val();
	if (keyword.length >= min_length) {
		$.ajax({
			url: 'ajax_broker.php',
			type: 'POST',
			data: {keyword:keyword},
			success:function(data){
				$('#qwertyu').show();
				$('#qwertyu').html(data);
			}
		});
	} else {
		$('#qwertyu').hide();
	}
}
// set_item : this function will be executed when we select an item
function set_itemmm(item) {
	// change input value
	$('#zxcvb').val(item);
	// hide proposition list
	$('#qwertyu').hide();
}
	</script>
    <!--  page-wrapper -->
         <div class="right_col" role="main">

            <div class="row">
                <div class="col-lg-12">
                    <!-- Form Elements -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Give HPL / Vehicle Number / Customer Name
                        </div>
                        <div class="panel-body">
                            <div class="row">
						
   
   
   <form name="form1" class="form-horizontal" method="post" action="" enctype="multipart/form-data">
	<div class="col-lg-12">  <div class="col-lg-4 form-group has-success has-feedback">
<input type="text" class="form-control" id="inputPassword3" name="hpl" value="" placeholder="Customer ID Number">
   <i class="fa fa-th fa-3x form-control-feedback" aria-hidden="true"></i>
</div> 
   
    <div class="col-lg-4 form-group has-success has-feedback">
<input type="text" class="form-control" id="didn" name="name" value=""  onkeyup="autocomp()" placeholder="Customer Name">
   <ul id="dname"></ul>
   <i class="fa fa-user form-control-feedback" aria-hidden="true"></i>
	  
</div> 

 <div class="col-lg-4 form-group has-success has-feedback">
<input type="text" class="form-control" id="zxcvbfff" name="vno" value="" placeholder="Vehicle No">
 <ul id="qwertyuddd"></ul>
	   <i class="fa fa-registered form-control-feedback" aria-hidden="true"></i>
</div> </br></br></br>

 	 <div class="col-lg-4 form-group has-success has-feedback">
<input type="text" class="form-control" id="did" name="pno" value="" onkeyup="autocomplet()" placeholder="Customer Mobile No">
	   <ul id="country_list_id"></ul>
	  <i class="fa fa-phone form-control-feedback" aria-hidden="true"></i>
</div> 
   
    <div class="col-lg-4 form-group has-success has-feedback">
<input style="text-transform:uppercase; background: #fbe1b5;" type="text" class="form-control" id="area" name="area" value=""  onkeyup="autocomplet()" placeholder="Area">
  <ul id="country_list_id"></ul>
	  <i class="fa fa-map-marker  form-control-feedback" aria-hidden="true"></i>
</div> 

 <div class="col-lg-4 form-group has-success has-feedback">
<select style="text-transform:uppercase; background: #f7c7c7;" type="text" class="form-control"  id="vname" name="vname" value="" placeholder="" required>
	  <option value="None"><b><font size="2" color="blue">Vehicle Name</font></b></option>
	  <?php $sql33 = mysqli_query($conn, "select * from mveh order by name asc");
	  while($row33 = mysqli_fetch_array($sql33)) { ?>
	   <option value="<?php echo $row33['name']; ?>"><b><font size="2" color="blue"><?php echo $row33['name']; ?></font></b></option>
	  <?php } ?> </select>
	    <i class="fa fa-motorcycle form-control-feedback" aria-hidden="true"></i>
</div> </br></br></br>

	 <div class="col-lg-4 form-group has-success has-feedback">
<input type="text" class="form-control" id="inputPassword3" name="gid" value="" placeholder="Govt ID">
  <i class="fa fa-credit-card form-control-feedback" aria-hidden="true"></i>
</div> 
   
    <div class="col-lg-4 form-group has-success has-feedback">
<input type="text" class="form-control" id="inputPassword3" name="cobname" value="" placeholder="Co-Applicant Name/Phone No">
  <i class="fa fa-user-plus form-control-feedback" aria-hidden="true"></i>
</div> 

 <div class="col-lg-4 form-group has-success has-feedback">
<select type="text" class="form-control"  id="dealer" name="dealer" value="" placeholder="dealer" >
	  <option value="None"><b><font size="2" color="blue">All Dealer</font></b></option>
	  <?php $sql33 = mysqli_query($conn, "select * from mdealer");
	  while($row33 = mysqli_fetch_array($sql33)) { ?>
	   <option value="<?php echo $row33['name']; ?>"><b><font size="2" color="blue"><?php echo $row33['name']; ?></font></b></option>
	  <?php } ?> </select>
  <i class="fa fa-search form-control-feedback" aria-hidden="true"></i>
</div> </br></br></br>

<div class="col-lg-3 form-group has-success has-feedback">
<select type="text" class="form-control"  id="brk" name="brk" value="" placeholder="" required>
	  <option value="None"><b><font size="2" color="blue">All Broker</font></b></option>
	  <?php $sql33 = mysqli_query($conn, "select * from mbroker");
	  while($row33 = mysqli_fetch_array($sql33)) { ?>
	   <option value="<?php echo $row33['name']; ?>"><b><font size="2" color="blue"><?php echo $row33['name']; ?></font></b></option>
	  <?php } ?> </select>
	    <i class="fa fa-search form-control-feedback" aria-hidden="true"></i>
</div> 

<div class="col-lg-3 form-group has-success has-feedback">
 
      <select style="text-transform:uppercase; background: #c1f5c1;" type="text" class="form-control" id="inputPassword3" name="vtype" value="" placeholder="">
 <option value="None">All Vehicles Types</option>
	  <option value="Two Wheel">Two Wheel</option>
	  <option value="Three Wheel">Three Wheel</option>
	  <option value="Four Wheel">Four Wheel</option>
	  <option value="Auto">Auto</option>
	  <option value="Tempo">Tempo</option>
	  <option value="Jugaad">Jugaad</option>
	   <option value="Car–Passenger Vehicles">Car–Passenger Vehicles</option>
	  <option value="Commercial Vehicles">Commercial Vehicles</option>
	   <option value="Bus">Bus</option>
	  <option value="Trucks">Trucks</option>
	   <option value="Backhoe – Heavy Duty Vehicles">Backhoe – Heavy Duty Vehicles</option>  
	   <option value="Equipment Vehicles">Equipment Vehicles</option>
	  </select>
 <span class="glyphicon glyphicon-home form-control-feedback"></span>
  </div>


<?php if(($mfin222 == 'All Company') || ($mfin222 == NULL)) {  ?>
<div class="col-lg-3 form-group has-warning has-feedback">
<select style="text-transform:uppercase; background: #75f5dc;" type="text" class="form-control"  id="com" name="com" value="" placeholder="" required>
	  <option value="None"><b><font size="2" color="blue">All Company</font></b></option>
	  <?php $sql33 = mysqli_query($conn, "select * from mfin");
	  while($row33 = mysqli_fetch_array($sql33)) { ?>
	   <option value="<?php echo $row33['name']; ?>"><b><font size="2" color="blue"><?php echo $row33['name']; ?></font></b></option>
	  <?php } ?> </select>
	    <i class="fa fa-search form-control-feedback" aria-hidden="true"></i>
</div> <?php }
									else { ?>
<div class="col-lg-3 form-group has-warning has-feedback">
<input type="text" class="form-control"  id="com" name="com" value="<?php echo $mfin222; ?>" placeholder="" required>
	    <i class="fa fa-search form-control-feedback" aria-hidden="true"></i>
</div>
<?php									} ?>
   
  <div class="col-lg-3 form-group has-warning has-feedback">
<select style="text-transform:uppercase; background: #96caf7;" type="text" class="form-control"  id="status" name="status" value="" placeholder="" required>
	  <option value="None"><b><font size="2" color="blue">All Loans A/C/S</font></b></option>
	    <option value="Active"><b><font size="2" color="blue">Active</font></b></option>
		<option value="Closed"><b><font size="2" color="blue">Closed</font></b></option>
		<option value="Sized"><b><font size="2" color="blue">Seized</font></b></option>
	  </select>
	    <i class="fa fa-search form-control-feedback" aria-hidden="true"></i>
</div> 

</br></br></br>

   </div>
 </br></br> <div class="col-lg-12"> 
      <button type="submit" class="btn btn-primary btn-block btn-lg" name="s2">Search It Now</button>
  </div> </br></br>
      <div>
      <?php
								if(isset($_POST['s2']))
								{
									extract($_POST);
								header("location:e0search.php?hpl=$hpl&vno=$vno&name=$name&vtype=$vtype&pno=$pno&area=$area&vname=$vname&gid=$gid&cobname=$cobname&dealer=$dealer&brk=$brk&com=$com&status=$status"); }
							?>
	  </div>
</form>

 


</div></div>
</div></div></div></div></div></div> <?php include "layouts/footer.php"; ?></body></html>
