<?php include "layouts/menu.php"; ?> 
  <?php $hpl=$_REQUEST['hpl'];?>
  <?php $name=$_REQUEST['name'];?>

  <?php $fid=$_REQUEST['fid'];?>  
  <!--  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">Due Deletions</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">
                           Delete/Print
                        </div>
                        <div class="panel-body">
                            <div class="row">
     <div id="mydiv">
  <input type="button" value="Receipt" onclick="PrintElem('#mydiv')"  style="margin:20px;">
  	<?php
						$qry=mysqli_query($conn, "select * from user2 where mfin='$mfin' &&  fid='$fid'");
					$row=mysqli_fetch_array($qry)
					?>
    <div class="alert alert-info"><h4>Vehicle No : <?php echo $row['vno'];?></h4></div>
  
                    <form name="form1" method="post" action="" enctype="multipart/form-data">
					
					<table border="0" align="center" cellspacing="5" cellpadding="15" style="table-layout: fixed;" width="400">
					<col width="200px">
					<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 style="background-color:#56EAF0;"><b>Name</b></td>
						<td style="background-color:#56EAF0;"><?php echo $row['name'];?></td>
						</tr>
						
						<tr>
						<td style="background-color:#56EAF0;"><b>Due Date From</b></td>
						<td style="background-color:#56EAF0;"><?php echo $row['duedate'];?></td>
						</tr>
						
						<tr>
						<td style="background-color:#56EAF0;"><b>Due Date To</b></td>
						<td style="background-color:#56EAF0;"><?php echo $row['paymnt'];?></td>
						</tr>
						<tr>
						<td style="background-color:#56EAF0;"><b>Pay Date</b></td>
						<td style="background-color:#56EAF0;"><?php echo $row['paydate'];?></td>
						</tr>
						<tr>
						<td style="background-color:#56EAF0;"><b>Interest</b></b></td>
						<td style="background-color:#56EAF0;"><?php echo $row['rno'];?></td>
						</tr>
						<tr>
						<td style="background-color:#56EAF0;"><b>Pay Amount</b></td>
						<td style="background-color:#56EAF0;"><?php echo $row['urname'];?></td>
						</tr>
						<tr>
						<td style="background-color:#56EAF0;"><b>Balance</b></td>
						<td style="background-color:#56EAF0;"><?php echo $row['bal'];?></td>
						</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;"></td>						
						<td style="background-color:#56EAF0;"><button type="submit" class="btn btn-default" name="s11">**XXX**</button></td>
						</tr>
						
						
							<div class="alert alert-warning"><?php include "programs/mdelete.php"; ?></div>
						
						
																
					</tbody>
					<?php
					
				
			?>			
					</table>
					</form>
</div>
</div></div>
</div></div></div> <?php include "layouts/footer.php"; ?></body></html>
