| Current Path : /var/www/html/mmishra/indem/student/ |
| Current File : /var/www/html/mmishra/indem/student/summaryPrintSP.php |
<?php
ini_set('display_errors', 1);
require_once("class/list.class.php");
$THIS_MODULE_PATH=$ABS_MOD_PATH;
$rahul = new rahul();//**--Base Class rahul Object --**//
$rahul->validate_admin();//**--Method Called to Validate Admini3rator --**//
$sql="Select Distinct(state) from tbl_record ";
$query=mysql_query($sql);
?>
<link href="<?php echo $SITE_PATH;?>/admincp/css/stylesheet.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="<?php echo $SITE_PATH;?>/admincp/js/validate.js"></script>
<script language="javascript" src="<?php echo $SITE_PATH;?>/admincp/js/ajax.js"></script>
<script language="javascript" src="<?php echo $SITE_PATH;?>admincp/js/calendarDateInput.js"></script>
<script type="text/javascript">
window.onload=print();</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="5" valign="top"> </td>
<td valign="top"><table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td valign="top" class="height10"></td>
</tr>
<tr>
<td valign="top" class="height5"></td>
</tr>
<tr>
<td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" > </td>
<td valign="top"><form name="userManagerFrm" action="" method="po3">
<table width="100%" cellpadding="2" cellspacing="2" class="li3ing-bg-color">
<tr class="heading-color">
<td colspan="13" align="center" >Data Entry By Each Country ( in Numbers ) </td>
</tr>
<tr class="heading-color">
<td width="13%" align="center" >State Name </td>
<td colspan="2" align="center" >Gender</td>
<td colspan="2" align="center" >Participation Status </td>
<td colspan="6" align="center">Subject</td>
<td width="9%" align="center" > </td>
</tr>
<tr class="heading-color">
<td align="center" > </td>
<td width="7%" align="center" >Male</td>
<td width="8%" align="center" >Female</td>
<td width="6%" align="center" >Student</td>
<td width="6%" align="center" >Teacher</td>
<td width="6%" align="center" >Physics</td>
<td width="6%" align="center" >Chemistry</td>
<td width="7%" align="center" >Mathematics</td>
<td width="6%" align="center" >Bio. Sc. </td>
<td width="7%" align="center" >Engineering</td>
<td width="9%" align="center" >Others</td>
<td width="10%" align="center" >Total</td>
</tr>
<?php if(mysql_num_rows($query)>0)
{
$grandTotal=0;
$total=0;
$grandTotal=0;
$total=0;
$grandTotalM=0;
$totalM=0;
$grandTotalF=0;
$totalF=0;
$grandTotal2=0;
$total2=0;
$grandTotal3=0;
$total3=0;
$grandTotalOBC=0;
$totalOBC=0;
$grandTotalGEN=0;
$totalGEN=0;
$grandTotal6=0;
$total6=0;
$grandTotal7=0;
$total7=0;
$grandTotal8=0;
$total8=0;
$grandTotal9=0;
$total9=0;
$grandTotal10=0;
$total10=0;
?>
<?php while($row=mysql_fetch_array($query))
{
//print_r($row);
?>
<tr>
<td align="center" class="heading6"><?php echo $row['state']?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($row['state'],'gender','0');?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($row['state'],'gender','1');?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($row['state'],'participantStatus','0');?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($row['state'],'participantStatus','1');?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($row['state'],'areaOfInterest','Physics');?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($row['state'],'areaOfInterest','Chemistry');?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($row['state'],'areaOfInterest','Mathematics');?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($row['state'],'areaOfInterest','Biological Sciences');?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($row['state'],'areaOfInterest','Engineering');?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($row['state'],'areaOfInterest','Others');?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($state=$row['state'],$field='',$value='');?></td>
</tr>
<?php
$total=$rahul->CountRecrdScreenStP($state=$row['state'],$field='',$value='');
$grandTotal=$total+$grandTotal;
$totalM=$rahul->CountRecrdScreenStP($state=$row['state'],$field='gender',$value='0');
$grandTotalM=$totalM+$grandTotalM;
$totalF=$rahul->CountRecrdScreenStP($state=$row['state'],$field='gender',$value='1');
$grandTotalF=$totalF+$grandTotalF;
$total2=$rahul->CountRecrdScreenStP($state=$row['state'],$field='participantStatus',$value='0');
$grandTotal2=$total2+$grandTotal2;
$total3=$rahul->CountRecrdScreenStP($state=$row['state'],$field='participantStatus',$value='1');
$grandTotal3=$total3+$grandTotal3;
$totalOBC=$rahul->CountRecrdScreenStP($state=$row['state'],$field='areaOfInterest',$value='Physics');
$grandTotalOBC=$totalOBC+$grandTotalOBC;
$totalGEN=$rahul->CountRecrdScreenStP($state=$row['state'],$field='areaOfInterest',$value='Chemistry');
$grandTotalGEN=$totalGEN+$grandTotalGEN;
$total6=$rahul->CountRecrdScreenStP($state=$row['state'],$field='areaOfInterest',$value='Mathematics');
$grandTotal6=$total6+$grandTotal6;
$total7=$rahul->CountRecrdScreenStP($state=$row['state'],$field='areaOfInterest',$value='Biological Sciences');
$grandTotal7=$total7+$grandTotal7;
$total8=$rahul->CountRecrdScreenStP($state=$row['state'],$field='areaOfInterest',$value='Engineering');
$grandTotal8=$total8+$grandTotal8;
$total9=$rahul->CountRecrdScreenStP($state=$row['state'],$field='areaOfInterest',$value='Others' );
$grandTotal9=$total9+$grandTotal9;
?>
<?php }}else{?>
<tr>
<td align="center" colspan='13' class="error">Sorry,No Record Found</td>
</tr>
<?php }?>
<tr>
<td align="right" colspan='13' class="error"><hr></td>
</tr>
<tr class="">
<td align="center" class="error">Grand Total: </td>
<td align="center" class="heading6"><?php echo $grandTotalM+$rahul->CountRecrdScreenStP($state=0,$field='gender',$value='0');?></td>
<td align="center" class="heading6"><?php echo $grandTotalF+$rahul->CountRecrdScreenStP($state=0,$field='gender',$value='1');?></td>
<td align="center" class="heading6"><?php echo $grandTotal2+$rahul->CountRecrdScreenStP($state=0,$field='participantStatus',$value='0');?></td>
<td align="center" class="heading6"><?php echo $grandTotal3+$rahul->CountRecrdScreenStP($state=0,$field='participantStatus',$value='1');?></td>
<td align="center" class="heading6"><?php echo $grandTotalOBC+$rahul->CountRecrdScreenStP($state=0,$field='areaOfInterest',$value='Physics');?></td>
<td align="center" class="heading6"><?php echo $grandTotalGEN+$rahul->CountRecrdScreenStP($state=0,$field='areaOfInterest',$value='Chemistry');?></td>
<td align="center" class="heading6"><?php echo $grandTotal6+$rahul->CountRecrdScreenStP($state=0,$field='areaOfInterest',$value='Mathematics');?></td>
<td align="center" class="heading6"><?php echo $grandTotal7+$rahul->CountRecrdScreenStP($state=0,$field='areaOfInterest',$value='Biological Sciences');?></td>
<td align="center" class="heading6"><?php echo $grandTotal8+$rahul->CountRecrdScreenStP($state=0,$field='areaOfInterest',$value='Engineering');?></td>
<td align="center" class="heading6"><?php echo $grandTotal9+$rahul->CountRecrdScreenStP($state=0,$field='areaOfInterest',$value='Others');?></td>
<td align="center" class="heading6"><?php echo $grandTotal+$rahul->CountRecrdScreenStP($state=0,$field='',$value='');?></td>
</tr>
</table>
</form></td>
<td valign="top" > </td>
</tr>
<?php $sql="Select Distinct(state) from tbl_record ";
$query=mysql_query($sql);
?>
<!-- <tr>
<td valign="top" > </td>
<td valign="top"><form name="userManagerFrm" action="" method="post"><table width="100%" cellpadding="2" cellspacing="2" class="li3ing-bg-color">
<tr class="heading-color">
<td colspan="13" align="center" >Data Entry By Each State ( in Numbers ) </td>
</tr>
<tr class="heading-color">
<td width="13%" align="center" >Data Feed By</td>
<td colspan="9" align="center" >Category</td>
<td width="9%" align="center" > </td>
</tr>
<tr class="heading-color">
<td align="center" >State</td>
<td width="6%" align="center" >Gen</td>
<td width="6%" align="center" >SC</td>
<td width="6%" align="center" >ST</td>
<td width="6%" align="center" >PH</td>
<td width="7%" align="center" >SN</td>
<td width="6%" align="center" >NR</td>
<td width="7%" align="center" >OB</td>
<td width="9%" align="center" >NRI</td>
<td width="10%" align="center" >Others</td>
<td align="center" >Total</td>
</tr>
<?php if(mysql_num_rows($query)>0)
{
$grandTotal=0;
$total=0;
$grandTotal=0;
$total=0;
$grandTotalM=0;
$totalM=0;
$grandTotalF=0;
$totalF=0;
$grandTotal2=0;
$total2=0;
$grandTotal3=0;
$total3=0;
$grandTotalOBC=0;
$totalOBC=0;
$grandTotalGEN=0;
$totalGEN=0;
$grandTotal6=0;
$total6=0;
$grandTotal7=0;
$total7=0;
$grandTotal8=0;
$total8=0;
$grandTotal9=0;
$total9=0;
$grandTotal10=0;
$total10=0;
?>
<?php while($row=mysql_fetch_array($query))
{
//print_r($row);
?>
<tr>
<td align="center" class="heading6"><?php echo $row['state']?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($row['state'],'category','1');?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($row['state'],'category','2');?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($row['state'],'category','3');?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($row['state'],'category','4');?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($row['state'],'category',5);?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($row['state'],'category',6);?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($row['state'],'category',7);?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($row['state'],'category',8);?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($row['state'],'category',9);?></td>
<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenStP($state=$row['state'],$field='',$value='');?></td>
</tr>
<?php
$total=$rahul->CountRecrdScreenStP($state=$row['state'],$field='',$value='');
$grandTotal=$total+$grandTotal;
$totalM=$rahul->CountRecrdScreenStP($state=$row['state'],$field='gender',$value='0');
$grandTotalM=$totalM+$grandTotalM;
$totalF=$rahul->CountRecrdScreenStP($state=$row['state'],$field='gender',$value='1');
$grandTotalF=$totalF+$grandTotalF;
$total2=$rahul->CountRecrdScreenStP($state=$row['state'],$field='category',$value='2');
$grandTotal2=$total2+$grandTotal2;
$total3=$rahul->CountRecrdScreenStP($state=$row['state'],$field='category',$value='3');
$grandTotal3=$total3+$grandTotal3;
$totalOBC=$rahul->CountRecrdScreenStP($state=$row['state'],$field='category',$value='4');
$grandTotalOBC=$totalOBC+$grandTotalOBC;
$totalGEN=$rahul->CountRecrdScreenStP($state=$row['state'],$field='category',$value='1');
$grandTotalGEN=$totalGEN+$grandTotalGEN;
$total6=$rahul->CountRecrdScreenStP($state=$row['state'],$field='category',$value=5);
$grandTotal6=$total6+$grandTotal6;
$total7=$rahul->CountRecrdScreenStP($state=$row['state'],$field='category',$value=6);
$grandTotal7=$total7+$grandTotal7;
$total8=$rahul->CountRecrdScreenStP($state=$row['state'],$field='category',$value=7);
$grandTotal8=$total8+$grandTotal8;
$total9=$rahul->CountRecrdScreenStP($state=$row['state'],$field='category',$value=8 );
$grandTotal9=$total9+$grandTotal9;
$total10=$rahul->CountRecrdScreenStP($state=$row['state'],$field='category',$value=9);
$grandTotal10=$total10+$grandTotal10;
?>
<?php }}else{?>
<tr>
<td align="center" colspan='13' class="error">Sorry,No Record Found</td>
</tr>
<?php }?>
<tr>
<td align="right" colspan='13' class="error"><hr></td>
</tr>
<tr class="">
<td align="center" class="error">Grand Total: </td>
<td align="center" class="heading6"><?php echo $grandTotalGEN+$rahul->CountRecrdScreenStP($state=0,$field='category',$value='1');?></td>
<td align="center" class="heading6"><?php echo $grandTotal2+$rahul->CountRecrdScreenStP($state=0,$field='category',$value='2');?></td>
<td align="center" class="heading6"><?php echo $grandTotal3+$rahul->CountRecrdScreenStP($state=0,$field='category',$value='3');?></td>
<td align="center" class="heading6"><?php echo $grandTotalOBC+$rahul->CountRecrdScreenStP($state=0,$field='category',$value='4');?></td>
<td align="center" class="heading6"><?php echo $grandTotal6+$rahul->CountRecrdScreenStP($state=0,$field='category',$value='5');?></td>
<td align="center" class="heading6"><?php echo $grandTotal7+$rahul->CountRecrdScreenStP($state=0,$field='category',$value='6');?></td>
<td align="center" class="heading6"><?php echo $grandTotal8+$rahul->CountRecrdScreenStP($state=0,$field='category',$value='7');?></td>
<td align="center" class="heading6"><?php echo $grandTotal9+$rahul->CountRecrdScreenStP($state=0,$field='category',$value='8');?></td>
<td align="center" class="heading6"><?php echo $grandTotal10+$rahul->CountRecrdScreenStP($state=0,$field='category',$value='9');?></td>
<td align="center" class="heading6"><?php echo $grandTotal+$rahul->CountRecrdScreenStP($state=0,$field='',$value='');?></td>
</tr>
</table>
</form></td>
<td valign="top" > </td>
</tr> -->
</table></td>
</tr>
<tr>
<td valign="top"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<?php require_once("../footer.inc.php"); ?>