<?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">
                      Pending List Smart Filtering
                        </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-2 form-group has-success has-feedback">
	Loan Date
</div> 
	
	<div class="col-lg-4 form-group has-success has-feedback">
<input style="text-transform:uppercase; background: #e1f0fd;" type="date" class="form-control" id="inputPassword3" name="hpdate" value="" placeholder="Loan DATE FROM">
   <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 style="text-transform:uppercase; background: #e1f0fd;" type="date" class="form-control"  name="hpdate1" value=""  onkeyup="autocomp()" placeholder="TO">

   <i class="fa fa-user form-control-feedback" aria-hidden="true"></i>  
</div> 	
<div class="col-lg-2 form-group has-success has-feedback">
</div>  
</div> 
<!------ ணேங்ங்ங்ங்ங்ங்ங்ங்ங் ----------------------------------------------------->

	<div class="col-lg-12"> 
	<div class="col-lg-2 form-group has-success has-feedback">
</div> 
	
	<div class="col-lg-4 form-group has-success has-feedback">
<input type="text" style="text-transform:uppercase; background: #e1f0fd;" class="form-control" id="inputPassword3" name="pendue" value="" placeholder="Days From (From Loan Date)">
   <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" style="text-transform:uppercase; background: #e1f0fd;" class="form-control"  name="pendue1" value=""  onkeyup="autocomp()" placeholder="TO">
 
   <i class="fa fa-user form-control-feedback" aria-hidden="true"></i>  
</div> 	
<div class="col-lg-2 form-group has-success has-feedback">
</div>  
</div> 
<!------ ணேங்ங்ங்ங்ங்ங்ங்ங்ங் ----------------------------------------------------->


	<div class="col-lg-12"> 
	<div class="col-lg-2 form-group has-success has-feedback">
</div> 
	
	<div class="col-lg-4 form-group has-success has-feedback">
<input type="text" style="text-transform:uppercase; background: #e1f0fd;" class="form-control" id="inputPassword3" name="penamt" value="" placeholder="PENDING AMT FROM">
   <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" style="text-transform:uppercase; background: #e1f0fd;" class="form-control" name="penamt1" value=""  onkeyup="autocomp()" placeholder="TO">
 
   <i class="fa fa-user form-control-feedback" aria-hidden="true"></i>  
</div> 	
<div class="col-lg-2 form-group has-success has-feedback">
</div>  
</div> 
<!------ ணேங்ங்ங்ங்ங்ங்ங்ங்ங் ----------------------------------------------------->

<div class="col-lg-12"> 
	<div class="col-lg-2 form-group has-success has-feedback">
</div> 
	
	<div class="col-lg-4 form-group has-success has-feedback">
<input type="text" style="text-transform:uppercase; background: #e1f0fd;" class="form-control" id="inputPassword3" name="hlamt" value="" placeholder="Principal PENDING FROM">
   <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" style="text-transform:uppercase; background: #e1f0fd;" class="form-control" name="hlamt1" value=""  onkeyup="autocomp()" placeholder="TO">
 
   <i class="fa fa-user form-control-feedback" aria-hidden="true"></i>  
</div> 	
<div class="col-lg-2 form-group has-success has-feedback">
</div>  
</div> 
<!------ ணேங்ங்ங்ங்ங்ங்ங்ங்ங் ----------------------------------------------------->

<div class="col-lg-12"> 
	<div class="col-lg-2 form-group has-success has-feedback">
</div> 
	
	<div class="col-lg-4 form-group has-success has-feedback">
<input type="text" style="text-transform:uppercase; background: #e1f0fd;" class="form-control" id="inputPassword3" name="defamt" value="" placeholder="Interest PENDING FROM">
   <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" style="text-transform:uppercase; background: #e1f0fd;" class="form-control" name="defamt1" value=""  onkeyup="autocomp()" placeholder="TO">
 
   <i class="fa fa-user form-control-feedback" aria-hidden="true"></i>  
</div> 	
<div class="col-lg-2 form-group has-success has-feedback">
</div>  
</div> 
<!------ ணேங்ங்ங்ங்ங்ங்ங்ங்ங் ----------------------------------------------------->




<input type="hidden" style="text-transform:uppercase; background: #e1f0fd;" class="form-control" id="inputPassword3" name="baldue" value="" placeholder="BALANCES DUE FROM">
 
<input type="hidden" style="text-transform:uppercase; background: #e1f0fd;" class="form-control"  name="baldue1" value=""  onkeyup="autocomp()" placeholder="TO">
 
<input type="hidden" style="text-transform:uppercase; background: #e1f0fd;" class="form-control" name="dueday" value="" placeholder="DUE DAY FROM">
  
<input type="hidden" style="text-transform:uppercase; background: #e1f0fd;" class="form-control"  name="dueday1" value=""  onkeyup="autocomp()" placeholder="TO">
   


<input style="text-transform:uppercase; background: #e1f0fd;" type="hidden" class="form-control" id="inputPassword3" name="widt" value="" placeholder="NonTrabs Months FROM">

<input style="text-transform:uppercase; background: #e1f0fd;" type="hidden" class="form-control"  name="widt1" value=""  onkeyup="autocomp()" placeholder="TO">




<!------ ணேங்ங்ங்ங்ங்ங்ங்ங்ங் ----------------------------------------------------->
<div class="col-lg-12"> 
<div class="col-lg-2 form-group has-success has-feedback">
</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: #fbe1b5;" type="text" class="form-control" id="areag" name="areag" value=""  onkeyup="autocompletg()" placeholder="Area Group">
 <option value="None">All Scheme</option>
	 <?php $sql33 = mysqli_query($conn, "select * from msch");
	  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-map-marker  form-control-feedback" aria-hidden="true"></i>
</div>
<div class="col-lg-2 form-group has-success has-feedback">
</div> 
</div>

<!------ ணேங்ங்ங்ங்ங்ங்ங்ங்ங் ----------------------------------------------------->


<input style="text-transform:uppercase; background: #fbe1b5;" type="hidden" class="form-control"  id="dealer" name="dealer" value="None" placeholder="dealer" >

<input style="text-transform:uppercase; background: #fbe1b5;" type="hidden" class="form-control"  id="brk" name="brk" value="None" placeholder="" >



<input style="text-transform:uppercase; background: #c1f5c1;" type="hidden" class="form-control"  id="vname" name="vname" value="None" placeholder="" >

 <input style="text-transform:uppercase; background: #c1f5c1;" type="hidden" class="form-control" id="inputPassword3" name="vtype" value="None" placeholder="">

<!------ ணேங்ங்ங்ங்ங்ங்ங்ங்ங் ----------------------------------------------------->


<div class="col-lg-12"> 
<div class="col-lg-2 form-group has-success has-feedback">
</div> 
<?php if(($mfin222 == 'All Company') || ($mfin222 == NULL)) {  ?>
<div class="col-lg-8 form-group has-warning has-feedback">
<select style="text-transform:uppercase; background: #75f5dc;" type="text" class="form-control"  id="com" name="com" value="" placeholder="" >
	   <option value="<?php echo $mfin; ?>"><font size="2" color="blue"><b><?php echo $mfin; ?></font></b></option>
	  <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-8 form-group has-warning has-feedback">
<input type="text" class="form-control"  id="com" name="com" value="<?php echo $mfin222; ?>" readonly placeholder="" >
	    <i class="fa fa-search form-control-feedback" aria-hidden="true"></i>
</div>
<?php									} ?>
<div class="col-lg-2 form-group has-success has-feedback">
</div> 
</div>
<!------ ணேங்ங்ங்ங்ங்ங்ங்ங்ங் ----------------------------------------------------->

<div class="col-lg-12"> 
<div class="col-lg-2 form-group has-success has-feedback">
</div> 
<div class="col-lg-8 form-group has-warning has-feedback">
<textarea cols="5" style="text-transform:uppercase; background: #85f5dc;" type="text" class="form-control"  id="hpls" name="hpls" value="" placeholder="Account Numbers's" ></textarea>

	    <i class="fa fa-search form-control-feedback" aria-hidden="true"></i>
</div> 
<div class="col-lg-2 form-group has-success has-feedback">
</div> 
</div>
<!------ ணேங்ங்ங்ங்ங்ங்ங்ங்ங் ----------------------------------------------------->
<div class="col-lg-12"> 
<div class="col-lg-2 form-group has-success has-feedback">
</div> 
<div class="col-lg-8 form-group has-warning has-feedback">
<select style="text-transform:uppercase; background: #85f5dc;" type="text" class="form-control"  name="view" value="" placeholder="View Type" >
 <option value="2">With filter & Search</option><option value="0">Print View</option> </select>
	    <i class="fa fa-search form-control-feedback" aria-hidden="true"></i>
</div> 
<div class="col-lg-2 form-group has-success has-feedback">
</div> 
</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);
									$ff = NULL;
									if($widt > 0){
																header("location:pendinga555.php?widt=$widt&widt1=$widt1&area=$area&areag=$areag&vname=$vname&dealer=$dealer&brk=$brk&com=$com&hpdate=$hpdate&hpdate1=$hpdate1&pendue=$pendue&pendue1=$pendue1&hlamt=$hlamt&hlamt1=$hlamt1&defamt=$defamt&defamt1=$defamt1&penamt=$penamt&penamt1=$penamt1&paiddue=$paiddue&paiddue1=$paiddue1&baldue=$baldue&baldue1=$baldue1&dueday=$dueday&dueday1=$dueday1"); 
									}
									elseif($view>0) {
								header("location:pending555.php?hpls=$hpls&vtype=$vtype&area=$area&areag=$areag&vname=$vname&dealer=$dealer&brk=$brk&com=$com&hpdate=$hpdate&hpdate1=$hpdate1&pendue=$pendue&pendue1=$pendue1&hlamt=$hlamt&hlamt1=$hlamt1&defamt=$defamt&defamt1=$defamt1&penamt=$penamt&penamt1=$penamt1&paiddue=$paiddue&paiddue1=$paiddue1&baldue=$baldue&baldue1=$baldue1&dueday=$dueday&dueday1=$dueday1"); }
								
else {
								header("location:pending555p.php?hpls=$hpls&vtype=$vtype&area=$area&areag=$areag&vname=$vname&dealer=$dealer&brk=$brk&com=$com&hpdate=$hpdate&hpdate1=$hpdate1&pendue=$pendue&pendue1=$pendue1&hlamt=$hlamt&hlamt1=$hlamt1&defamt=$defamt&defamt1=$defamt1&penamt=$penamt&penamt1=$penamt1&paiddue=$paiddue&paiddue1=$paiddue1&baldue=$baldue&baldue1=$baldue1&dueday=$dueday&dueday1=$dueday1"); }

	}
						?>
	  </div>
</form>

 


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

