Current File : /home/inlingua/public_html/sensoriumpsychologists.com/diagnostics/screening/student_details.php
<?php 
include('../franchise_back/connection.php');

$mysqli = new mysqli($host_db,$user_db,$pass_db,$name_db);

if ($mysqli -> connect_errno) {
  echo "Failed to connect to MySQL: " . $mysqli -> connect_error;
  exit();
} 
 session_start();
 $franchise_id=$_SESSION['log_id'];
 $table_id=$_GET['ref_no'];
 $prepared_statement="SELECT * FROM shristi_child_details a WHERE franchise_id='$franchise_id' AND table_id='$table_id' AND status='active'";
 $result = $mysqli -> query($prepared_statement);
 $detail=$result -> fetch_assoc();
 
	$prepared_state="SELECT * FROM shristi_states_india  WHERE  table_id='".$detail['c_state']."' ";
    $state = $mysqli -> query($prepared_state);
    $c_detail=$state -> fetch_assoc();
	$c_state = $c_detail['name'];
  //return $s_detail;
    $prepared_state="SELECT * FROM shristi_states_india  WHERE  table_id='".$detail['p_state']."' ";
    $state = $mysqli -> query($prepared_state);
    $p_detail=$state -> fetch_assoc();	 
    $p_state = $p_detail['name'];
 
 //echo '<pre>'; print_r($c_state);
?>
<!doctype html>
<html>
<?php include("common/page_head.php");?>
<script src="javascript/numberkey.js"></script>
<body>
<?php include("common/header_var.php");?>
<?php
$top_enrollment=$top_val;
?>
<?php include("common/header.php");?>
<div id="main_container">
<div id="main">
<br />
<br />
<div class="top_heading_page">STUDENT DETAILS</div>
<br>
<br>
<fieldset >
<legend>PERSONAL DETAILS</legend>
 <form method="post" name="myform" onSubmit="return submit_form()">
<!--<form method="post" name="myform" enctype="multipart/form-data">-->
<table border="0" class="tables_fieldset" cellpadding="0" cellspacing="0">
  <tr>
        <td style="font-weight:bold;width:150px;">Admission No</td>
        <td style="font-weight:bold;width:20px;">:</td>
        <td><?php echo($detail['registration_no']);?>&nbsp;</td>
      </tr>
	  <tr style="height:8px;">
            
          </tr>
      <tr>
        <td style="font-weight:bold;">Name</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($detail['name']);?>&nbsp;</td>
      </tr>
	  <tr style="height:8px;">
            
          </tr>
      <tr>
        <td style="font-weight:bold;">Email</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($detail['email']);?>&nbsp;</td>
      </tr>
	  <tr style="height:8px;">
            
          </tr>
      <tr>
        <td style="font-weight:bold;">Date of Birth</td>
        <td style="font-weight:bold;">:</td>
        <td><?php 
		$dob=$detail['dob_date'];
			if($dob!="0000-00-00")
			{
				$date_obj = new DateTime($dob);
				$dob=$date_obj->format('d-M-Y');
				echo($dob);
			}
		?>&nbsp;</td>
      </tr>
	  <tr style="height:8px;">
            
          </tr>
      <tr>
        <td style="font-weight:bold;">Registration Date</td>
        <td style="font-weight:bold;">:</td>
        <td><?php $rdob=$detail['registration_date'];
			if($rdob!="0000-00-00")
			{
				$date_obj = new DateTime($dob);
				$dob=$date_obj->format('d-M-Y');
				echo($dob);
			} ?>&nbsp;</td>
      </tr>
	  <tr style="height:8px;">
            
          </tr>
      <tr>
        <td style="font-weight:bold;">Age</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($detail['age']." yrs");?>&nbsp;</td>
      </tr>
	  <tr style="height:8px;">
            
          </tr>
      <tr>
        <td style="font-weight:bold;">Gender</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($detail['gender']);?>&nbsp;</td>
      </tr>
	  <tr style="height:8px;">
            
          </tr>
       <tr>
        <td style="font-weight:bold;">School</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($detail['school_name']);?>&nbsp;</td>
      </tr>
	  <tr style="height:8px;">
            
          </tr>
      <tr>
        <td style="font-weight:bold;">Std</td>
        <td style="font-weight:bold;">:</td>
        <?php echo("<td>");
			switch($detail['education'])
			{
				case '1' :echo("1st");break;
				case '2' :echo("2nd");break;
				case '3' :echo("3rd");break;
				case '4' :echo("4th");break;
				case '5' :echo("5th");break;
				case '6' :echo("6th");break;
				case '7' :echo("7th");break;
				case '8' :echo("8th");break;
				case '9' :echo("9th");break;
				case '10' :echo("10th");break;
			}
			echo(" std</td>"); ?>&nbsp;
      </tr>
	  <tr style="height:8px;">
            
          </tr>
	  <tr>
        <td style="font-weight:bold;">Contact No</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($detail['contact_no']);?>&nbsp;</td>
      </tr>
	  <tr style="height:8px;">
            
          </tr>
	  <tr>
        <td style="font-weight:bold;">Informant</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($detail['informant']);?>&nbsp;</td>
      </tr>
</table>

</fieldset>

<br/>
<br/>


<fieldset>
  <legend>ADDRESS</legend>
  <table border="0" class="tables_fieldset" cellpadding="0" cellspacing="0">
    <tr>
      <td style="width:50%;"><table cellpadding="0" cellspacing="0" style="width:400px;">
          <tr style="height:30px;">
            <td style="font-weight:bold;width:250px;">CORRESPONDANCE ADDRESS&nbsp;&nbsp;</td>
            <td style="font-weight:bold;width:20px;">:</td>
            <td><?php echo($detail['c_local']);?>&nbsp;</td>
          </tr>
          <tr>
            <td></td>
          </tr>
          
          <tr>
            <td style="font-weight:bold;width:250px;">City</td>
			<td style="font-weight:bold;width:20px;">:</td>
			<td><?php echo($detail['c_city']);?>&nbsp;</td>
          </tr>
          <tr style="height:10px;">
            
          </tr>
          <tr>
            <td style="font-weight:bold;width:250px;">District</td>
            <td style="font-weight:bold;width:20px;">:</td>
            <td><?php echo($detail['c_district']);?>&nbsp; </td>
          </tr>
          <tr style="height:10px;">
            <td></td>
          </tr>
          <tr>
            <td style="font-weight:bold;width:250px;">State</td>
            <td style="font-weight:bold;width:20px;">:</td>
            <td><?php echo($c_state);?>&nbsp;</td>
          </tr>
          <tr style="height:10px;">
            <td></td>
          </tr>
          <tr>
            <td style="font-weight:bold;width:250px;">Pincode</td>
            <td style="font-weight:bold;width:20px;">:</td>
            <td><?php echo($detail['c_pincode']);?>&nbsp; </td>
          </tr>
        </table></td>
      <td><table cellpadding="0" cellspacing="0" style="width:400px;">
          <tr style="height:30px;">
            <td style="font-weight:bold;width:250px;">PERMANENT ADDRESS&nbsp;</td>
			<td style="font-weight:bold;width:20px;">:</td>
			<td><?php echo($detail['p_local']);?>&nbsp;</td>
          </tr>
          
          <tr style="height:10px;">
            <td></td>
          </tr>
          <tr>
            <td style="font-weight:bold;width:250px;">City</td>
            <td style="font-weight:bold;width:20px;">:</td>
            <td><?php echo($detail['p_city']);?>&nbsp;</td>
          </tr>
          <tr style="height:10px;">
            <td></td>
          </tr>
          <tr>
            <td style="font-weight:bold;width:250px;">District</td>
            <td style="font-weight:bold;width:20px;">:</td>
            <td><?php echo($detail['p_district']);?>&nbsp; </td>
          </tr>
          <tr style="height:10px;">
            <td></td>
          </tr>
          <tr>
            <td style="font-weight:bold;width:250px;">State</td>
           <td style="font-weight:bold;width:20px;">:</td>
            <td><?php echo($p_state);?>&nbsp; </td>
          </tr>
          <tr style="height:10px;">
            <td></td>
          </tr>
          <tr>
            <td style="font-weight:bold;width:250px;">Pincode </td>
           <td style="font-weight:bold;width:20px;">:</td>
            <td><?php echo($detail['p_pincode']);?>&nbsp; </td>
          </tr>
        </table></td>
    </tr>
  </table>
</fieldset>
<br/><br/>
<fieldset>
  <legend>PROBLEMS & BEHAVIOURS</legend>
  <table border="0" class="tables_fieldset" cellpadding="0" cellspacing="0">
    <tr>
      <td colspan="2"><table cellpadding="5px" cellspacing="0">
          <tr>
            <td style="font-weight:bold;width:250px;">PRESENTING PROBLEMS OF THE CHILD</td>
            <td style="width:20px;text-align:right;">:</td>
            <td><?php echo($detail['problem']);?>&nbsp; </td>
          </tr>
        </table></td>
      
    </tr>
   
    <tr>
      <td style="width:50%;"><table cellpadding="5px" cellspacing="0">
          <tr>
            <td style="font-weight:bold;width:250px;">Walking</td>
            <td style="width:20px;text-align:right;">:</td>
            <td><?php echo($detail['walking']);?>&nbsp;</td>
          </tr>
        </table></td>
      <td style="width:50%;"><table cellpadding="5px" cellspacing="0">
          <tr>
            <td style="font-weight:bold;width:250px;">First Sentence : </td>
            <td style="width:20px;text-align:right;"></td>
            <td><?php echo($detail['first_sentence']);?>&nbsp; </td>
          </tr>
        </table></td>
    </tr>
     
    
    <tr valign="top">
      <td style="width:50%;"><table cellpadding="5px" cellspacing="0">
          <tr>
            <td style="font-weight:bold;width:250px;">Toilet Behaviour</td>
            <td style="width:20px;text-align:right;">:</td>
            <td><?php echo($detail['toilet_behaviour']);?>&nbsp; </td>
          </tr>
        </table></td>
      <td style="width:70%;"><table cellpadding="5px" cellspacing="0">
          <tr valign="top">
            <td style="font-weight:bold;width:250px;">Self help skills (bathing, eating, dressing, communication skills)</td>
            <td style="width:20px;text-align:right;">:</td>
            <td><?php echo($detail['self_help']);?>&nbsp;  </td>
          </tr>
        </table></td>
    </tr>
    <tr valign="top">
      <td colspan="2"><table cellpadding="5px" cellspacing="0">
          <tr>
            <td style="font-weight:bold;width:250px;">Sleeping Pattern</td>
            <td style="width:20px;text-align:right;">:</td>
            <td><?php echo($detail['sleeping_pattern']);?>&nbsp;  </td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td><table cellpadding="5px" cellspacing="0" style="width:100%;">
          <tr>
            <td style="font-weight:bold;width:250px;">Play (during free time)</td>
            <td style="width:20px;text-align:right;">:</td>
            <td><?php echo($detail['play']);?>&nbsp;  </td>
          </tr>
        </table></td>
		<td ><table cellpadding="5px" cellspacing="0" style="width:100%;">
          <tr>
            <td style="font-weight:bold;width:250px;">Play group</td>
            <td style="width:20px;text-align:right;">:</td>
            <td><?php echo($detail['play_group']);?>&nbsp;  </td>
          </tr>
        </table></td>
    </tr>
    <tr>
      
    </tr>
    <tr>
      <td><table cellpadding="5px" cellspacing="0" style="width:100%;">
          <tr>
            <td style="font-weight:bold;width:250px;">Type of play</td>
            <td style="width:20px;text-align:right;">:</td>
            <td><?php echo($detail['type_of_play']);?>&nbsp; 
			
			</td>
          </tr>
        </table></td>
		<td colspan="2"><table cellpadding="5px" cellspacing="0" style="width:100%;">
          <tr>
            <td style="font-weight:bold;width:250px;">Behaviour with family</td>
            <td style="width:20px;text-align:right;">:</td>
            <td><?php echo($detail['behav_with_family']);?>&nbsp; 
			
			</td>
          </tr>
        </table></td>
    </tr>
    <tr>
      
    </tr>
    <tr>
      <td colspan="2"><table cellpadding="5px" cellspacing="0" style="width:50%;">
          <tr>
            <td style="font-weight:bold;width:250px;">Relationship with siblings</td>
            <td style="width:20px;text-align:right;">:</td>
            <td><?php echo($detail['reln_with_siblings']);?>&nbsp; 
			
			</td>
          </tr>
        </table></td>
    </tr>
  </table>
</fieldset>
<br>

      <!--<input type="submit" name="sumnit" value="Save Now"  />--></td>
  </tr>
</table>
<br><br>
</div>
</form>
</div>

</div>

</body>
</html>