MMCT TEAM
Server IP : 2a02:4780:11:1359:0:1d43:a566:2  /  Your IP : 216.73.216.161
Web Server : LiteSpeed
System : Linux in-mum-web1259.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64
User : u490972518 ( 490972518)
PHP Version : 5.6.40
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u490972518/domains/swrampyarejan.in/public_html/link/../admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u490972518/domains/swrampyarejan.in/public_html/link/../admin/annual_11_print.php
<?php
error_reporting(0);
include('../link/databaseconnection.php');
session_start();
			$lg=$_SESSION['admin'];
$id=$_REQUEST['flag'];


$sel5="select *from registration where  id='$id'";
$res5=mysqli_query($conn,$sel5);
$row5=mysqli_fetch_array($res5,MYSQLI_BOTH);
$application=$row5['application'];
//echo $application;
$session=$row5['session'];
$class=$row5['subject'];
$exam='FIRST TERM';

			

//$exam=$row['name'];
$sel1="select * from six_eightresult where  session='$session' and exam='$exam' and class='$class' and regi_id='$id'";
$res1=mysqli_query($conn,$sel1);

$sel12="select * from six_eightresult where  session='$session' and exam='SECOND TERM' and class='$class' and regi_id='$id'";
$res12=mysqli_query($conn,$sel12);
$row12=mysqli_fetch_array($res12,MYSQLI_BOTH);

?>




<html>
<head>
 <script src="../js/jquery-3.2.1.min.js"></script>  <!--jquery-->
<script>
$(document).ready(function(){
	$("#pay").click(function(){
		window.location.href='bil.php';
	});
});
$(document).ready(function(){

	$("#print").click(function(){
		$("#pay").css("visibility","hidden");
		$("#back").css("visibility","hidden");
		$("#print").css("visibility","hidden");
		window.print();
		window.location.href='resultpg.php';
	});
	$("#back").click(function(){
		window.location.href='resultpg.php';
	});
});

</script>

<style>
.graph-7{background: url("../images/jdawn_back.png") no-repeat ;}
.graph-image img{display: none;}
  .graph-7{background-size:100% 100% ;}

@media print{
  .graph-img img{display:inline;}
  width:100%;
}
@media print {
    * {
        -webkit-print-color-adjust: exact;
		
    }
}
td {
    padding-top: .5em;
    padding-bottom: .5em;
}
#header
{
	height:70px;
	background-color:red;
	width:495px;
}
#logo
{
	height:70px;
	background-color:green;
	width:70px;
	float-left;
}
#name
{
	height:70px;
	background-color:yellow;
	width:420px;
	float-left;
}
.graph-7{background: url(../images/jdawn_back.png) no-repeat;
   
}
.graph-7{background-size:100% 100% ;}
.graph-image img{display: inline;
    
}

@media print{
  .graph-image img{display:inline;}
}
td{font-size:12px;
    font-weight:bold;
}
#p {font-size:13px;
		 
		 text-transform: uppercase;}
</style>
<style type="text/css" media="print">
@page 
    {
        size: A4;   /* auto is the initial value */
        margin: 2mm;  /* this affects the margin in the printer settings */
    }
	  @media print {
         jk {position:relative;}
      }
	  td{font-size:12px;
	      font-weight:bold;}
		  
		  @media print {
         #p {font-size:13px;
		 #p2{margin-left:200px}
		 #p3{margin-left:500px}
		 
		 text-transform: uppercase;}
      }
</style> 
</head>
<body>

<?php
$s=2017;
$r=1;
while($row1=mysqli_fetch_array($res1,MYSQLI_BOTH))
{
    

      

?>

<center>

<div class="row graph-image graph-7" style="width:100%">

<table cellspacing="0"  border="1px" width="100%">
<table border="1px"  width="100%" cellspacing="0">
<tr>
<td align="center" COLSPAN="15"><img src="../images/jdawn_name.png" style=""height="138px" width="100%"/><span></td>
</tr>
<tr align="center">
<td colspan='5'><h4>Class:&nbsp;<?php echo $row1['class'];?></h4></td><td colspan="6"><h4>PROGRESS REPORT- <?php echo $row1['session'];?></h4></td><td colspan='4'><h4>Sch. Number:&nbsp;<?php  $row5['application'];?></h4></td>
</tr>
<?php



?>
<tr align="">
<td colspan='5'>Name</td><td colspan='6' style='font-size:13px' id='p'><p style='font-size:13px'><b><?php echo $row5['name'];?></b></p></td>
<td rowspan="3" colspan='4'>

<center><img src="../code/img/<?php echo $row5['picture']?>" height="110px" width="110px"/></center></td>
</tr>
<tr align="">
<td colspan='5' >Father's Name</td><td colspan='6' style='font-size:13px' id='p'><p style='font-size:13px'><b> <?php echo $row5['fname'];?></b></p></td>
</tr>
<tr align="">
<td colspan='5'>Mother's Name</td><td colspan='6' style='font-size:13px' id='p'><p style='font-size:13px'><b> <?php echo $row5['mname'];?></b></p></td>
</tr>

<tr align="center" width="100%">
<td colspan="15"><h3>ACADEMIC PERFORMANCE</h3></td>
</tr>
<tr align="center">
<td colspan="5"><h3>TERM - I</h3></td><td colspan="4"><h3>TERM - II</h3></td><td colspan="4"><h3>TOTAL</h3></td>
</tr>
<?php if($row5['signature']=='BIOLOGY'){;?>
	
<tr align="center" style="font-weight:bold">
<td style="text-align:left" >SUBJECT</td><td COLSPAN='2'>I.A. </td><td>THEORY</td><td >MARKS OBT.(100)</td><td COLSPAN='2'>I.A. </td><td>THEORY</td><td >MARKS OBT.(100)</td><td >TOTAL</td><td colspan='3'>GRADE</td>
</tr>
<tr align="center">
<td style="text-align:left">HINDI </td><td COLSPAN='2'><?php echo $row1['mark1p'];?></td><td><?php echo $row1['mark1m'];?></td><td><?php echo $m1=$row1['mark1p']+$row1['mark1k']+$row1['mark1m'];?></td><td COLSPAN='2'><?php echo $row12['mark1p'];?></td><td><?php echo $row12['mark1m'];?></td><td><?php echo $m12=$row12['mark1p']+$row12['mark1k']+$row12['mark1m'];?></td><td ><?php echo $tot1=$m1+$m12?></td><td colspan='3'><?php  if($tot1>=181){echo 'A1';} if($tot1<181 and $tot1>=161){echo 'A2';}if($tot1<161 && $tot1>=141){echo 'B1';}if($tot1<141 && $tot1>=121){echo 'B2';}if($tot1<121 && $tot1>=101){echo 'C1';}if($tot1<101 && $tot1>=81){echo 'C2';}if($tot1<81 && $tot1>=66){echo 'D';} if($tot1<66 ){echo 'E(Failed)';}?></td>
</tr>
<tr align="center">
<td style="text-align:left">ENGLISH</td><td COLSPAN='2'><?php echo $row1['mark2p'];?></td><td><?php echo $row1['mark2m'];?></td><td><?php echo $m2=$row1['mark2p']+$row1['mark2k']+$row1['mark2m'];?></td><td COLSPAN='2'><?php echo $row12['mark2p'];?></td><td><?php echo $row12['mark2m'];?></td><td><?php echo $m22=$row12['mark2p']+$row12['mark2k']+$row12['mark2m'];?></td><td><?php echo $tot2=$m2+$m22?></td><td colspan='3'><?php  if($tot2>=181){echo 'A1';} if($tot2<181 and $tot2>=161){echo 'A2';}if($tot2<161 && $tot2>=141){echo 'B1';}if($tot2<141 && $tot2>=121){echo 'B2';}if($tot2<121 && $tot2>=101){echo 'C1';}if($tot2<101 && $tot2>=81){echo 'C2';}if($tot2<81 && $tot2>=66){echo 'D';} if($tot2<66 ){echo 'E(Failed)';}?></td>
</tr>

<tr align="center">
<td style="text-align:left">BIOLOGY </td><td COLSPAN='2'><?php echo $row1['mark3p'];?></td><td><?php echo $row1['mark3m'];?></td><td><?php echo $m3=$row1['mark3p']+$row1['mark3k']+$row1['mark3m'];?></td><td COLSPAN='2'><?php echo $row12['mark3p'];?></td><td><?php echo $row12['mark3m'];?></td><td><?php echo $m23=$row12['mark3p']+$row12['mark3k']+$row12['mark3m'];?></td><td><?php echo $tot3=$m3+$m23?></td><td colspan='3'><?php  if($tot3>=181){echo 'A1';} if($tot3<181 and $tot3>=161){echo 'A2';}if($tot3<161 && $tot3>=141){echo 'B1';}if($tot3<141 && $tot3>=121){echo 'B2';}if($tot3<121 && $tot3>=101){echo 'C1';}if($tot3<101 && $tot3>=81){echo 'C2';}if($tot3<81 && $tot3>=66){echo 'D';} if($tot3<66 ){echo 'E(Failed)';}?></td>
</tr>
<tr align="center">
<td style="text-align:left">PHYSICS </td><td COLSPAN='2' ><?php echo $row1['mark4p'];?></td><td><?php echo $row1['mark4m'];?></td><td><?php echo $m4=$row1['mark4p']+$row1['mark4k']+$row1['mark4m']?></td><td COLSPAN='2'><?php echo $row12['mark4p'];?></td><td><?php echo $row12['mark4m'];?></td><td><?php echo $m43=$row12['mark4p']+$row12['mark4k']+$row12['mark4m']?></td><td><?php echo $tot4=$m4+$m43?></td><td colspan='3'><?php  if($tot4>=181){echo 'A1';} if($tot4<181 and $tot4>=161){echo 'A2';}if($tot4<161 && $tot4>=141){echo 'B1';}if($tot4<141 && $tot4>=121){echo 'B2';}if($tot4<121 && $tot4>=101){echo 'C1';}if($tot4<101 && $tot4>=81){echo 'C2';}if($tot4<81 && $tot4>=66){echo 'D';} if($tot4<66 ){echo 'E(Failed)';}?></td>
</tr>
<tr align="center">
<td style="text-align:left">CHEMISTRY </td><td COLSPAN='2'><?php echo $row1['mark5p'];?></td><td><?php echo $row1['mark5m'];?></td><td><?php echo $m5=$row1['mark5p']+$row1['mark5k']+$row1['mark5m']?></td><td COLSPAN='2'><?php echo $row12['mark5p'];?></td><td><?php echo $row12['mark5m'];?></td><td><?php echo $m35=$row12['mark5p']+$row12['mark5k']+$row12['mark5m']?></td><td><?php echo $tot5=$m5+$m35?></td><td colspan='3'><?php  if($tot5>=181){echo 'A1';} if($tot5<181 and $tot5>=161){echo 'A2';}if($tot5<161 && $tot5>=141){echo 'B1';}if($tot5<141 && $tot5>=121){echo 'B2';}if($tot5<121 && $tot5>=101){echo 'C1';}if($tot5<101 && $tot5>=81){echo 'C2';}if($tot5<81 && $tot5>=66){echo 'D';} if($tot5<66 ){echo 'E(Failed)';}?></td>
</tr>
<tr align="center">
<td style="text-align:left">PHY. EDU. </td><td COLSPAN='2'><?php echo $row1['mark6p'];?></td><td><?php echo $row1['mark6m'];?></td><td><?php echo $m6=$row1['mark6p']+$row1['mark6k']+$row1['mark6m']?></td><td COLSPAN='2'><?php echo $row12['mark6p'];?></td><td><?php echo $row12['mark6m'];?></td><td><?php echo $m36=$row12['mark6p']+$row12['mark6k']+$row12['mark6m']?></td><td><?php echo $tot6=$m6+$m36?></td><td colspan='3'><?php  if($tot6>=181){echo 'A1';} if($tot6<181 and $tot6>=161){echo 'A2';}if($tot6<161 && $tot6>=141){echo 'B1';}if($tot6<141 && $tot6>=121){echo 'B2';}if($tot6<121 && $tot6>=101){echo 'C1';}if($tot6<101 && $tot6>=81){echo 'C2';}if($tot6<81 && $tot6>=66){echo 'D';} if($tot6<66 ){echo 'E(Failed)';}?></td>
</tr>
	<tr align="center">
<td style="text-align:left">TOTAL </td><td COLSPAN='2'><?php echo $row1['mark1p']+$row1['mark2p']+$row1['mark3p']+$row1['mark4p']+$row1['mark5p'];?></td><td><?php echo $row1['mark1m']+$row1['mark2m']+$row1['mark3m']+$row1['mark4m']+$row1['mark5m'];?></td><td><?php echo $total =$m1+$m2+$m3+$m4+$m5?></td><td COLSPAN='2'><?php echo $row12['mark1p']+$row12['mark2p']+$row12['mark3p']+$row12['mark4p']+$row12['mark5p'];?></td><td><?php echo $row12['mark1m']+$row12['mark2m']+$row12['mark3m']+$row12['mark4m']+$row12['mark5m'];?></td><td><?php echo $total12 =$m12+$m22+$m23+$m43+$m35;?></td><td><?php echo $total_sum=$tot1+$tot2+$tot3+$tot4+$tot5;?></td><td colspan='3'></td>
</tr>
	
	<?php }?>
<?php if($row5['signature']=='MATHS'){;?>

<tr align="center" style="font-weight:bold">
<td style="text-align:left" >SUBJECT</td><td COLSPAN='2'>I.A. </td><td>THEORY</td><td >MARKS OBT.(100)</td><td COLSPAN='2'>I.A. </td><td>THEORY</td><td >MARKS OBT.(100)</td><td >TOTAL</td><td colspan='3'>GRADE</td>
</tr>
<tr align="center">
<td style="text-align:left">HINDI </td><td COLSPAN='2'><?php echo $row1['mark1p'];?></td><td><?php echo $row1['mark1m'];?></td><td><?php echo $m1=$row1['mark1p']+$row1['mark1k']+$row1['mark1m'];?></td><td COLSPAN='2'><?php echo $row12['mark1p'];?></td><td><?php echo $row12['mark1m'];?></td><td><?php echo $m12=$row12['mark1p']+$row12['mark1k']+$row12['mark1m'];?></td><td ><?php echo $tot1=$m1+$m12?></td><td colspan='3'><?php  if($tot1>=181){echo 'A1';} if($tot1<181 and $tot1>=161){echo 'A2';}if($tot1<161 && $tot1>=141){echo 'B1';}if($tot1<141 && $tot1>=121){echo 'B2';}if($tot1<121 && $tot1>=101){echo 'C1';}if($tot1<101 && $tot1>=81){echo 'C2';}if($tot1<81 && $tot1>=66){echo 'D';} if($tot1<66 ){echo 'E(Failed)';}?></td>
</tr>
<tr align="center">
<td style="text-align:left">ENGLISH</td><td COLSPAN='2'><?php echo $row1['mark2p'];?></td><td><?php echo $row1['mark2m'];?></td><td><?php echo $m2=$row1['mark2p']+$row1['mark2k']+$row1['mark2m'];?></td><td COLSPAN='2'><?php echo $row12['mark2p'];?></td><td><?php echo $row12['mark2m'];?></td><td><?php echo $m22=$row12['mark2p']+$row12['mark2k']+$row12['mark2m'];?></td><td><?php echo $tot2=$m2+$m22?></td><td colspan='3'><?php  if($tot2>=181){echo 'A1';} if($tot2<181 and $tot2>=161){echo 'A2';}if($tot2<161 && $tot2>=141){echo 'B1';}if($tot2<141 && $tot2>=121){echo 'B2';}if($tot2<121 && $tot2>=101){echo 'C1';}if($tot2<101 && $tot2>=81){echo 'C2';}if($tot2<81 && $tot2>=66){echo 'D';} if($tot2<66 ){echo 'E(Failed)';}?></td>
</tr>

<tr align="center">
<td style="text-align:left">MATHS </td><td COLSPAN='2'><?php echo $row1['mark3p'];?></td><td><?php echo $row1['mark3m'];?></td><td><?php echo $m3=$row1['mark3p']+$row1['mark3k']+$row1['mark3m'];?></td><td COLSPAN='2'><?php echo $row12['mark3p'];?></td><td><?php echo $row12['mark3m'];?></td><td><?php echo $m23=$row12['mark3p']+$row12['mark3k']+$row12['mark3m'];?></td><td><?php echo $tot3=$m3+$m23?></td><td colspan='3'><?php  if($tot3>=181){echo 'A1';} if($tot3<181 and $tot3>=161){echo 'A2';}if($tot3<161 && $tot3>=141){echo 'B1';}if($tot3<141 && $tot3>=121){echo 'B2';}if($tot3<121 && $tot3>=101){echo 'C1';}if($tot3<101 && $tot3>=81){echo 'C2';}if($tot3<81 && $tot3>=66){echo 'D';} if($tot3<66 ){echo 'E(Failed)';}?></td>
</tr>
<tr align="center">
<td style="text-align:left">PHYSICS </td><td COLSPAN='2' ><?php echo $row1['mark4p'];?></td><td><?php echo $row1['mark4m'];?></td><td><?php echo $m4=$row1['mark4p']+$row1['mark4k']+$row1['mark4m']?></td><td COLSPAN='2'><?php echo $row12['mark4p'];?></td><td><?php echo $row12['mark4m'];?></td><td><?php echo $m43=$row12['mark4p']+$row12['mark4k']+$row12['mark4m']?></td><td><?php echo $tot4=$m4+$m43?></td><td colspan='3'><?php  if($tot4>=181){echo 'A1';} if($tot4<181 and $tot4>=161){echo 'A2';}if($tot4<161 && $tot4>=141){echo 'B1';}if($tot4<141 && $tot4>=121){echo 'B2';}if($tot4<121 && $tot4>=101){echo 'C1';}if($tot4<101 && $tot4>=81){echo 'C2';}if($tot4<81 && $tot4>=66){echo 'D';} if($tot4<66 ){echo 'E(Failed)';}?></td>
</tr>
<tr align="center">
<td style="text-align:left">CHEMISTRY </td><td COLSPAN='2'><?php echo $row1['mark5p'];?></td><td><?php echo $row1['mark5m'];?></td><td><?php echo $m5=$row1['mark5p']+$row1['mark5k']+$row1['mark5m']?></td><td COLSPAN='2'><?php echo $row12['mark5p'];?></td><td><?php echo $row12['mark5m'];?></td><td><?php echo $m35=$row12['mark5p']+$row12['mark5k']+$row12['mark5m']?></td><td><?php echo $tot5=$m5+$m35?></td><td colspan='3'><?php  if($tot5>=181){echo 'A1';} if($tot5<181 and $tot5>=161){echo 'A2';}if($tot5<161 && $tot5>=141){echo 'B1';}if($tot5<141 && $tot5>=121){echo 'B2';}if($tot5<121 && $tot5>=101){echo 'C1';}if($tot5<101 && $tot5>=81){echo 'C2';}if($tot5<81 && $tot5>=66){echo 'D';} if($tot5<66 ){echo 'E(Failed)';}?></td>
</tr>
<tr align="center">
<td style="text-align:left">PHY. EDU. </td><td COLSPAN='2'><?php echo $row1['mark6p'];?></td><td><?php echo $row1['mark6m'];?></td><td><?php echo $m6=$row1['mark6p']+$row1['mark6k']+$row1['mark6m']?></td><td COLSPAN='2'><?php echo $row12['mark6p'];?></td><td><?php echo $row12['mark6m'];?></td><td><?php echo $m36=$row12['mark6p']+$row12['mark6k']+$row12['mark6m']?></td><td><?php echo $tot6=$m6+$m36?></td><td colspan='3'><?php  if($tot6>=181){echo 'A1';} if($tot6<181 and $tot6>=161){echo 'A2';}if($tot6<161 && $tot6>=141){echo 'B1';}if($tot6<141 && $tot6>=121){echo 'B2';}if($tot6<121 && $tot6>=101){echo 'C1';}if($tot6<101 && $tot6>=81){echo 'C2';}if($tot6<81 && $tot6>=66){echo 'D';} if($tot6<66 ){echo 'E(Failed)';}?></td>
</tr>
	
	<tr align="center">
<td style="text-align:left">TOTAL </td><td COLSPAN='2'><?php echo $row1['mark1p']+$row1['mark2p']+$row1['mark3p']+$row1['mark4p']+$row1['mark5p'];?></td><td><?php echo $row1['mark1m']+$row1['mark2m']+$row1['mark3m']+$row1['mark4m']+$row1['mark5m'];?></td><td><?php echo $total =$m1+$m2+$m3+$m4+$m5?></td><td COLSPAN='2'><?php echo $row12['mark1p']+$row12['mark2p']+$row12['mark3p']+$row12['mark4p']+$row12['mark5p'];?></td><td><?php echo $row12['mark1m']+$row12['mark2m']+$row12['mark3m']+$row12['mark4m']+$row12['mark5m'];?></td><td><?php echo $total12 =$m12+$m22+$m23+$m43+$m35;?></td><td><?php echo $total_sum=$tot1+$tot2+$tot3+$tot4+$tot5;?></td><td colspan='3'></td>
</tr>
	<?php }?>
<?php if($row5['signature']=='COMMERCE'){;?>

<tr align="center" style="font-weight:bold">
<td style="text-align:left" >SUBJECT</td><td COLSPAN='2'>I.A. </td><td>THEORY</td><td >MARKS OBT.(100)</td><td COLSPAN='2'>I.A. </td><td>THEORY</td><td >MARKS OBT.(100)</td><td >TOTAL</td><td colspan='3'>GRADE</td>
</tr>
<tr align="center">
<td style="text-align:left">HINDI </td><td COLSPAN='2'><?php echo $row1['mark1p'];?></td><td><?php echo $row1['mark1m'];?></td><td><?php echo $m1=$row1['mark1p']+$row1['mark1k']+$row1['mark1m'];?></td><td COLSPAN='2'><?php echo $row12['mark1p'];?></td><td><?php echo $row12['mark1m'];?></td><td><?php echo $m12=$row12['mark1p']+$row12['mark1k']+$row12['mark1m'];?></td><td ><?php echo $tot1=$m1+$m12?></td><td colspan='3'><?php  if($tot1>=181){echo 'A1';} if($tot1<181 and $tot1>=161){echo 'A2';}if($tot1<161 && $tot1>=141){echo 'B1';}if($tot1<141 && $tot1>=121){echo 'B2';}if($tot1<121 && $tot1>=101){echo 'C1';}if($tot1<101 && $tot1>=81){echo 'C2';}if($tot1<81 && $tot1>=66){echo 'D';} if($tot1<66 ){echo 'E(Failed)';}?></td>
</tr>
<tr align="center">
<td style="text-align:left">ENGLISH</td><td COLSPAN='2'><?php echo $row1['mark2p'];?></td><td><?php echo $row1['mark2m'];?></td><td><?php echo $m2=$row1['mark2p']+$row1['mark2k']+$row1['mark2m'];?></td><td COLSPAN='2'><?php echo $row12['mark2p'];?></td><td><?php echo $row12['mark2m'];?></td><td><?php echo $m22=$row12['mark2p']+$row12['mark2k']+$row12['mark2m'];?></td><td><?php echo $tot2=$m2+$m22?></td><td colspan='3'><?php  if($tot2>=181){echo 'A1';} if($tot2<181 and $tot2>=161){echo 'A2';}if($tot2<161 && $tot2>=141){echo 'B1';}if($tot2<141 && $tot2>=121){echo 'B2';}if($tot2<121 && $tot2>=101){echo 'C1';}if($tot2<101 && $tot2>=81){echo 'C2';}if($tot2<81 && $tot2>=66){echo 'D';} if($tot2<66 ){echo 'E(Failed)';}?></td>
</tr>

<tr align="center">
<td style="text-align:left">ECONOMICS </td><td COLSPAN='2'><?php echo $row1['mark3p'];?></td><td><?php echo $row1['mark3m'];?></td><td><?php echo $m3=$row1['mark3p']+$row1['mark3k']+$row1['mark3m'];?></td><td COLSPAN='2'><?php echo $row12['mark3p'];?></td><td><?php echo $row12['mark3m'];?></td><td><?php echo $m23=$row12['mark3p']+$row12['mark3k']+$row12['mark3m'];?></td><td><?php echo $tot3=$m3+$m23?></td><td colspan='3'><?php  if($tot3>=181){echo 'A1';} if($tot3<181 and $tot3>=161){echo 'A2';}if($tot3<161 && $tot3>=141){echo 'B1';}if($tot3<141 && $tot3>=121){echo 'B2';}if($tot3<121 && $tot3>=101){echo 'C1';}if($tot3<101 && $tot3>=81){echo 'C2';}if($tot3<81 && $tot3>=66){echo 'D';} if($tot3<66 ){echo 'E(Failed)';}?></td>
</tr>
<tr align="center">
<td style="text-align:left">BUSINESS STU </td><td COLSPAN='2' ><?php echo $row1['mark4p'];?></td><td><?php echo $row1['mark4m'];?></td><td><?php echo $m4=$row1['mark4p']+$row1['mark4k']+$row1['mark4m']?></td><td COLSPAN='2'><?php echo $row12['mark4p'];?></td><td><?php echo $row12['mark4m'];?></td><td><?php echo $m43=$row12['mark4p']+$row12['mark4k']+$row12['mark4m']?></td><td><?php echo $tot4=$m4+$m43?></td><td colspan='3'><?php  if($tot4>=181){echo 'A1';} if($tot4<181 and $tot4>=161){echo 'A2';}if($tot4<161 && $tot4>=141){echo 'B1';}if($tot4<141 && $tot4>=121){echo 'B2';}if($tot4<121 && $tot4>=101){echo 'C1';}if($tot4<101 && $tot4>=81){echo 'C2';}if($tot4<81 && $tot4>=66){echo 'D';} if($tot4<66 ){echo 'E(Failed)';}?></td>
</tr>
<tr align="center">
<td style="text-align:left">ACCOUNTANCY </td><td COLSPAN='2'><?php echo $row1['mark5p'];?></td><td><?php echo $row1['mark5m'];?></td><td><?php echo $m5=$row1['mark5p']+$row1['mark5k']+$row1['mark5m']?></td><td COLSPAN='2'><?php echo $row12['mark5p'];?></td><td><?php echo $row12['mark5m'];?></td><td><?php echo $m35=$row12['mark5p']+$row12['mark5k']+$row12['mark5m']?></td><td><?php echo $tot5=$m5+$m35?></td><td colspan='3'><?php  if($tot5>=181){echo 'A1';} if($tot5<181 and $tot5>=161){echo 'A2';}if($tot5<161 && $tot5>=141){echo 'B1';}if($tot5<141 && $tot5>=121){echo 'B2';}if($tot5<121 && $tot5>=101){echo 'C1';}if($tot5<101 && $tot5>=81){echo 'C2';}if($tot5<81 && $tot5>=66){echo 'D';} if($tot5<66 ){echo 'E(Failed)';}?></td>
</tr>
<tr align="center">
<td style="text-align:left">PHY. EDU. </td><td COLSPAN='2'><?php echo $row1['mark6p'];?></td><td><?php echo $row1['mark6m'];?></td><td><?php echo $m6=$row1['mark6p']+$row1['mark6k']+$row1['mark6m']?></td><td COLSPAN='2'><?php echo $row12['mark6p'];?></td><td><?php echo $row12['mark6m'];?></td><td><?php echo $m36=$row12['mark6p']+$row12['mark6k']+$row12['mark6m']?></td><td><?php echo $tot6=$m6+$m36?></td><td colspan='3'><?php  if($tot6>=181){echo 'A1';} if($tot6<181 and $tot6>=161){echo 'A2';}if($tot6<161 && $tot6>=141){echo 'B1';}if($tot6<141 && $tot6>=121){echo 'B2';}if($tot6<121 && $tot6>=101){echo 'C1';}if($tot6<101 && $tot6>=81){echo 'C2';}if($tot6<81 && $tot6>=66){echo 'D';} if($tot6<66 ){echo 'E(Failed)';}?></td>
</tr>
	<tr align="center">
<td style="text-align:left">TOTAL </td><td COLSPAN='2'><?php echo $row1['mark1p']+$row1['mark2p']+$row1['mark3p']+$row1['mark4p']+$row1['mark5p'];?></td><td><?php echo $row1['mark1m']+$row1['mark2m']+$row1['mark3m']+$row1['mark4m']+$row1['mark5m'];?></td><td><?php echo $total =$m1+$m2+$m3+$m4+$m5?></td><td COLSPAN='2'><?php echo $row12['mark1p']+$row12['mark2p']+$row12['mark3p']+$row12['mark4p']+$row12['mark5p'];?></td><td><?php echo $row12['mark1m']+$row12['mark2m']+$row12['mark3m']+$row12['mark4m']+$row12['mark5m'];?></td><td><?php echo $total12 =$m12+$m22+$m23+$m43+$m35;?></td><td><?php echo $total_sum=$tot1+$tot2+$tot3+$tot4+$tot5;?></td><td colspan='3'></td>
</tr>
	
	<?php }?>
<?php if($row5['signature']=='HUMANITIES'){;?>

<tr align="center" style="font-weight:bold">
<td style="text-align:left" >SUBJECT</td><td COLSPAN='2'>I.A. </td><td>THEORY</td><td >MARKS OBT.(100)</td><td COLSPAN='2'>I.A. </td><td>THEORY</td><td >MARKS OBT.(100)</td><td >TOTAL</td><td colspan='3'>GRADE</td>
</tr>
<tr align="center">
<td style="text-align:left">HINDI </td><td COLSPAN='2'><?php echo $row1['mark1p'];?></td><td><?php echo $row1['mark1m'];?></td><td><?php echo $m1=$row1['mark1p']+$row1['mark1k']+$row1['mark1m'];?></td><td COLSPAN='2'><?php echo $row12['mark1p'];?></td><td><?php echo $row12['mark1m'];?></td><td><?php echo $m12=$row12['mark1p']+$row12['mark1k']+$row12['mark1m'];?></td><td ><?php echo $tot1=$m1+$m12?></td><td colspan='3'><?php  if($tot1>=181){echo 'A1';} if($tot1<181 and $tot1>=161){echo 'A2';}if($tot1<161 && $tot1>=141){echo 'B1';}if($tot1<141 && $tot1>=121){echo 'B2';}if($tot1<121 && $tot1>=101){echo 'C1';}if($tot1<101 && $tot1>=81){echo 'C2';}if($tot1<81 && $tot1>=66){echo 'D';} if($tot1<66 ){echo 'E(Failed)';}?></td>
</tr>
<tr align="center">
<td style="text-align:left">ENGLISH</td><td COLSPAN='2'><?php echo $row1['mark2p'];?></td><td><?php echo $row1['mark2m'];?></td><td><?php echo $m2=$row1['mark2p']+$row1['mark2k']+$row1['mark2m'];?></td><td COLSPAN='2'><?php echo $row12['mark2p'];?></td><td><?php echo $row12['mark2m'];?></td><td><?php echo $m22=$row12['mark2p']+$row12['mark2k']+$row12['mark2m'];?></td><td><?php echo $tot2=$m2+$m22?></td><td colspan='3'><?php  if($tot2>=181){echo 'A1';} if($tot2<181 and $tot2>=161){echo 'A2';}if($tot2<161 && $tot2>=141){echo 'B1';}if($tot2<141 && $tot2>=121){echo 'B2';}if($tot2<121 && $tot2>=101){echo 'C1';}if($tot2<101 && $tot2>=81){echo 'C2';}if($tot2<81 && $tot2>=66){echo 'D';} if($tot2<66 ){echo 'E(Failed)';}?></td>
</tr>

<tr align="center">
<td style="text-align:left">POL. SCIENCE </td><td COLSPAN='2'><?php echo $row1['mark3p'];?></td><td><?php echo $row1['mark3m'];?></td><td><?php echo $m3=$row1['mark3p']+$row1['mark3k']+$row1['mark3m'];?></td><td COLSPAN='2'><?php echo $row12['mark3p'];?></td><td><?php echo $row12['mark3m'];?></td><td><?php echo $m23=$row12['mark3p']+$row12['mark3k']+$row12['mark3m'];?></td><td><?php echo $tot3=$m3+$m23?></td><td colspan='3'><?php  if($tot3>=181){echo 'A1';} if($tot3<181 and $tot3>=161){echo 'A2';}if($tot3<161 && $tot3>=141){echo 'B1';}if($tot3<141 && $tot3>=121){echo 'B2';}if($tot3<121 && $tot3>=101){echo 'C1';}if($tot3<101 && $tot3>=81){echo 'C2';}if($tot3<81 && $tot3>=66){echo 'D';} if($tot3<66 ){echo 'E(Failed)';}?></td>
</tr>
<?php if($row1['mark4p']>0) {?>
<tr align="center">
<td style="text-align:left">GEOGRAPHY </td><td COLSPAN='2' ><?php echo $row1['mark4p'];?></td><td><?php echo $row1['mark4m'];?></td><td><?php echo $m4=$row1['mark4p']+$row1['mark4k']+$row1['mark4m']?></td><td COLSPAN='2'><?php echo $row12['mark4p'];?></td><td><?php echo $row12['mark4m'];?></td><td><?php echo $m43=$row12['mark4p']+$row12['mark4k']+$row12['mark4m']?></td><td><?php echo $tot4=$m4+$m43?></td><td colspan='3'><?php  if($tot4>=181){echo 'A1';} if($tot4<181 and $tot4>=161){echo 'A2';}if($tot4<161 && $tot4>=141){echo 'B1';}if($tot4<141 && $tot4>=121){echo 'B2';}if($tot4<121 && $tot4>=101){echo 'C1';}if($tot4<101 && $tot4>=81){echo 'C2';}if($tot4<81 && $tot4>=66){echo 'D';} if($tot4<66 ){echo 'E(Failed)';}?></td>
</tr>
<?php }?>
<?php if($row1['mark5p']>0){?>
<tr align="center">
<td style="text-align:left">HISTORY </td><td COLSPAN='2'><?php echo $row1['mark5p'];?></td><td><?php echo $row1['mark5m'];?></td><td><?php echo $m5=$row1['mark5p']+$row1['mark5k']+$row1['mark5m']?></td><td COLSPAN='2'><?php echo $row12['mark5p'];?></td><td><?php echo $row12['mark5m'];?></td><td><?php echo $m35=$row12['mark5p']+$row12['mark5k']+$row12['mark5m']?></td><td><?php echo $tot5=$m5+$m35?></td><td colspan='3'><?php  if($tot5>=181){echo 'A1';} if($tot5<181 and $tot5>=161){echo 'A2';}if($tot5<161 && $tot5>=141){echo 'B1';}if($tot5<141 && $tot5>=121){echo 'B2';}if($tot5<121 && $tot5>=101){echo 'C1';}if($tot5<101 && $tot5>=81){echo 'C2';}if($tot5<81 && $tot5>=66){echo 'D';} if($tot5<66 ){echo 'E(Failed)';}?></td>
</tr>
<?php }?>
<tr align="center">
<td style="text-align:left">ECONOMICES </td><td COLSPAN='2'><?php echo $row1['mark11p'];?></td><td><?php echo $row1['mark11m'];?></td><td><?php echo $m51=$row1['mark11p']+$row1['mark11k']+$row1['mark11m']?></td><td COLSPAN='2'><?php echo $row12['mark11p'];?></td><td><?php echo $row12['mark11m'];?></td><td><?php echo $m351=$row12['mark11p']+$row12['mark11k']+$row12['mark11m']?></td><td><?php echo $tot51=$m51+$m351?></td><td colspan='3'><?php  if($tot51>=181){echo 'A1';} if($tot51<181 and $tot51>=161){echo 'A2';}if($tot51<161 && $tot51>=141){echo 'B1';}if($tot51<141 && $tot51>=121){echo 'B2';}if($tot51<121 && $tot51>=101){echo 'C1';}if($tot51<101 && $tot51>=81){echo 'C2';}if($tot51<81 && $tot51>=66){echo 'D';} if($tot51<66 ){echo 'E(Failed)';}?></td>
</tr>
<?php if($row1['mark7m']>0) {?>
<tr align="center">
<td style="text-align:left">SOCIOLOGY </td><td COLSPAN='2'><?php echo $row1['mark7p'];?></td><td><?php echo $row1['mark7m'];?></td><td><?php echo $m61=$row1['mark7p']+$row1['mark7k']+$row1['mark7m']?></td><td COLSPAN='2'><?php echo $row12['mark7p'];?></td><td><?php echo $row12['mark7m'];?></td><td><?php echo $m361=$row12['mark7p']+$row12['mark7k']+$row12['mark7m']?></td><td><?php echo $tot61=$m61+$m361?></td><td colspan='3'><?php  if($tot61>=181){echo 'A1';} if($tot61<181 and $tot61>=161){echo 'A2';}if($tot61<161 && $tot61>=141){echo 'B1';}if($tot61<141 && $tot61>=121){echo 'B2';}if($tot61<121 && $tot61>=101){echo 'C1';}if($tot61<101 && $tot61>=81){echo 'C2';}if($tot61<81 && $tot61>=66){echo 'D';} if($tot61<66 ){echo 'E(Failed)';}?></td>
</tr>
<?php 
$s1=$row12['mark7p'];
$s1=$row12['mark7p'];


} else{$tot61=0;$m361=0;$s1=0;}?>
<?php if($row1['mark6p']>0) {?>
<tr align="center">
<td style="text-align:left">PHY. EDU. </td><td COLSPAN='2'><?php echo $row1['mark6p'];?></td><td><?php echo $row1['mark6m'];?></td><td><?php echo $m6=$row1['mark6p']+$row1['mark6k']+$row1['mark6m']?></td><td COLSPAN='2'><?php echo $row12['mark6p'];?></td><td><?php echo $row12['mark6m'];?></td><td><?php echo $m36=$row12['mark6p']+$row12['mark6k']+$row12['mark6m']?></td><td><?php echo $tot6=$m6+$m36?></td><td colspan='3'><?php  if($tot6>=181){echo 'A1';} if($tot6<181 and $tot6>=161){echo 'A2';}if($tot6<161 && $tot6>=141){echo 'B1';}if($tot6<141 && $tot6>=121){echo 'B2';}if($tot6<121 && $tot6>=101){echo 'C1';}if($tot6<101 && $tot6>=81){echo 'C2';}if($tot6<81 && $tot6>=66){echo 'D';} if($tot6<66 ){echo 'E(Failed)';}?></td>
</tr>
<?php }?>
<?php 
if($id=='3763')
{
    


?>
	<tr align="center">
<td style="text-align:left">TOTAL </td><td COLSPAN='2'><?php echo $row1['mark1p']+$row1['mark2p']+$row1['mark3p']+$row1['mark4p']+$row1['mark5p']+$row1['mark7p']+$row1['mark11p'];?></td><td><?php echo $row1['mark1m']+$row1['mark2m']+$row1['mark3m']+$row1['mark4m']+$row1['mark5m']+$row1['mark7m']+$row1['mark11m'];?></td><td><?php echo $total =$m1+$m2+$m3+$m4+$m5+$m61+$m51?></td><td COLSPAN='2'><?php echo $row12['mark1p']+$row12['mark2p']+$row12['mark3p']+$row12['mark4p']+$row12['mark5p']+$row12['mark7p']+$row12['mark11p'];?></td><td><?php echo $row12['mark1m']+$row12['mark2m']+$row12['mark3m']+$row12['mark4m']+$row12['mark5m']+$row12['mark7m']+$row12['mark11m'];?></td><td><?php echo $total12 =$m12+$m22+$m23+$m43+$m35+$m361+$m351;?></td><td><?php echo $total_sum=$tot1+$tot2+$tot3+$tot4+$tot5+$tot61+$tot51;?></td><td colspan='3'></td>
</tr>

<?php } else{?>

<tr align="center">
<td style="text-align:left">TOTAL </td><td COLSPAN='2'><?php echo $row1['mark1p']+$row1['mark2p']+$row1['mark3p']+$row1['mark4p']+$row1['mark5p']+$row1['mark7p']+$row1['mark11p'];?></td><td><?php echo $row1['mark1m']+$row1['mark2m']+$row1['mark3m']+$row1['mark4m']+$row1['mark5m']+$row1['mark7m']+$row1['mark11m'];?></td><td><?php echo $total =$m1+$m2+$m3+$m4+$m5+$m61+$m6?></td><td COLSPAN='2'><?php echo $row12['mark1p']+$row12['mark2p']+$row12['mark3p']+$row12['mark4p']+$row12['mark5p']+$row12['mark7p']+$row12['mark11p'];?></td><td><?php echo $row12['mark1m']+$row12['mark2m']+$row12['mark3m']+$row12['mark4m']+$row12['mark5m']+$row12['mark7m']+$row12['mark11m'];?></td><td><?php echo $total12 =$m12+$m22+$m23+$m43+$m35+$m361+$m351;?></td><td><?php echo $total_sum=$tot1+$tot2+$tot3+$tot4+$tot5+$tot61+$tot51;?></td><td colspan='3'></td>
</tr>
<?php }?>

	<?php }?>


<tr align="center">
<td colspan='5'><b>PERCENTAGE&emsp;=&emsp;<B><?PHP $per1=$total/5; echo substr("$per1",0,5);?>% <?php





?>


</B> &emsp;&emsp;<?PHP if($per1>=33 )
{
    if($per1>=33 and $per1<=45)
    {
        echo"( PASS &emsp;,&emsp; DIVISION = THIRD )";
    }
    
    else if($per1>45 and $per1<60) 
    {
        echo"( PASS &emsp;,&emsp; DIVISION = SECOND )";
    }
    
     else if($per1=60 and $per1<=100) 
    {
        echo"( PASS &emsp;,&emsp; DIVISION = FIRST )";
    }
}
ELSE
{
    
}
?> </b></td>
<td colspan='4'><b>PERCENTAGE&emsp;=&emsp;<B><?PHP $per12=$total12/5; echo substr("$per12",0,5);?>% <?php





?>


</B> &emsp;&emsp;<?PHP if($per12>=33 )
{
    if($per12>=33 and $per12<=45)
    {
        echo"( PASS &emsp;,&emsp; DIVISION = THIRD )";
    }
    
    else if($per12>45 and $per12<60) 
    {
        echo"( PASS &emsp;,&emsp; DIVISION = SECOND )";
    }
    
     else if($per12=60 and $per12<=100) 
    {
        echo"( PASS &emsp;,&emsp; DIVISION = FIRST )";
    }
}
ELSE
{
    
}
?> </b></td>
<td colspan='4'><b>PERCENTAGE&emsp;=&emsp;<B><?PHP $per121=$total_sum/10; echo substr("$per121",0,5);?>% <?php





?>


</B> &emsp;&emsp;<?PHP if($per121>=33 )
{
    if($per121>=33 and $per121<=45)
    {
        echo"( PASS &emsp;,&emsp; DIVISION = THIRD )";
    }
    
    else if($per121>45 and $per121<60) 
    {
        echo"( PASS &emsp;,&emsp; DIVISION = SECOND )";
    }
    
     else if($per121=60 and $per121<=100) 
    {
        echo"( PASS &emsp;,&emsp; DIVISION = FIRST )";
    }
}
ELSE
{
    
}
?> </b></td>
</tr>
<tr align="center">
<td style="text-align:left"colspan='2'><B>PERSONAL ACTIVITIES</B></td><td colspan='2'><b>GRADE</b></td><td style="text-align:left" colspan='2'><b>BEHAVIOUR</b></td><td colspan='2'><b>GRADE</b></td><td style="text-align:left" colspan="4"><b>ACTIVITIES</b></td><td colspan='4'><b>GRADE</b></td>
</tr>
<tr align="center">
<td style="text-align:left"colspan='2'>Appearance & Personality</td><td colspan='2'><?php echo $row1['mark1e'];?></td><td colspan='2' style="text-align:left">To Programmes</td><td colspan='2'>A</td><td style="text-align:left" colspan="4">Co-Curricular</td><td colspan='4'><?php echo $row1['mark6e'];?></td>
</tr>
<tr align="center">
<td style="text-align:left"colspan='2'>Cleanliness</td><td colspan='2'><?php echo $row1['mark2e'];?></td><td colspan='2' style="text-align:left">To School Responsibility</td><td colspan='2'><?php echo $row1['mark8e'];?></td><td style="text-align:left" colspan="4">Hobby</td><td colspan='4'><?php echo $row1['mark9e'];?></td>
</tr>
<tr align="center">
<td style="text-align:left"colspan='2'>Discipline</td><td colspan='2'><?php echo $row1['mark3e'];?></td><td colspan='2' style="text-align:left">To School Mates</td><td colspan='2'><?php echo $row1['mark10e'];?></td><td style="text-align:left" colspan="4">Literary Scientific& Cultural</td><td colspan='4'>A</td>
</tr>
<tr align="center">
<td style="text-align:left"colspan='2'>Punctuality</td><td colspan='2'><?php echo $row1['mark4e'];?></td><td colspan='2' style="text-align:left">To Studies</td><td colspan='2' ><?php echo $row1['mark5e'];?></td><td style="text-align:left" colspan="4">Social Service </td><td colspan='4'><?php echo $row1['mark8e'];?></td>
</tr>
<tr align="center">
<td style="text-align:left"colspan='2'>Regularity</td><td colspan='2'><?php echo $row1['mark5e'];?></td><td colspan='2' style="text-align:left">To Teachers</td><td colspan='2'><?php echo $row1['mark7e'];?></td><td style="text-align:left" colspan="4">Sports & Game </td><td colspan='4'><?php echo $row1['mark11e'];?></td>
</tr>
<tr align="center">
<td colspan='15'><b>REMARKS</b></td>
</tr>
<tr align="center">
<td colspan='15'>&emsp;</td>
</tr>
<?php
	
			$sel50="select *from result_date where  session='$session'";
$res50=mysqli_query($conn,$sel50);
$row50=mysqli_fetch_array($res50,MYSQLI_BOTH);
$result_date=$row50['date'];

?>
<tr>
<td  align="LEFT" colspan='15' style='font-weight:bold'><SPAN style='font-weight:bold'><i>Date-: <?php echo $result_date;?><br/><br/><br/>Sign of Class Teacher</i></SPAN>&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;<i >Sign of Parents/Guardian</i>&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;<i >Sign of Principal </i></td>

</tr>



</table>

</div>
<?php
?><br/><br/><?php
}

?>
<br/>

</body>
</html>

MMCT - 2023