Current File : /home/inlingua/public_html/sensoriumpsychologists.com/screening/franchise/screening_session_pre.php
<?php require_once("../franchise_between/check_franchise.php");?>
<?php require_once("../franchise_between/user_details_msg_setup.php");?>
<?php require_once("../franchise_between/validate_functions.php");?>
<?php require_once("../franchise_between/student_funcs.php");?>
<?php require_once("../franchise_between/screening_funcs.php");?>
<?php
$ref_no=$_GET['ref_no'];
$franchise_id=$_SESSION['log_id'];
$validate_obj=new validate_functions();
$validate_obj->check_isset_empty($ref_no,"ref_no");
$validate_obj->check_is_num($ref_no,"ref_no");
?>
<?php
$student_obj=new student_funcs();
$student_obj->set_value("franchise_id",$franchise_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;
}
?>
<?php
$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");
?>
<?php
$reply=$student_obj->show_available_screening($ref_no);
if($reply=="no")
{
	echo("No screening available...");
	exit();
}
?>
<?php
$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("../include/header.php");?>
<div id="main_container" class="container">

  <div id="main">
  <br><br>
    <fieldset>
    <legend>STUDENT SCREENING AVALIABLE</legend>
    <table border="0" class="tables_fieldset" cellpadding="3px" cellspacing="0">
      <tr>
        <td colspan="3" style="font-weight:bold;text-decoration:underline;">STUDENT DETAILS</td>
      </tr>
  <?php require_once("common/student_summary_in_page_registered.php");?>
      <tr style="height:30px;">
        <td colspan="3"></td>
      </tr>
      <tr>
        <td colspan="3" style="font-weight:bold;text-decoration:underline;">SCREENING DETAILS</td>
      </tr>
      <tr>
        <td style="font-weight:bold;width:150px;">Title</td>
        <td style="font-weight:bold;width:20px;">:</td>
        <td><?php echo($questionnaire_name);?>&nbsp;</td>
      </tr>
      <tr>
        <td style="font-weight:bold;">No of Sections</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($no_of_sections);?>&nbsp;</td>
      </tr>
      <tr>
        <td style="font-weight:bold;">No of Questions</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($no_of_questions);?>&nbsp;</td>
      </tr>
      <tr>
        <td style="font-weight:bold;">Duration</td>
        <td style="font-weight:bold;">:</td>
        <td><?php echo($questionnaire_duration);?> mins&nbsp;</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="btn" style="color:#FFF;background-color:#060;">START NOW</div></a>
        </form>
        </td>
      </tr>
    </table>
    </fieldset>
  </div>
</div>
  <br><br><br><br>
<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.php");?>