Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/iws8/html/indem/student/
Upload File :
Current File : /var/www/html/mmishra/iws8/html/indem/student/statsScreen.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);


require_once("../innerHeader.inc.php");
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="225" valign="top" class="blue"><?php require_once("../left.inc.php");?></td>
            <td width="5" valign="top">&nbsp;</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"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td valign="top" class="curve-top-left"></td>
                      <td valign="top" class="top-line"></td>
                      <td valign="top" class="curve-top-right"></td>
                    </tr>
                    <tr>
                      <td valign="top" class="left-line">&nbsp;</td>
                      <td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <td width="6%" valign="top">&nbsp;</td>
                            <td width="73%" valign="middle" class="main-heading">Summary  Manager(Screened)</td>
                            <td width="21%" align="right" valign="middle"><a href="JavaScript:newPopup('summaryPrintS.php')"class="link4" title="Print"><u>Print Summary</u></a> </td>
                          </tr>
                      </table></td>
                      <td valign="top" class="right-line">&nbsp;</td>
                    </tr>
                    <tr>
                      <td valign="top" class="curve-bottom-left"></td>
                      <td valign="top" class="bottom-line"></td>
                      <td valign="top" class="curve-bottom-right"></td>
                    </tr>
                </table></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" >&nbsp;</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" >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" >&nbsp;</td>
          </tr>
          
          <tr class="heading-color">
             <td align="center" >&nbsp;</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->CountRecrdScreenSt($row['state'],'gender','0');?></td>
	<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenSt($row['state'],'gender','1');?></td>
	<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenSt($row['state'],'participantStatus','0');?></td>
	<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenSt($row['state'],'participantStatus','1');?></td> 
	<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenSt($row['state'],'areaOfInterest','Physics');?></td>
	<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenSt($row['state'],'areaOfInterest','Chemistry');?></td>
	<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenSt($row['state'],'areaOfInterest','Mathematics');?></td>
	<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenSt($row['state'],'areaOfInterest','Biological Sciences');?></td>
	<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenSt($row['state'],'areaOfInterest','Engineering');?></td>
	<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenSt($row['state'],'areaOfInterest','Others');?></td>
	<td align="center" class="heading6"><?php echo $rahul->CountRecrdScreenSt($state=$row['state'],$field='',$value='');?></td> 
</tr>
<?php 
$total=$rahul->CountRecrdScreenSt($state=$row['state'],$field='',$value='');
$grandTotal=$total+$grandTotal;
$totalM=$rahul->CountRecrdScreenSt($state=$row['state'],$field='gender',$value='0');
$grandTotalM=$totalM+$grandTotalM;
$totalF=$rahul->CountRecrdScreenSt($state=$row['state'],$field='gender',$value='1');
$grandTotalF=$totalF+$grandTotalF;
$total2=$rahul->CountRecrdScreenSt($state=$row['state'],$field='participantStatus',$value='0');
$grandTotal2=$total2+$grandTotal2;
$total3=$rahul->CountRecrdScreenSt($state=$row['state'],$field='participantStatus',$value='1');
$grandTotal3=$total3+$grandTotal3;
$totalOBC=$rahul->CountRecrdScreenSt($state=$row['state'],$field='areaOfInterest',$value='Physics');
$grandTotalOBC=$totalOBC+$grandTotalOBC;
$totalGEN=$rahul->CountRecrdScreenSt($state=$row['state'],$field='areaOfInterest',$value='Chemistry');
$grandTotalGEN=$totalGEN+$grandTotalGEN;
$total6=$rahul->CountRecrdScreenSt($state=$row['state'],$field='areaOfInterest',$value='Mathematics');
$grandTotal6=$total6+$grandTotal6;
$total7=$rahul->CountRecrdScreenSt($state=$row['state'],$field='areaOfInterest',$value='Biological Sciences');
$grandTotal7=$total7+$grandTotal7;
$total8=$rahul->CountRecrdScreenSt($state=$row['state'],$field='areaOfInterest',$value='Engineering');
$grandTotal8=$total8+$grandTotal8;
$total9=$rahul->CountRecrdScreenSt($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:&nbsp;</td>
	<td align="center"  class="heading6"><?php echo $grandTotalM+$rahul->CountRecrdScreenSt($state=0,$field='gender',$value='0');?></td>
	<td align="center"  class="heading6"><?php echo $grandTotalF+$rahul->CountRecrdScreenSt($state=0,$field='gender',$value='1');?></td>
	<td align="center"  class="heading6"><?php echo $grandTotal2+$rahul->CountRecrdScreenSt($state=0,$field='participantStatus',$value='0');?></td>
	<td align="center"  class="heading6"><?php echo $grandTotal3+$rahul->CountRecrdScreenSt($state=0,$field='participantStatus',$value='1');?></td>
	<td align="center"  class="heading6"><?php echo $grandTotalOBC+$rahul->CountRecrdScreenSt($state=0,$field='areaOfInterest',$value='Physics');?></td>
	<td align="center"  class="heading6"><?php echo $grandTotalGEN+$rahul->CountRecrdScreenSt($state=0,$field='areaOfInterest',$value='Chemistry');?></td>
	<td align="center"  class="heading6"><?php echo $grandTotal6+$rahul->CountRecrdScreenSt($state=0,$field='areaOfInterest',$value='Mathematics');?></td>
	<td align="center"  class="heading6"><?php echo $grandTotal7+$rahul->CountRecrdScreenSt($state=0,$field='areaOfInterest',$value='Biological Sciences');?></td>
	<td align="center"  class="heading6"><?php echo $grandTotal8+$rahul->CountRecrdScreenSt($state=0,$field='areaOfInterest',$value='Engineering');?></td>
	<td align="center"  class="heading6"><?php echo $grandTotal9+$rahul->CountRecrdScreenSt($state=0,$field='areaOfInterest',$value='Others');?></td>
	<td align="center"  class="heading6"><?php echo $grandTotal+$rahul->CountRecrdScreenSt($state=0,$field='',$value='');?></td>
  </tr>
  </table></form></td>
                      <td valign="top" >&nbsp;</td>
                    </tr>
					<?php //$sql="Select Distinct(state) from tbl_record  ";
//$query=mysql_query($sql);?>


					  <!-- <tr>
                      <td valign="top" >&nbsp;</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" >&nbsp;</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->CountRecrdScreenSt($row['state'],'category','1');?></td>
	<td align="center" class="heading6"><?php //echo $rahul->CountRecrdScreenSt($row['state'],'category','2');?></td> 
	<td align="center" class="heading6"><?php //echo $rahul->CountRecrdScreenSt($row['state'],'category','3');?></td>
	<td align="center" class="heading6"><?php //echo $rahul->CountRecrdScreenSt($row['state'],'category','4');?></td>
	<td align="center" class="heading6"><?php //echo $rahul->CountRecrdScreenSt($row['state'],'category',5);?></td>
	<td align="center" class="heading6"><?php //echo $rahul->CountRecrdScreenSt($row['state'],'category',6);?></td>
	<td align="center" class="heading6"><?php //echo $rahul->CountRecrdScreenSt($row['state'],'category',7);?></td>
	<td align="center" class="heading6"><?php //echo $rahul->CountRecrdScreenSt($row['state'],'category',8);?></td>
	<td align="center" class="heading6"><?php //echo $rahul->CountRecrdScreenSt($row['state'],'category',9);?></td> 
<td align="center" class="heading6"><?php //echo $rahul->CountRecrdScreenSt($state=$row['state'],$field='',$value='');?></td>
</tr>
<?php /*
$total=$rahul->CountRecrdScreenSt($state=$row['state'],$field='',$value='');
$grandTotal=$total+$grandTotal;
$totalM=$rahul->CountRecrdScreenSt($state=$row['state'],$field='gender',$value='0');
$grandTotalM=$totalM+$grandTotalM;
$totalF=$rahul->CountRecrdScreenSt($state=$row['state'],$field='gender',$value='1');
$grandTotalF=$totalF+$grandTotalF;
$total2=$rahul->CountRecrdScreenSt($state=$row['state'],$field='category',$value='2');
$grandTotal2=$total2+$grandTotal2;
$total3=$rahul->CountRecrdScreenSt($state=$row['state'],$field='category',$value='3');
$grandTotal3=$total3+$grandTotal3;
$totalOBC=$rahul->CountRecrdScreenSt($state=$row['state'],$field='category',$value='4');
$grandTotalOBC=$totalOBC+$grandTotalOBC;
$totalGEN=$rahul->CountRecrdScreenSt($state=$row['state'],$field='category',$value='1');
$grandTotalGEN=$totalGEN+$grandTotalGEN;
$total6=$rahul->CountRecrdScreenSt($state=$row['state'],$field='category',$value=5);
$grandTotal6=$total6+$grandTotal6;
$total7=$rahul->CountRecrdScreenSt($state=$row['state'],$field='category',$value=6);
$grandTotal7=$total7+$grandTotal7;
$total8=$rahul->CountRecrdScreenSt($state=$row['state'],$field='category',$value=7);
$grandTotal8=$total8+$grandTotal8;
$total9=$rahul->CountRecrdScreenSt($state=$row['state'],$field='category',$value=8 );
$grandTotal9=$total9+$grandTotal9;
$total10=$rahul->CountRecrdScreenSt($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:&nbsp;</td>
	<td align="center"  class="heading6"><?php //echo $grandTotalGEN+$rahul->CountRecrdScreenSt($state=0,$field='category',$value='1');?></td>
	<td align="center"  class="heading6"><?php // echo $grandTotal2+$rahul->CountRecrdScreenSt($state=0,$field='category',$value='2');?></td>
	<td align="center"  class="heading6"><?php //echo $grandTotal3+$rahul->CountRecrdScreenSt($state=0,$field='category',$value='3');?></td>
	<td align="center"  class="heading6"><?php //echo $grandTotalOBC+$rahul->CountRecrdScreenSt($state=0,$field='category',$value='4');?></td>
	<td align="center"  class="heading6"><?php //echo $grandTotal6+$rahul->CountRecrdScreenSt($state=0,$field='category',$value='5');?></td>
	<td align="center"  class="heading6"><?php //echo $grandTotal7+$rahul->CountRecrdScreenSt($state=0,$field='category',$value='6');?></td>
	<td align="center"  class="heading6"><?php //echo $grandTotal8+$rahul->CountRecrdScreenSt($state=0,$field='category',$value='7');?></td>
	<td align="center"  class="heading6"><?php // echo $grandTotal9+$rahul->CountRecrdScreenSt($state=0,$field='category',$value='8');?></td>
	<td align="center"  class="heading6"><?php //echo $grandTotal10+$rahul->CountRecrdScreenSt($state=0,$field='category',$value='9');?></td>
	<td align="center"  class="heading6"><?php //echo $grandTotal+$rahul->CountRecrdScreenSt($state=0,$field='',$value='');?></td>
  </tr>
  </table>
                      </form></td>
                      <td valign="top" >&nbsp;</td>
                    </tr> --> 
                </table></td>
              </tr>
              <tr>
                <td valign="top">&nbsp;</td>
              </tr>
            </table></td>
          </tr>
          
        </table></td>
      </tr>
      
    </table>
<?php require_once("../footer.inc.php");?>