<div class="header-heading">
	<div class="container">
		<h1>SKILL EXPLORER TEST</h1>
		<div class="heading-icon">
			<img src="<?= HTTP_ICON_PATH;?>icon-test.png" alt="" />
		</div>
	</div>
</div>

<div class="container container-top" style="min-height:500px">

	<div class="col-sm-12">
		<div class="row">

			<?php 
			$text_show=true;
				if($this->session->flashdata('Message')){
					echo '<div class="alert alert-success" style="text-align: center;padding: 5%;"><p><b style="font-size:36px;"> Thank you!</b></p><br><p style="font-size:26px;">You have successfully completed the Test. We will contact you very soon!</p></div>';
					$text_show=false;
				}else{
			
			?>

			 
			<div class="col-sm-12">
				<?php 
				$isAccept=false;
				$TestId = $this->session->userdata('students')['TestId'];
				$StudentId = $this->session->userdata('students')['StudentId'];
				if($students->IsTestAccept==1){
					$isAccept=true;
					
					if($this->session->userdata('students')['TestStatus']==1){
						echo '<div class="alert alert-info" style="text-align: center;padding: 5%;"><p><img src="'.HTTP_ICON_PATH.'icon-test.png" alt="" /></p><br><p style="font-size:26px;"><b>You have already given this Test!</b></p></div>';
						$text_show=false;
					}else{
						echo '<div class="alert alert-success" style="padding: 2%;"><p><b>You have already started giving the test.</b><a style="margin-left:20px;" href="'.BASE_URL.'start" class="btn btn-primary">Resume Test</a></p></div>'; 
					}					 
				}
				?>
			</div>
			<?php if($text_show){?>
				<div class="col-sm-12">
					<h2>Instruction</h2>
					<p>All of us wish to do well in life. No training is better than other. The reality is if we know our strength area and choose our training based on that, will definitely be successful. Following are some question asked about yourself which will help you to choose your training/program where you can be successful. </p><br>

					<h2>Remember:</h2>
					<ul><li>All question ask about you.</li>
					<li>All answer are correct answer.</li>
					<li>You need to answer honestly, otherwise we will be not able to help you to choose suitable training program for you.</li>
					<li>Do not think too much, first answer is the best answer.</li>
					<li>Do not think about the person whom you feel is best would be doing in this situation and answer. </li>
					<li>Do not ask or discuss with others that will be a wrong answer for sure.</li></ul>
				</div>
			<?php }?>
			<div class="col-sm-12">			
				<?php if($isAccept==false){
					echo '<br><div class="alert alert-info"><p><input type="checkbox" id="IsAcceptTest"/> &nbspI do agree.</p></div><div class="form-group"><a id="ISAcceptbtn" class="btn btn-md btn-primary pull-right">Next</a></div>';
					 
				}?>
			</div>
				<?php }?>
		</div>
	</div>

</div>

<script>
	$(document).on('click','#ISAcceptbtn',function(){
		 
		if($("#IsAcceptTest").is(':checked')){
			window.location.href=HTTP_PATH +'students/accept_test';
		}else{
			alert('Message');
		}
		 
		
	});
</script>