<?php include "layouts/menu.php"; ?> <div class="right_col" role="main">
            <div class="row">
                 <!-- page header -->
                <div class="col-lg-12">
                    <h1 class="page-header  alert alert-info">Customers Of Vehicle Sales</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 class="alert alert-info">Vehicle Sales Details</div>
  
                    <?php
		
						$qry=mysqli_query($conn, "select * from osales where mfin='$mfin'");
						$n=mysqli_num_rows($qry);
						if($n==0)
						{
							echo "Nothing To Display";
						}
						else
					{ 
						?></p>
				<table id="datatable-buttons" id="datatable-buttons" class="table table-striped table-bordered">
				<thead>
						<tr>
						<th>Hpl</th>
						<th>Name</th>
						<th>Phone No</th>
						<th>Vehicle No</th>
						<th>Vehicle Name</th>
						<th>Total Amount</th>
						<th>Paid</th>
						<th>Balance</th>
 <th>Print Sales </th>
						<th>Delete</th>
					</tr><thead><tbody>
					<?php 

				while($row=mysqli_fetch_array($qry))
  { 

?>				<tr>
				
						<td><?php echo $row['id'];?></td>

<td><?php echo $row['name'];?></td>
<td><?php echo $row['pno'];?></td>
<td><?php echo $row['vno'];?></td>
<td><?php echo $row['vname'];?></td>
<td><?php echo $row['totamt'];?></td>
<td><?php echo $row['adv'];?></td>
<td><?php echo $row['bal'];?></td>
						<td><a href="hari2.php?id=<?php echo $row['id'];?>&mfin=<?php echo $row['mfin'];?>">Print Sales</a></td>

<td><a href='<?php 
	echo "deleteemp.php?id=$id"; 
    ?> 'onclick='return confirm("Are you sure WANT TO DELETE?");'>
	
	<p id=but>
<input type='button' value='Delete'></a></td>
					
					</tr>
					
					<?php }}
					
				
					?></tbody>
					</table>
					
</div>
</div></div>
</div></div></div> <?php include "layouts/footer.php"; ?></body></html>
