Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/balajimall.com/admin/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/balajimall.com/admin/add-feedback.php

<?php
	require_once("../lib/functions.php");
	$db = new login_function();
	$flag 			= 0;
	$success_msg 	= 0;
	$name   		= "";
	$feedback 		= "";
	$description 	= "";
	$succ_msg 		= 0 ;
	if(!isset($_SESSION['current_login_admin']))
	{
		header("Location:index.php");
	}
	if(isset($_SESSION['current_login_admin']))
	{
		$email	=	$_SESSION['current_login_admin'];
	}
	if(isset($_POST['add_btn']))
	{	
		
		$name	 		 = $_POST['name'];
		$description	 = $_POST['description'];
		$feedback		 = $_POST['feedback'];
		if($flag == 0)
		{
			
				if($db->add_feedback($name,$description,$feedback))
				{
					$success_msg = 1 ;
					$name   		= "";
					$feedback 		= "";
					$description 	= "";	
				}
			
		}
	}
	if(isset($_GET['delete_id']))
	{
		$del_id	=	$_GET['delete_id'];	
		$db->delete_feedback($del_id);
		$succ_msg	=	1;
	}		
	

?>
<?php
	require_once('header.php');
?>

<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h1 class="page-header">Add Feedback</h1>
<?php
if($success_msg == 1)
{
?>
<div class="alert alert-success">
Feedback Added Successfully.
</div>
<?php
}
?>
<?php
if($succ_msg == 1)
{
?>
<div class="alert alert-success">
Feedback Deleted Successfully.
</div>
<?php
}
?>
</div>

</div>

<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
Add Feedback
</div>
<div class="panel-body">
<div class="row">
	<div class="col-lg-12">
		<form role="form" method="post" enctype="multipart/form-data">
			
			<div class="form-group">
				<label>Enter Name</label>
				<input class="form-control" placeholder="Enter Name" name="name" type="text" value="<?php echo $name; ?>" required>
				
			</div>
			<div class="form-group">
				<label>Enter Description</label>
				<input class="form-control" placeholder="Enter Description" name="description" type="text" value="<?php echo $description; ?>" required>
				
			</div>
			<div class="form-group" >
				<label>Enter Feedback</label>
				<input class="form-control" placeholder="Enter Feedback" name="feedback" type="text" value="<?php echo $feedback; ?>" required>
				
			</div>
				
			<center>	<button type="submit" class="btn btn-success" name="add_btn">Add Feedback</button>	</center>
		</form>
	</div>

	
</div>

</div>

</div>
<div class="panel-body">
<div class="table-responsive">
	<table class="table table-striped table-bordered table-hover" id="table2excel">
		<thead>
		
			<tr class="noExl">
				<th>Sr. No</th>											   
				<th>Name</th>
				<th>Description</th>
				<th>Feedback</th>
				<th>Action</th>
				<th>Action</th>
			</tr>
		</thead>
		<tbody>
		<?php
		
			$report_details = $db->get_all_feedback();
			if(!empty($report_details))
			{
				$counter =0;
				foreach($report_details as $record)
				{
					$id				=	$report_details[$counter][0];
					$name			=	$report_details[$counter][1];
					$description	=	$report_details[$counter][2];
					$feedback		=	$report_details[$counter][3];
					$date			=	$report_details[$counter][4];
					$time			=	$report_details[$counter][5];
					
		?>
			<tr>
				<td><?php echo $counter+1; ?></td>
				<td><?php echo $name; ?></td>
				<td><?php echo $description; ?></td>
				<td><?php echo $feedback; ?></td>
				<td><a href="edit-feedback.php?up_id=<?php echo $id; ?>">Edit</a></td>
				<td><a href="add-feedback.php?delete_id=<?php echo $id;?>" onclick="return confirm('Are you sure For Delete This Record?');">Delete</a></td>
			</tr>
		   <?php
			$counter ++;
				}
			}else
			{
			?>
			<td colspan="6">No Data Found...</td>
			<?php
			}
		   
		   
		   ?>
		</tbody>
	</table>

</div>
<!-- /.table-responsive -->

	
	   
   
	
</div>

</div>

</div>

</div>


</div>
    

</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