Windows NT P3613 10.0 build 20348 (Windows Server 2022) AMD64
C:
/
Inetpub
/
vhosts
/
gyandeepclasses.com
/
pdpandyamcc.com
/
admin
/
C:/Inetpub/vhosts/gyandeepclasses.com/pdpandyamcc.com/admin/staffdetailslist.php
<?php include_once('header.php'); ?> <!-- partial --> <div class="main-panel"> <div class="content-wrapper"> <div class="row"> <div class="col-lg-12 grid-margin stretch-card"> <div class="card"> <div class="card-body"> <h4 class="card-title">Staff List</h4> <form method="POST"> <div class="row"> <div class="col-lg-1"> <a class="btn btn-primary mr-2" style="color: white;" href="staffdetailsadd.php"> <i class="mdi mdi-account-star"></i> </a> </div> <div class="col-lg-9"> <input type="search" name="table_search" class="form-control" placeholder="Search Here..." aria-label="search" aria-describedby="search"> </div> <div class="col-lg-2"> <button type="submit" class="btn btn-primary mr-2"> <i class="mdi mdi-account-search"></i> Search </button> </div> </div> </form> <div class="table-responsive"> <table class="table table-hover table-striped"> <thead> <tr> <th>ID</th> <th>Name</th> <th>Degree</th> <th>Email</th> <th>Contact No</th> <th>Address</th> <th>Joining Date</th> <th>Left Date</th> <th>Current Status</th> <th>Post</th> <th>Operations</th> </tr> </thead> <tbody> <?php // Assuming $conn is your database connection if (isset($_POST['table_search'])) { $txt = mysqli_real_escape_string($conn, $_POST['table_search']); $data = $conn->query("SELECT * FROM staff_details WHERE Name LIKE '$txt%' OR Email LIKE '$txt%'"); } else { $data = $conn->query("SELECT * FROM staff_details"); } while ($row = $data->fetch_assoc()) { ?> <tr> <td><?php echo $row['Id']; ?></td> <td><?php echo $row['Name']; ?></td> <td><?php echo $row['Degree']; ?></td> <td><?php echo $row['Email']; ?></td> <td><?php echo $row['ContactNo']; ?></td> <td><?php echo $row['Address']; ?></td> <td><?php echo $row['Joining_date']; ?></td> <td><?php echo $row['left_date']; ?></td> <td><?php echo $row['Current_Status']; ?></td> <td><?php echo $row['Post']; ?></td> <td> <div class="col-sm-6 col-md-4 col-lg-3" style="max-width:100%;"> <a class="mdi mdi-pencil" href="staffdetailsaupdate.php?id=<?php echo $row['Id']; ?>"></a> <a class="mdi mdi-delete" href="deletestaffdetails.php?id=<?php echo $row['Id']; ?>" onclick="return confirmDelete();"></a> <script> function confirmDelete() { return confirm("Are you sure you want to delete this?"); } </script> </div> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> <?php include_once('footer.php'); ?>