UnknownSec Bypass
403
:
/
var
/
www
/
html
/
adminpnl
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
token_category.php
<?php include "top.php"; ?> <!-- /contact-form --> <section class="w3l-contact-main"> <div class="contact-infhny py-5"> <div class="container py-lg-3"> <div class="row align-form-map"> <div class="col-lg-9 title-content text-left mb-lg-4 mb-4"> <h4 class="hny-title mb-3">List of <span>Token Category</span></h4> </div> <div class="col-lg-3" align="right"> <a class="btn btn-contact" href="add_token_category.php">ADD TOKEN</a> </div> <div class="col-lg-12 form-inner-cont"> <br> <?php include "../config.php"; $limit=20; if(isset($_GET['page'])){ $page=$_GET['page']; }else{ $page=1; } $offset= ($page-1)*$limit; $sql="SELECT id, itemcategory,Date_Format(fromdate,'%d-%m-%Y') as fromdate, Date_Format(todate,'%d-%m-%Y') as todate FROM itemcategorytb where CanteenName='".$_SESSION["admincanteenname"]."' and IsDeleted=0 ORDER BY ID DESC LIMIT {$offset},{$limit}"; $result=mysqli_query($conn,$sql) or die("Query Failed."); if(mysqli_num_rows($result)>0){ ?> <table class="content-table"> <thead> <th>ID</th> <th>Category</th> <th>From Date</th> <th>To Date</th> <th>Edit</th> <th>Delete</th> </thead> <tbody> <?php while ($row = mysqli_fetch_assoc($result)) { ?> <tr> <td class='id'><?php echo $row['id']; ?></td> <td><?php echo $row['itemcategory']; ?></td> <td><?php echo $row['fromdate']; ?></td> <td><?php echo $row['todate']; ?></td> <td class='edit'><a href='add_token_category.php?id=<?php echo $row["id"]; ?>&op=<?php echo "Update"; ?>'><i class='fa fa-edit'></i></a></td> <td class='delete'><a href='add_token_category.php?id=<?php echo $row["id"]; ?>&op=<?php echo "Delete"; ?>'><i class='fa fa-trash-o'></i></a></td> </tr> <?php } ?> </tbody> </table> <?php } $sql1="SELECT id, itemcategory,Date_Format(fromdate,'%d-%m-%y') as fromdate, Date_Format(todate,'%d-%m-%y') as todate FROM itemcategorytb where CanteenName='".$_SESSION["admincanteenname"]."' and IsDeleted=0 ORDER BY ID DESC"; $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 "<ul class='pagination admin-pagination'>"; if($page > 1){ echo '<li><a href="token_category.php?page='.($page - 1).'">Prev</a></li>'; } for($i=1; $i<=$total_page; $i++){ if($i==$page) { $active="active"; }else { $active=""; } echo '<li class="'. $active .'"><a href="token_category.php?page=' .$i. '">' .$i. '</a></li>'; } if($total_page>$page){ echo '<li><a href="token_category.php?page='.($page + 1).'">Next</a></li>'; } echo "</ul>"; } ?> </div> </div> </div> </section> <!-- //contact-form --> <?php include "footer.php";?>
Copyright © 2025 - UnknownSec