<?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;
}

@media screen and (max-width: 600px) {
    .bb{
        margin-top:15%;
    }
    
}
</style>
		<title>INFOSSEL SOFT SOLUTIONS </title> </head>
		<body class='bb'>
  
  <?php
			  
  $hpl=$_REQUEST['hpl'];
  $vno=$_REQUEST['vno'];
  $model=$_REQUEST['model'];
  $area=$_REQUEST['area'];
  $name=$_REQUEST['name'];
  $add=$_REQUEST['add'];
  $adhaar=$_REQUEST['adhaar'];
   $broker=$_REQUEST['broker'];
  $model=$_REQUEST['model'];
   $mfin2=$_REQUEST['mfin2'];

$sql=mysqli_query($conn, "select * from entry where status='Entry'");

$n1 = mysqli_num_rows($sql);
$n2 = mysqli_num_rows($sql2);
$n3 = mysqli_num_rows($sql3);
$n = $n1 + $n2 + $n3;
 ?>
    <!--  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">Search</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'];
$nmmm = $row['name'];
 $actual_link = "$_SERVER[HTTP_HOST]"; 
//	echo $actual_link; ?>
<a href="https://<?php echo $actual_link; ?>/col/up01.php?id=<?php echo $id; ?>&nmmm=<?php echo $nmmm; ?>"><tr>
<td><b><a href="https://<?php echo $actual_link; ?>/col/up01.php?id=<?php echo $id; ?>&nmmm=<?php echo $nmmm; ?>"><font size="2"><?php echo $row['name']; ?></font></b></br>
<b><font size="2" color="green"><?php echo $row['address']; ?></br><?php echo $row['address1']; ?></br><?php echo $row['address2']; ?></br>
<?php echo $row['pno']; ?>
</font></a></b></br>
<b><font size="2" color="red">S.No <?php echo $row['hpl']; ?> </font> <font size="2" color="red">Loan Amt : <?php echo $row['loanr']; ?>)</font> </b></br>
<font size="2" color="blue"><?php echo $row['vname']; ?> <?php echo $row['vno']; ?></font></b></br>
</b></br>
</tr></a>


<?php } ?>

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

	?>
<a href="udeletew.php?id=<?php echo $id; ?>"><tr>
<td><b><a href="udeletew.php?id=<?php echo $id; ?>"><font size="2"><?php echo $row['fname']; ?></font></b></br>
<b><font size="2" color="green"><?php echo $row['area']; ?></font></a></b></br>
<b><font size="2" color="red"><?php echo $row['hpl']; ?> </font> <font size="2" color="red">(Dues : <?php echo $row['pendmnt']; ?>, Amt : <?php echo $row['penamt']; ?>)</font> </b></br>
<font size="2" color="blue"><?php echo $row['vname']; ?> <?php echo $row['vno']; ?></font></b></br>
<font size="2" color="orange">Weekly </font></b></br>
</tr></a>


<?php } ?>

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

	?>
<a href="udeletem.php?id=<?php echo $id; ?>"><tr>
<td><b><a href="udeletem.php?id=<?php echo $id; ?>"><font size="2"><?php echo $row['fname']; ?></font></b></br>
<b><font size="2" color="green"><?php echo $row['area']; ?></font></a></b></br>
<b><font size="2" color="red"><?php echo $row['hpl']; ?> </font> <font size="2" color="red">(Dues : <?php echo $row['pendmnt']; ?>, Amt : <?php echo $row['penamt']; ?>)</font> </b></br>
<font size="2" color="blue"><?php echo $row['vname']; ?> <?php echo $row['vno']; ?></font></b></br>
<font size="2" color="orange">Daily Col </font></b></br>
</tr></a>


<?php } ?>
</tbody>

</table>


</div>

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