<?php
	include "admin_top_menu.php";
	include "admin_side_menu.php";
?>
  
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        Customer
        <small>Customer List</small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="active">Customer</li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content">
	<form name="frmlist" method="post">
      
        <div class="box box-info">
            <div class="box-header">
              <h3 class="box-title">Customer List</h3>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <table id="example1" class="table table-bordered table-striped">
                <thead>
                <tr>
                  <th>Sr. No</th> 
                  <th>Company Name</th>
                  <th>Company Address</th> 
                  <th>Customer Name</th>  
                  <th>Contact</th> 
                  <th>Email Id</th>
                </tr>
                </thead>
                <tbody>
        <?php 
					$qry=mysqli_query($conn,"SELECT * FROM customer")or die(mysqli_error($conn));
					$count=1;
					while($row=mysqli_fetch_array($qry)){
				?>
					<tr>
					<td><?php echo $count++;?></td>
					<td><?php echo $row['com_name'];?></td>
					<td><?php echo $row['com_addr'];?></td>
					<td><?php echo $row['cus_name'];?></td>
					<td><?php echo $row['cus_contact'];?></td>
					<td><?php echo $row['cus_email'];?></td>
					</tr>              
             <?php  } ?>
                </tbody>
              </table>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
	</form>
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->


<?php
	include "admin_footer.php";
?>

  
  