<?php include "layouts/menu.php"; ?> 


	 <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">
                           Document View
                        </div>
                        <div class="panel-body">
                            <div class="row">
							
   
    <form name="form155" class="form-horizontal" method="post" action="" enctype="multipart/form-data">

 <div class="form-group has-success has-feedback">
 <div class="col-md-12">  <div class="col-md-4">
 <label for="inputPassword3" class="col-sm-2 control-label">Start Date</label>
    <div class="col-sm-6">
      <input type="date" class="form-control" id="inputPassword3" name="fdate" value="<?php echo date("Y-m-d"); ?>" placeholder="dd-mm-yyyy" data-inputmask="'mask': '99-99-9999'" required>
	  <span class="glyphicon glyphicon-chevron-left form-control-feedback"></span>
    </div> </div>
	<div class="col-md-4">
      <label for="inputPassword3" class="col-sm-2 control-label">End Date</label>
    <div class="col-sm-6">
      <input type="date" class="form-control" id="inputPassword3" name="tdate" value="<?php echo date("Y-m-d"); ?>" placeholder="dd-mm-yyyy" data-inputmask="'mask': '99-99-9999'" required>
	  <span class="glyphicon glyphicon-chevron-right form-control-feedback"></span>
    </div> </div>

      <input type="hidden" class="form-control" id="zxcvb" name="bname" value="<?php echo $scode; ?>" placeholder="" onkeyup="autocomplett()">
	   
      <input type="hidden" class="form-control" name="loc" value="" placeholder="">
     
      <input type="hidden" class="form-control" name="imgg" value="" placeholder="">
  
  </div>  </div>
 
  <div class="form-group">
    <div class="col-sm-offset-4 col-sm-12">
      <button type="submit" class="btn btn-primary btn-lg" name="s288">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Search It
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</button>
    </div>
  </div>
      <div>
      <?php
								if(isset($_POST['s288']))
								{
								extract($_POST); ?>
								<div class="table-responsive">
  <table id="datatable-buttons" id="datatable-buttons" class="table table-striped table-bordered">
					<thead>
						<tr><th>S.No</th>
						<th>Loan No</th>
						<th>Name</th>
					<th>Salary/Income</th>	<th>Holding</th>
				
					
						<th>Job</th>
						
						<th>Referance</th>
						<th>Phone No</th>
						<th>Loan Amount</th>
						<th>Date</th> <th>App</th><th>Status</th>
							<th>Education</th>
							<th>Area</th><th>Market Via</th><th>Remarks</th>
								<th>Phone Home</th>
							<th>Phone Office</th>
							<th>Address</th>
							<th>Office Address</th>
							<th>Job</th>
							<th>Age</th>
								<th>Created By</th>
								<th>Create Date</th>
								
					</tr></thead><tbody> <?php $gg = 0; $fff = 0; $qw = 'Select'; $bbb = 0;
			
	$qry=mysqli_query($conn, "select * from entry where mfin='$mfin' && bname='$scode' && hpdate5 between '$fdate' and '$tdate' order by hpl asc");
				
					$n=mysqli_num_rows($qry);
						?></p>
					
					<?php 
					while($row=mysqli_fetch_array($qry))
						{ $gg++; $fff++;
							$mfin2 = $row['mfin'];
							$paydate = $row['hpdate']; 
					?>
					
				<tr>
				<td><?php echo $fff;?></td>
						<td><?php echo $row['hpl'];?></td>
						<td><?php echo $row['name']; ?></td><td><?php echo $row['vname'];?></td>	
						<td><?php echo $row['model'];?></td>
					
					
						<td><?php echo $row['vno'];?></td>
						
	
					<td><?php echo $row['bname'];?></td>
						<td><?php echo $row['pno'];?></td>
						<td><?php echo $row['loanr'];?></td>
						<td><?php echo $row['hpdate'];?></td>
						<td><a href="eviewapp.php?idd=<?php echo $row['hpl'];?>"><i class="fa fa-exchange fa-2d" aria-hidden="true"></i></a></td>
						<?php $sts = $row['status'];
						if($sts == 'Active') { ?>
						<td><button class="btn btn-info">Active</button></td> <?php } elseif($sts == 'app') { ?>
						<td><button class="btn btn-warning">Not Verified</button></td> <?php } elseif($sts == 'ver') { ?>
						<td><button class="btn btn-success">Verified</button></td> <?php } ?>
						<td><?php echo $row['cobpno'];?></td>
						<td><?php echo $row['area'];?></td>	<td><?php echo $row['profession'];?></td> <td><?php echo $row['remarks'];?></td>
						
						<td><?php echo $row['pnoresi'];?></td>
						<td><?php echo $row['pnooffice'];?></td>
						<td><?php echo $row['address'];?></br><?php echo $row['address1'];?></br><?php echo $row['address2'];?></td>
						<td><?php echo $row['oaddress'];?></br><?php echo $row['oaddress1'];?></br><?php echo $row['oaddress2'];?></td>
						<td><?php echo $row['cobname'];?></td>
						<td><?php echo $row['hname'];?></td>
						
						<td><?php echo $row['scode'];?></td>
	<td><?php echo $row['createdate'];?></td>
	
					</tr>
					<?php
						}
				
			?></tbody>	</table>
			<b><h4><center><?php echo "Totally ".$gg." Documents"; ?></center></b></h4>	
									
						<?php 		}
							?>
	  </div>
</form>




</div>

</div></div>
</div></div></div></div></div></div>
       <!-- footer content -->
        <footer>
          <div class="pull-right">
             <a href="https://infossel.com">Infossel Soft Solution</a>
          </div>
          <div class="clearfix"></div>
        </footer>
        <!-- /footer content -->
      </div>
    </div>

    <!-- jQuery -->
    <script src="vendors/jquery/dist/jquery.min.js"></script>
    <!-- Bootstrap -->
    <script src="vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script src="vendors/fastclick/lib/fastclick.js"></script>
    <!-- NProgress -->
    <script src="vendors/nprogress/nprogress.js"></script>
    <!-- iCheck -->
    <script src="vendors/iCheck/icheck.min.js"></script>
    <!-- Datatables -->
    <script src="vendors/datatables.net/js/jquery.dataTables.min.js"></script>
    <script src="vendors/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
    <script src="vendors/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
    <script src="vendors/datatables.net-buttons-bs/js/buttons.bootstrap.min.js"></script>
    <script src="vendors/datatables.net-buttons/js/buttons.flash.min.js"></script>
    <script src="vendors/datatables.net-buttons/js/buttons.html5.min.js"></script>
    <script src="vendors/datatables.net-buttons/js/buttons.print.min.js"></script>
    <script src="vendors/datatables.net-fixedheader/js/dataTables.fixedHeader.min.js"></script>
    <script src="vendors/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>
    <script src="vendors/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
    <script src="vendors/datatables.net-responsive-bs/js/responsive.bootstrap.js"></script>
    <script src="vendors/datatables.net-scroller/js/dataTables.scroller.min.js"></script>
    <script src="vendors/jszip/dist/jszip.min.js"></script>
    <script src="vendors/pdfmake/build/pdfmake.min.js"></script>
    <script src="vendors/pdfmake/build/vfs_fonts.js"></script>
 


    <!-- Custom Theme Scripts -->
    <script src="build/js/custom.js"></script>
  </body>
</html>

