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/ppschool.org.in/public_html/gsmps/code/../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']; $exam1='HALF YEARLY EXAM'; $exam='UNIT-I TEST'; //$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> <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; } } #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; } body{ -webkit-print-color-adjust:exact !important; print-color-adjust:exact !important; } @media print { print-color-adjust: exact; table{width:100%;} #mo{width:230px;} } @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} } td { height:41px; font-size:13px; } </style> <style type="text/css" media="print"> @page { size: A4; /* auto is the initial value */ margin: 8mm; /* this affects the margin in the printer settings */ } @media print { jk {position:relative;} } td{font-size:13px; font-weight:bold;} @media print { #p {font-size:13px; #prin{height:130px;} text-transform: uppercase;} } </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'] ;} $sel11="select * from six_eightresult where session='$session' and exam='$exam1' and class='$class' and rol='$application'"; $res11=mysqli_query($conn,$sel11); $row11=mysqli_fetch_array($res11,MYSQLI_BOTH); $marktotal1=$row1['mark1p']+$row1['mark1m']+$row1['mark2p']+$row1['mark2m']+$row1['mark3p']+$row1['mark3m']+$row1['mark4p']+$row1['mark4m']; $marktotal2=$row11['mark1p']+$row11['mark1m']+$row11['mark2p']+$row11['mark2m']+$row11['mark3p']+$row11['mark3m']+$row11['mark4p']+$row11['mark4m']; // $sel12="select * from six_eightresult where session='$session' and exam='UNIT-II TEST' and class='$class' and rol='$application'"; $res12=mysqli_query($conn,$sel12); $row12=mysqli_fetch_array($res12,MYSQLI_BOTH); $marktotal12=$row12['mark1p']+$row12['mark1m']+$row12['mark2p']+$row12['mark2m']+$row12['mark3p']+$row12['mark3m']+$row12['mark4p']+$row12['mark4m']; $sel13="select * from six_eightresult where session='$session' and exam='ANNUAL EXAM' and class='$class' and rol='$application'"; $res13=mysqli_query($conn,$sel13); $row13=mysqli_fetch_array($res13,MYSQLI_BOTH); $marktotal13=$row13['mark1p']+$row13['mark1m']+$row13['mark2p']+$row13['mark2m']+$row13['mark3p']+$row13['mark3m']+$row13['mark4p']+$row13['mark4m']; $per11=$marktotal1+$marktotal2+$marktotal12+$marktotal13; $per1=$per11/10; if($per1>91) { // echo 'A1'; $g='A1'; } if($per1<91 and $per1>81) { // echo 'A2'; $g='A2'; } if($per1<81 and $per1>71) { // echo 'B1'; $g='B1'; } if($per1<71 and $per1>61) { // echo 'B2'; $g='B2'; } if($per1<61 and $per1>51) { // echo 'C1'; $g='C1'; } if($per1<51 and $per1>41) { //echo 'C2'; $g='C2'; } if($per1<=41 ) { //echo 'D1'; $g='D1'; } $p=$marktotal1+$marktotal2; $p1=$p/5; $p4=$marktotal12+$marktotal13; $p5=$p4/5; ?> <center> <div class="row graph-image graph-7" style="width:100%"> <table cellspacing="0" border="1px" width="100%"> <tr> <td align="center" COLSPAN="17"><img src="../images/gsh.png" style="height:130px;width:100%" id="prin" /></td> </tr> <tr align="center" style="background-color:#7BCDF7;"> <td colspan="5"><p style='font-size:15px;font-weight:bold'>Class: <?php echo $row1['class'];?></p></td><td colspan="8"><p style='font-size:15px;font-weight:bold'>Academic Session : <?php echo $row1['session'];?></p></td><td colspan="4"><p style='font-size:15px;font-weight:bold'>Sch. Number: <?php echo $row5['application'];?></p></td> </tr> <?php ?> <tr align=""> <td colspan="6">Name</td><td colspan="7" 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 colspan="6">Father's Name</td><td colspan="7" style='font-size:13px' id='p'><p style='font-size:13px'><b> <?php echo $row5['fname'];?></b></p></td> </tr> <tr align=""> <td colspan="6">Mother's Name</td><td colspan="7" 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="17"><h3>ACADEMIC PERFORMANCE</h3></td> </tr> <tr align="center" style="font-weight:bold"> <td style="text-align:left" rowspan='2'>SUBJECT</td><td colspan='3'>UNIT-I TEST</td><td colspan='3'>HALF YEARLY</td><td>TOTAL</td><td colspan='3'>UNIT-II TEST</td><td colspan='3'>ANNUAL EXAM</td><td>TOTAL</td><td rowspan='2'>GRAND TOTAL<br/> (200)</td><td rowspan='2'>GRADE</td> </tr> <tr align="center"> <td>Oral<br/>(10)</td><td>Written<br/>(20)</td><td>M.Obt<br/>(30)</td><td>Oral<br/>(20)</td><td >Written<br/>(50)</td><td>M.Ob<br/>(70)</td><td>M.Obt<br/>(100)</td><td>Oral<br/>(10)</td><td>Written<br/>(20)</td><td>M.Obt<br/>(30)</td><td>Oral<br/>(20)</td><td >Written<br/>(50)</td><td>M.Obt.<br/>(70)</td><td>M.Obt<br/>(100)</td> </tr> <tr align="center"> <td style="text-align:left">ENGLISH </td><td><?php echo $row1['mark1p'];?></td><td><?php echo $row1['mark1m'];?></td><td><?php echo $row1['mark1p']+$row1['mark1m'];?></td><td><?php echo $row11['mark1p'];?></td><td><?php echo $row11['mark1m'];?></td><td><?php echo $row11['mark1p']+$row11['mark1m'];?></td><td><?php echo $m1=$row1['mark1p']+$row1['mark1m']+$row11['mark1p']+$row11['mark1m'];?></td><td><?php echo $row12['mark1p'];?></td><td><?php echo $row12['mark1m'];?></td><td><?php echo $row12['mark1p']+$row12['mark1m'];?></td><td><?php echo $row13['mark1p'];?></td><td><?php echo $row13['mark1m'];?></td><td><?php echo $row13['mark1p']+$row13['mark1m'];?></td><td><?php echo $m2=$row12['mark1p']+$row12['mark1m']+$row13['mark1p']+$row13['mark1m'];?></td><td><?php if($p4>0){ echo $t1=$m1+$m2;}?></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">HINDI </td><td><?php echo $row1['mark2p'];?></td><td><?php echo $row1['mark2m'];?></td><td><?php echo $row1['mark2p']+$row1['mark2m'];?></td><td><?php echo $row11['mark2p'];?></td><td><?php echo $row11['mark2m'];?></td><td><?php echo $row11['mark2p']+$row11['mark2m'];?></td><td><?php echo $m3=$row1['mark2p']+$row1['mark2m']+$row11['mark2p']+$row11['mark2m'];?></td><td><?php echo $row12['mark2p'];?></td><td><?php echo $row12['mark2m'];?></td><td><?php echo $row12['mark2p']+$row12['mark2m'];?></td><td><?php echo $row13['mark2p'];?></td><td><?php echo $row13['mark2m'];?></td><td><?php echo $row13['mark2p']+$row13['mark2m'];?></td><td><?php echo $m4=$row12['mark2p']+$row12['mark2m']+$row13['mark2p']+$row13['mark2m'];?></td><td><?php if($p4>0){ echo $t2=$m3+$m4;}?></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['mark3m'];?></td><td><?php echo $row1['mark3p']+$row1['mark3m'];?></td><td><?php echo $row11['mark3p'];?></td><td><?php echo $row11['mark3m'];?></td><td><?php echo $row11['mark3p']+$row11['mark3m'];?></td><td><?php echo $m5=$row1['mark3p']+$row1['mark3m']+$row11['mark3p']+$row11['mark3m'];?></td><td><?php echo $row12['mark3p'];?></td><td><?php echo $row12['mark3m'];?></td><td><?php echo $row12['mark3p']+$row12['mark3m'];?></td><td><?php echo $row13['mark3p'];?></td><td><?php echo $row13['mark3m'];?></td><td><?php echo $row13['mark3p']+$row13['mark3m'];?></td><td><?php echo $m6=$row12['mark3p']+$row12['mark3m']+$row13['mark3p']+$row13['mark3m'];?></td><td><?php if($p4>0){ echo $t3=$m5+$m6;}?></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">G.K. </td> <td></td><td></td><td><?php echo $row1['mark4p'];?></td> <td></td><td></td><td><?php echo $row11['mark4p'];?></td> <td><?php echo $m7=$row1['mark4p']+$row11['mark4p'];?></td><td></td> <td></td><td><?php echo $row12['mark4p'];?></td><td></td> <td></td><td><?php echo $row13['mark4p'];?></td> <td><?php echo $m8=$row12['mark4p']+$row13['mark4p'];?></td><td><?php if($p4>0){ echo $t4=$m7+$m8;}?></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">ART </td> <td></td><td></td><td><?php echo $row1['mark4m'];?></td> <td></td><td></td><td><?php echo $row11['mark4m'];?></td> <td><?php echo $m9=$row1['mark4m']+$row11['mark4m'];?></td><td></td> <td></td><td><?php echo $row12['mark4m'];?></td><td></td> <td></td><td><?php echo $row13['mark4m'];?></td> <td><?php echo $m10=$row12['mark4m']+$row13['mark4m'];?></td><td><?php if($p4>0){ echo $t5=$m9+$m10;}?></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" style="background-color:#C9EAFB;"> <td colspan=8><b> OBTAIN MARKS = <?php echo $p ;?>/500  PER = <?PHP echo substr("$p1",0,5);?>% <br/>ATTENDANCE = <?PHP echo $row11['att'];?><B></td> <td colspan=7><b> OBTAIN MARKS = <?php if($p4>0){?> <?php echo $p4 ;?>/500  PER = <?PHP echo substr("$p5",0,5);?>%<?php }?> <br/>ATTENDANCE = <?PHP echo $row13['att'];?><B></td> <td colspan=2></td> </tr> <tr align="center" style="background-color:#C9EAFB;" style='font-size:12px'> <td colspan=17'> <?php if($p4>0){?> <b> OVERALL MARKS = <?php echo $per11 ;?>/1000 , PER. = <B><?PHP echo substr("$per1",0,5);?>% ,<?php ?> </B>   <?PHP if($per1>=33 ) { if($per1>=33 and $per1<=45) { echo"( RESULT = <font style='color:blue'>PASSED</font> )"; } else if($per1>45 and $per1<60) { echo"( RESULT = <font style='color:blue'>PASSED</font> )"; } else if($per1=60 and $per1<=100) { echo"( RESULT = <font style='color:blue'>PASSED</font> )"; } } ELSE { echo"( RESULT = <font style='color:red'>PROMOTED</font> )"; } }?> </b>  <b> , GRADE : <?php echo $g;?></td> </tr> <?php $M6=92; $M7=92; $M8=92; $M2=92; $M3=92; $M5=92; ?> <tr align="center"> <td style="text-align:left"colspan='3'><B>PERSONAL ACTIVITIES</B></td><td colspan='2'><b>GRADE</b></td><td colspan='2' style="text-align:left"><b>MARK RANGE</b></td><td colspan='3'><b>GRADE</b></td><td style="text-align:left" colspan="5"><b>CO-CURRICULAR ACTIVITIES</b></td><td colspan='2'><b>GRADE</b></td> </tr> <tr align="center"> <td style="text-align:left"colspan='3'>Appearance & Personality</td><td colspan='2'><?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(FAILED)';}?></td><td colspan='2' style="text-align:left">91-100 , 81-90</td><td colspan='3'>A1 , A2</td><td style="text-align:left" colspan="5">Work Education</td><td colspan='2'><?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='2'><?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 'A2';}?></td><td colspan='2' style="text-align:left">71-80 , 61-70</td><td colspan='3'>B1 , B2</td><td style="text-align:left" colspan="5">Literary Scientific & Cultural</td><td colspan='2'><?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='2'><?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(FAILED)';}?></td><td colspan='2' style="text-align:left">51-60 , 41-50 </td><td colspan='3'>C1 , C2</td><td style="text-align:left" colspan="5">Art Education</td><td colspan='2'><?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='2'><?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(FAILED)';}?></td><td colspan='2' style="text-align:left">33-40</td><td colspan='3'>D</td><td style="text-align:left" colspan="5">Health & physical Education </td><td colspan='2'>B1</td> </tr> <tr align="center"> <td style="text-align:left"colspan='3'>Regularity</td><td colspan='2'><?php if($M5>=91 && $M5<=100) {echo 'A1';}if($M5>=81 && $M5<=90) {echo 'A2';}if($M5>=71 && $M5<=80) {echo 'B1';}if($M5>=61 && $M5<=70) {echo 'B2';}if($M5>=51 && $M5<=60) {echo 'C1';}if($M5>=41 && $M5<=50) {echo 'C2';}if($M5>=33 && $M5<=40) {echo 'D';}if($M5<=32 ) {echo 'E(FAILED)';}?></td><td colspan='2' style="text-align:left">32 & Below</td><td colspan='3'>E(Need Impro.)</td><td style="text-align:left" colspan="5">Sports & Game </td><td colspan='2'>A2</td> </tr> <tr align=""> <td colspan='17'><b>TEACHER'S REMARKS</b><br/><br/><br/><br/></td> </tr> <tr> <td align="LEFT" colspan='17' style='font-weight:bold'><SPAN style='font-weight:bold'><br/><i>Date-:<br/><br/><br/><br/><br/><br/>Sign of Class Teacher</i></SPAN>                  <i >Sign of Principal</i>                  <i >Sign of Parents/Guardian</i></td> </tr> </table> </div> <?php ?><style> @media print { #b{page-break-before: always;} } </style> <div id='b'></div><?php } ?> </body> </html>