<?php ob_start(); session_start(); ?>
	<!DOCTYPE html>
	<html>
	<?php include "../layouts/db_connect.php"; ?>
	<?php 
if(isset($_SESSION['code'])) {
	  $code = $_SESSION['code'];
	  $scode = $_SESSION['code'];
	   
		$staff = $_SESSION['name'];
		 $postt = $_SESSION['postt'];
		  $mfin222 = $_SESSION['mfin222'];
	} 
	?>
		<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		
		<!-- Meta, title, CSS, favicons, etc. -->
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta http-equiv="X-UA-Compatible" content="chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1">
<style>

table, th, td {
    border: 1px solid black;
}
#customers {
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

#customers td, #customers th {
    border: 1px solid #ddd;
    padding: 8px;
}

#customers tr:nth-child(even){background-color: #f2f2f2;}

#customers tr:hover {background-color: #ddd;}

#customers th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #4CAF50;
    color: white;
}
</style>
		<title>INFOSSEL SOFT SOLUTIONS </title> </head>
		<body>
  
  <?php 		  
 
		$sql=mysqli_query($conn, "select * from entry where status='app' order by hpl asc");
		

$n1 = mysqli_num_rows($sql);
$n2 = mysqli_num_rows($sql2);
$n = $n1 + $n2;
 ?>
    <!--  page-wrapper -->
         <div class="right_col" role="main">

            <div class="row">
                <div class="col-lg-12">
                    <!-- Form Elements -->
                    <div class="panel panel-default">
                       
                         <h3><center><font face="Courier New" color="red">Receipt</br></font></center></h3>
                       
                        <div class="panel-body">
                            <div class="row">
							 <div class="col-lg-6">
<table id="customers">
<thead>
<tr>

<th>Total Records Found : <?php echo $n; ?></th>

</tr></thead><tbody>
<?php while($row=mysqli_fetch_array($sql)) {
	$hpl =$row['hpl'];
	$mfin3 = $row['mfin'];
	$id = $row['id'];

	?>
<tr>
<td><b><a href="udeletep.php?id=<?php echo $id; ?>&mfin=<?php echo $mfin3; ?>"><font size="3"><?php echo $row['name']; ?></a></font></b></br>
<b><a href="udeletep.php?id=<?php echo $id; ?>"><font size="2" color="green"><?php echo $row['area']; ?></font></b></br>
<b><font size="2" color="red"><?php echo $row['hpl']; ?> </font>
 <font size="2" color="red">(Ref : <?php echo $row['bname']; ?>, Loan : <?php echo $row['hpamount']; ?>)</a></font> </b></br>
<b><font size="2" color="pink">Verification</font></b></br>

</tr>


<?php } ?>

<?php while($row=mysqli_fetch_array($sql2)) {
	$hpl =$row['hpl'];
	$mfin3 = $row['mfin'];
	$id = $row['id'];

	?>
<tr>
<td><b><a href="mobw.php?id=<?php echo $hpl; ?>&mfin=<?php echo $mfin3; ?>"><font size="3"><?php echo $row['name']; ?></a></font></b></br>
<b><a href="udeletew.php?id=<?php echo $id; ?>"><font size="2" color="green"><?php echo $row['area']; ?></font></b></br>
<b><font size="2" color="red"><?php echo $row['hpl']; ?> </font>
 <font size="2" color="red">(Dues : <?php echo $row['duemnt']; ?>, Loan : <?php echo $row['hpamount']; ?>)</a></font> </b></br>
<b><font size="2" color="pink">Weekly Col</font></b></br>

</tr>


<?php } ?>
</tbody>

</table>


</div>

</div></div>
</div></div></div></div></div></div> </body></html>
