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/noticelist.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">Notice List</h4> <form method="POST"> <div class="row"> <div class="col-lg-1"> <a class="btn btn-primary mr-2" style="color: white;" href="noticeadd.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>Title</th> <th>Description</th> <th>Path</th> <th>Operations</th> </tr> </thead> <tbody> <?php // Assuming $conn is your database connection if (isset($_POST['table_search'])) { $txt = $_POST['table_search']; $data = $conn->query("SELECT * FROM notice WHERE Notice_Title LIKE '$txt%'"); } else { $data = $conn->query("SELECT * FROM notice"); } while ($row = $data->fetch_assoc()) { ?> <tr> <td><?php echo $row['Notice_id']; ?> </td> <td><?php echo $row['Notice_Title']; ?></td> <td><?php echo $row['Notice_Description']; ?></td> <td><?php if($row['path']!=""){?><a href="../Noticeimages/<?php echo $row['path']; ?>" target="_blank">Show</a><?php }?></td> <td> <div class="col-sm-6 col-md-4 col-lg-3" style="max-width:100%;"> <a class="mdi mdi-pencil" href="noticeupdate.php?id=<?php echo $row['Notice_id']; ?>"></a> <a class="mdi mdi-delete" href="deletenotice.php?id=<?php echo $row['Notice_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'); ?>