Current File : /home/inlingua/www/sensoriumpsychologists.com/backup/screening/index.php |
<?php
session_start();
//echo $_SESSION['access_token'];
if(!isset($_SESSION['log_id'])) {
header('Location: index.php');
exit();
}
//echo '<pre>';print_r($_SESSION);echo '</pre>';
require_once('../classes/config.php');
include('include/header.php');
?>
<style>
table td{
padding:10px;
}
</style>
<section class="blog-page-section">
<div class="container">
<div class="section-title pt-30">
<div class="row">
</div>
</div>
<div class="row">
<div class="col-lg-12" style="margin-bottom:30px;">
<h3>Screeing Dashboard</h3>
</div>
<?php
$ref_no=$_SESSION['ref_no'];
$sql="SELECT * FROM shristi_child_details WHERE table_id='".$ref_no."'";
$result = $conn->query($sql);
$totalcount=$result->num_rows;
$rows = $result->fetch_assoc();
$screening_id=$rows['education'];
$test="SELECT * FROM shristi_questionnaires_permanent_answers WHERE ref_no='".$ref_no."' limit 0,1";
$results = $conn->query($test);
$testcount=$results->num_rows;
$scrid = $results->fetch_assoc();
$screeningid=$scrid['screening_id'];
?>
<div class="col-lg-8 post-list">
<div id="form-container">
<table border="1" style="width:100%;">
<tr>
<td style="font-weight:bold;width:150px;">Admission No</td>
<td style="font-weight:bold;width:20px;">:</td>
<td><?php echo($rows['registration_no']);?> </td>
</tr>
<tr>
<td style="font-weight:bold;">Name</td>
<td style="font-weight:bold;">:</td>
<td><?php echo($rows['name']);?> </td>
</tr>
<tr>
<td style="font-weight:bold;">Email</td>
<td style="font-weight:bold;">:</td>
<td><?php echo($rows['email']);?> </td>
</tr>
<tr>
<td style="font-weight:bold;">Date of Birth</td>
<td style="font-weight:bold;">:</td>
<td><?php echo($rows['dob_date']);?> </td>
</tr>
<tr>
<td style="font-weight:bold;">Registration Date</td>
<td style="font-weight:bold;">:</td>
<td><?php echo($rows['registration_date']);?> </td>
</tr>
<tr>
<td style="font-weight:bold;">Age</td>
<td style="font-weight:bold;">:</td>
<td><?php echo($rows['age']." yrs");?> </td>
</tr>
<tr>
<td style="font-weight:bold;">Gender</td>
<td style="font-weight:bold;">:</td>
<td><?php echo($rows['gender']);?> </td>
</tr>
<tr>
<td style="font-weight:bold;">School</td>
<td style="font-weight:bold;">:</td>
<td><?php echo($rows['school_name']);?> </td>
</tr>
<tr>
<td style="font-weight:bold;">Std</td>
<td style="font-weight:bold;">:</td>
<td><?php echo($rows['education']);?> </td>
</tr>
<tr>
<td style="font-weight:bold;">Chief Complaints </td>
<td style="font-weight:bold;">:</td>
<td><?php echo($rows['problem']);?> </td>
</tr>
<tr>
<td colspan="3" style="line-height:25px;">
<br>
<?php
if($rows['status']=="applied"){
echo("<span style=\"color:#F00;\">You Screening Profile is inactive please contact: Sensorium Psychologists<br/>
Customer Service: info@sensoriumpsychologists.com</span>");
}
else if($testcount>0){
echo("<a href=\"franchise/view_questionnaire_report.php?screening_id=".$screeningid."&ref_no=".$ref_no."\"><div class=\"btn\" style=\"color:#FFF;background-color:#060;\">VIEW SCREENING RESULT</div></a>");
}
else{
echo("<a href=\"franchise/screening_session_pre.php?screening_id=".$screening_id."&ref_no=".$ref_no."\"><div class=\"btn\" style=\"color:#FFF;background-color:#060;\">CLICK HERE TO START SCREENING</div></a>");
}
?>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</section>
<?php include('include/footer.php');?>