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
/
lawfiles
/
Viewing: showlawfile.php
<?php include("../layouts/navbar.php"); ?> <?php if (isset($_SESSION['statuslaw'])) { ?> <script> swal({ title: "<?php echo $_SESSION['statuslaw']; ?>", icon: "success", timer: 1500 }); </script> <?php unset($_SESSION['statuslaw']); } ?> <?php if (isset($_SESSION['statuslawError'])) { ?> <script> let text = ` <?php if (isset($_SESSION['titleError'])) echo $_SESSION['titleError'] . "\n"; if (isset($_SESSION['nameError'])) echo $_SESSION['nameError'] . "\n"; if (isset($_SESSION['filesError'])) echo $_SESSION['filesError'] . "\n"; ?> `; swal({ title: "Error!", text: text, icon: "error", button: "Ok", }); </script> <?php unset($_SESSION['statuslawError']); unset($_SESSION['titleError']); unset($_SESSION['nameError']); unset($_SESSION['filesError']); } ?> <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">Research & Publications</h2> <table class="table table-striped table-hover border border-dark border-3"> <thead class="table table-striped table-hover border border-dark border-3"> <tr> <th>SN</th> <th>Notice Title</th> <th>Name</th> <th>File</th> <th>Category</th> <th>Publish date</th> <th>Updated Date</th> <th>Action</th> </tr> </thead> <tbody> <?php $sql = "SELECT * FROM lawfile"; $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']; $file = $rows['files']; $category = $rows['category']; $pdate = $rows['cdate']; $udate = $rows['udate']; $name = $rows['name']; ?> <tr> <td> <?php echo $i; ?> </td> <td> <?php echo $title; ?> </td> <td> <?php echo $name; ?> </td> <td><a href="files/<?php echo $file ?>" target="_blank">View File</a></td> <td> <?php echo $category; ?> </td> <td> <?php echo $pdate; ?> </td> <td> <?php echo $udate; ?> </td> <td> <a href="managelawfile.php?editid=<?php echo $id; ?>" class="btn-primary btn text-white" style="text-decoration:none; width: 5rem; margin: 0.125rem;"> Edit </a> <button class="btn-danger btn delete_btn" value="<?php echo $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/researchDeleteHandler.js'></script> <?php include("../layouts/footer.php"); ?>
Coded With 💗 by
HanzOFC