<?php include "layouts/menu.php"; ?> <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">
                          Customer Details
                        </div>
                        <div class="panel-body">
                            <div class="row">
 
 <?php $name=$_REQUEST['name'];?>
                    <?php
					
						$qry=mysqli_query($conn, "select * from customerdetails  where name LIKE '%$name%'");
						$qry2=mysqli_query($conn, "select * from customerdetailsw  where name LIKE '%$name%'");
						$qry3=mysqli_query($conn, "select * from customerdetailsm  where name LIKE '%$name%'");
						$n=mysqli_num_rows($qry);
						
						?></p>
					<div class="table-responsive">
  <table id="datatable-buttons" id="datatable-buttons" class="table table-striped table-bordered">
					<thead>
						<tr>
						<th>Loan No</th>
						<th>Name</th>
				
						
					
						<th>-</th>	<th>Status</th>		<th>Dues</th>
						<th>Phone No</th>
						<th>Loan Amount</th>
						<th>Loan Date</th>
						
					</tr></thead><tbody>
					<?php 
					while($row=mysqli_fetch_array($qry))
						{
							$mfin2 = $row['mfin'];
					?>
					
				<tr>
				
						<td><b><?php echo $row['hpl'];?></b></td>
						<td><b><?php echo $row['name']; ?></b></td>	
						
					
				
					
		
			
				
					<td>
<a href="mob.php?hpl=<?php echo $row['hpl'];?>&mfin2=<?php echo $row['mfin'];?>" ><i class="fa fa-mobile fa-5x"  style="color:green;" aria-hidden="true"></i></a>&nbsp;&nbsp;


<a href="editled.php?id=<?php echo $row['id'];?>&mfin=<?php echo $row['mfin'];?>" data-toggle="tooltip" title="Led Edit!"><i class="fa fa-edit fa-2x" style="color:blue;"  aria-hidden="true"></i></a>&nbsp;&nbsp;
	
<a href="reloan5.php?id=<?php echo $row['id'];?>&mfin=<?php echo $row['mfin'];?>" data-toggle="tooltip" title="Clone!"><i class="fa fa-clone fa-2x" style="color:red;"  aria-hidden="true"></i></a>&nbsp;&nbsp;			
<a href="udelete.php?id=<?php echo $row['id'];?>&mfin2=<?php echo $row['mfin']; ?>"  data-toggle="tooltip" title="Full View!"><i class="fa fa-feed fa-2x" style="color:blue;" aria-hidden="true"></i></a>
		<?php $ff = $row['lat']; if($ff>0) { ?>	<a href="https://www.google.com/maps/?q=<?php echo $row['lat'];?>,<?php echo $row['lang'];?>"  data-toggle="tooltip" title="Google Map !" title="Full View!" target="_blank"><i class="fa fa-map-marker fa-2x" style="color:purple;" aria-hidden="true"></i></a> <?php } ?>
	</td>
	
		<td><a href="mob.php?hpl=<?php echo $row['hpl'];?>&mfin2=<?php echo $row['mfin'];?>" data-toggle="tooltip" title="Receipt!"><button class="btn btn-success"><b>Daily Col</b></a></button>			
				</td>
				
						<td><b><?php echo $row['duemnt'];?></b></td>
			<td><b><?php echo $row['pno'];?></b></td>
						<td><b><?php echo $row['hpamount'];?></b></td><td><b><?php echo $row['hpdate'];?></b></td>
						
					</tr>
					<?php
						} ?>
						
						
						
						
						<?php 
					while($row=mysqli_fetch_array($qry2))
						{
							$mfin2 = $row['mfin'];
					?>
					
				<tr>
				
						<td><b><?php echo $row['hpl'];?></b></td>
						<td><b><?php echo $row['name']; ?></b></td>	
						
					
						
						
					
					
		
			
				
					<td>
<a href="mobw.php?hpl=<?php echo $row['hpl'];?>&mfin2=<?php echo $row['mfin'];?>" ><i class="fa fa-mobile fa-5x"  style="color:green;" aria-hidden="true"></i></a>&nbsp;&nbsp;


<a href="editledw.php?id=<?php echo $row['id'];?>&mfin=<?php echo $row['mfin'];?>" data-toggle="tooltip" title="Led Edit!"><i class="fa fa-edit fa-2x" style="color:blue;"  aria-hidden="true"></i></a>&nbsp;&nbsp;
<a href="reloan5w.php?id=<?php echo $row['id'];?>&mfin=<?php echo $row['mfin'];?>" data-toggle="tooltip" title="Clone!"><i class="fa fa-clone fa-2x" style="color:red;"  aria-hidden="true"></i></a>&nbsp;&nbsp;			
<a href="udeletew.php?id=<?php echo $row['id'];?>&mfin2=<?php echo $row['mfin']; ?>"  data-toggle="tooltip" title="Full View!"><i class="fa fa-feed fa-2x" style="color:blue;" aria-hidden="true"></i></a>
		<?php $ff = $row['lat']; if($ff>0) { ?>	<a href="https://www.google.com/maps/?q=<?php echo $row['lat'];?>,<?php echo $row['lang'];?>"  data-toggle="tooltip" title="Google Map !" title="Full View!" target="_blank"><i class="fa fa-map-marker fa-2x" style="color:purple;" aria-hidden="true"></i></a> <?php } ?>
	</td>
	
		<td><a href="mobw.php?hpl=<?php echo $row['hpl'];?>&mfin2=<?php echo $row['mfin'];?>" data-toggle="tooltip" title="Receipt!"><button class="btn btn-info"><b>Weekly Col</b></a></button>			
				</td>
					<td><b><?php echo $row['duemnt'];?></b></td>
			<td><b><?php echo $row['pno'];?></b></td>
						<td><b><?php echo $row['hpamount'];?></b></td><td><b><?php echo $row['hpdate'];?></b></td>
						
					</tr>
					<?php
						} ?>
						
						
						
						
						
						
						<?php 
					while($row=mysqli_fetch_array($qry3))
						{
							$mfin2 = $row['mfin'];
					?>
					
				<tr>
				
						<td><b><?php echo $row['hpl'];?></b></td>
						<td><b><?php echo $row['name']; ?></b></td>	
						
					
						
						
				
					
		
			
				
					<td>
					<a href="mobm.php?hpl=<?php echo $row['hpl'];?>&mfin2=<?php echo $row['mfin'];?>" data-toggle="tooltip" title="Receipt!"><i class="fa fa-mobile fa-5x"  style="color:green;" aria-hidden="true"></i></a>&nbsp;&nbsp;

<a href="editledm.php?id=<?php echo $row['id'];?>&mfin=<?php echo $row['mfin'];?>" data-toggle="tooltip" title="Led Edit!"><i class="fa fa-edit fa-2x" style="color:blue;"  aria-hidden="true"></i></a>&nbsp;&nbsp;
<a href="reloan5m.php?id=<?php echo $row['id'];?>&mfin=<?php echo $row['mfin'];?>" data-toggle="tooltip" title="Clone!"><i class="fa fa-clone fa-2x" style="color:red;"  aria-hidden="true"></i></a>&nbsp;&nbsp;			
<a href="udeletem.php?id=<?php echo $row['id'];?>&mfin2=<?php echo $row['mfin']; ?>"  data-toggle="tooltip" title="Full View!"><i class="fa fa-feed fa-2x" style="color:blue;" aria-hidden="true"></i></a>
		<?php $ff = $row['lat']; if($ff>0) { ?>	<a href="https://www.google.com/maps/?q=<?php echo $row['lat'];?>,<?php echo $row['lang'];?>"  data-toggle="tooltip" title="Google Map !" title="Full View!" target="_blank"><i class="fa fa-map-marker fa-2x" style="color:purple;" aria-hidden="true"></i></a> <?php } ?>
	</td>
	
		<td><a href="mobm.php?hpl=<?php echo $row['hpl'];?>&mfin2=<?php echo $row['mfin'];?>" data-toggle="tooltip" title="Receipt!"><button class="btn btn-danger"><b>Monthly Col</b></a></button>			
				</td> 
					<td><b><?php echo $row['duemnt'];?></b></td>
					
			<td><b><?php echo $row['pno'];?></b></td>
						<td><b><?php echo $row['hpamount'];?></b></td><td><b><?php echo $row['hpdate'];?></b></td>
						
					</tr>
					<?php
						} ?>
					
					
					
			
				</tbody>	</table>
					
 
</div>
</div></div>
</div></div></div> <?php include "layouts/footert.php"; ?> </body></html>