<?php include "layouts/menu.php"; ?> 
  <?php $hpl=$_REQUEST['hpl'];?>
  <?php $name=$_REQUEST['name'];?> 
  <!--  page-wrapper -->
         <div class="right_col" role="main">
            <div class="row">
                 <!-- page header -->
                <div class="col-lg-12">
                    <h1 class="page-header  alert alert-info">Closed Account Details</h1>
                </div>
                <!--end page header -->
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <!-- Form Elements -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                           Details
                        </div>
 <div class="panel-body">
                            <div class="row">
     <div id="mydiv">
  <input type="button" value="Receipt" onclick="PrintElem('#mydiv')"  style="margin:20px;">
   <div class="alert alert-info">Closed Account Details</div>
  
                    <form name="form1" method="post" action="" enctype="multipart/form-data">
						<?php
						$qry=mysqli_query($conn, "select * from net2 where mfin='$mfin' &&  hpl='$hpl'");
						?>
					<?php 
					$row=mysqli_fetch_array($qry)
					?>
					<table border="0" align="center" cellspacing="5" cellpadding="15" style="table-layout: fixed;" width="400">
					<col width="200px">
					<b><tbody style="color:#000000;background:white;">
      					<tr>
						<td style="background-color:#56EAF0;"><b>Hpl</b></td>
						<td style="background-color:#56EAF0;"><?php echo $row['hpl'];?></td>
						</tr><tr><td></td><td></td></tr>
						<tr>
						<td style="background-color:#56EAF0;"><b>Name</b></td>
						<td style="background-color:#56EAF0;"><?php echo $row['name'];?></td>
						</tr>
						<tr></tr>
						<tr>
						<td style="background-color:#56EAF0;"><b>Due From</b></td>
						<td style="background-color:#56EAF0;"><?php echo $row['paid'];?></td>
						</tr><tr></tr>
						<tr>
						<td style="background-color:#56EAF0;"><b>Due Amount</b></td>
						<td style="background-color:#56EAF0;"><?php echo $row['dueamt'];?></td>
						</tr><tr></tr>
						
						<tr>
						<td style="background-color:#56EAF0;"><b>Total Interest</b></td>
						<td style="background-color:#56EAF0;"><?php echo $row['amt'];?></td>
						</tr><tr></tr>
						<tr>
						<td style="background-color:#56EAF0;"><b>Pay Date</b></td>
						<td style="background-color:#56EAF0;"><?php echo $row['bmnt'];?></td>
						</tr><tr></tr>
						<tr>
						<td style="background-color:#56EAF0;"><b>Total</b></td>
						<td style="background-color:#56EAF0;"><?php echo $row['tot'];?></td>
						</tr><tr></tr>
						<?php 
						$rty = $row['cre'];  $rtty = $row['deb'];
						if($rty!=0)
						{ ?> <tr>
						<td style="background-color:#56EAF0;"><b>HP INT</b></td>
						<td style="background-color:#56EAF0;"><?php echo $rty;?></td>
						</tr> <?php }
						if($rtty!=0)
						{ ?> <tr>
						<td style="background-color:#56EAF0;"><b>HP OUT</b></td>
						<td style="background-color:#56EAF0;"><?php echo $rtty;?></td>
						</tr> <?php }
						?>
						<tr>
						<td style="background-color:#56EAF0;"><b>Recipt No</b></td>
						<td style="background-color:#56EAF0;"><?php echo $row['rno'];?></td>
						</tr><tr></tr>
						<tr>
						<td style="background-color:#56EAF0;"><b>Pay Date</b></td>
						<td style="background-color:#56EAF0;"><?php echo $row['paydate'];?></td>
						</tr><tr></tr></b>
						
						
						
							<div class="alert alert-warning"><?php include "programs/fdelete.php"; ?></div>
						
						
																
					</tbody>
					<?php
					
				
			?>			
					</table>
					</form>
          
</div>
</div></div>
</div></div></div> <?php include "layouts/footer.php"; ?></body></html>
