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/eventimageslist.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">Event Images</h4> <form method="POST"> <div class="row"> <div class="col-lg-1"> <a class="btn btn-primary mr-2" style="color: white;" href="eventimagesadd.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>Event Title</th> <th>Image Path</th> <th>Operations</th> </tr> </thead> <tbody> <?php if (isset($_POST['table_search'])) { $txt = strip_tags( $_POST['table_search']); $data = $conn->query("SELECT ei.Event_image_id, e.EventTitle, ei.Imagepath FROM eventimages ei JOIN events e ON ei.Event_id = e.Event_id WHERE ei.Event_image_id LIKE '$txt%'"); } else { $data = $conn->query("SELECT ei.Event_image_id, e.EventTitle, ei.Imagepath FROM eventimages ei JOIN events e ON ei.Event_id = e.Event_id"); } while ($row = $data->fetch_assoc()) { ?> <tr> <td><?php echo htmlspecialchars($row['Event_image_id']); ?></td> <td><?php echo htmlspecialchars($row['EventTitle']); ?></td> <td><img src="../eventimages/<?php echo $row['Imagepath']; ?>" width="100px"></td> <td> <div class="col-sm-6 col-md-4 col-lg-3" style="max-width:100%;"> <a class="mdi mdi-pencil" href="eventimagesupdate.php?id=<?php echo htmlspecialchars($row['Event_image_id']); ?>"></a> <a class="mdi mdi-delete" href="deleteeventimages.php?id=<?php echo htmlspecialchars($row['Event_image_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> </div> </div> </div> <?php include_once('footer.php'); ?>