Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/panel.atsevairag.com/old2/old-11-10-2024/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/panel.atsevairag.com/old2/old-11-10-2024/stud-result.php

<DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>ए. टी. एस. ई. वैराग</title>
	
<?php
	require_once("lib/class/functions.php");
	
	$db = new functions();
	
	$current_page = "";
	
	//$current_print_student_id	=	"";
	
	if(isset($_GET['stud_id']))
	{
		$current_print_student_id	=	$_GET['stud_id'];
	}
	
	$id				=	"";
	$center_name	=	"";
	$standard		=	"";
	$madhyam_and_fees=	"";
	$sirname		=	"";
	$name			=	"";
	$father_name	=	"";
	$mother_name	=	"";
	$contact_number	=	"";
	$principal_details=	"";
	$school_details	=	"";
	$jilha			=	"";
	$dd_number		=	"";
	$date			=	"";
	$time			=	"";
	$result_exam_seat_number=	"";
	$scenter_id		=	"";
	
	$student_print_data	=	$db->get_student_receipt_print_data($current_print_student_id);
	
	$count_s =0;
	if(!empty($student_print_data))
	{
		$id				=	$student_print_data[$count_s]['id'];
		$center_name	=	$student_print_data[$count_s]['center_name'];
		$standard		=	$student_print_data[$count_s]['standard'];
		$madhyam_and_fees=	$student_print_data[$count_s]['madhyam_and_fees'];
		$sirname		=	$student_print_data[$count_s]['sirname'];
		$name			=	$student_print_data[$count_s]['name'];
		$father_name	=	$student_print_data[$count_s]['father_name'];
		$mother_name	=	$student_print_data[$count_s]['mother_name'];
		$contact_number	=	$student_print_data[$count_s]['contact_number'];
		$principal_details=	$student_print_data[$count_s]['principal_details'];
		$school_details	=	$student_print_data[$count_s]['school_details'];
		$jilha			=	$student_print_data[$count_s]['jilha'];
		$dd_number		=	$student_print_data[$count_s]['dd_number'];
		$date			=	$student_print_data[$count_s]['date'];
		$time			=	$student_print_data[$count_s]['time'];
		$result_exam_seat_number=	$student_print_data[$count_s]['exam_seat_number'];
		$school_id		=	$student_print_data[$count_s]['school_id'];
		$scenter_id		=	$student_print_data[$count_s]['center_id'];
	}
	
	$marks_data	=	array();
	$marks_data	=	$db->get_user_marks_data($current_print_student_id);
	
	$tid		=	"";
	$bhasha_ganit	=	"0";
	$eng_buddhimatta=	"0";
	$total_marks	=	"0";
	$shera		=	"-";
	
	$countx	=	0;
	if(!empty($marks_data))
	{
		$tid		=	$marks_data[$countx]['id'];
		$bhasha_ganit	=	$marks_data[$countx]['bhasha_ganit'];
		$eng_buddhimatta=	$marks_data[$countx]['eng_buddhimatta'];
		$total_marks	=	$marks_data[$countx]['total_marks'];
		$shera		=	$marks_data[$countx]['shera'];
	}
	if($bhasha_ganit=="")
	{
		$bhasha_ganit = 0;
	}
	
	if($eng_buddhimatta=="")
	{
		$eng_buddhimatta = 0;
	}
	
	if($total_marks=="")
	{
		$total_marks = 0;
	}
	
	
?>
<style>
.name_stud_cert
{
	font-size:19px;
	margin-top:275px;
	margin-left:110px;
}
.stud_st_number_cert
{
	margin-top:278px;
	float:right;
	margin-right:80px;
}
.school_name_stud_cert
{
	margin-left:150px;
	margin-top:10px;
}
.std_cert_class
{
	margin-left:150px;
	margin-top:14px;
}
.std_cert_class_reg_id
{
	float:right;
	margin-right:40px;
	margin-top:15px;
	width:110px;
}
.std_cert_class_sub
{
	margin-top:180px;
	width:110px;
	margin-left:178px;
	float:left;
}
.print_btn
{
	border:1px solid #DFDFDF;
	border-radius:5px;
	background-color:#FAFAFA;
	color:#333333;
	font-weight:bold;
	text-align:center;
	padding:10px;
}
</style>
<script>
function print_page()
{
	window.print();
	return false;
}
</script>
</head>
<body>
<?php
	$back_image	=	"";
	
	if($standard=="दुसरी")
	{
		$back_image	=	"crt2.jpg";
	}
	else if($standard=="पहिली")
	{
		$back_image	=	"crt2.jpg";
	}
	else
	{
		$back_image	=	"crt1.jpg";
	}
	
	
	$stud_got_shera	=	"";
	
	$levels_of_result	=	$db->get_value_of_result_setting();				
	if(!empty($levels_of_result))
	{
		$res_id							=	$levels_of_result['id'];
		$res_rajyastariy_limit			=	$levels_of_result['rajya'];
		$res_jilhastariy_limit			=	$levels_of_result['jilha'];
		$res_kendrastariy_limit			=	$levels_of_result['kendra'];
	}
	
	//First Get All Rajystariy Students data
				$r_stud_data	=	array();
				
				$rajyastariy_students_data	=	$db->get_student_result_data_from_standard_for_rajya($standard,$res_rajyastariy_limit);
				
				if(!empty($rajyastariy_students_data))
				{
					$r_cntr = 0;
					$r_shera_cntr	=	1;
					$r_current_mark	=	0;
					
					foreach($rajyastariy_students_data as $r_record)
					{
						$r_result_exam_seat_number	=	$r_record['exam_seat_number'];
						$r_total_marks				=	$r_record['total_marks'];
						
						if($r_current_mark==0)
						{
							$r_shera_cntr	=	1;
							$r_current_mark	=	$r_total_marks;
				
							
						}
						else
						{
							if($r_current_mark==$r_total_marks)
							{
								$r_shera_cntr	=	$r_shera_cntr;
								$r_current_mark	=	$r_total_marks;
								
								
							}
							else if($r_current_mark>$r_total_marks)
							{
								$r_shera_cntr++;
								$r_current_mark	=	$r_total_marks;
								
								
							}
						}
						
						if($r_shera_cntr<=$res_rajyastariy_limit)
						{
							if($r_result_exam_seat_number==$result_exam_seat_number)
							{
								$stud_got_shera	=	$r_shera_cntr;
								
								if($stud_got_shera==1)
								{
									$stud_got_shera	=	"राज्यात ".$stud_got_shera." ला";
								}
								else if($stud_got_shera==2 OR $stud_got_shera==3)
								{
									$stud_got_shera	=	"राज्यात ".$stud_got_shera." रा";
								}
								else if($stud_got_shera==4)
								{
									$stud_got_shera	=	"राज्यात ".$stud_got_shera." था";
								}
								else if($stud_got_shera>4)
								{
									$stud_got_shera	=	"राज्यात ".$stud_got_shera." वा";
								}
								
								break;
							}
							
							array_push($r_stud_data,$r_result_exam_seat_number);
						}
						
						$r_cntr++;
					}
				}
				

	if($stud_got_shera=="")
	{
		//Jilhastariy Data
				$jilha_sorted_stud_data	=	array();
				
				$jil_student_data	=	$db->get_student_result_data_from_standard_for_jilha($standard,$res_jilhastariy_limit,$jilha);
				
				if(!empty($jil_student_data))
				{
					$jl_cntr 			= 	0;
					$shera_jl_cntr		=	"-";
					$jl_current_mark	=	"";
					
					foreach($jil_student_data as $record)
					{
						$jil_result_exam_seat_number	=	$record['exam_seat_number'];
						$jil_total_marks				=	$record['total_marks'];
						
						if (!in_array($jil_result_exam_seat_number,$r_stud_data))
						{
							if($jl_current_mark=="" AND $jl_current_mark!="0")
							{
								$shera_jl_cntr	=	1;
								$jl_current_mark	=	$jil_total_marks;
								
								
							}
							else
							{
								if($jl_current_mark==$jil_total_marks)
								{
									$shera_jl_cntr	=	$shera_jl_cntr;
									$jl_current_mark	=	$jil_total_marks;
									
								
								}
								else if($jl_current_mark>$jil_total_marks)
								{
									$shera_jl_cntr++;
									$jl_current_mark	=	$jil_total_marks;
								}
							}
							
							if($shera_jl_cntr<=$res_jilhastariy_limit)
							{
								if($jil_result_exam_seat_number==$result_exam_seat_number)
								{
									$stud_got_shera	=	$shera_jl_cntr;
									
									if($stud_got_shera==1)
									{
										$stud_got_shera	=	"जिल्ह्यात ".$stud_got_shera." ला";
									}
									else if($stud_got_shera==2 OR $stud_got_shera==3)
									{
										$stud_got_shera	=	"जिल्ह्यात ".$stud_got_shera." रा";
									}
									else if($stud_got_shera==4)
									{
										$stud_got_shera	=	"जिल्ह्यात ".$stud_got_shera." था";
									}
									else if($stud_got_shera>4)
									{
										$stud_got_shera	=	"जिल्ह्यात ".$stud_got_shera." वा";
									}
									
									break;
								}
							
								array_push($jilha_sorted_stud_data,$jil_result_exam_seat_number);
							}
								
						}
						
						$jl_cntr++;
					}
				}
	}
	
	if($stud_got_shera=="")
	{
		$student_data	=	$db->get_student_result_data_from_standard_for_kendra($standard,$res_kendrastariy_limit,$jilha,$scenter_id);
				
				if(!empty($student_data))
				{
					$shera_cntr	=	"";
					$current_mark	=	"";
					$cntr = 0;
					
					foreach($student_data as $record)
					{
						$kndr_result_exam_seat_number1	=	$record['exam_seat_number'];
						$sirname1					=	$record['sirname'];
						$name1						=	$record['name'];
						$father_name1				=	$record['father_name'];
						$bhasha_ganit1				=	$record['bhasha_ganit'];
						$eng_buddhimatta1			=	$record['eng_buddhimatta'];
						$total_marks1				=	$record['total_marks'];
						$shera1						=	$record['shera'];
						$school_details1				=	$record['school_details'];
						
						if(!in_array($kndr_result_exam_seat_number1, $r_stud_data) AND !in_array($kndr_result_exam_seat_number1, $jilha_sorted_stud_data)) 
						{
							if($current_mark=="" AND $current_mark!="0")
							{
								$shera_cntr	=	1;
								$current_mark	=	$total_marks;
							}
							else
							{
								if($current_mark==$total_marks)
								{
									$shera_cntr	=	$shera_cntr;
									$current_mark	=	$total_marks;
								}
								else if($current_mark>$total_marks)
								{
									$shera_cntr++;
									$current_mark	=	$total_marks;
								}
							}
							
							if($shera_cntr<=$res_kendrastariy_limit)
							{
								if($kndr_result_exam_seat_number==$result_exam_seat_number)
								{
									$stud_got_shera	=	$shera_cntr;
									
									if($stud_got_shera==1)
									{
										$stud_got_shera	=	"केंद्रात ".$stud_got_shera." ला";
									}
									else if($stud_got_shera==2 OR $stud_got_shera==3)
									{
										$stud_got_shera	=	"केंद्रात ".$stud_got_shera." रा";
									}
									else if($stud_got_shera==4)
									{
										$stud_got_shera	=	"केंद्रात ".$stud_got_shera." था";
									}
									else if($stud_got_shera>4)
									{
										$stud_got_shera	=	"केंद्रात ".$stud_got_shera." वा";
									}
									
									break;
								}
								
								$cntr++;	
							}
						}
					}
				}
	}
	
?>

<div style="background-image:url('/images/<?php echo $back_image; ?>'); height:800px; width:730px;display:inline-table; background-repeat:no-repeat; margin-top:-20px;">
	<div class='stud_st_number_cert'><?php echo $result_exam_seat_number; ?></div>
	<div class='name_stud_cert'><?php echo $sirname." ".$name." ".$father_name; ?></div>
	<div class='school_name_stud_cert'><?php echo $school_details; ?></div>
	<div class='std_cert_class_reg_id'><?php echo $id; ?></div>
	<div class='std_cert_class'><?php echo $standard; ?></div>
	
	<div class='std_cert_class_sub'><?php echo $bhasha_ganit; ?></div>
	<div class='std_cert_class_sub' style="margin-left:10px; width:105px;"><?php echo $eng_buddhimatta; ?></div>
	<div class='std_cert_class_sub' style="margin-left:8px; width:68px;"><?php echo $total_marks; ?></div>
	<div class='std_cert_class_sub' style="margin-left:8px; width:180px; text-align:center;">
	
	<?php 
	$form_status = $db->get_shrera_status();
	if($form_status=="on")
    {
		echo $shera;
	}
	else
	{
		echo "-";
	}
	?>
	</div>
	
	<?php
	$mark1	=	"";
	$mark2	=	"";
	$mark3	=	"";
	$mark4	=	"";
	
	if($standard=="दुसरी")
	{
		$mark1	=	"100";
		$mark2	=	"100";
		$mark3	=	"200";
	}
	else if($standard=="पहिली")
	{
		$mark1	=	"50";
		$mark2	=	"50";
		$mark3	=	"100";
	}
	
	?>
	
	<div class='std_cert_class_sub' style=" margin-top:15px;"><?php echo $mark1; ?></div>
	<div class='std_cert_class_sub' style="margin-left:10px; margin-top:15px; width:105px;"><?php echo $mark2; ?></div>
	<div class='std_cert_class_sub' style="margin-left:8px; margin-top:15px; width:68px;"><?php echo $mark3; ?></div>
	<div class='std_cert_class_sub' style="margin-left:8px; margin-top:15px; width:180px; text-align:center;"></div>
	
	
</div>
<a href="" style="margin-left:100px;" class="print_btn" onclick="print_page()">Print</a><br /><br />
</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