Current File : /home/inlingua/www/sensoriumpsychologists.com/screening/franchise/view_questionnaire_report.php
<?php require_once("../franchise_between/check_franchise.php");
require_once("../franchise_between/user_details_msg_setup.php");
require_once("../franchise_between/validate_functions.php");
require_once("../franchise_between/student_funcs.php");
require_once("../franchise_between/screening_funcs.php");

$ref_no=$_GET['ref_no'];
$screening_id=$_GET['screening_id'];
$validate_obj=new validate_functions();
$validate_obj->check_isset_empty($ref_no,"ref_no");
$validate_obj->check_is_num($ref_no,"ref_no");

$student_obj=new student_funcs();
$student_obj->set_value("franchise_id",$session_id);
$student_obj->view_child($ref_no);
$child_name=$student_obj->get_value("child_name");
$email=$student_obj->get_value("email");
$registration_no=$student_obj->get_value("registration_no");
$age=$student_obj->get_value("age");
$dob_date=$student_obj->get_value("dob_date");
$gender=$student_obj->get_value("gender");
$education=$student_obj->get_value("education");
$problem=$student_obj->get_value("problem");
$school=$student_obj->get_value("school_name");
$informant=$student_obj->get_value("informant");


$validate_obj=new validate_functions();
$validate_obj->check_isset_empty($screening_id,"screening id");
$validate_obj->check_is_num($screening_id,"screening id");

$screening_obj=new screening_funcs();
$screening_obj->pre_screening_details($screening_id);
$questionnaire_name=$screening_obj->get_value("questionnaire_name");
$no_of_questions=$screening_obj->get_value("no_of_questions");
$no_of_sections=$screening_obj->get_value("no_of_sections");
$questionnaire_duration=$screening_obj->get_value("questionnaire_duration");

$vdds_percent=0;
$vddl_percent=0;
$vddn_percent=0;
$vddw_percent=0;
$vdls_percent=0;
$vdll_percent=0;
$vdr_percent=0;
$vdln_percent=0;
$vdlw_percent=0;
$vdsw_percent=0;
$vmc_percent=0;
$ad_percent=0;
$ac_percent=0;
$vc_percent=0;
$wrong_vdds=0;
$total_vdds=0;
$wrong_vddl=0;
$total_vddl=0;
$wrong_vddn=0;
$total_vddn=0;
$wrong_vddw=0;
$total_vddw=0;
$wrong_vdls=0;
$total_vdls=0;
$wrong_vdll=0;
$total_vdll=0;
$wrong_vdln=0;
$total_vdln=0;
$wrong_vdlw=0;
$total_vdlw=0;
$wrong_vdsw=0;
$total_vdsw=0;
$wrong_vmc=0;
$total_vmc=0;
$wrong_ad=0;
$total_ad=0;
$wrong_ac=0;
$total_ac=0;
$wrong_vc=0;
$wrong_age=0;
$total_speed=0;
$total_vc=0;
$screening_obj->student_questionnaire_report($ref_no,$screening_id,$vdds_percent,$vddl_percent,$vddn_percent,$vddw_percent,$vdls_percent,$vdll_percent,$vmc_speed,$vdln_percent,$vdlw_percent,$vdsw_percent,$vmc_percent,$ad_percent,$ac_percent,$vc_percent,$sf_percent,$wrong_vdds,$total_vdds,$wrong_vddl,$total_vddl,$wrong_vddn,$total_vddn,$wrong_vddw,$total_vddw,$wrong_vdls,$total_vdls,$wrong_vdll,$total_vdll,$wrong_vdln,$total_vdln,$wrong_vdlw,$total_vdlw,$wrong_vdsw,$total_vdsw,$wrong_vmc,$total_vmc,$wrong_ad,$total_ad,$wrong_ac,$total_ac,$wrong_vc,$total_vc,$wrong_sf,$total_sf,$wrong_age,$total_speed);
$screening_date=$screening_obj->get_value("screening_date");

$codematch=array("6.0","6.0","6.0","6.2","6.4","6.5","6.6","6.7","6.7","6.8","6.9","6.10","6.10","6.11","6.11","7.0","7.1","7.2","7.2","7.3","7.4","7.4","7.5","7.5","7.6","7.7","7.7","7.8","7.9","7.10","8.0","8.1","8.2","8.3","8.4","8.5","8.6","8.6","8.7","8.8","8.9","8.10","8.11","9.0","9.1","9.2","9.3","9.4","9.5","9.6","9.6");


?>

<?php include("../include/header.php");?>


<style>
@media print {
	#header_container,#nav_container,.header-section,.nav-section,.newsletter-section,.footer-section{
	display:none;
	}
	body{
	padding-top:150px;
	}
	.tables_fieldset{
	color:#000;
	}
	legend{
	color:#000;
	}
	#print_button{
	display:none;
	}
}
</style>
<style>
*{margin:0;padding:0;}
html, body{margin:0;padding:0;font-family:Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;}
.wrapper{margin:0 auto;width:1000px;border:1px solid #2484FB;background-color:#5AA57C;}
.header .logo{text-align:right;width:665px;float:right;margin:10px 0 0 0;}
.header .logo h1{color:#ffffff;padding-right:135px;font-style:italic;text-transform:uppercase;}
.header .logo p{color:#ffffff;padding-left:200px;text-transform:capitalize;font-weight:bold;text-align: center;}
//.header .logo_pic{width:200px;float:right;}
.header .logo_pic img{width:320px;float:right;height:100px;}
.header sup{background-color:#2484FB;color:#fff;border-radius:19px;padding:0 12px;}
.letter_content fieldset{background-color:#ffffff; padding:0px 10px;width:100%;}

.footer-down{background-color:#2484FB;padding:0 0 0 25px;}
.footer-down .footer_text1{color:#FFF;text-align:center;padding:15px 0px;}
.footer-down p{line-height:30px;}
.sensorium_centers{color:#F6E43B;}
.sensorium_address{color:#fff;}
.sensorium_phone{color:#F6E43B}
</style>


<div id="main_container" class="container">

  <div id="main">
 <div class="wrapper">
<div class="header">
	<div class="logo"><h1>Sensorium <sup>&trade;</sup></h1><p>Multidisciplinary Child Development Clinics</p>
	</div>
		<div class="logo_pic"><img src="images/logo.jpg" />
		</div>
</div> 
 
 <div class="letter_content"> 
  <br><br><br>
    <fieldset>
    <legend style="padding-top:24px;">STUDENT SCREENING REPORT <input type="button" onClick="window.print();" id="print_button" value="Print Report" /></legend>
    <table border="0" class="tables_fieldset" cellpadding="3px" cellspacing="0">
      <tr>
        <td colspan="3" style="font-weight:bold;text-decoration:underline;font-size:16px;">STUDENT DETAILS</td>
      </tr>
	  <tr>
        <td colspan="3" style="font-weight:bold;text-decoration:underline;color:#FFF;">----</td>
      </tr>
      <tr style="height: 20px;">
        <td style="font-weight:bold;width:150px;">Admission No</td>
        <td style="font-weight:bold;width:20px;">:</td>
        <td><?php echo($registration_no);?>&nbsp;</td>
      </tr>
      <tr style="height: 20px;">
        <td style="font-weight:bold;">Name</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($child_name);?>&nbsp;</td>
      </tr>
      <tr style="height: 20px;">
        <td style="font-weight:bold;">Email</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($email);?>&nbsp;</td>
      </tr>
      <tr style="height: 20px;">
        <td style="font-weight:bold;">Date of Birth</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($dob_date);?>&nbsp;</td>
      </tr>
      <tr>
        <td style="font-weight:bold;">Age</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($age);?> years&nbsp;</td>
      </tr>
      <tr style="height: 20px;">
        <td style="font-weight:bold;">Gender</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($gender);?>&nbsp;</td>
      </tr>
      <tr style="height: 20px;">
        <td style="font-weight:bold;">Date of Screening</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($screening_date);?>&nbsp;</td>
      </tr>
      <tr style="height: 20px;">
        <td style="font-weight:bold;">Education</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($education);?>&nbsp;</td>
      </tr>
      <tr style="height: 20px;">
        <td style="font-weight:bold;">School</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($school);?>&nbsp;</td>
      </tr> 
      <tr style="height: 20px;">
        <td style="font-weight:bold;">Chief Complaint</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($problem);?>&nbsp;</td>
      </tr>
	  <tr style="height: 20px;">
        <td style="font-weight:bold;">Informant</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($informant);?>&nbsp;</td>
      </tr>
      <tr style="height:30px;">
        <td colspan="3"></td>
      </tr>
      <tr>
        <td colspan="3" style="font-weight:bold;text-decoration:underline;font-size:20px;">LEARNING SCALE</td>
      </tr>
	  <tr>
        <td colspan="3" style="font-weight:bold;text-decoration:underline;font-size:20px;color:#FFF;">-----</td>
      </tr>
      <tr>
        <td colspan="3">
          <table border="1" id="report" style="font-weight:400;width:100%; border:1px solid;" cellspacing="0" cellpadding="3px"> 
            <tr style="font-weight:bold;">
              <td style="padding:10px;">AREA</td>
              <td style="padding-right:10px;">ERRORS TOTAL ALLOWED/ITEMS</td>
              <td style="padding-right:10px;">ERRORS MADE</td>
              <td style="padding-right:10px;">TOTAL QUESTIONS</td>
              <td style="padding-right:10px;">WRONG ANSWERS</td>
            </tr>
            <tr style="font-weight:bold;">
              <td style="padding-right:10px;">A : Visual Discrimination</td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
            </tr>
            <tr style="font-weight:bold;">
              <td style="padding-left:10px;padding-right:10px;">1. Differences</td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td style="padding-right:10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I . Symbol</td>
              <td style="text-align:center;">20%</td>
              <td
              <?php 
			  if($vdds_percent>20)
			  {
				  echo(" style=\"text-align:center;color:#F00;\"");
			  }
			  else
			  {
				  echo(" style=\"text-align:center;\"");
			  }
			  ?>
              <?php echo($vdds_percent."%");?> </td>
              <td><?php echo($total_vdds);?></td>
              <td><?php echo($wrong_vdds);?></td>
            </tr>
            <tr>
              <td style="padding-right:10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;II . Letters</td>
              <td style="text-align:center;">20%</td>
              <td
              <?php
			  if($vddl_percent>20)
			  {
				  echo(" style=\"text-align:center;color:#F00;\"");
			  }
			  else
			  {
				  echo(" style=\"text-align:center;\"");
			  }
			  ?>
              ><?php echo($vddl_percent."%");?></td>
              <td><?php echo($total_vddl);?></td>
              <td><?php echo($wrong_vddl);?></td>
            </tr>
            <tr>
              <td style="padding-right:10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;III . Numbers</td>
              <td style="text-align:center;">20%</td>
              <td
              <?php
			  if($vddn_percent>20)
			  {
				  echo(" style=\"text-align:center;color:#F00;\"");
			  }
			  else
			  {
				  echo(" style=\"text-align:center;\"");
			  }
			  ?>
              ><?php echo($vddn_percent."%");?></td>
              <td><?php echo($total_vddn);?></td>
              <td><?php echo($wrong_vddn);?></td>
            </tr>
            <tr>
              <td style="padding-right:10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IV . Words</td>
              <td style="text-align:center;">20%</td>
              <td
              <?php
			  if($vddw_percent>20)
			  {
				  echo(" style=\"text-align:center;color:#F00;\"");
			  }
			  else
			  {
				  echo(" style=\"text-align:center;\"");
			  }
			  ?>
              ><?php echo($vddw_percent."%");?></td>
              <td><?php echo($total_vddw);?></td>
              <td><?php echo($wrong_vddw);?></td>
            </tr>
            <tr style="font-weight:bold;">
              <td style="padding-left:10px;padding-right:10px;">2. Likeness</td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td style="padding-right:10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I . Symbol</td>
              <td style="text-align:center;">20%</td>
              <td
              <?php 
			  if($vdls_percent>20)
			  {
				  echo(" style=\"text-align:center;color:#F00;\"");
			  }
			  else
			  {
				  echo(" style=\"text-align:center;\"");
			  }
			  ?>
              ><?php echo($vdls_percent."%");?></td>
              <td><?php echo($total_vdls);?></td>
              <td><?php echo($wrong_vdls);?></td>
            </tr>
            <tr>
              <td style="padding-right:10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;II . Letters</td>
              <td style="text-align:center;">20%</td>
              <td
              <?php
			  if($vdll_percent>20)
			  {
				  echo(" style=\"text-align:center;color:#F00;\"");
			  }
			  else
			  {
				  echo(" style=\"text-align:center;\"");
			  }
			  ?>
              ><?php echo($vdll_percent."%");?></td>
              <td><?php echo($total_vdll);?></td>
              <td><?php echo($wrong_vdll);?></td>
            </tr>
            <tr>
              <td style="padding-right:10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;III . Numbers</td>
              <td style="text-align:center;">20%</td>
              <td
              <?php
			  if($vdln_percent>20)
			  {
				  echo(" style=\"text-align:center;color:#F00;\"");
			  }
			  else
			  {
				  echo(" style=\"text-align:center;\"");
			  }
			  ?>
              ><?php echo($vdln_percent."%");?></td>
              <td><?php echo($total_vdln);?></td>
              <td><?php echo($wrong_vdln);?></td>
            </tr>
            <tr>
              <td style="padding-right:10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IV . Words</td>
              <td style="text-align:center;">20%</td>
              <td
              <?php
			  if($vdlw_percent>20)
			  {
				  echo(" style=\"text-align:center;color:#F00;\"");
			  }
			  else
			  {
				  echo(" style=\"text-align:center;\"");
			  }
			  ?>
              ><?php echo($vdlw_percent."%");?></td>
              <td><?php echo($total_vdlw);?></td>
              <td><?php echo($wrong_vdlw);?></td>
            </tr>
            <tr>
              <td style="padding-left:10px;padding-right:10px;font-weight:bold;">3. Sight Reading</td>
              <td style="text-align:center;">12%</td>
              <td
              <?php
			  if($vdsw_percent>12)
			  {
				  echo(" style=\"text-align:center;color:#F00;\"");
			  }
			  else
			  {
				  echo(" style=\"text-align:center;\"");
			  }
			  ?>
              ><?php echo($vdsw_percent."%");?></td>
              <td><?php echo($total_vdsw);?></td>
              <td><?php echo($wrong_vdsw);?></td>
            </tr>
            <tr>
              <td colspan="5">&nbsp;</td>
            </tr>
            <tr>
              <td style="padding-right:10px;font-weight:bold;">B : Visuo-Motor Coordination</td>
              <td style="text-align:center;">20%</td>
              <td
              <?php
			  if($vmc_percent>20)
			  {
				  echo(" style=\"text-align:center;color:#F00;\"");
			  }
			  else
			  {
				  echo(" style=\"text-align:center;\"");
			  }
			  ?>
              ><?php echo($vmc_percent."%");?></td>
              <td><?php echo($total_vmc);?></td>
              <td><?php echo($wrong_vmc);?></td>
            </tr>
            
			
			  <tr >
              <td style="padding-left:20px;">	i. Writing Speed</td>
              <td style="text-align:center;"></td>
              
              <td <?php echo(" style=\"text-align:center;\""); ?> >
			  <?php
			  if($vmc_speed=='1')
			  {
				  echo("Average");
				  $Writing_Speed='70';
			  }
			  if($vmc_speed=='2')
			  {
				  echo("Below Average");
				  $Writing_Speed='30';
			  }
			  
			  ?>
			  
			  </td>
			  <td>
             1</td>
              <td>0</td>
            </tr>
          
			
			<tr>
              <td colspan="5">&nbsp;</td>
            </tr>
            <tr style="font-weight:bold;">
              <td style="padding-right:10px;">C:  Auditory Discrimination</td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td style="padding-right:10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Beginning, Ending, Vowel sounds</td>
              <td style="text-align:center;">13.33%</td>
              <td
              <?php
			  if($ad_percent>13.33)
			  {
				  echo(" style=\"text-align:center;color:#F00;\"");
			  }
			  else
			  {
				  echo(" style=\"text-align:center;\"");
			  }
			  ?>
              ><?php echo($ad_percent."%");?></td>
              <td><?php echo($total_ad);?></td>
              <td><?php echo($wrong_ad);?></td>
            </tr>
            <tr>
              <td colspan="5">&nbsp;</td>
            </tr>
            <tr>
              <td style="padding-right:10px;font-weight:bold;">D: Auditory Comprehension</td>
              <td style="text-align:center;">20%</td>
              <td
              <?php
			  if($ac_percent>20)
			  {
				  echo(" style=\"text-align:center;color:#F00;\"");
			  }
			  else
			  {
				  echo(" style=\"text-align:center;\"");
			  }
			  ?>
              ><?php echo($ac_percent."%");?></td>
              <td><?php echo($total_ac);?></td>
              <td><?php echo($wrong_ac);?></td>
            </tr>
            <tr>
              <td colspan="5">&nbsp;</td>
            </tr>
            <tr style="font-weight:bold;">
              <td style="padding-right:10px;">E: Higher Cognitive Function</td>
              <td></td>
              <td></td>
              <td></td>
              <td></td>
            </tr>
            <tr>
              <td style="padding-right:10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I. Vocabulary</td>
              <td style="text-align:center;">20%</td>
              <td
              <?php
			  if($vc_percent>20)
			  {
				  echo(" style=\"text-align:center;color:#F00;\"");
			  }
			  else
			  {
				  echo(" style=\"text-align:center;\"");
			  }
			  ?>
              ><?php echo($vc_percent."%");?></td>
              <td><?php echo($total_vc);?></td>
              <td><?php echo($wrong_vc);?></td>
            </tr>
            <tr>
              <td style="padding-right:10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;II. Sentence Formation</td>
              <td style="text-align:center;">20%</td>
              <td 
              <?php
			  if($sf_percent>20)
			  {
				  echo(" style=\"text-align:center;color:#F00;\"");
			  }
			  else 
			  {
				  echo(" style=\"text-align:center;\"");
			  }
			  ?>
              ><?php echo($sf_percent."%");?></td>
              <td><?php echo($total_sf);?></td>
              <td><?php echo($wrong_sf);?></td>
            </tr>
			
			<tr style="font-weight:bold;">
              <td>F: Reading Skill</td>
			  <td></td>
			  <td></td>
			  <td></td>
			  <td></td>
			  </tr>
			  
			  <tr >
              <td style="padding-left:10px;">	i. Reading Speed</td>
              <td style="text-align:center;"></td>
              
              <td style="text-align:center;" >
			  <?php
			  if($total_speed=='2')
			  {
				  echo("Below Average");
				  $Reading_Speed="30";
			  }
			  if($total_speed=='1')
			  
			  {
				  echo(" Average");
				  $Reading_Speed="70";
			  }
			  ?>
			  
			  </td>
			  <td>
             1</td>
              <td>0</td>
            </tr>
          
		  <tr >
              <td style="padding-left:10px;">	ii. Reading Age </td>
              <td ></td>
              <td style="text-align:center;">
             <?php echo ($codematch[$wrong_age]).' Years';?></td>
              <td>1</td>
              <td>0</td>
            </tr>
          
		  
		  </table>
        </td>
      </tr>
	  
	  <tr>
	  <td colspan="3" style="font-size:16px;font-weight:400;">
	  <br/><br/>
	  <strong>A. Child has performed optimally in the following areas:</strong><br/><br/>
	  
<? if( $vdds_percent<=20  && $vddl_percent<=20 && $vddn_percent<=20 && $vddw_percent<=20 )
{
echo $VdD='Visual Discrimination Differences'.'<br>';
}else{
$VdD='';	
}

if( $vdls_percent<=20 && $vdll_percent<=20  && $vdln_percent<=20 && $vdlw_percent<=20 )
{ 
echo $VdL='Visual Discrimination Likeness'.'<br/>';
}else {
$VdL='';	
}

if($ad_percent<=13.33)
{
echo 'Auditory Discrimination'.'<br/>';
}	
if($vdsw_percent<=12)
{
	echo 'Sight Reading'.'<br/>';
}

if($Reading_Speed=='70')
{
	echo 'Reading Skills'.'<br/>';
}
if($vmc_percent<=20)
{
	echo 'Visual Motor Coordination'.'<br/>';
}

if($Writing_Speed=='70')
{
	echo 'Writing Speed'.'<br/>';
}
if($ac_percent<=20)
{
	echo 'Auditory Comprehension'.'<br/>';
}
if(($sf_percent<=20  && $vc_percent<=20) && ($total_vc>0 && $total_sf>0))
{
	echo 'Higher Cognitive Function'.'<br/>';
}

	  ?>

<br/><br/><br/><br/><br/><br/>


	

</td>

	  </tr>
	  
<tr>
        <td colspan="3" style="font-size:16px;font-weight:400;color:#FFF;padding-bottom:50px;">
		<strong>-----</strong><br/><br/>
		<div style="margin-top: 30px;font-size:20px;font-weight:bold;text-align:center;color:#FFF;">----</div>
		
		</td>
		</tr>	  
	  
	  <tr>
        <td colspan="3" style="font-size:16px;font-weight:400;">
		<strong>B. Following chart is showing the percentage of difficulty levels and the areas of remediation: </strong><br/>
		<div style="margin-top: 30px;font-size:20px;font-weight:bold;text-align:center;">Areas For Remediation</div>
		<canvas id="bar_chart" style="height:250px;margin-top:20px;width:100%;"></canvas>
		</td>
		</tr>
      <tr>
        <td colspan="3" style="font-size:16px;font-weight:400;">
        <br><br>
        <span style="font-weight:bold;text-decoration:underline;font-size:20px;">CONCLUSION-</span><br><br>
Due to difficulty in above mentioned sensory processes child is facing difficulties in:<br/><br/>


<?php
$error_in_vd="no";
$error_in_vmc="no";
$error_in_ad="no";
$error_in_ac="no";
$error_in_vdsw="no";
$error_in_rskill="no";
$error_in_wskill="no";
$error_in_hc="no";
if(($vdds_percent>20)||($vddl_percent>20)||($vddn_percent>20)||($vddw_percent>20)||($vdsw_percent>12))
{
	$error_in_vd="yes";
}
if($vmc_percent>0)
{
	$error_in_vmc="yes";
}
if($ad_percent>13.33)
{
	$error_in_ad="yes";
}
if($ac_percent>20)
{
	$error_in_ac="yes";
}

if($vdsw_percent>12)
{
$error_in_vdsw="yes";
}
if($Reading_Speed<30)
{
$error_in_rskill="yes";
}
if($Writing_Speed<30)
{
$error_in_wskill="yes";
}
if($vc_percent>20 || $sf_percent>20)  
{
$error_in_hc="yes";
}
$VdD=max(array($vdds_percent, $vddl_percent, $vddn_percent, $vddw_percent));
$VdL=max(array($vdls_percent, $vdll_percent, $vdln_percent, $vdln_percent));
//echo 'tttt-->'.$VdD.$VdL;


if($VdD<=20)
{
$VdD=0;	
}	
if($VdL<=20)
{
$VdL=0;	
}
if($ad_percent<=13.33)
{
$ad_percent	=0;
}
if($vdsw_percent<=12)
{
	$vdsw_percent=0;
}	
if($Reading_Speed<=70)
{
$Reading_Speed=0;	
}
	if($vmc_percent<=20)
	{
		$vmc_percent=0;
	}
if($Writing_Speed<=70)
{
$Writing_Speed=0;	
}	
if($ac_percent<=20)
	{
		$ac_percent=0;
	}
	if($sf_percent<=20 && $vc_percent<=20)
	{
	$sf_percent=0;	
	}	else{
$sf_percent=max(array($sf_percent, $vc_percent));	
	}
	$title=array(
				"Visual Discrimination Differences", 
				"Visual Discrimination Likeness", 
				"Auditory Discrimination", 
				"Sight Reading", 
				"Reading Skills", 
				"Visual Motor Coordination", 
				"Writing Speed", 
				"Auditory Comprehension",
				"Higher Cognitive Function");
	//print_r($title);
	 $value= array($VdD,
					$VdL,
					$ad_percent,
					$vdsw_percent, 
					$Reading_Speed, 
					$vmc_percent, 
					$Writing_Speed, 
					$ac_percent,
					$sf_percent);
					//print_r($value);
 
	$alfabet=array("","A. ","B. ","C. ","D. ","E. ","F. ","G. ","H.	","I. ");
	

$CONCLUSION='';
$CONCLUSION=array();
?>
<ul style="list-style: none;">
<?


$CONCLUSION[].='<li><div style="padding-left: 20px;margin-top: -17px;"><strong>Visual discrimination deficits</strong> causing poor processing of visual information affecting optimal levels of reading, copying and spelling abilities.</div></li>'; 
$CONCLUSION[].='<li><div style="padding-left: 20px;margin-top: -17px;"><strong>Visual discrimination deficits</strong> causing poor processing of visual information affecting optimal levels of reading, copying and spelling abilities.</div></li>';

$CONCLUSION[].='<div style="padding-left: 20px;margin-top: -17px;"><strong>Auditory discrimination</strong> difficulty causing poor processing of phonological awareness implicating difficulty in discriminating and blending sounds to form a whole word and affecting the ability to encode the written text.</div>';

$CONCLUSION[].='<strong>Poor sight reading -</strong> The child is not able to encode the <strong>sight words </strong>due to poor visual processing and motoric actions.</li>';
$CONCLUSION[].="<div style='padding-left: 20px;margin-top: -17px;'>	<strong>Reading</strong> accuracy and fluency is affected causing difficulty in learning vocabulary and comprehension. Child's functional levels are not age appropriate'.</div>";
$CONCLUSION[].="<strong>Visual motor incoordination</strong> deficits are affecting the child's grapho-motor competence.";
$CONCLUSION[].='Writing speed is not age appropriate.';


$CONCLUSION[].='<strong>Poor comprehension</strong> is affected leading to difficulty in deciphering the meaning of words and understanding the text.';

  $CONCLUSION[].='<div style="padding-left: 20px;margin-top: -17px;">	<strong>Higher cognitive</strong> areas are affected due to poor processing at lower brain function.<br/> <strong>Vocabulary</strong> is affected leading to poor comprehension and written expression abilities.</div>';

$y=1;
//echo '<pre>';print_r($title); print_r($value);
for($j=0; $j<count($value); $j++){
					
					if($value[$j]>0)
					{
						if($j==1)
						{
						//echo '<li>'.$alfabet[$y].$CONCLUSION[0].'</li>'; 
						$y--;
						}else {
				echo '<li>'.$alfabet[$y].$CONCLUSION[$j].'</li>'; 
						}
				$y++;
					}
				}
?>
</ul>
<br/><br/><br/><br/>

<?
$recomd=array(			
'Linguistic reading program and  Visual perceptual training',
'',
'Linguistic reading program',
'Enhanced learning program and Whole word approach along with visual perceptual training',
'Lingustic reading program',
'Magneto graphics- A neurocognitive handwriting program',
'',
'Enhanced learning program',
'',
);

	echo('<span style="font-weight:bold;text-decoration:underline;font-size:20px;">Recommendations-</span>:');
	echo ("<br>");
	echo("<ul style=\"padding-left:25px;line-height:30px;\">");
for($x=0; $x<count($value); $x++)
	{
		
    if($value>0)
	{
			
		if(	$recomd[$x]!='' && $value[$x]>0)
		{
			
	echo("<li><span style=\"font-weight:bold;color:#F00;\"></span> ".$recomd[$x]."</li>");
		}
	}
}
	echo("</ul>");

?>
        </td>
      </tr>
    </table>
    </fieldset>
  </div>
  
  
 <div class="footer-down"><p class="footer_text1">Managed by Shristi Parents Support Group(Regd.)<br>(Recognised under PWD Act, Delhi Govt.)<br>(RCI recognised courses)</p>
<p class="footer_text2" style="text-align:center;"><span class="sensorium_centers">Delhi Center:</span><span class="sensorium_address"> C-272, Opp. Mahila College, Vivek Vihar, Vikas Marg Extn., Delhi-110092</span>&nbsp;&nbsp; <span class="sensorium_phone">Ph.:</span><span class="sensorium_address"> 011-65095147</span></p>
<p style="text-align:center;"><span class="sensorium_centers">Vasundhara Center:</span> <span class="sensorium_address"> Plot No. 1, Sect. 10D, Vasundara Ghaziabad</span> &nbsp;&nbsp; <span class="sensorium_phone">ph.:</span><span class="sensorium_address"> 0120-3241072</span></p>
<p style="text-align:center;"><span class="sensorium_centers">Greater Noida:</span> <span class="sensorium_address"> By Appointment </span>&nbsp;&nbsp; <span class="sensorium_phone">ph.:</span><span class="sensorium_address"> 8860061027</span></p>
<p style="text-align:center;"><span class="sensorium_centers">Website:</span><span class="sensorium_address"> www.sensoriumpsychologists.com</span> &nbsp;&nbsp; <span class="sensorium_centers">E-mail:</span> <span class="sensorium_address"> sensorium.org@gmail.com</span></p>
</div>   
    
  </div>
</div>
  <br><br><br><br>
 </div> 
 </div> 
  
<script>
function start_exam()
{
	var ans=confirm("Are you sure you want to start exam now ?");
	if(ans==true)
	{
		document.my_form.submit();
	}
}
</script>
<?php /*?>
<script>
speak('When');
// say a message
function speak(text, callback) {
    var u = new SpeechSynthesisUtterance();
	
    u.text = text;
    u.lang = 'en-US';
 	u.rate = 0.1;
	u.pitch = 1;
    u.onend = function () {
        if (callback) {
            callback();
        }
    };
 
    u.onerror = function (e) {
        if (callback) {
            callback(e);
        }
    };
 
    speechSynthesis.speak(u);
}
</script><?php */?>
<!-- Jquery Core Js -->
    <script src="jquery/jquery.min.js"></script>

    <!-- Bootstrap Core Js -->
    <script src="bootstrap/js/bootstrap.js"></script>	
<!-- Chart Plugins Js -->
    <script src="chartjs/Chart.bundle.js"></script>
	
	<?php 


	//print_r($value);
	?>
	
    						
<script>
$(function () {
    //new Chart(document.getElementById("line_chart").getContext("2d"), getChartJs('line'));
    new Chart(document.getElementById("bar_chart").getContext("2d"), getChartJs('bar'));
    //new Chart(document.getElementById("radar_chart").getContext("2d"), getChartJs('radar'));
    //new Chart(document.getElementById("pie_chart").getContext("2d"), getChartJs('pie'));
});

function getChartJs(type) {
    var config = null;

    if (type === 'line') {
        config = {
            type: 'line',
            data: {
                labels: ["January", "February", "March", "April", "May", "June", "July"],
                datasets: [{
                    label: "My First dataset",
                    data: [65, 59, 80, 81, 56, 55, 40],
                    borderColor: 'rgba(0, 188, 212, 0.75)',
                    backgroundColor: 'rgba(0, 188, 212, 0.3)',
                    pointBorderColor: 'rgba(0, 188, 212, 0)',
                    pointBackgroundColor: 'rgba(0, 188, 212, 0.9)',
                    pointBorderWidth: 1
                }, {
                        label: "My Second dataset",
                        data: [28, 48, 40, 19, 86, 27, 90],
                        borderColor: 'rgba(233, 30, 99, 0.75)',
                        backgroundColor: 'rgba(233, 30, 99, 0.3)',
                        pointBorderColor: 'rgba(233, 30, 99, 0)',
                        pointBackgroundColor: 'rgba(233, 30, 99, 0.9)',
                        pointBorderWidth: 1
                    }]
            },
            options: {
                responsive: true,
                legend: false
            }
        }
    }
    else if (type === 'bar') {
        config = {
            type: 'bar',
			axisY2:{
		interval: 1
	},
            data: {
                labels: [
				<?php 
				$z=1;
				for($i=0; $i<count($title); $i++){
					
					if($value[$i]>0)
					{
				echo '"'.$alfabet[$z].' '.$title[$i].'" ,'; 
				$z++;
					}
				}
				?>
				''
				],
                datasets: [{
                    label: "Areas For Remediation",
                    data: [
					<?php 
					
					for($j=0; $j<count($value); $j++){
					
					if($value[$j]>0)
					{
						
				echo '"'.$value[$j].'" ,'; 
					}
				}
				?>
				'0',
				],
                    backgroundColor:'rgba(244, 67, 54, 1)'
                }]
            },
            options: {
                responsive: true,
                legend: false
            }
        }
    }
    else if (type === 'radar') {
        config = {
            type: 'radar',
            data: {
                labels: ["January", "February", "March", "April", "May", "June", "July"],
                datasets: [{
                    label: "My First dataset",
                    data: [65, 25, 90, 81, 56, 55, 40],
                    borderColor: 'rgba(0, 188, 212, 0.8)',
                    backgroundColor: 'rgba(0, 188, 212, 0.5)',
                    pointBorderColor: 'rgba(0, 188, 212, 0)',
                    pointBackgroundColor: 'rgba(0, 188, 212, 0.8)',
                    pointBorderWidth: 1
                }, {
                        label: "My Second dataset",
                        data: [72, 48, 40, 19, 96, 27, 100],
                        borderColor: 'rgba(233, 30, 99, 0.8)',
                        backgroundColor: 'rgba(233, 30, 99, 0.5)',
                        pointBorderColor: 'rgba(233, 30, 99, 0)',
                        pointBackgroundColor: 'rgba(233, 30, 99, 0.8)',
                        pointBorderWidth: 1
                    }]
            },
            options: {
                responsive: true,
                legend: false
            }
        }
    }
    else if (type === 'pie') {
        config = {
            type: 'pie',
            data: {
                datasets: [{
                    data: [225, 50, 100, 40],
                    backgroundColor: [
                        "rgb(233, 30, 99)",
                        "rgb(255, 193, 7)",
                        "rgb(0, 188, 212)",
                        "rgb(139, 195, 74)"
                    ],
                }],
                labels: [
                    "Pink",
                    "Amber",
                    "Cyan",
                    "Light Green"
                ]
            },
            options: {
                responsive: true,
                legend: false
            }
        }
    }
    return config;
}
</script>	
 <style>
 #report td{ padding:3px; }
 </style>
<?php include("../include/footer.php");?>