UnknownSec Bypass
403
:
/
var
/
www
/
santgyaneshwarji
/
cpanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
facilities_list.php
<?php include "top.php"; include "header.php"; include "menu.php"; ?> <div class="table-agile-info"> <div class="panel panel-default"> <div class="panel-heading"> Facilities List </div> <div class="row w3-res-tb"> <div class="col-sm-5 m-b-xs"> <a href="add_facilities.php"><button class="btn btn-sm btn-default"><b>Add Facilities</b></button></a> </div> <div class="col-sm-4"> </div> <div class="col-sm-3"> <form action="" method="get"> <div class="input-group"> <input type="text" class="input-sm form-control" name ="serach" id="search" placeholder="Search" value="<?php if(isset($_GET['search'])){echo $_GET['search'];}?>"> <span class="input-group-btn"> <button class="btn btn-sm btn-default" type="submit">Go!</button> </span> </div> </form> </div> </div> <div class="table-responsive"> <?php //include "config.php"; if(isset($_GET['serach'])){ $filtervalues = $_GET['serach']; } else { $filtervalues=''; } $limit=3; if(isset($_GET['page'])){ $page=$_GET['page']; }else{ $page=1; } $offset= ($page-1)*$limit; //$sql="SELECT * FROM facilitiestb ORDER BY id LIMIT {$offset},{$limit}"; if($filtervalues=='') { $sql="SELECT * FROM facilitiestb ORDER BY id LIMIT {$offset},{$limit}"; } else { $sql="SELECT * FROM facilitiestb WHERE facilitiestitle LIKE '%$filtervalues%' ORDER BY id LIMIT {$offset},{$limit}"; } $result=mysqli_query($conn,$sql) or die("Query Failed."); if(mysqli_num_rows($result)>0){ ?> <table class="table table-striped b-t b-light"> <thead> <tr> <th style="width:20px;"> S.No. </th> <th>Facilities Title</th> <th>Added On</th> <th style="width:30px;"></th> <th style="width:30px;"></th> </tr> </thead> <tbody> <?php $serial=$offset + 1; while ($row = mysqli_fetch_assoc($result)) { ?> <tr> <td><?php echo $serial; ?></td> <td><?php echo $row['facilitiestitle']; ?></td> <td><?php echo $row['added_on']; ?></td> <td><img src='facilities_images/<?php echo $row['image_name']; ?>' width="100px" height="50px"></td> <td><a href='edit_facilities.php?id=<?php echo $row["id"]; ?>'><i class=" glyphicon glyphicon-pencil"></i></a></td> <td><a href='delete_facilities.php?id=<?php echo $row["id"]; ?> & file_name=<?php echo $row["image_name"]; ?>'><i class="glyphicon glyphicon-trash"></i></a></td> </tr> <?php $serial++;}?> </tbody> </table> <?php }else {?> <tr> <td colspan="5">No Record Found.</td> <tr> <?php }?> </div> <footer class="panel-footer"> <div class="row"> <?php if($filtervalues=='') { $sql1="SELECT * FROM facilitiestb"; } else { $sql1="SELECT * FROM facilitiestb WHERE facilitiestitle LIKE '%$filtervalues%'"; } $result1=mysqli_query($conn,$sql1) or die("Query Failed."); if(mysqli_num_rows($result1)>0){ $total_record=mysqli_num_rows($result1); $total_page= ceil($total_record/$limit); echo '<div class="col-sm-5 text-center"> <small class="text-muted inline m-t-sm m-b-sm">Showing '.($offset+1).' - '.($serial-1).' out of '.$total_record.' </small> </div> <div class="col-sm-7 text-right text-center-xs"> <ul class="pagination pagination-sm m-t-none m-b-none">'; if($page > 1){ echo '<li><a href="facilities_list.php?page='.($page - 1).'"><i class="fa fa-chevron-left"></i></a></li>'; } for($i=1; $i<=$total_page; $i++){ if($i==$page) { $active="active"; }else { $active=""; } echo '<li class="'. $active .'"><a href="facilities_list.php?page=' .$i. '">' .$i. '</a></li>'; } if($total_page>$page){ echo '<li><a href="facilities_list.php?page='.($page + 1).'"><i class="fa fa-chevron-right"></i></a></li>'; } echo '</ul> </div> </div> </footer>'; } ?> </div> </div> <?php include "footer.php"; ?>
Copyright © 2025 - UnknownSec