<?php include('session.php'); ?>
<!DOCTYPE html>
<html lang="en">
  <head>
	<title>ECIMS ADMIN | ALL SUBDIVISIONS</title>
    <?php include('includes/head.php'); ?>
    <style>
        th,td {
            text-align:center;
        }
    </style>
  </head>
  <body>
    <div class="container-scroller">
      <div class="horizontal-menu">
        <?php include('includes/header.php'); ?>
      </div>
      <div class="container-fluid page-body-wrapper">
        <div class="main-panel">
          <div class="content-wrapper">
            <div class="page-header">
              <h3 class="page-title"> All Subdivision </h3>
            </div>
            <div class="card grid-margin">
              <div class="card-body">
                <div class="row">
                  <div class="col-12">
                    <div class="table-responsive">
                      <table class="table table-striped table-bordered" width="100%">
                        <thead>
                          <tr>
                            <th>Sr No.</th>
                            <th>Subdivision</th>
                            <th>Update</th>
                            <!--<th>Delete</th>-->
                          </tr>
                        </thead>
                        <tbody>
                            <?php $count=0; $users_complaint = $conn->query("SELECT * FROM subdivision WHERE isDeleted='0'"); 
                            if($users_complaint->num_rows > 0) {
                            while($fetchusers_complaint = $users_complaint->fetch_assoc()) { $count++;
                            ?>
                              <tr>
                                <td><?php echo $count; ?></td>
                                <td><?php echo $fetchusers_complaint['value']; ?></td>
                                <td><a href="editSubdivision.php?id=<?php echo $fetchusers_complaint['id']; ?>" class="btn btn-xs btn-outline-primary">Update</a></td>
                                <!--<td><a onClick="javascript: return confirm('Are you Sure?');" href="deleteSubdivision.php?id=<?php echo $fetchusers_complaint['id']; ?>" class="btn btn-xs btn-outline-danger">Delete</a></td>-->
                              </tr>
                          <?php }} else {
                          echo '<tr><td colspan="7"><center>No Records Found!</center></td></tr>';
                          } ?>
                        </tbody>
                      </table>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
		  <?php include('includes/footer.php'); ?>
        </div>
      </div>
    </div>
    </div>
    <?php include('includes/foot.php'); ?>
  </body>
</html>