<?php
@session_start();
@ob_start();
include "header.php";
?>


<!-- Page wrapper  -->
        <div class="page-wrapper">
            <!-- Bread crumb -->
            <div class="row page-titles">
                <div class="col-md-5 align-self-center">
                    <h3 class="text-primary"></h3> </div>
                <div class="col-md-7 align-self-center">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="javascript:void(0)">Home</a></li>
                        <li class="breadcrumb-item active">Client List</li>
                    </ol>
                </div>
            </div>
            <!-- End Bread crumb -->
            <!-- Container fluid  -->
            <div class="container-fluid">
                <!-- Start Page Content -->
                <div class="row">
                    <div class="col-12">
                        <div class="card">
                            <div class="card-body">
							
							<h3>Client List</h3>
     <a href="client_alter.php" class="btn btn-block btn-primary" name="add_ward" style="width:100px; float:right; margin-bottom:10px;">Add</a>
<table id="example23" class="display nowrap table table-hover table-striped table-bordered" cellspacing="0" width="100%">
                                        <thead>
                                        <tr>
										 <th>S.No</th>
                                            <th>Client Name</th>
                                            <th>Contact No</th>
                                             <th>Contact Person</th>
                                            <th>Email</th>
											<th>Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                       <?php
							

 	 $q = "SELECT * FROM tbl_client where session_login_id = '".$_SESSION['login_id']."' order by id desc";
	 $query = mysql_query($q);
	 $i=1;
								while($row=mysql_fetch_assoc($query)){  
     
	
				
  ?>
  <tr>
  <td><?php echo $i++;?></td>
   <td><?php echo $row["client_name"];?></td>
    <td><?php echo $row["contact_no"];?></td>
	 <td><?php echo $row["contact_person"];?></td>
	  <td><?php echo $row["email_id"];?></td>
    
                                            <td><a href="client_alter.php?uid=<?php echo md5($row["id"]);?>&wid=<?php echo md5($row["id"]);?>"><button type="button" class="btn btn-success btn-sm">Edit</button></a></td>
                                        </tr>
                                       <?php }?>
                                    </tbody>
                                    </table></div>
                        </div>
                    </div>
                </div>
                <!-- End PAge Content -->
            </div>
            <!-- End Container fluid  -->
<?php include 'footer.php' ?>
 <script src="../js/lib/datatables/datatables.min.js"></script>
    <script src="../js/lib/datatables/cdn.datatables.net/buttons/1.2.2/js/dataTables.buttons.min.js"></script>
    <script src="../js/lib/datatables/cdn.datatables.net/buttons/1.2.2/js/buttons.flash.min.js"></script>
    <script src="../js/lib/datatables/cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js"></script>
    <script src="../js/lib/datatables/cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/pdfmake.min.js"></script>
    <script src="../js/lib/datatables/cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/vfs_fonts.js"></script>
    <script src="../js/lib/datatables/cdn.datatables.net/buttons/1.2.2/js/buttons.html5.min.js"></script>
    <script src="../js/lib/datatables/cdn.datatables.net/buttons/1.2.2/js/buttons.print.min.js"></script>
    <script src="../js/lib/datatables/datatables-init.js"></script>