|
Server IP : 2a02:4780:11:1359:0:1d43:a566:2 / Your IP : 216.73.216.20 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/ppschool.org.in/public_html/back/../sale/../gsmps/admin/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
error_reporting(0);
include('../link/databaseconnection.php');
session_start();
$lg=$_SESSION['admin'];
$session=$_POST['session'];
$class=$_POST['class'];
$sel5="select *from registration where session='$session' and subject='$class' ";
$res5=mysqli_query($conn,$sel5);
while($row5=mysqli_fetch_array($res5,MYSQLI_BOTH))
{
$application=$row5['application'];
//echo $application;
$session=$row5['session'];
$class=$row5['subject'];
$exam='HALF YEARLY EXAM';
//$exam=$row['name'];
$sel1="select * from six_eightresult where session='$session' and exam='$exam' and class='$class' and rol='$application'";
$res1=mysqli_query($conn,$sel1);
?>
<html>
<head>
<script>
$(document).ready(function(){
$('#example').DataTable({
dom: 'Bfrtip',
buttons: ['copy', 'csv', 'excel', 'pdf', 'print']
});
});
</script>
<style>
.graph-7{background: url("../images/jmp mark.jpg") 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/gsback.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;}
@media print {
#p {font-size:12px;
#prin{height:130px;}
text-transform: uppercase}
}
</style>
<style type="text/css" media="print">
@page
{
size: A4; /* auto is the initial value */
margin: 6mm; /* this affects the margin in the printer settings */
}
@media print {
jk {position:relative;}
}
td{font-size:11px;
font-weight:bold;}
@media print {
#p {font-size:12px;
#prin{height:130px;}
margin-top:10px;
text-transform: uppercase;}
}
body{
-webkit-print-color-adjust:exact !important;
print-color-adjust:exact !important;
}
@media print
{
print-color-adjust: exact;
table{width:100%;}
#mo{width:230px;}
}
</style>
</head>
<body>
<?php
$s=2017;
$r=1;
$row1=mysqli_fetch_array($res1,MYSQLI_BOTH);
if($row1['mark1']=='A'){'0';}else{$row1['mark1'] ;}
if($row1['mark2']=='A'){'0';}else{$row1['mark2'] ;}
if($row1['mark3']=='A'){'0';}else{$row1['mark3'] ;}
if($row1['mark4']=='A'){'0';}else{$row1['mark4'] ;}
if($row1['mark5']=='A'){'0';}else{$row1['mark5'] ;}
if($row1['mark6']=='A'){'0';}else{$row1['mark6'] ;}
$marktotal=$row1['mark1p']+$row1['mark1n']+$row1['mark1e']+$row1['mark1m']+$row1['mark2p']+$row1['mark2n']+$row1['mark2e']+$row1['mark2m']+$row1['mark3p']+$row1['mark3n']+$row1['mark3e']+$row1['mark3m']+$row1['mark4p']+$row1['mark4n']+$row1['mark4e']+$row1['mark4m']+$row1['mark5p']+$row1['mark5n']+$row1['mark5e']+$row1['mark5m']+$row1['mark6p']+$row1['mark6n']+$row1['mark6e']+$row1['mark6m']+$row1['mark7p']+$row1['mark7n']+$row1['mark7e']+$row1['mark7m']+$row1['mark8p']+$row1['mark8n']+$row1['mark8e']+$row1['mark8m']+$row1['mark9p']+$row1['mark9n']+$row1['mark9e']+$row1['mark9m'];
$per1=$marktotal/8;
$per=$per1*100;
$sel12="select * from six_eightresult where session='$session' and exam='ANNUAL EXAM' and class='$class' and rol='$application'";
$res12=mysqli_query($conn,$sel12);
$row12=mysqli_fetch_array($res12,MYSQLI_BOTH);
$marktotal12=$row12['mark1p']+$row12['mark1n']+$row12['mark1e']+$row12['mark1m']+$row12['mark2p']+$row12['mark2n']+$row12['mark2e']+$row12['mark2m']+$row12['mark3p']+$row12['mark3n']+$row12['mark3e']+$row12['mark3m']+$row12['mark4p']+$row12['mark4n']+$row12['mark4e']+$row12['mark4m']+$row12['mark5p']+$row12['mark5n']+$row12['mark5e']+$row12['mark5m']+$row12['mark6p']+$row12['mark6n']+$row12['mark6e']+$row12['mark6m']+$row12['mark7p']+$row12['mark7n']+$row12['mark7e']+$row12['mark7m']+$row12['mark8p']+$row12['mark8n']+$row12['mark8e']+$row12['mark8m']+$row12['mark9p']+$row12['mark9n']+$row12['mark9e']+$row12['mark9m'];
$per12=$marktotal12/8;
$per=$per1*100;
$p=$marktotal;
$p1=$p/8;
$p4=$marktotal12;
$p5=$p4/8;
?>
<center>
<table frame="border" height="10%" width="100%" id="example">
<tr>
<td align="center" COLSPAN="5" border='2px solid'><img src="../images/gsh.png" style="height:130px;width:100%" id="prin" /></td>
</tr>
</table>
<div class="row graph-image graph-7" style="width:100%">
<table border="1px" width="100%" cellspacing="0">
<tr align="center" style="background-color:#7BCDF7;">
<td><p style='font-size:15px;font-weight:bold'>Class: <?php echo $row1['class'];?></p></td><td colspan="2"><p style='font-size:15px;font-weight:bold'>Academic Session : <?php echo $row1['session'];?></p></td><td ><p style='font-size:15px;font-weight:bold'>Sch. Number: <?php echo $row5['application'];?></p></td>
</tr>
<?php
?>
<tr align="">
<td>Name</td><td colspan="2" style='font-size:13px' id='p'><p style='font-size:13px'><b><?php echo $row5['name'];?></b></p></td><td rowspan="3">
<center><img src="../code/img/<?php echo $row5['picture'];?>" height="110px" width="110px"/></center></td>
</tr>
<tr align="">
<td>Father's Name</td><td colspan="2" style='font-size:13px' id='p'><p style='font-size:13px'><b> <?php echo $row5['fname'];?></b></p></td>
</tr>
<tr align="">
<td>Mother's Name</td><td colspan="2" style='font-size:13px' id='p'><p style='font-size:13px'><b> <?php echo $row5['mname'];?></b></p></td>
</tr>
<tr align="center" style="background-color:#C9EAFB;">
<td colspan="15" syle='height:18px'><p style='font-size:18px'>ACADEMIC PERFORMANCE</p></td>
</tr>
<table cellspacing="0" border="1px" width="100%">
<tr align="center" style="font-weight:bold">
<td style="text-align:left" rowspan=2''>SUBJECT</td><td colspan='6'>TERM-I(100)</td><td colspan='6'>TERM-II (100)</td><td colspan='2'>TERM - I + II (200)</td>
</tr>
<tr align="center" style="font-weight:bold">
<td>PT-I<br/>(10)</td><td>NBA<br/>(5)</td><td>SEA<br/>(5)</td><td>H .Y.<br/>(80)</td><td >MARKS OBT.<br/>(100)</td><td>GRADE</td>
<td>PT-II<br/>(10)</td><td>NBA<br/>(5)</td><td>SEA<br/>(5)</td><td>A .Y.<br/>(80)</td><td >MARKS OBT.<br/>(100)</td><td>GRADE</td><td >GRAND <BR/>TOTAL</td><td>GRADE</td>
</tr>
<tr align="center">
<td style="text-align:left">HINDI </td>
<td ><?php echo $row1['mark1p'];?></td><td><?php echo $row1['mark1n'];?></td><td><?php echo $row1['mark1e'];?></td><td><?php echo $row1['mark1m'];?></td><td><?php echo $m1=$row1['mark1p']+$row1['mark1n']+$row1['mark1e']+$row1['mark1m']?></td><td><?php if($m1>=91 && $m1<=100) {echo 'A1';}if($m1>=81 && $m1<=90) {echo 'A2';}if($m1>=71 && $m1<=80) {echo 'B1';}if($m1>=61 && $m1<=70) {echo 'B2';}if($m1>=51 && $m1<=60) {echo 'C1';}if($m1>=41 && $m1<=50) {echo 'C2';}if($m1>=33 && $m1<=40) {echo 'D1';}if($m1<=32 ) {echo 'D2';}?></td>
<td ><?php echo $row12['mark1p'];?></td><td><?php echo $row12['mark1n'];?></td><td><?php echo $row12['mark1e'];?></td><td><?php echo $row12['mark1m'];?></td><td><?php echo $m12=$row12['mark1p']+$row12['mark1n']+$row12['mark1e']+$row12['mark1m']?></td><td><?php if($p4>0) { if($m12>=91 && $m12<=100) {echo 'A1';}if($m12>=81 && $m12<=90) {echo 'A2';}if($m12>=71 && $m12<=80) {echo 'B1';}if($m12>=61 && $m12<=70) {echo 'B2';}if($m12>=51 && $m12<=60) {echo 'C1';}if($m12>=41 && $m12<=50) {echo 'C2';}if($m12>=33 && $m12<=40) {echo 'D1';}if($m12<=32 ) {echo 'D2';}}?></td>
<td ><?php if($p4>0) { echo $t1=$m1+$m12;}?></td><td><?php if($p4>0) { if($t1>=191){echo 'A1';} if($t1<191 and $t1>=181){echo 'A2';}if($t1<181 && $t1>=171){echo 'B1';}if($t1<171 && $t1>=161){echo 'B2';}if($t1<161 && $t1>=151){echo 'C1';}if($t1<151 && $t1>=141){echo 'C2';}if($t1<141 && $t1>=131){echo 'D1';} if($t1<131 ){echo 'D2';}}?></td>
</tr>
<tr align="center">
<td style="text-align:left">ENGLISH</td>
<td ><?php echo $row1['mark2p'];?></td><td><?php echo $row1['mark2n'];?></td><td><?php echo $row1['mark2e'];?></td><td><?php echo $row1['mark2m'];?></td><td><?php echo $M2=$row1['mark2p']+$row1['mark2n']+$row1['mark2e']+$row1['mark2m']?></td><td><?php if($M2>=91 && $M2<=100) {echo 'A1';}if($M2>=81 && $M2<=90) {echo 'A2';}if($M2>=71 && $M2<=80) {echo 'B1';}if($M2>=61 && $M2<=70) {echo 'B2';}if($M2>=51 && $M2<=60) {echo 'C1';}if($M2>=41 && $M2<=50) {echo 'C2';}if($M2>=33 && $M2<=40) {echo 'D1';}if($M2<=32 ) {echo 'D2';}?></td>
<td ><?php echo $row12['mark2p'];?></td><td><?php echo $row12['mark2n'];?></td><td><?php echo $row12['mark2e'];?></td><td><?php echo $row12['mark2m'];?></td><td><?php echo $M12=$row12['mark2p']+$row12['mark2n']+$row12['mark2e']+$row12['mark2m']?></td><td><?php if($p4>0) { if($M12>=91 && $M12<=100) {echo 'A1';}if($M12>=81 && $M12<=90) {echo 'A2';}if($M12>=71 && $M12<=80) {echo 'B1';}if($M12>=61 && $M12<=70) {echo 'B2';}if($M12>=51 && $M12<=60) {echo 'C1';}if($M12>=41 && $M12<=50) {echo 'C2';}if($M12>=33 && $M12<=40) {echo 'D1';}if($M12<=32 ) {echo 'D2';}}?></td>
<td ><?php if($p4>0) { echo $t2=$M2+$M12;}?></td><td><?php if($p4>0) { if($t2>=191){echo 'A1';} if($t2<191 and $t2>=181){echo 'A2';}if($t2<181 && $t2>=171){echo 'B1';}if($t2<171 && $t2>=161){echo 'B2';}if($t2<161 && $t2>=151){echo 'C1';}if($t2<151 && $t2>=141){echo 'C2';}if($t2<141 && $t2>=131){echo 'D1';} if($t2<131 ){echo 'D2';}}?></td>
</tr>
<tr align="center">
<td style="text-align:left">MATHEMATICS</td>
<td ><?php echo $row1['mark3p'];?></td><td><?php echo $row1['mark3n'];?></td><td><?php echo $row1['mark3e'];?></td><td><?php echo $row1['mark3m'];?></td><td><?php echo $M3= $row1['mark3p']+$row1['mark3n']+$row1['mark3e']+$row1['mark3m']?></td><td><?php if($M3>=91 && $M3<=100) {echo 'A1';}if($M3>=81 && $M3<=90) {echo 'A2';}if($M3>=71 && $M3<=80) {echo 'B1';}if($M3>=61 && $M3<=70) {echo 'B2';}if($M3>=51 && $M3<=60) {echo 'C1';}if($M3>=41 && $M3<=50) {echo 'C2';}if($M3>=33 && $M3<=40) {echo 'D1';}if($M3<=32 ) {echo 'D2';}?></td>
<td ><?php echo $row12['mark3p'];?></td><td><?php echo $row12['mark3n'];?></td><td><?php echo $row12['mark3e'];?></td><td><?php echo $row12['mark3m'];?></td><td><?php echo $M13= $row12['mark3p']+$row12['mark3n']+$row12['mark3e']+$row12['mark3m']?></td><td><?php if($p4>0) { if($M13>=91 && $M13<=100) {echo 'A1';}if($M13>=81 && $M13<=90) {echo 'A2';}if($M13>=71 && $M13<=80) {echo 'B1';}if($M13>=61 && $M13<=70) {echo 'B2';}if($M13>=51 && $M13<=60) {echo 'C1';}if($M13>=41 && $M13<=50) {echo 'C2';}if($M13>=33 && $M13<=40) {echo 'D1';}if($M13<=32 ) {echo 'D2';}}?></td>
<td ><?php if($p4>0) { echo $t3=$M3+$M13;}?></td>
<td><?php if($p4>0) { if($t3>=191){echo 'A1';} if($t3<191 and $t3>=181){echo 'A2';}if($t3<181 && $t3>=171){echo 'B1';}if($t3<171 && $t3>=161){echo 'B2';}if($t3<161 && $t3>=151){echo 'C1';}if($t3<151 && $t3>=141){echo 'C2';}if($t3<141 && $t3>=131){echo 'D1';} if($t3<131 ){echo 'D2';}}?></td>
</tr>
<tr align="center">
<td style="text-align:left">E.V.S.</td>
<td ><?php echo $row1['mark4p'];?></td><td><?php echo $row1['mark4n'];?></td><td><?php echo $row1['mark4e'];?></td><td><?php echo $row1['mark4m'];?></td><td><?php echo $M4=$row1['mark4p']+$row1['mark4n']+$row1['mark4e']+$row1['mark4m']?></td><td><?php if($M4>=91 && $M4<=100) {echo 'A1';}if($M4>=81 && $M4<=90) {echo 'A2';}if($M4>=71 && $M4<=80) {echo 'B1';}if($M4>=61 && $M4<=70) {echo 'B2';}if($M4>=51 && $M4<=60) {echo 'C1';}if($M4>=41 && $M4<=50) {echo 'C2';}if($M4>=33 && $M4<=40) {echo 'D1';}if($M4<=32 ) {echo 'D2';}?></td>
<td ><?php echo $row12['mark4p'];?></td><td><?php echo $row12['mark4n'];?></td><td><?php echo $row12['mark4e'];?></td><td><?php echo $row12['mark4m'];?></td><td><?php echo $M14=$row12['mark4p']+$row12['mark4n']+$row12['mark4e']+$row12['mark4m']?></td><td><?php if($p4>0) { if($M14>=91 && $M14<=100) {echo 'A1';}if($M14>=81 && $M14<=90) {echo 'A2';}if($M14>=71 && $M14<=80) {echo 'B1';}if($M14>=61 && $M14<=70) {echo 'B2';}if($M14>=51 && $M14<=60) {echo 'C1';}if($M14>=41 && $M14<=50) {echo 'C2';}if($M14>=33 && $M14<=40) {echo 'D1';}if($M14<=32 ) {echo 'D2';}}?></td>
<td ><?php if($p4>0) { echo $t4=$M4+$M14;}?></td>
<td><?php if($p4>0) { if($t4>=191){echo 'A1';} if($t4<191 and $t4>=181){echo 'A2';}if($t4<181 && $t4>=171){echo 'B1';}if($t4<171 && $t4>=161){echo 'B2';}if($t4<161 && $t4>=151){echo 'C1';}if($t4<151 && $t4>=141){echo 'C2';}if($t4<141 && $t4>=131){echo 'D1';} if($t4<131 ){echo 'D2';}}?></td>
</tr>
<tr align="center">
<td style="text-align:left">S.U.P.W.</td>
<td ><?php echo $row1['mark6p'];?></td><td><?php echo $row1['mark6n'];?></td><td><?php echo $row1['mark6e'];?></td><td><?php echo $row1['mark6m'];?></td><td><?php echo $M6=$row1['mark6p']+$row1['mark6n']+$row1['mark6e']+$row1['mark6m']?></td><td><?php if($M6>=91 && $M6<=100) {echo 'A1';}if($M6>=81 && $M6<=90) {echo 'A2';}if($M6>=71 && $M6<=80) {echo 'B1';}if($M6>=61 && $M6<=70) {echo 'B2';}if($M6>=51 && $M6<=60) {echo 'C1';}if($M6>=41 && $M6<=50) {echo 'C2';}if($M6>=33 && $M6<=40) {echo 'D1';}if($M6<=32 ) {echo 'D2';}?></td>
<td ><?php echo $row12['mark6p'];?></td><td><?php echo $row12['mark6n'];?></td><td><?php echo $row12['mark6e'];?></td><td><?php echo $row12['mark6m'];?></td><td><?php echo $M16=$row12['mark6p']+$row12['mark6n']+$row12['mark6e']+$row12['mark6m']?></td><td><?php if($p4>0) { if($M16>=91 && $M16<=100) {echo 'A1';}if($M16>=81 && $M16<=90) {echo 'A2';}if($M16>=71 && $M16<=80) {echo 'B1';}if($M16>=61 && $M16<=70) {echo 'B2';}if($M16>=51 && $M16<=60) {echo 'C1';}if($M16>=41 && $M16<=50) {echo 'C2';}if($M16>=33 && $M16<=40) {echo 'D1';}if($M16<=32 ) {echo 'D2';}}?></td>
<td ><?php if($p4>0) { echo $t5=$M6+$M16;}?></td>
<td><?php if($p4>0) { if($t5>=191){echo 'A1';} if($t5<191 and $t5>=181){echo 'A2';}if($t5<181 && $t5>=171){echo 'B1';}if($t5<171 && $t5>=161){echo 'B2';}if($t5<161 && $t5>=151){echo 'C1';}if($t5<151 && $t5>=141){echo 'C2';}if($t5<141 && $t5>=131){echo 'D1';} if($t5<131 ){echo 'D2';}}?></td>
</tr>
<tr align="center">
<td style="text-align:left">COMPUTER</td>
<td><?php echo $row1['mark7p'];?></td><td><?php echo $row1['mark7n'];?></td><td><?php echo $row1['mark7e'];?></td><td><?php echo $row1['mark7m'];?></td><td><?php echo $M7=$row1['mark7p']+$row1['mark7n']+$row1['mark7e']+$row1['mark7m']?></td><td><?php if($M7>=91 && $M7<=100) {echo 'A1';}if($M7>=81 && $M7<=90) {echo 'A2';}if($M7>=71 && $M7<=80) {echo 'B1';}if($M7>=61 && $M7<=70) {echo 'B2';}if($M7>=51 && $M7<=60) {echo 'C1';}if($M7>=41 && $M7<=50) {echo 'C2';}if($M7>=33 && $M7<=40) {echo 'D1';}if($M7<=32 ) {echo 'D2';}?></td>
<td><?php echo $row12['mark7p'];?></td><td><?php echo $row12['mark7n'];?></td><td><?php echo $row12['mark7e'];?></td><td><?php echo $row12['mark7m'];?></td><td><?php echo $M17=$row12['mark7p']+$row12['mark7n']+$row12['mark7e']+$row12['mark7m']?></td><td><?php if($p4>0) { if($M17>=91 && $M17<=100) {echo 'A1';}if($M17>=81 && $M17<=90) {echo 'A2';}if($M17>=71 && $M17<=80) {echo 'B1';}if($M17>=61 && $M17<=70) {echo 'B2';}if($M17>=51 && $M17<=60) {echo 'C1';}if($M17>=41 && $M17<=50) {echo 'C2';}if($M17>=33 && $M17<=40) {echo 'D1';}if($M17<=32 ) {echo 'D2';}}?></td>
<td ><?php if($p4>0) { echo $t6=$M7+$M17;}?></td>
<td><?php if($p4>0) { if($t6>=191){echo 'A1';} if($t6<191 and $t6>=181){echo 'A2';}if($t6<181 && $t6>=171){echo 'B1';}if($t6<171 && $t6>=161){echo 'B2';}if($t6<161 && $t6>=151){echo 'C1';}if($t6<151 && $t6>=141){echo 'C2';}if($t6<141 && $t6>=131){echo 'D1';} if($t6<131 ){echo 'D2';}}?></td>
</tr>
<tr align="center">
<td style="text-align:left">ART</td>
<td ><?php echo $row1['mark8p'];?></td><td><?php echo $row1['mark8n'];?></td><td><?php echo $row1['mark8e'];?></td><td><?php echo $row1['mark8m'];?></td><td><?php echo $M8=$row1['mark8p']+$row1['mark8n']+$row1['mark8e']+$row1['mark8m']?></td><td><?php if($M8>=91 && $M8<=100) {echo 'A1';}if($M8>=81 && $M8<=90) {echo 'A2';}if($M8>=71 && $M8<=80) {echo 'B1';}if($M8>=61 && $M8<=70) {echo 'B2';}if($M8>=51 && $M8<=60) {echo 'C1';}if($M8>=41 && $M8<=50) {echo 'C2';}if($M8>=33 && $M8<=40) {echo 'D1';}if($M8<=32 ) {echo 'D2';}?></td>
<td ><?php echo $row12['mark8p'];?></td><td><?php echo $row12['mark8n'];?></td><td><?php echo $row12['mark8e'];?></td><td><?php echo $row12['mark8m'];?></td><td><?php echo $M18=$row12['mark8p']+$row12['mark8n']+$row12['mark8e']+$row12['mark8m']?></td><td><?php if($p4>0) { if($M18>=91 && $M18<=100) {echo 'A1';}if($M18>=81 && $M18<=90) {echo 'A2';}if($M18>=71 && $M18<=80) {echo 'B1';}if($M18>=61 && $M18<=70) {echo 'B2';}if($M18>=51 && $M18<=60) {echo 'C1';}if($M18>=41 && $M18<=50) {echo 'C2';}if($M18>=33 && $M18<=40) {echo 'D1';}if($M18<=32 ) {echo 'D2';}}?></td>
<td ><?php if($p4>0) { echo $t7=$M8+$M18;}?></td>
<td><?php if($p4>0) { if($t7>=191){echo 'A1';} if($t7<191 and $t7>=181){echo 'A2';}if($t7<181 && $t7>=171){echo 'B1';}if($t7<171 && $t7>=161){echo 'B2';}if($t7<161 && $t7>=151){echo 'C1';}if($t7<151 && $t7>=141){echo 'C2';}if($t7<141 && $t7>=131){echo 'D1';} if($t7<131 ){echo 'D2';}}?></td>
</tr>
<tr align="center">
<td style="text-align:left">G.K.</td>
<td ><?php echo $row1['mark9p'];?></td><td><?php echo $row1['mark9n'];?></td><td><?php echo $row1['mark9e'];?></td><td><?php echo $row1['mark9m'];?></td><td><?php echo $M9=$row1['mark9p']+$row1['mark9n']+$row1['mark9e']+$row1['mark9m']?></td><td><?php if($M9>=91 && $M9<=100) {echo 'A1';}if($M9>=81 && $M9<=90) {echo 'A2';}if($M9>=71 && $M9<=80) {echo 'B1';}if($M9>=61 && $M9<=70) {echo 'B2';}if($M9>=51 && $M9<=60) {echo 'C1';}if($M9>=41 && $M9<=50) {echo 'C2';}if($M9>=33 && $M9<=40) {echo 'D1';}if($M9<=32 ) {echo 'D2';}?></td>
<td ><?php echo $row12['mark9p'];?></td><td><?php echo $row12['mark9n'];?></td><td><?php echo $row12['mark9e'];?></td><td><?php echo $row12['mark9m'];?></td><td><?php echo $M19=$row12['mark9p']+$row12['mark9n']+$row12['mark9e']+$row12['mark9m']?></td><td><?php if($p4>0) {if($M19>=91 && $M19<=100) {echo 'A1';}if($M19>=81 && $M19<=90) {echo 'A2';}if($M19>=71 && $M19<=80) {echo 'B1';}if($M19>=61 && $M19<=70) {echo 'B2';}if($M19>=51 && $M19<=60) {echo 'C1';}if($M19>=41 && $M19<=50) {echo 'C2';}if($M19>=33 && $M19<=40) {echo 'D1';}if($M19<=32 ) {echo 'D2';}}?></td>
<td ><?php if($p4>0) { echo $t8=$M9+$M19;}?></td>
<td><?php if($p4>0) { if($t8>=191){echo 'A1';} if($t8<191 and $t8>=181){echo 'A2';}if($t8<181 && $t8>=171){echo 'B1';}if($t8<171 && $t8>=161){echo 'B2';}if($t8<161 && $t8>=151){echo 'C1';}if($t8<151 && $t8>=141){echo 'C2';}if($t8<141 && $t8>=131){echo 'D1';} if($t8<131 ){echo 'D2';}}?></td>
</tr>
<?php $to=$marktotal/8;
if($to>91)
{
// echo 'A1';
$div='FIRST';
}
if($to<91 and $to>81)
{
//echo 'A2';
$div='FIRST';
}
if($to<81 and $to>71)
{
//echo 'B1';
$div='FIRST';
}
if($to<71 and $to>61)
{
// echo 'B2';
$div='FIRST';
}
if($to<61 and $to>51)
{
// echo 'C1';
$div='SECOND';
}
if($to<51 and $to>41)
{
// echo 'C2';
$div='SECOND';
}
if($to<=41 )
{
//echo 'D1';
$div='THIRD';
}
;?>
<?php $to1=$marktotal12/8;
if($to1>91)
{
// echo 'A1';
$div1='FIRST';
}
if($to1<91 and $to1>81)
{
//echo 'A2';
$div1='FIRST';
}
if($to1<81 and $to1>71)
{
//echo 'B1';
$div1='FIRST';
}
if($to1<71 and $to1>61)
{
// echo 'B2';
$div1='FIRST';
}
if($to1<61 and $to1>51)
{
// echo 'C1';
$div1='SECOND';
}
if($to1<51 and $to1>41)
{
// echo 'C2';
$div1='SECOND';
}
if($to1<=41 )
{
//echo 'D1';
$div1='THIRD';
}
;?>
<?php $t=$marktotal12+$marktotal;$t1=$t/16;
if($t1>91)
{
// echo 'A1';
$div11='FIRST';
$g='A1';
}
if($t1<91 and $t1>81)
{
//echo 'A2';
$div11='FIRST';
$g='A2';
}
if($t1<81 and $t1>71)
{
//echo 'B1';
$div11='FIRST';
$g='B1';
}
if($t1<71 and $t1>61)
{
// echo 'B2';
$div11='FIRST';
$g='B2';
}
if($t1<61 and $t1>51)
{
// echo 'C1';
$div11='SECOND';
$g='C1';
}
if($t1<51 and $t1>41)
{
// echo 'C2';
$div11='SECOND';
$g='C2';
}
if($t1<=41 )
{
//echo 'D1';
$div1='THIRD';
$g='D1';
}
;?>
<tr align="center" style="background-color:#C9EAFB;">
<td colspan='7'><b>OBTAIN MARKS= <?php echo $marktotal;?>/800 , PER. = <B><?PHP echo substr("$to",0,5);?>% <br/>
</B>   <b>ATTENDANCE = <B><?PHP echo $row1['att'];?>
</b></td><td colspan='6'>OBTAIN MARKS= <?php if($marktotal12>0){?><b><?php echo $marktotal12;?>/800 , PER. = <B><?PHP echo substr("$to1",0,5);?>% <br/>
</B>   <b>ATTENDANCE = <B><?PHP echo $row12['att'];?> <?php }?>
</b></td><td colspan='2'></td>
</tr>
<tr align="center" style="background-color:#C9EAFB;">
<td colspan='16'><b>OVERALL MARKS = <?php echo $t;?>/1600 , PER = <B><?PHP echo substr("$t1",0,5);?>%
<?PHP if($t1>=33 )
{
if($t1>=33 and $t1<=45)
{
echo"( RESULT = <font style='color:blue'>PASSED</font> )";
}
else if($t1>45 and $t1<60)
{
echo"( RESULT = <font style='color:blue'>PASSED</font> )";
}
else if($t1=60 and $t1<=100)
{
echo"( RESULT = <font style='color:blue'>PASSED</font> )";
}
}
ELSE
{
echo"( RESULT = <font style='color:red'>PROMOTED</font> )";
}
?> , GRADE = <?php echo $g;?></B>
</b></td>
</tr>
<tr align="center">
<td style="text-align:left"colspan='3'><B>PERSONAL ACTIVITIES</B></td><td colspan=''><b>GRADE</b></td><td style="text-align:left" colspan='3'><b>MARK RANGE</b></td><td colspan='3'><b>GRADE</b></td><td style="text-align:left" colspan="4"><b>CO-CURRICULAR ACTIVITIES</b></td><td ><b>GRADE</b></td>
</tr>
<tr align="center">
<td style="text-align:left"colspan='3'>Appearance & Personality</td><td colspan=''><?php if($m1>=91 && $m1<=100) {echo 'A1';}if($m1>=81 && $m1<=90) {echo 'A2';}if($m1>=71 && $m1<=80) {echo 'B1';}if($m1>=61 && $m1<=70) {echo 'B2';}if($m1>=51 && $m1<=60) {echo 'C1';}if($m1>=41 && $m1<=50) {echo 'C2';}if($m1>=33 && $m1<=40) {echo 'D';}if($m1<=32 ) {echo 'E';}?></td><td style="text-align:left" colspan='3'>91-100 , 81-90</td><td colspan='3'>A1 , A2</td><td style="text-align:left" colspan="4">Work Education</td><td><?php if($M2>=91 && $M2<=100) {echo 'A1';}if($M2>=81 && $M2<=90) {echo 'A2';}if($M2>=71 && $M2<=80) {echo 'B1';}if($M2>=61 && $M2<=70) {echo 'B2';}if($M2>=51 && $M2<=60) {echo 'C1';}if($M2>=41 && $M2<=50) {echo 'C2';}if($M2>=33 && $M2<=40) {echo 'D';}if($M2<=32 ) {echo 'E';}?></td>
</tr>
<tr align="center">
<td style="text-align:left"colspan='3'>Cleanliness</td><td colspan=''><?php if($M4>=91 && $M4<=100) {echo 'A1';}if($M4>=81 && $M4<=90) {echo 'A2';}if($M4>=71 && $M4<=80) {echo 'B1';}if($M4>=61 && $M4<=70) {echo 'B2';}if($M4>=51 && $M4<=60) {echo 'C1';}if($M4>=41 && $M4<=50) {echo 'C2';}if($M4>=33 && $M4<=40) {echo 'D';}if($M4<=32 ) {echo 'E';}?></td><td style="text-align:left" colspan='3'>71-80 , 61-70</td><td colspan='3'>B1 , B2</td><td style="text-align:left" colspan="4">Literary Scientific & Cultural</td><td><?php if($M7>=91 && $M7<=100) {echo 'A1';}if($M7>=81 && $M7<=90) {echo 'A2';}if($M7>=71 && $M7<=80) {echo 'B1';}if($M7>=61 && $M7<=70) {echo 'B2';}if($M7>=51 && $M7<=60) {echo 'C1';}if($M7>=41 && $M7<=50) {echo 'C2';}if($M7>=33 && $M7<=40) {echo 'D';}if($M7<=32 ) {echo 'E';}?></td>
</tr>
<tr align="center">
<td style="text-align:left"colspan='3'>Discipline</td><td colspan=''><?php if($M6>=91 && $M6<=100) {echo 'A1';}if($M6>=81 && $M6<=90) {echo 'A2';}if($M6>=71 && $M6<=80) {echo 'B1';}if($M6>=61 && $M6<=70) {echo 'B2';}if($M6>=51 && $M6<=60) {echo 'C1';}if($M6>=41 && $M6<=50) {echo 'C2';}if($M6>=33 && $M6<=40) {echo 'D';}if($M6<=32 ) {echo 'E';}?></td><td style="text-align:left" colspan='3'>51-60 , 41-50 </td><td colspan='3'>C1 , C2</td><td style="text-align:left" colspan="4">Art Education</td><td><?php if($M8>=91 && $M8<=100) {echo 'A1';}if($M8>=81 && $M8<=90) {echo 'A2';}if($M8>=71 && $M8<=80) {echo 'B1';}if($M8>=61 && $M8<=70) {echo 'B2';}if($M8>=51 && $M8<=60) {echo 'C1';}if($M8>=41 && $M8<=50) {echo 'C2';}if($M8>=33 && $M8<=40) {echo 'D';}if($M8<=32 ) {echo 'E';}?></td>
</tr>
<tr align="center">
<td style="text-align:left"colspan='3'>Punctuality</td><td colspan=''><?php if($M3>=91 && $M3<=100) {echo 'A1';}if($M3>=81 && $M3<=90) {echo 'A2';}if($M3>=71 && $M3<=80) {echo 'B1';}if($M3>=61 && $M3<=70) {echo 'B2';}if($M3>=51 && $M3<=60) {echo 'C1';}if($M3>=41 && $M3<=50) {echo 'C2';}if($M3>=33 && $M3<=40) {echo 'D';}if($M3<=32 ) {echo 'E';}?></td><td style="text-align:left" colspan='3'>33-40</td><td colspan='3'>D</td><td style="text-align:left" colspan="4">Health & physical Education </td><td>B1</td>
</tr>
<tr align="center">
<td style="text-align:left"colspan='3'>Regularity</td><td colspan=''><?php if($t5>=191){echo 'A1';} if($t5<191 and $t5>=181){echo 'A2';}if($t5<181 && $t5>=171){echo 'B1';}if($t5<171 && $t5>=161){echo 'B2';}if($t5<161 && $t5>=151){echo 'C1';}if($t5<151 && $t5>=141){echo 'C2';}if($t5<141 && $t5>=131){echo 'D1';} if($t5<131 ){echo 'D2';}?></td><td style="text-align:left" colspan='3'>32 & Below</td><td colspan='3'>E(Need Impro.)</td><td style="text-align:left" colspan="4">Sports & Game </td><td>A2</td>
</tr>
<tr align="">
<td colspan='16'><b>TEACHER'S REMARKS</b><br/><br/><br/></td>
</tr>
<tr>
<td align="LEFT" colspan='16' style='font-weight:bold'><SPAN style='font-weight:bold'><br/><i>Date-:<br/><br/><br/><br/>Class Teacher's Sign</i></SPAN>               <i >Principal's Sign</i>               <i >Parent's/Guardian's Sign</i></td>
</tr>
</table>
</div>
<?php
?><style>
@media print {
#b{page-break-before: always;}
}
</style>
<div id='b'></div><?php
}
?>
</body>
</html>