Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/governmentofindia.in/dt_admin/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/governmentofindia.in/dt_admin/post-report.php

<?php 
	require_once('lib/functions.php');
	$db		=	new login_function();
		
	if(isset($_SESSION['current_login_admin']))
	{
		$current_login_admin	=	$_SESSION['current_login_admin'];
	}
	if(!isset($_SESSION['current_login_admin']))
	{	
		header("location:index.php");
	}
	
	$class_name="";
	$SuccessMsg="";
	$subject="";
	$chapter="";
	$topic="";
	if(isset($_GET['del_id']))
	{ 
		$delete_id	=	$_GET['del_id'];
		
		if($db->delete_post_record($delete_id))
		{
			$SuccessMsg = 3;
		}
	}
	
	if(isset($_GET['status_unpb_id']))
	{ 
		$status_unpb_id	=	$_GET['status_unpb_id'];
		$status = "0";
		if($db->update_status_to_published($status_unpb_id,$status))
		{
			$SuccessMsg = 3;
		}
	}
	
	if(isset($_GET['status_pb_id']))
	{ 
		$status_pb_id	=	$_GET['status_pb_id'];
		$status = "1";
		if($db->update_status_to_published($status_pb_id,$status))
		{
			$SuccessMsg = 3;
		}
	}
	
	if(isset($_GET['tid']))
	{ 
		$tid	=	$_GET['tid'];
		$title_color	=	$_GET['title_color'];
		$status = "1";
		if($db->update_text_color_of_post($tid,$title_color))
		{
			$SuccessMsg = 3;
		}
	}
	
	
?>



<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width initial-scale=1.0">
    <title> Post Report</title>
    <!-- GLOBAL MAINLY STYLES-->
    <link href="css/bootstrap.min.css" rel="stylesheet" />
    <link href="css/font-awesome.min.css" rel="stylesheet" />
    <link href="css/line-awesome.min.css" rel="stylesheet" />
    <link href="css/themify-icons.css" rel="stylesheet" />
    <link href="css/animate.min.css" rel="stylesheet" />
    <link href="css/toastr.min.css" rel="stylesheet" />
    <link href="css/bootstrap-select.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
  
    <!-- PLUGINS STYLES-->
    <!-- THEME STYLES-->
    <link href="css/main.min.css" rel="stylesheet" />
	 <link href="datatable/datatables.min.css" rel="stylesheet" />
    <!-- PAGE LEVEL STYLES-->
<style>
.col-md-12
{
	width:100%;
	margin:auto;
	margin-top:20px;
}
table,th,td
{
	text-align:center;
}
@media only screen and (max-width: 600px) {
	.col-md-12
	{
		width:100%;
	}
	.alert
	{
		width:100%;
	}
	.side-row
	{
		width:49%;
		display:inline-table;
	}
}

</style>

<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="js/wow.min.js"></script>

</head>

<body class="fixed-navbar">
<div class="page-wrapper">
<?php include('header.php'); ?>
<?php include('side-bar.php'); ?>
<div class="content-wrapper" style="padding-top:40px !important;">
<div class="row">
<div class="col-md-12">
<?php 
if($SuccessMsg == 3)
{
?>
<div class="alert alert-pink">
<span class="alert-link">Successfully ! </span> Status Updated...
</div>	
<?php 
} 
if($SuccessMsg == 4)
{
?>
<div class="alert alert-pink">
<span class="alert-link">Successfully ! </span> Status Updated
</div>	
<?php 
} 
?>
<style>
.pub_unpub_link
{
	color:#7F1980;
	font-size:15px;
	background-color:#EFEFEF;
	padding:4px;
	font-weight:bold;
}
</style>
<!--
<div class="page-content fade-in-up">
<div class="ibox">
<div class="ibox-body">
<h5 class="font-strong mb-4">Post Report</h5>
<div class="flexbox mb-4">
<div class="input-group-icon input-group-icon-left mr-3">
<span class="input-icon input-icon-right font-16"><i class="fas fa-search"></i></span>
<input class="form-control form-control-rounded form-control-solid" id="key-search" type="text" placeholder="Search ...">
</div>
</div>
<div class="table-responsive row">
<?php
$data	=	array();
$data	=	$db-> get_multiple_rows_of_post();

if(!empty($data))
{
	$counter=0;
	foreach($data as $record)
	{
		$id				        =	$record[0];
		$category				=	$record[1];
		$title					=	$record[2];
		$post_visits			=	$record[3];
		$date				    =	$record[4];
		$time				    =	$record[5];
		$publish_status 		=	$record[6];
		
		$cat_id         = "";
    	$category_name  = "";
		$category_name_data = $db->get_sub_category_name_from_id($category);
		if(!empty($category_name_data))
		{
		    $cat_id = $category_name_data[0];
    		$category_name = $category_name_data[1];
		}
		?>
		    <div style="text-align:left; font-size:16px; border:1px solid #DFDFDF; margin:10px; padding:10px; width:100%; display:inline-table;">
			<span style="color:Orange;"><?php echo $counter+1; ?></span>.
			<span style="color:green;">Title : <?php echo $title; ?></span> <a href="edit-post-report.php?edit_id=<?php echo $id; ?>"><i class="fas fa-pen"style="color:red;margin-left:20px;"></i></a><br />
			<span style="color:#007AAE;">Category : <?php echo $category_name; ?> </span> , 

			
			<span style="font-size:14px;">Total Visits : <strong style="color:Blue;"><?php echo $post_visits; ?></strong></span><br /> 
			
			Post Status : 
			<?php
				if($publish_status=="0")
				{
			?>
				<span style="color:red;">UnPublished</span>				
				<a href="<?php echo $_SERVER['PHP_SELF']."?status_pb_id=".$id; ?>" class="pub_unpub_link" onclick="return confirm('Are you Sure to Update Status?');">Publish</a>
			<?php
				}
				else
				{
			?>
				<span style="color:Green;">Published</span>
				<a href="<?php echo $_SERVER['PHP_SELF']."?status_unpb_id=".$id; ?>" onclick="return confirm('Are you Sure to Update Status?');" class="pub_unpub_link">UnPublish</a>
			<?php
				}
			?>
			<br />
			<span style="font-size:12px;">Date / Time : <?php echo $date; ?> <?php echo $time; ?></span>
			
			<a href="blog_post_contents_report.php?blog_post_id=<?php echo $id; ?>"><i class="fas fa-book"style="color:red;margin-left:20px;"></i></a>
			<a href="add-blog-post-information.php?blog_post_id=<?php echo $id; ?>"><i class="fas fa-pen"style="color:blue;margin-left:20px;"></i> |</a>
			<a href="post-report.php?del_id=<?php echo $id; ?>" onclick="return confirm('Are you Sure to Delete This record?');"><i class="fas fa-trash"style="color:red;margin-left:20px;"></i></a>
			
			</div>
		<?php
		$counter++;		
	}
}
?>
</div>
</div>
</div>
</div>-->

<div class="page-content fade-in-up">
<div class="ibox">
<div class="ibox-body">
<h5 class="font-strong mb-4">Category Report</h5>
<div class="flexbox mb-4">
<div class="input-group-icon input-group-icon-left mr-3">
<span class="input-icon input-icon-right font-16"><i class="fas fa-search"></i></span>
<input class="form-control form-control-rounded form-control-solid" id="key-search" type="text" placeholder="Search ...">
</div>
</div>
<div class="table-responsive row">
<table class="table table-bordered table-hover" id="example" style="overflow-x:auto;overflow-y:auto;">
<thead class="thead-default thead-lg">
<tr>
	<th>Sr</th> 
	<th>Title <br /> Post Visits</th>
	<th>Category</th> 
	<th>Status</th> 
	<th>Date <br /> Time</th>
	<th>View Contents</th>
	<th>Add Contents</th>
	<th>Edit Title</th>
	<th>Delete</th>
</tr>
</thead>
<tbody>
<?php
$data	=	array();
$data	=	$db-> get_multiple_rows_of_post();

if(!empty($data))
{
	$counter=0;
	foreach($data as $record)
	{
		$id				        =	$record[0];
		$category				=	$record[1];
		$title					=	$record[2];
		$post_visits			=	$record[3];
		$date				    =	$record[4];
		$time				    =	$record[5];
		$publish_status 		=	$record[6];
		
		$cat_id         = "";
    	$category_name  = "";
		$category_name_data = $db->get_sub_category_name_from_id($category);
		if(!empty($category_name_data))
		{
		    $cat_id = $category_name_data[0];
    		$category_name = $category_name_data[1];
		}
		?>
		<tr> 
		    <td><?php echo $counter+1; ?></td>
			<td><?php echo $title; ?> <br /> Visits : <?php echo $post_visits; ?>
			<br />
			
			<div style="width:130px;">
			    <?php
			        $title_color_name = $db->get_text_title_color($id);
			        
			        if($title_color_name=="")
			        {
			            $title_color_name = "No Color";
			        }
			        
			    ?>
			Cur. Color : <?php echo $title_color_name; ?>
			<br />
			
			Title Color:
			
			<a href="<?php echo $_SERVER['PHP_SELF']."?title_color=red&tid=".$id; ?>" style="color:red; font-weight:bold;">Red</a>
			<a href="<?php echo $_SERVER['PHP_SELF']."?title_color=black&tid=".$id; ?>" style="color:black; font-weight:bold;">Black</a>
			</div>
			
			
			</td>
			<td><?php echo $category_name; ?></td>
			<td>
			<?php
				if($publish_status=="0")
				{
			?>
				<span style="color:red;">UnPublished</span>				
				<a href="<?php echo $_SERVER['PHP_SELF']."?status_pb_id=".$id; ?>" class="pub_unpub_link" onclick="return confirm('Are you Sure to Update Status?');">Publish</a>
			<?php
				}
				else
				{
			?>
				<span style="color:Green;">Published</span>
				<a href="<?php echo $_SERVER['PHP_SELF']."?status_unpb_id=".$id; ?>" onclick="return confirm('Are you Sure to Update Status?');" class="pub_unpub_link">UnPublish</a>
			<?php
				}
			?>
			</td>

			<td><?php echo $date; ?> <hr /> <?php echo $time; ?></td>
			
			<td>
			<a href="blog_post_contents_report.php?blog_post_id=<?php echo $id; ?>"><i class="fas fa-book"style="color:red;"></i> <br />View</a>
			</td>								
			<td>
				<a href="add-blog-post-information.php?blog_post_id=<?php echo $id; ?>"><i class="fas fa-pen"style="color:blue;"></i> <br />Add Contents</a>
			</td>
		   <td>
			<a href="edit-post-title.php?edit_title_id=<?php echo $id; ?>"><i class="fas fa-pen"style="color:red;"></i> <br /> Edit Title</a>
		   </td>
		   <td>
			<a href="post-report.php?del_id=<?php echo $id; ?>" onclick="return confirm('Are you Sure to Delete This record?');"><i class="fas fa-trash"style="color:red;"></i><br />Delete</a>
		   </td>					
		   
		</tr> 
		<?php
		$counter++;		
	}
}
?>
</tbody> 
</table> 
</div>
</div>
</div>
</div>



</div>
</div>
                <?php include('footer.php'); ?>
	</div>
    </div>
   
    <?php include('search.php'); ?>
    <!-- END SEARCH PANEL-->
    <!-- BEGIN THEME CONFIG PANEL-->
    
    <!-- END THEME CONFIG PANEL-->
    <!-- BEGIN PAGA BACKDROPS-->
    <div class="sidenav-backdrop backdrop"></div>
    <div class="preloader-backdrop">
        <div class="page-preloader">Loading</div>
    </div>
    <!-- END PAGA BACKDROPS-->
    <!-- New question dialog-->
    
    <!-- End New question dialog-->
    <!-- QUICK SIDEBAR-->
    <?php include('right-side-bar.php'); ?>
    <script src="js/jquery.min.js"></script>
    <script src="js/popper.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/metisMenu.min.js"></script>
    <script src="js/jquery.slimscroll.min.js"></script>
    <script src="js/idle-timer.min.js"></script>
    <script src="js/toastr.min.js"></script>
    <script src="js/jquery.validate.min.js"></script>
    <script src="js/bootstrap-select.min.js"></script>
    <!-- PAGE LEVEL PLUGINS-->
    <!-- CORE SCRIPTS-->
	<script src="datatable/datatables.min.js"></script>
    <script src="js/app.min.js"></script>
	<script>
  $(function() {
            $('#example').DataTable({
                pageLength: 25,
                fixedHeader: true,
                responsive: true,
                "sDom": 'rtip',
                columnDefs: [{
                    targets: 'no-sort',
                    orderable: false
                }]
            });

            var table = $('#example').DataTable();
            $('#key-search').on('keyup', function() {
                table.search(this.value).draw();
            });
          
        });
</script>
	
    <!-- PAGE LEVEL SCRIPTS-->
</body>

</html>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4