Current File : /home/inlingua/www/sensoriumpsychologists.com/diagnostics/screening/screening_session_pre.php |
<?php
session_start();
//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'];
$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");
$age=$student_obj->get_value("age");
$gender=$student_obj->get_value("gender");
$registration_no=$student_obj->get_value("registration_no");
$registration_date=$student_obj->get_value("registration_date");
$school_name=$student_obj->get_value("school_name");
$dob_date=$student_obj->get_value("dob_date");
$education=$student_obj->get_value("education");
$problem=$student_obj->get_value("problem");
$theme_link=$student_obj->get_value("theme_class");
$theme_font=$student_obj->get_value("theme_font");
switch($education)
{
case '1' :$education="1st";break;
case '2' :$education="2nd";break;
case '3' :$education="3rd";break;
case '4' :$education="4th";break;
case '5' :$education="5th";break;
case '6' :$education="6th";break;
case '7' :$education="7th";break;
case '8' :$education="8th";break;
case '9' :$education="9th";break;
case '10' :$education="10th";break;
}
$screening_id=$_GET['screening_id'];
$validate_obj=new validate_functions();
$validate_obj->check_isset_empty($screening_id,"screening id");
$validate_obj->check_is_num($screening_id,"screening id");
$reply=$student_obj->show_available_screening($ref_no);
if($reply=="no")
{
echo("No screening available...");
exit();
}
$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");
if(!empty($_POST))
{
$_SESSION['ref_no']=$ref_no;
$_SESSION['screening_id']=$screening_id;
$_SESSION['screening_started']="yes";
$_SESSION['start_time']=time();
$screening_obj->delete_previous_student_ans($ref_no,$screening_id);
header ("Location:screening_session.php");
}
//include("common/page_head.php");
//include("common/header_var.php");
//$top_children=$top_val;
include("../../include/header_2.php");
?>
<div class="site-breadcrumb">
<div class="container">
<a href="../../index.php"><i class="fa fa-home"></i> Home</a> <i class="fa fa-angle-right"></i>
<span>Screening Details</span>
</div>
</div>
<section class="about-section spad pt-0">
<div class="container">
<div class="section-title text-center">
<h3>SCREENING DETAILS</h3>
<p></p>
</div>
<div class="row">
<div class="col-md-12 col-lg-12">
<table border="0" class="tables_fieldset" cellpadding="3px" cellspacing="0">
<?php //require_once("common/student_summary_in_page_registered.php");?>
<tr>
<td style="font-weight:bold;width:150px;">Title</td>
<td style="font-weight:bold;width:20px;">:</td>
<td><?php echo($questionnaire_name);?> </td>
</tr>
<tr>
<td style="font-weight:bold;">No of Sections</td>
<td style="font-weight:bold;">:</td>
<td><?php echo($no_of_sections);?> </td>
</tr>
<tr>
<td style="font-weight:bold;">No of Questions</td>
<td style="font-weight:bold;">:</td>
<td><?php echo($no_of_questions);?> </td>
</tr>
<tr>
<td style="font-weight:bold;">Duration</td>
<td style="font-weight:bold;">:</td>
<td><?php echo($questionnaire_duration);?> mins </td>
</tr>
<tr style="height:30px;">
<td colspan="3"></td>
</tr>
<tr>
<td colspan="3" style="font-weight:bold;text-decoration:underline;">INSTRUCTIONS</td>
</tr>
<tr>
<td colspan="3">
<ol style="padding-left:25px;margin-top:5px;">
<li>At the end of timer, answers will be saved automatically. If you want to cancel or restart questionnaire in between, then click on 'Cancel' or 'Restart'.</li>
<li>Once 'Saved', you cannot answer or view a particular 'Section' again.</li>
<li>Please close all other windows and tabs before starting the screening.</li>
</ol>
</td>
</tr>
<tr>
<td colspan="3"><br>
<form method="post" name="my_form">
<input type="hidden" name="posted" value="yes" />
<a href="javascript:start_exam()"><div class="site-btn mb-40">START NOW</div></a>
</form>
</td>
</tr>
</table>
</div>
</div>
</div>
</section>
<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 include("../../include/footer_2.php");?>