<?php include 'header.php';
include 'admin/config.php';
?>


<!-- breadcrumb -->
<div class="site-breadcrumb" style="background: url(assets/img/home/s0.png)">
    <div class="container">
        <h2 class="breadcrumb-title">Officer Details</h2>
        <ul class="breadcrumb-menu">
            <li><a href="index.php">Home</a></li>
            <li class="active">Officer Details</li>
        </ul>
    </div>
</div>
<!-- breadcrumb end -->

<!-- course-area -->
<div class="course-area py-80 pt-5">
    <div class="container">
        <div class="text-center mt-5 mb-4">
            <h2 class="mb-3">
              Officer Details
            </h2>

        </div>
        
        
        <div class="table-responsive">
            <table class="table annual-report text-center table-bordered">
                <thead>

                    <tr class="table-primary ">
                        <th scope="col">SL.NO</th>
                        <th scope="col">Name</th>
                        <th scope="col">Designation</th>
                        <th scope="col">Email</th>
                        <th scope="col">Address</th>
                    </tr>
                </thead>
                <tbody class="">
                    <?php
                                    $sql = "select * from `officer_details` ";
                                    $query = mysqli_query($con, $sql);

                                    if ($query) {
                                        $index = 1;
                                        foreach ($query as $items) {
                                            $i = $index++;
                                            $id = $items['id'];
                                            $name = $items['name'];
                                            $designation = $items['designation'];
                                            $email = $items['email'];
                                            $address = $items['address'];

                                      ?>

                                            <tr>
                                                <td><?php echo $i ?></td>
                                                <td><?php echo $name ?></td>
                                              <td><?php echo $designation?></td>
                                                <td><?php echo $email ?></td>
                                                <td><?php echo $address ?></td>


                                               
                                            </tr>

                                    <?php }
                                    } ?>

                    
                    


                </tbody>
            </table>
        </div>


    </div>
</div>
<!-- course-area -->


<?php include 'footer.php' ?>