Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/swamipolytechnic.org/old2/grievance/admin/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/swamipolytechnic.org/old2/grievance/admin/report-post.php

<?php
	require_once('lib/functions.php');
	$db		=	new db_functions();
	
	if(!isset($_SESSION['login_admin_user_id']))
	{
		header("location:index.php");
	}
	
	$from_date="";
	$to_date="";
	$user_type="";
    $complaint_title="";
	
?>
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title> <?php echo $application_title; ?> </title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Novus Admin Panel Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template, 
SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- font CSS -->
<!-- font-awesome icons -->
<link href="css/font-awesome.css" rel="stylesheet"> 
<!-- //font-awesome icons -->
 <!-- js-->
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/modernizr.custom.js"></script>
<!--webfonts-->
<link href='//fonts.googleapis.com/css?family=Roboto+Condensed:400,300,300italic,400italic,700,700italic' rel='stylesheet' type='text/css'>
<!--//webfonts--> 
<!--animate-->
<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="js/wow.min.js"></script>
	<script>
		 new WOW().init();
	</script>
<!--//end-animate-->
<!-- chart -->
<script src="js/Chart.js"></script>
<!-- //chart -->
<!--Calender-->
<link rel="stylesheet" href="css/clndr.css" type="text/css" />
<script src="js/underscore-min.js" type="text/javascript"></script>
<script src= "js/moment-2.2.1.js" type="text/javascript"></script>
<script src="js/clndr.js" type="text/javascript"></script>
<script src="js/site.js" type="text/javascript"></script>
<!--End Calender-->
<!-- Metis Menu -->
<script src="js/metisMenu.min.js"></script>
<script src="js/custom.js"></script>
<link href="css/custom.css" rel="stylesheet">
<!--//Metis Menu -->
<style>
tabel,th,td
{
	text-align:center;
}
td
{
	font-size:14px;
}
</style>

</head> 
<body class="cbp-spmenu-push">
	<div class="main-content">
		<!--left-fixed -navigation-->
		<?php
			include("left-section.php");
		?>
		<!--left-fixed -navigation-->
		<!-- header-starts -->
		<?php
			include("header.php");
		?>
		<!-- //header-ends -->
		<!-- main content start-->
		<div id="page-wrapper">
		<div class="main-page signup-page">
			<h3 class="title1">Report Of Post/Complaint</h3>
			<div class="sign-up-row widget-shadow">
		<form role="form" method="post" enctype="multipart/form-data">
				   <div class="form-group col-lg-4">
					<label>Grievance About :</label>
					<select name="comp_id" class="form-control">
						<?php
							if($complaint_title!="")
							{
								$data = $db->get_grade_pay_data_from_id($complaint_id);
							
						?>
						<option value="<?php echo $complaint_title; ?>"><?php echo $complaint_title; ?></option>
						<?php
							}
						?>
						<option value="Select Complaint">Select Complaint</option>
						<?php
							$data	=	array();
				
							$data	=	$db-> get_all_complaint_title_data();
							
							if(!empty($data))
							{
								$counter	=	0;
								
								foreach($data as $record)
								{
									$res_id			=	$data[$counter][0];
									$title 			=	$data[$counter][1];
									
									
							?>
							<option value="<?php echo $res_id; ?>"><?php echo $title; ?></option>
							<?php
									$counter++;
								}
							}
						?>											
					</select>
				</div>
							
				<div class="form-group col-lg-4">
					<label>User Type </label>
					<select class="form-control" placeholder="Enter User Type" name="user_type" required>
						<option value="select_user_type">Select User Type</option>
						<option value="Parents">Parents</option>
						<option value="Mechanical Engineering">Teaching Staff</option>
						<option value="Non Teaching Staff">Non Teaching Staff</option>
						<option value="Administrative">Administrative</option>
						<option value="General">Grievance</option>
						<option value="Cell Member">Cell Member </option>
					</select>
			   </div>
			  
			   
				<div class="form-group col-lg-2">
					<label>From</label>
				  <input type="text" class="form-control" name="from_date" id="from_date" placeholder="Enter Date Of Birth." value="<?php echo $from_date; ?>" />
			   </div>	 
				<div class="form-group col-lg-2">
					<label>To</label>
				   <input type="text" class="form-control" name="to_date" id="to_date" placeholder="Enter Date Of Birth." value="<?php echo $to_date; ?>" />
			   </div>
				<div class="sub_home">
					<input type="submit" value="Search" name="search_btn" style="width:35%;">
					<div class="clearfix"> </div>
				</div>
								
			</form>
			</div>
		</div>
</div>
		
<div id="page-wrapper" style="margin-top:-90px;">
<div class="main-page">
	<div class="tables">
		<h3 class="title1">Post Complaint Record</h3>
		<div class="panel-body widget-shadow">
			
<?php
				
				$from_date	=	date("Y-m-d");
				$to_date	=	date("Y-m-d");
				$comp_id	=	"";
				
				if(isset($_POST['from_date']))
				{
					$from_date 	=	$_POST['from_date'];
					$to_date	=	$_POST['to_date'];
					$comp_id   	=	$_POST['comp_id'];
					$_SESSION['from_date']	=	$from_date;
					$_SESSION['to_date']	=	$to_date;
					$_SESSION['comp_id']	=	$comp_id;
				}
				else if(isset($_SESSION['from_date']))
				{
					$from_date	=	$_SESSION['from_date'];
					$to_date	=	$_SESSION['to_date'];
					$comp_id	=	$_SESSION['comp_id'];
				}
						
				$data	=	array();
				$data	=	$db->get_all_post_complain_report_data($from_date,$to_date,$comp_id);
				
			?>
	
		<div class="panel-body">
			<table class="table" id="dataTables-example">
				<thead>
					<tr class="table_align">
						<th width="20">Sr.No</th>
						<th width="80">Complaint Title</th>
						<th width="80">Subject</th>
						<th width="80">Descriptive Message</th>
						<th width="60">Edit</th>
						<th width="60">Delete</th>
					</tr>
				</thead>
				<tbody>
				
					<?php
						
						$total_amount	=	0;
					
						if(!empty($data))
						{
							$counter	=	0;
							
							foreach($data as $record)
							{
								$res_id				    =	$data[$counter][0];
								$complaint_id	   		=	$data[$counter][1];
								$subject	   			=	$data[$counter][2];
								$descriptive	   	    =	$data[$counter][3];
								$res_date			   	=	$data[$counter][4];
								
								$complaint_name=$db->get_post_complaint_title($complaint_id);	
					?>
					
					<tr class="odd gradeX" style="text-align:center">
						<td><?php echo $counter+1; ?></td>
						<td><?php echo $complaint_name; ?></td>
						<td><?php echo $subject; ?></td>
						<td><?php echo $descriptive; ?></td>
						<td><a href="edit-post-complaint-master.php?edit_id=<?php echo $res_id; ?>">Edit</a></td>
						<td><a href="<?php echo $_SERVER['PHP_SELF']."?delete_id=".$res_id; ?>" class="delete_opt">Delete</a></td>
					</tr>
					<?php
						
							$counter++;
						
							}
					
						}
						else
						{
		
						?>	
						<tr>
						<td colspan="6">No Complaint Data Found </td>
						</tr>
					<?php
						}
					?>
				  
				</tbody>
			</table>
				<!-- /.table-responsive -->
				
			</div>
			<!-- /.panel-body -->
		</div>
		<!-- /.panel -->
	</div>
	<!-- /.col-lg-12 -->
		</div>
		<!-- /.row -->
	</div>
	<!--footer-->
	<?php
		include("footer.php");
	?>
	<!--//footer-->
</div>
<!-- Classie -->
	<script src="js/classie.js"></script>
	<script>
		var menuLeft = document.getElementById( 'cbp-spmenu-s1' ),
			showLeftPush = document.getElementById( 'showLeftPush' ),
			body = document.body;
			
		showLeftPush.onclick = function() {
			classie.toggle( this, 'active' );
			classie.toggle( body, 'cbp-spmenu-push-toright' );
			classie.toggle( menuLeft, 'cbp-spmenu-open' );
			disableOther( 'showLeftPush' );
		};
			

			function disableOther( button ) {
				if( button !== 'showLeftPush' ) {
					classie.toggle( showLeftPush, 'disabled' );
				}
			}
		</script>
	<!--scrolling js-->
	<script src="js/jquery.nicescroll.js"></script>
	<script src="js/scripts.js"></script>
	<!--//scrolling js-->
	<!-- Bootstrap Core JavaScript -->
   <script src="js/bootstrap.js"> </script>
</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