<?php include "layouts/menu.php"; ?> 
    <?php $idd=$_REQUEST['id'];?>
  <?php $mfin2=$_REQUEST['mfin2'];?>
  <!--  page-wrapper -->
  <style> 
input[type=text] {
    width: 100%;
   
    box-sizing: border-box;
    border: 1px solid #555;
    outline: Gray;
	
}

input[type=text]:focus {
    background-color: #d1e0e3;
}

.div1 {
    width: 100%;
    height: 100%;
       border: 4px solid #ff3d39;
    background-color: #69f7db;
	float:left;
}

.div2 {
    width: 380px;
    height: 240px;    
background-color:#f4f6df;
    border: 4px solid #376ca1;
	float:right;
}
label {
  
  color: black;
  font-weight: bold;
  
}
td,th{
  
  color: black;
  font-weight: bold;
  
}

</style>

         <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">
      <!--  <div id="mydiv">
  <input type="button" value="Print" onclick="PrintElem('#mydiv')"  style="margin:20px;">
   <form name="form1" method="post" action="" enctype="multipart/form-data"> -->
  			 <div class="table-responsive">
  <table class="table table-bordered table-hover"><thead>
  <tr class="info">
						<th>S.No</th>
						<th>Loan No</th>
						<th>Name</th>
						<th>Phone</th>
						<th>pend Due</th>
						<th>pend Amt</th>
						<th>Date</th>
						<th>Remarks</th>
						<th>Staff</th>
					
					</tr></thead><tbody>
                    <?php
				 $tdate = date("Y-m-d");
						$qry=mysqli_query($conn, "select * from resw where mfin='$mfin' &&  rdate='$tdate'");
						
						$n=mysqli_num_rows($qry);
						if($n==0)
						{
							
						}
						else
					{ 
						?></p>
					
					<?php $i = 0;
					while($row=mysqli_fetch_array($qry))
						{ $i++;
					$hpl = $row['hpl'];
					$qry2=mysqli_query($conn, "select * from pendingw where mfin='$mfin' &&  hpl='$hpl'");
					$row2=mysqli_fetch_array($qry2);
					?>
					<tr>
					
						<td><?php echo $i;?></td>
						<td><a href="udelete10.php?hpl=<?php echo $row['hpl']; ?>&mfin=<?php echo $mfin; ?>" target="_blank"><?php echo $row2['hpl'];?></a></td>
						<td><a href="udelete10.php?hpl=<?php echo $row['hpl']; ?>&mfin=<?php echo $mfin; ?>" target="_blank"><?php echo $row2['fname'];?></a></td>
						<td><a href="udelete10.php?hpl=<?php echo $row['hpl']; ?>&mfin=<?php echo $mfin; ?>" target="_blank"><?php echo $row2['pno'];?></a></td>
							<td><?php echo $row2['pendmnt'];?></td>
						<td><?php echo $row2['penamt'];?></td>
						<td><?php echo $row['rdate'];?></td>
						<td><?php echo $row['remarks'];?></td>
						<td><?php echo $row['scode'];?></td>
					
						</tr> <?php } } ?>

</tbody> </table>						
</div>
</div></div>
		  
		  
		  </div>     </div>
                <!-- end of weather widget -->
              </div>
            </div>
          </div>
        </div>
        <!-- /page content -->

        <!-- footer content -->
   
	   <?php include "layouts/footer.php"; ?>
  </body>
</html>
