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/eventlist.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 List</h4> <form method="POST"> <div class="row"> <div class="col-lg-1"> <a class="btn btn-primary mr-2" style = "color: white;" href = "eventadd.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>Date</th> <th>Description</th> <th>Image</th> <th>Active</th> <th>Operations</th> </tr> </thead> <tbody> <?php // $con = mysqli_connect("localhost", "root", "", "sbvp"); if (isset($_POST['table_search'])) { $txt = $_POST['table_search']; $data = $conn->query("select * from events where EventTitle like '$txt%'"); } else { $data = $conn->query("select * from events"); } while ($row = $data -> fetch_assoc()) { ?> <tr> <td><?php echo $row['Event_Id']; ?> </td> <td><?php echo $row['EventTitle']; ?></td> <td><?php echo $row['Event_Date']; ?></td> <td><?php echo $row['Event_Description']; ?></td> <td><img src="../eventimages/<?php echo $row['MainImage']; ?>" width="100px"></td> <td><?php echo $row['IsActive']; ?></td> <td> <div class="col-sm-6 col-md-4 col-lg-3" style="max-width:100%;"> <a class="mdi mdi-pencil" href="eventupdate.php?id=<?php echo $row['Event_Id']; ?>"></a> <a class="mdi mdi-delete" href="deleteevents.php?id=<?php echo $row['Event_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'); ?>