<?php session_start();?>
<?php
	if($_SESSION ["role"]=="Administrator")
	{
		
		$role = $_SESSION["role"];
		$email = $_SESSION["email"];
		
		// header('location:form.php');
	}
	else
	{
		header('location:expired.php');
		// $userName = $_SESSION["userName"]; $userRole = $_SESSION["userRole"];
		}
?>

<?php
$idvac =$_REQUEST['idvac'];
$Assess =$_REQUEST['Assess'];
//$name =$_REQUEST['name'];
//$email =$_SESSION['email'];
	$conn = mysql_connect('localhost', 'dvsvigov_vacc', 'DVSvacdos123');
	 if (!$conn)
    {
	 die('Could not connect: ' . mysql_error());
	}
	mysql_select_db("dvsvigov_vacdos", $conn);
$result = mysql_query("SELECT * FROM user WHERE name='$Assess'");
$test = mysql_fetch_array($result);
if (!$result)
		{
		die("Error: Data not found..");
		}
				$email=$test['email'] ;	
mysql_close($conn);

?>
 <?php
$idvac =$_REQUEST['idvac'];
//$Assess =$_REQUEST['Assess'];
//$email =$_SESSION['email'];
	$conn = mysql_connect('localhost', 'dvsvigov_vacc', 'DVSvacdos123');
	 if (!$conn)
    {
	 die('Could not connect: ' . mysql_error());
	}
	mysql_select_db("dvsvigov_vacdos", $conn);
$result = mysql_query("SELECT * FROM vacc WHERE idvac='$idvac'");
$test = mysql_fetch_array($result);
if (!$result)
		{
		die("Error: Data not found..");
		}
				//$name=$test['name'] ;
				$idvac=$test['idvac'] ;
				$tradename=$test['tradename'] ;
				$manufacturername=$test['manufacturername'] ;
				$locagentadd=$test['locagentadd'] ;
				$loacagentphone=$test['loacagentphone'] ;
				$plantaff=$test['plantaff'] ;
				$mainplant=$test['mainplant'] ;
				$vacctype=$test['vacctype'] ;
				$dateaddtask=$test['dateaddtask'] ;
				$addedby=$test['addedby'] ;
				$assignby=$test['assignby'] ;
				$datesubmit=$test['datesubmit'] ;
				$AssessA=$test['AssessA'] ;
				$AssessB=$test['AssessB'] ;
				$AssessC=$test['AssessC'] ;
mysql_close($conn);

?>	
	
<?php
include 'connect-db.php';
require('assets/pdf/fpdf.php');


$idvac =$_REQUEST['idvac'];
//$email =$_SESSION['email'];
$Assess =$_REQUEST['Assess'];
	$conn = mysql_connect('localhost', 'dvsvigov_vacc', 'DVSvacdos123');
	 if (!$conn)
    {
	 die('Could not connect: ' . mysql_error());
	}
	mysql_select_db("dvsvigov_vacdos", $conn);
$result = mysql_query("SELECT * FROM dossierform WHERE idvac='$idvac' AND AssessNo='A'") ;
$test = mysql_fetch_array($result);
if (!$result)
		{
		die("Ralat! Sila cuba semula.");
		}					
				$Assess=$test['Assess'] ;
				$idvac=$test['idvac'] ;
				$datesubmit=$test['datesubmit'] ;
				$Q1=$test['Q1'] ; if ($Q1==6) {	$aQ1a=4;}else if ($Q1==4) {$aQ1a=3;}else if ($Q1==2) {$aQ1a=2;	}else if ($Q1==0) {$aQ1a=1;}	else {$aQ1a==1;}
				$aQ1comment=$test['Q1comment'] ;
				$aQ1AI=$test['Q1AI'] ;
				$Q2=$test['Q2'] ; if ($Q2==6) {	$aQ2a=4;}else if ($Q2==4) {$aQ2a=3;}else if ($Q2==2) {$aQ2a=2;	}else if ($Q2==0) {$aQ2a=1;}	else {$aQ2a==1;}
				$aQ2comment=$test['Q2comment'] ;
				$aQ2AI=$test['Q2AI'] ;
				$Q3=$test['Q3'] ; if ($Q3==6) {	$aQ3a=4;}else if ($Q3==4) {$aQ3a=3;}else if ($Q3==2) {$aQ3a=2;	}else if ($Q3==0) {$aQ3a=1;}	else {$aQ3a==1;}
				$aQ3comment=$test['Q3comment'] ;
				$aQ3AI=$test['Q3AI'] ;
				$Q4=$test['Q4'] ; if ($Q4==6) {	$aQ4a=4;}else if ($Q4==4) {$aQ4a=3;}else if ($Q4==2) {$aQ4a=2;	}else if ($Q4==0) {$aQ4a=1;}	else {$aQ4a==1;}
				$aQ4comment=$test['Q4comment'] ;
				$aQ4AI=$test['Q4AI'] ;
				$Q5=$test['Q5'] ; if ($Q5==6) {	$aQ5a=4;}else if ($Q5==4) {$aQ5a=3;}else if ($Q5==2) {$aQ5a=2;	}else if ($Q5==0) {$aQ5a=1;}	else {$aQ5a==1;}
				$aQ5comment=$test['Q5comment'] ;
				$aQ5AI=$test['Q5AI'] ;
				$Q6=$test['Q6'] ; if ($Q6==6) {	$aQ6a=4;}else if ($Q6==4) {$aQ6a=3;}else if ($Q6==2) {$aQ6a=2;	}else if ($Q6==0) {$aQ6a=1;}	else {$aQ6a==1;}
				$aQ6comment=$test['Q6comment'] ;
				$aQ6AI=$test['Q6AI'] ;
				$Q7=$test['Q7'] ; if ($Q7==6) {	$aQ7a=4;}else if ($Q7==4) {$aQ7a=3;}else if ($Q7==2) {$aQ7a=2;	}else if ($Q7==0) {$aQ7a=1;}	else {$aQ7a==1;}
				$aQ7comment=$test['Q7comment'] ;
				$aQ7AI=$test['Q7AI'] ;				
				$Q8=$test['Q8'] ; if ($Q8==6) {	$aQ8a=4;}else if ($Q8==4) {$aQ8a=3;}else if ($Q8==2) {$aQ8a=2;	}else if ($Q8==0) {$aQ8a=1;}	else {$aQ8a==1;}
				$aQ8comment=$test['Q8comment'] ;
				$aQ8AI=$test['Q8AI'] ;				
				$Q9=$test['Q9'] ; if ($Q9==6) {	$aQ9a=4;}else if ($Q9==4) {$aQ9a=3;}else if ($Q9==2) {$aQ9a=2;	}else if ($Q9==0) {$aQ9a=1;}	else {$aQ9a==1;}
				$aQ9comment=$test['Q9comment'] ;
				$aQ9AI=$test['Q9AI'] ;
				$Q10=$test['Q10'] ; if ($Q10==6) {	$aQ10a=4;}else if ($Q10==4) {$aQ10a=3;}else if ($Q10==2) {$aQ10a=2;	}else if ($Q10==0) {$aQ10a=1;}	else {$aQ10a==1;}
				$aQ10comment=$test['Q10comment'] ;
				$aQ10AI=$test['Q10AI'] ;	
				$Q11=$test['Q11'] ; if ($Q11==6) {	$aQ11a=4;}else if ($Q11==4) {$aQ11a=3;}else if ($Q11==2) {$aQ11a=2;	}else if ($Q11==0) {$aQ11a=1;}	else {$aQ11a==1;}
				$aQ11comment=$test['Q11comment'] ;
				$aQ11AI=$test['Q11AI'] ;				
				$Q12=$test['Q12'] ; if ($Q12==6) {	$aQ12a=4;}else if ($Q12==4) {$aQ12a=3;}else if ($Q12==2) {$aQ12a=2;	}else if ($Q12==0) {$aQ12a=1;}	else {$aQ12a==1;}
				$aQ12comment=$test['Q12comment'] ;
				$aQ12AI=$test['Q12AI'] ;				
				$Q13=$test['Q13'] ; if ($Q13==6) {	$aQ13a=4;}else if ($Q13==4) {$aQ13a=3;}else if ($Q13==2) {$aQ13a=2;	}else if ($Q13==0) {$aQ13a=1;}	else {$aQ13a==1;}
				$aQ13comment=$test['Q13comment'] ;
				$aQ13AI=$test['Q13AI'] ;				
				$Q14=$test['Q14'] ; if ($Q14==6) {	$aQ14a=4;}else if ($Q14==4) {$aQ14a=3;}else if ($Q14==2) {$aQ14a=2;	}else if ($Q14==0) {$aQ14a=1;}	else {$aQ14a==1;}
				$aQ14comment=$test['Q14comment'] ;
				$aQ14AI=$test['Q14AI'] ;				
				$Q15=$test['Q15'] ; if ($Q15==6) {	$aQ15a=4;}else if ($Q15==4) {$aQ15a=3;}else if ($Q15==2) {$aQ15a=2;	}else if ($Q15==0) {$aQ15a=1;}	else {$aQ15a==1;}
				$aQ15comment=$test['Q15comment'] ;
				$aQ15AI=$test['Q15AI'] ;				
				$Q16=$test['Q16'] ; if ($Q16==6) {	$aQ16a=4;}else if ($Q16==4) {$aQ16a=3;}else if ($Q16==2) {$aQ16a=2;	}else if ($Q16==0) {$aQ16a=1;}	else {$aQ16a==1;}
				$aQ16comment=$test['Q16comment'] ;
				$aQ16AI=$test['Q16AI'] ;				
				$Q17=$test['Q17'] ; if ($Q17==6) {	$aQ17a=4;}else if ($Q17==4) {$aQ17a=3;}else if ($Q17==2) {$aQ17a=2;	}else if ($Q17==0) {$aQ17a=1;}	else {$aQ17a==1;}
				$aQ17comment=$test['Q17comment'] ;
				$aQ17AI=$test['Q17AI'] ;				
				$Q18=$test['Q18'] ; if ($Q18==6) {	$aQ18a=4;}else if ($Q18==4) {$aQ18a=3;}else if ($Q18==2) {$aQ18a=2;	}else if ($Q18==0) {$aQ18a=1;}	else {$aQ18a==1;}
				$aQ18comment=$test['Q18comment'] ;
				$aQ18AI=$test['Q18AI'] ;				
				$Q19=$test['Q19'] ; if ($Q19==6) {	$aQ19a=4;}else if ($Q19==4) {$aQ19a=3;}else if ($Q19==2) {$aQ19a=2;	}else if ($Q19==0) {$aQ19a=1;}	else {$aQ19a==1;}
				$aQ19comment=$test['Q19comment'] ;
				$aQ19AI=$test['Q19AI'] ;
				$Q20=$test['Q20'] ; if ($Q20==6) {	$aQ20a=4;}else if ($Q20==4) {$aQ20a=3;}else if ($Q20==2) {$aQ20a=2;	}else if ($Q20==0) {$aQ20a=1;}	else {$aQ20a==1;}
				$aQ20comment=$test['Q20comment'] ;
				$aQ20AI=$test['Q20AI'] ;
				$Q21=$test['Q21'] ; if ($Q21==6) {	$aQ21a=4;}else if ($Q21==4) {$aQ21a=3;}else if ($Q21==2) {$aQ21a=2;	}else if ($Q21==0) {$aQ21a=1;}	else {$aQ21a==1;}
				$aQ21comment=$test['Q21comment'] ;
				$aQ21AI=$test['Q21AI'] ;
				$Q22=$test['Q22'] ; if ($Q22==6) {	$aQ22a=4;}else if ($Q22==4) {$aQ22a=3;}else if ($Q22==2) {$aQ22a=2;	}else if ($Q22==0) {$aQ22a=1;}	else {$aQ22a==1;}
				$aQ22comment=$test['Q22comment'] ;
				$aQ22AI=$test['Q22AI'] ;
				$Q23=$test['Q23'] ; if ($Q23==6) {	$aQ23a=4;}else if ($Q23==4) {$aQ23a=3;}else if ($Q23==2) {$aQ23a=2;	}else if ($Q23==0) {$aQ23a=1;}	else {$aQ23a==1;}
				$aQ23comment=$test['Q23comment'] ;
				$aQ23AI=$test['Q23AI'] ;
				$Q24=$test['Q24'] ; if ($Q24==6) {	$aQ24a=4;}else if ($Q24==4) {$aQ24a=3;}else if ($Q24==2) {$aQ24a=2;	}else if ($Q24==0) {$aQ24a=1;}	else {$aQ24a==1;}
				$aQ24comment=$test['Q24comment'] ;
				$aQ24AI=$test['Q24AI'] ;
				$Q25=$test['Q25'] ; if ($Q25==6) {	$aQ25a=4;}else if ($Q25==4) {$aQ25a=3;}else if ($Q25==2) {$aQ25a=2;	}else if ($Q25==0) {$aQ25a=1;}	else {$aQ25a==1;}
				$aQ25comment=$test['Q25comment'] ;
				$aQ25AI=$test['Q25AI'] ;
				$Q26=$test['Q26'] ; if ($Q26==6) {	$aQ26a=4;}else if ($Q26==4) {$aQ26a=3;}else if ($Q26==2) {$aQ26a=2;	}else if ($Q26==0) {$aQ26a=1;}	else {$aQ26a==1;}
				$aQ26comment=$test['Q26comment'] ;
				$aQ26AI=$test['Q26AI'] ;
				$Q27=$test['Q27'] ; if ($Q27==6) {	$aQ27a=4;}else if ($Q27==4) {$aQ27a=3;}else if ($Q27==2) {$aQ27a=2;	}else if ($Q27==0) {$aQ27a=1;}	else {$aQ27a==1;}
				$aQ27comment=$test['Q27comment'] ;
				$aQ27AI=$test['Q27AI'] ;	
				$Q28=$test['Q28'] ; if ($Q28==6) {	$aQ28a=4;}else if ($Q28==4) {$aQ28a=3;}else if ($Q28==2) {$aQ28a=2;	}else if ($Q28==0) {$aQ28a=1;}	else {$aQ28a==1;}
				$aQ28comment=$test['Q28comment'] ;
				$aQ28AI=$test['Q28AI'] ;
				$Q29=$test['Q29'] ; if ($Q29==6) {	$aQ29a=4;}else if ($Q29==4) {$aQ29a=3;}else if ($Q29==2) {$aQ29a=2;	}else if ($Q29==0) {$aQ29a=1;}	else {$aQ29a==1;}
				$aQ29comment=$test['Q29comment'] ;
				$aQ29AI=$test['Q29AI'] ;
				$Q30=$test['Q30'] ; if ($Q30==6) {	$aQ30a=4;}else if ($Q30==4) {$aQ30a=3;}else if ($Q30==2) {$aQ30a=2;	}else if ($Q30==0) {$aQ30a=1;}	else {$aQ30a==1;}
				$aQ30comment=$test['Q30comment'] ;
				$aQ30AI=$test['Q30AI'] ;
				$Q31=$test['Q31'] ; if ($Q31==6) {	$aQ31a=4;}else if ($Q31==4) {$aQ31a=3;}else if ($Q31==2) {$aQ31a=2;	}else if ($Q31==0) {$aQ31a=1;}	else {$aQ31a==1;}
				$aQ31comment=$test['Q31comment'] ;
				$aQ31AI=$test['Q31AI'] ;
				$Q32=$test['Q32'] ; if ($Q32==6) {	$aQ32a=4;}else if ($Q32==4) {$aQ32a=3;}else if ($Q32==2) {$aQ32a=2;	}else if ($Q32==0) {$aQ32a=1;}	else {$aQ32a==1;}
				$aQ32comment=$test['Q32comment'] ;
				$aQ32AI=$test['Q32AI'] ;
				$Q33=$test['Q33'] ; if ($Q33==6) {	$aQ33a=4;}else if ($Q33==4) {$aQ33a=3;}else if ($Q33==2) {$aQ33a=2;	}else if ($Q33==0) {$aQ33a=1;}	else {$aQ33a==1;}
				$aQ33comment=$test['Q33comment'] ;
				$aQ33AI=$test['Q33AI'] ;
				$Q34=$test['Q34'] ; if ($Q34==6) {	$aQ34a=4;}else if ($Q34==4) {$aQ34a=3;}else if ($Q34==2) {$aQ34a=2;	}else if ($Q34==0) {$aQ34a=1;}	else {$aQ34a==1;}
				$aQ34comment=$test['Q34comment'] ;
				$aQ34AI=$test['Q34AI'] ;
				$Q35=$test['Q35'] ; if ($Q35==6) {	$aQ35a=4;}else if ($Q35==4) {$aQ35a=3;}else if ($Q35==2) {$aQ35a=2;	}else if ($Q35==0) {$aQ35a=1;}	else {$aQ35a==1;}
				$aQ35comment=$test['Q35comment'] ;
				$aQ35AI=$test['Q35AI'] ;
				$Q36=$test['Q36'] ; if ($Q36==6) {	$aQ36a=4;}else if ($Q36==4) {$aQ36a=3;}else if ($Q36==2) {$aQ36a=2;	}else if ($Q36==0) {$aQ36a=1;}	else {$aQ36a==1;}
				$aQ36comment=$test['Q36comment'] ;
				$aQ36AI=$test['Q36AI'] ;
				$Q37=$test['Q37'] ; if ($Q37==6) {	$aQ37a=4;}else if ($Q37==4) {$aQ37a=3;}else if ($Q37==2) {$aQ37a=2;	}else if ($Q37==0) {$aQ37a=1;}	else {$aQ37a==1;}
				$aQ37comment=$test['Q37comment'] ;
				$aQ37AI=$test['Q37AI'] ;
				$Q38=$test['Q38'] ; if ($Q38==6) {	$aQ38a=4;}else if ($Q38==4) {$aQ38a=3;}else if ($Q38==2) {$aQ38a=2;	}else if ($Q38==0) {$aQ38a=1;}	else {$aQ38a==1;}
				$aQ38comment=$test['Q38comment'] ;
				$aQ38AI=$test['Q38AI'] ;
				$Q39=$test['Q39'] ; if ($Q39==6) {	$aQ39a=4;}else if ($Q39==4) {$aQ39a=3;}else if ($Q39==2) {$aQ39a=2;	}else if ($Q39==0) {$aQ39a=1;}	else {$aQ39a==1;}
				$aQ39comment=$test['Q39comment'] ;
				$aQ39AI=$test['Q39AI'] ;
				$Q40=$test['Q40'] ; if ($Q40==6) {	$aQ40a=4;}else if ($Q40==4) {$aQ40a=3;}else if ($Q40==2) {$aQ40a=2;	}else if ($Q40==0) {$aQ40a=1;}	else {$aQ40a==1;}
				$aQ40comment=$test['Q40comment'] ;
				$aQ40AI=$test['Q40AI'] ;
				$Q41=$test['Q41'] ; if ($Q41==6) {	$aQ41a=4;}else if ($Q41==4) {$aQ41a=3;}else if ($Q41==2) {$aQ41a=2;	}else if ($Q41==0) {$aQ41a=1;}	else {$aQ41a==1;}
				$aQ41comment=$test['Q41comment'] ;
				$aQ41AI=$test['Q41AI'] ;
				
//this is B
$result = mysql_query("SELECT * FROM dossierform WHERE idvac='$idvac' AND AssessNo='B'") ;
$test = mysql_fetch_array($result);
if (!$result)
		{
		die("Ralat! Sila cuba semula.");
		}					
				$Assess=$test['Assess'] ;
				$idvac=$test['idvac'] ;
				$datesubmit=$test['datesubmit'] ;
				$Q1=$test['Q1'] ; if ($Q1==6) {	$bQ1a=4;}else if ($Q1==4) {$bQ1a=3;}else if ($Q1==2) {$bQ1a=2;	}else if ($Q1==0) {$bQ1a=1;}	else {$bQ1a==1;}
				$bQ1comment=$test['Q1comment'] ;
				$bQ1AI=$test['Q1AI'] ;
				$Q2=$test['Q2'] ; if ($Q2==6) {	$bQ2a=4;}else if ($Q2==4) {$bQ2a=3;}else if ($Q2==2) {$bQ2a=2;	}else if ($Q2==0) {$bQ2a=1;}	else {$bQ2a==1;}
				$bQ2comment=$test['Q2comment'] ;
				$bQ2AI=$test['Q2AI'] ;
				$Q3=$test['Q3'] ; if ($Q3==6) {	$bQ3a=4;}else if ($Q3==4) {$bQ3a=3;}else if ($Q3==2) {$bQ3a=2;	}else if ($Q3==0) {$bQ3a=1;}	else {$bQ3a==1;}
				$bQ3comment=$test['Q3comment'] ;
				$bQ3AI=$test['Q3AI'] ;
				$Q4=$test['Q4'] ; if ($Q4==6) {	$bQ4a=4;}else if ($Q4==4) {$bQ4a=3;}else if ($Q4==2) {$bQ4a=2;	}else if ($Q4==0) {$bQ4a=1;}	else {$bQ4a==1;}
				$bQ4comment=$test['Q4comment'] ;
				$bQ4AI=$test['Q4AI'] ;
				$Q5=$test['Q5'] ; if ($Q5==6) {	$bQ5a=4;}else if ($Q5==4) {$bQ5a=3;}else if ($Q5==2) {$bQ5a=2;	}else if ($Q5==0) {$bQ5a=1;}	else {$bQ5a==1;}
				$bQ5comment=$test['Q5comment'] ;
				$bQ5AI=$test['Q5AI'] ;
				$Q6=$test['Q6'] ; if ($Q6==6) {	$bQ6a=4;}else if ($Q6==4) {$bQ6a=3;}else if ($Q6==2) {$bQ6a=2;	}else if ($Q6==0) {$bQ6a=1;}	else {$bQ6a==1;}
				$bQ6comment=$test['Q6comment'] ;
				$bQ6AI=$test['Q6AI'] ;
				$Q7=$test['Q7'] ; if ($Q7==6) {	$bQ7a=4;}else if ($Q7==4) {$bQ7a=3;}else if ($Q7==2) {$bQ7a=2;	}else if ($Q7==0) {$bQ7a=1;}	else {$bQ7a==1;}
				$bQ7comment=$test['Q7comment'] ;
				$bQ7AI=$test['Q7AI'] ;				
				$Q8=$test['Q8'] ; if ($Q8==6) {	$bQ8a=4;}else if ($Q8==4) {$bQ8a=3;}else if ($Q8==2) {$bQ8a=2;	}else if ($Q8==0) {$bQ8a=1;}	else {$bQ8a==1;}
				$bQ8comment=$test['Q8comment'] ;
				$bQ8AI=$test['Q8AI'] ;				
				$Q9=$test['Q9'] ; if ($Q9==6) {	$bQ9a=4;}else if ($Q9==4) {$bQ9a=3;}else if ($Q9==2) {$bQ9a=2;	}else if ($Q9==0) {$bQ9a=1;}	else {$bQ9a==1;}
				$bQ9comment=$test['Q9comment'] ;
				$bQ9AI=$test['Q9AI'] ;
				$Q10=$test['Q10'] ; if ($Q10==6) {	$bQ10a=4;}else if ($Q10==4) {$bQ10a=3;}else if ($Q10==2) {$bQ10a=2;	}else if ($Q10==0) {$bQ10a=1;}	else {$bQ10a==1;}
				$bQ10comment=$test['Q10comment'] ;
				$bQ10AI=$test['Q10AI'] ;	
				$Q11=$test['Q11'] ; if ($Q11==6) {	$bQ11a=4;}else if ($Q11==4) {$bQ11a=3;}else if ($Q11==2) {$bQ11a=2;	}else if ($Q11==0) {$bQ11a=1;}	else {$bQ11a==1;}
				$bQ11comment=$test['Q11comment'] ;
				$bQ11AI=$test['Q11AI'] ;				
				$Q12=$test['Q12'] ; if ($Q12==6) {	$bQ12a=4;}else if ($Q12==4) {$bQ12a=3;}else if ($Q12==2) {$bQ12a=2;	}else if ($Q12==0) {$bQ12a=1;}	else {$bQ12a==1;}
				$bQ12comment=$test['Q12comment'] ;
				$bQ12AI=$test['Q12AI'] ;				
				$Q13=$test['Q13'] ; if ($Q13==6) {	$bQ13a=4;}else if ($Q13==4) {$bQ13a=3;}else if ($Q13==2) {$bQ13a=2;	}else if ($Q13==0) {$bQ13a=1;}	else {$bQ13a==1;}
				$bQ13comment=$test['Q13comment'] ;
				$bQ13AI=$test['Q13AI'] ;				
				$Q14=$test['Q14'] ; if ($Q14==6) {	$bQ14a=4;}else if ($Q14==4) {$bQ14a=3;}else if ($Q14==2) {$bQ14a=2;	}else if ($Q14==0) {$bQ14a=1;}	else {$bQ14a==1;}
				$bQ14comment=$test['Q14comment'] ;
				$bQ14AI=$test['Q14AI'] ;				
				$Q15=$test['Q15'] ; if ($Q15==6) {	$bQ15a=4;}else if ($Q15==4) {$bQ15a=3;}else if ($Q15==2) {$bQ15a=2;	}else if ($Q15==0) {$bQ15a=1;}	else {$bQ15a==1;}
				$bQ15comment=$test['Q15comment'] ;
				$bQ15AI=$test['Q15AI'] ;				
				$Q16=$test['Q16'] ; if ($Q16==6) {	$bQ16a=4;}else if ($Q16==4) {$bQ16a=3;}else if ($Q16==2) {$bQ16a=2;	}else if ($Q16==0) {$bQ16a=1;}	else {$bQ16a==1;}
				$bQ16comment=$test['Q16comment'] ;
				$bQ16AI=$test['Q16AI'] ;				
				$Q17=$test['Q17'] ; if ($Q17==6) {	$bQ17a=4;}else if ($Q17==4) {$bQ17a=3;}else if ($Q17==2) {$bQ17a=2;	}else if ($Q17==0) {$bQ17a=1;}	else {$bQ17a==1;}
				$bQ17comment=$test['Q17comment'] ;
				$bQ17AI=$test['Q17AI'] ;				
				$Q18=$test['Q18'] ; if ($Q18==6) {	$bQ18a=4;}else if ($Q18==4) {$bQ18a=3;}else if ($Q18==2) {$bQ18a=2;	}else if ($Q18==0) {$bQ18a=1;}	else {$bQ18a==1;}
				$bQ18comment=$test['Q18comment'] ;
				$bQ18AI=$test['Q18AI'] ;				
				$Q19=$test['Q19'] ; if ($Q19==6) {	$bQ19a=4;}else if ($Q19==4) {$bQ19a=3;}else if ($Q19==2) {$bQ19a=2;	}else if ($Q19==0) {$bQ19a=1;}	else {$bQ19a==1;}
				$bQ19comment=$test['Q19comment'] ;
				$bQ19AI=$test['Q19AI'] ;
				$Q20=$test['Q20'] ; if ($Q20==6) {	$bQ20a=4;}else if ($Q20==4) {$bQ20a=3;}else if ($Q20==2) {$bQ20a=2;	}else if ($Q20==0) {$bQ20a=1;}	else {$bQ20a==1;}
				$bQ20comment=$test['Q20comment'] ;
				$bQ20AI=$test['Q20AI'] ;
				$Q21=$test['Q21'] ; if ($Q21==6) {	$bQ21a=4;}else if ($Q21==4) {$bQ21a=3;}else if ($Q21==2) {$bQ21a=2;	}else if ($Q21==0) {$bQ21a=1;}	else {$bQ21a==1;}
				$bQ21comment=$test['Q21comment'] ;
				$bQ21AI=$test['Q21AI'] ;
				$Q22=$test['Q22'] ; if ($Q22==6) {	$bQ22a=4;}else if ($Q22==4) {$bQ22a=3;}else if ($Q22==2) {$bQ22a=2;	}else if ($Q22==0) {$bQ22a=1;}	else {$bQ22a==1;}
				$bQ22comment=$test['Q22comment'] ;
				$bQ22AI=$test['Q22AI'] ;
				$Q23=$test['Q23'] ; if ($Q23==6) {	$bQ23a=4;}else if ($Q23==4) {$bQ23a=3;}else if ($Q23==2) {$bQ23a=2;	}else if ($Q23==0) {$bQ23a=1;}	else {$bQ23a==1;}
				$bQ23comment=$test['Q23comment'] ;
				$bQ23AI=$test['Q23AI'] ;
				$Q24=$test['Q24'] ; if ($Q24==6) {	$bQ24a=4;}else if ($Q24==4) {$bQ24a=3;}else if ($Q24==2) {$bQ24a=2;	}else if ($Q24==0) {$bQ24a=1;}	else {$bQ24a==1;}
				$bQ24comment=$test['Q24comment'] ;
				$bQ24AI=$test['Q24AI'] ;
				$Q25=$test['Q25'] ; if ($Q25==6) {	$bQ25a=4;}else if ($Q25==4) {$bQ25a=3;}else if ($Q25==2) {$bQ25a=2;	}else if ($Q25==0) {$bQ25a=1;}	else {$bQ25a==1;}
				$bQ25comment=$test['Q25comment'] ;
				$bQ25AI=$test['Q25AI'] ;
				$Q26=$test['Q26'] ; if ($Q26==6) {	$bQ26a=4;}else if ($Q26==4) {$bQ26a=3;}else if ($Q26==2) {$bQ26a=2;	}else if ($Q26==0) {$bQ26a=1;}	else {$bQ26a==1;}
				$bQ26comment=$test['Q26comment'] ;
				$bQ26AI=$test['Q26AI'] ;
				$Q27=$test['Q27'] ; if ($Q27==6) {	$bQ27a=4;}else if ($Q27==4) {$bQ27a=3;}else if ($Q27==2) {$bQ27a=2;	}else if ($Q27==0) {$bQ27a=1;}	else {$bQ27a==1;}
				$bQ27comment=$test['Q27comment'] ;
				$bQ27AI=$test['Q27AI'] ;	
				$Q28=$test['Q28'] ; if ($Q28==6) {	$bQ28a=4;}else if ($Q28==4) {$bQ28a=3;}else if ($Q28==2) {$bQ28a=2;	}else if ($Q28==0) {$bQ28a=1;}	else {$bQ28a==1;}
				$bQ28comment=$test['Q28comment'] ;
				$bQ28AI=$test['Q28AI'] ;
				$Q29=$test['Q29'] ; if ($Q29==6) {	$bQ29a=4;}else if ($Q29==4) {$bQ29a=3;}else if ($Q29==2) {$bQ29a=2;	}else if ($Q29==0) {$bQ29a=1;}	else {$bQ29a==1;}
				$bQ29comment=$test['Q29comment'] ;
				$bQ29AI=$test['Q29AI'] ;
				$Q30=$test['Q30'] ; if ($Q30==6) {	$bQ30a=4;}else if ($Q30==4) {$bQ30a=3;}else if ($Q30==2) {$bQ30a=2;	}else if ($Q30==0) {$bQ30a=1;}	else {$bQ30a==1;}
				$bQ30comment=$test['Q30comment'] ;
				$bQ30AI=$test['Q30AI'] ;
				$Q31=$test['Q31'] ; if ($Q31==6) {	$bQ31a=4;}else if ($Q31==4) {$bQ31a=3;}else if ($Q31==2) {$bQ31a=2;	}else if ($Q31==0) {$bQ31a=1;}	else {$bQ31a==1;}
				$bQ31comment=$test['Q31comment'] ;
				$bQ31AI=$test['Q31AI'] ;
				$Q32=$test['Q32'] ; if ($Q32==6) {	$bQ32a=4;}else if ($Q32==4) {$bQ32a=3;}else if ($Q32==2) {$bQ32a=2;	}else if ($Q32==0) {$bQ32a=1;}	else {$bQ32a==1;}
				$bQ32comment=$test['Q32comment'] ;
				$bQ32AI=$test['Q32AI'] ;
				$Q33=$test['Q33'] ; if ($Q33==6) {	$bQ33a=4;}else if ($Q33==4) {$bQ33a=3;}else if ($Q33==2) {$bQ33a=2;	}else if ($Q33==0) {$bQ33a=1;}	else {$bQ33a==1;}
				$bQ33comment=$test['Q33comment'] ;
				$bQ33AI=$test['Q33AI'] ;
				$Q34=$test['Q34'] ; if ($Q34==6) {	$bQ34a=4;}else if ($Q34==4) {$bQ34a=3;}else if ($Q34==2) {$bQ34a=2;	}else if ($Q34==0) {$bQ34a=1;}	else {$bQ34a==1;}
				$bQ34comment=$test['Q34comment'] ;
				$bQ34AI=$test['Q34AI'] ;
				$Q35=$test['Q35'] ; if ($Q35==6) {	$bQ35a=4;}else if ($Q35==4) {$bQ35a=3;}else if ($Q35==2) {$bQ35a=2;	}else if ($Q35==0) {$bQ35a=1;}	else {$bQ35a==1;}
				$bQ35comment=$test['Q35comment'] ;
				$bQ35AI=$test['Q35AI'] ;
				$Q36=$test['Q36'] ; if ($Q36==6) {	$bQ36a=4;}else if ($Q36==4) {$bQ36a=3;}else if ($Q36==2) {$bQ36a=2;	}else if ($Q36==0) {$bQ36a=1;}	else {$bQ36a==1;}
				$bQ36comment=$test['Q36comment'] ;
				$bQ36AI=$test['Q36AI'] ;
				$Q37=$test['Q37'] ; if ($Q37==6) {	$bQ37a=4;}else if ($Q37==4) {$bQ37a=3;}else if ($Q37==2) {$bQ37a=2;	}else if ($Q37==0) {$bQ37a=1;}	else {$bQ37a==1;}
				$bQ37comment=$test['Q37comment'] ;
				$bQ37AI=$test['Q37AI'] ;
				$Q38=$test['Q38'] ; if ($Q38==6) {	$bQ38a=4;}else if ($Q38==4) {$bQ38a=3;}else if ($Q38==2) {$bQ38a=2;	}else if ($Q38==0) {$bQ38a=1;}	else {$bQ38a==1;}
				$bQ38comment=$test['Q38comment'] ;
				$bQ38AI=$test['Q38AI'] ;
				$Q39=$test['Q39'] ; if ($Q39==6) {	$bQ39a=4;}else if ($Q39==4) {$bQ39a=3;}else if ($Q39==2) {$bQ39a=2;	}else if ($Q39==0) {$bQ39a=1;}	else {$bQ39a==1;}
				$bQ39comment=$test['Q39comment'] ;
				$bQ39AI=$test['Q39AI'] ;
				$Q40=$test['Q40'] ; if ($Q40==6) {	$bQ40a=4;}else if ($Q40==4) {$bQ40a=3;}else if ($Q40==2) {$bQ40a=2;	}else if ($Q40==0) {$bQ40a=1;}	else {$bQ40a==1;}
				$bQ40comment=$test['Q40comment'] ;
				$bQ40AI=$test['Q40AI'] ;
				$Q41=$test['Q41'] ; if ($Q41==6) {	$bQ41a=4;}else if ($Q41==4) {$bQ41a=3;}else if ($Q41==2) {$bQ41a=2;	}else if ($Q41==0) {$bQ41a=1;}	else {$bQ41a==1;}
				$bQ41comment=$test['Q41comment'] ;
				$bQ41AI=$test['Q41AI'] ;
			

				
//this is C
$result = mysql_query("SELECT * FROM dossierform WHERE idvac='$idvac' AND AssessNo='C'") ;
$test = mysql_fetch_array($result);
if (!$result)
		{
		die("Ralat! Sila cuba semula.");
		}					
				$Assess=$test['Assess'] ;
				$idvac=$test['idvac'] ;
				$datesubmit=$test['datesubmit'] ;
				$Q1=$test['Q1'] ; if ($Q1==6) {	$cQ1a=4;}else if ($Q1==4) {$cQ1a=3;}else if ($Q1==2) {$cQ1a=2;	}else if ($Q1==0) {$cQ1a=1;}	else {$cQ1a==1;}
				$cQ1comment=$test['Q1comment'] ;
				$cQ1AI=$test['Q1AI'] ;
				$Q2=$test['Q2'] ; if ($Q2==6) {	$cQ2a=4;}else if ($Q2==4) {$cQ2a=3;}else if ($Q2==2) {$cQ2a=2;	}else if ($Q2==0) {$cQ2a=1;}	else {$cQ2a==1;}
				$cQ2comment=$test['Q2comment'] ;
				$cQ2AI=$test['Q2AI'] ;
				$Q3=$test['Q3'] ; if ($Q3==6) {	$cQ3a=4;}else if ($Q3==4) {$cQ3a=3;}else if ($Q3==2) {$cQ3a=2;	}else if ($Q3==0) {$cQ3a=1;}	else {$cQ3a==1;}
				$cQ3comment=$test['Q3comment'] ;
				$cQ3AI=$test['Q3AI'] ;
				$Q4=$test['Q4'] ; if ($Q4==6) {	$cQ4a=4;}else if ($Q4==4) {$cQ4a=3;}else if ($Q4==2) {$cQ4a=2;	}else if ($Q4==0) {$cQ4a=1;}	else {$cQ4a==1;}
				$cQ4comment=$test['Q4comment'] ;
				$cQ4AI=$test['Q4AI'] ;
				$Q5=$test['Q5'] ; if ($Q5==6) {	$cQ5a=4;}else if ($Q5==4) {$cQ5a=3;}else if ($Q5==2) {$cQ5a=2;	}else if ($Q5==0) {$cQ5a=1;}	else {$cQ5a==1;}
				$cQ5comment=$test['Q5comment'] ;
				$cQ5AI=$test['Q5AI'] ;
				$Q6=$test['Q6'] ; if ($Q6==6) {	$cQ6a=4;}else if ($Q6==4) {$cQ6a=3;}else if ($Q6==2) {$cQ6a=2;	}else if ($Q6==0) {$cQ6a=1;}	else {$cQ6a==1;}
				$cQ6comment=$test['Q6comment'] ;
				$cQ6AI=$test['Q6AI'] ;
				$Q7=$test['Q7'] ; if ($Q7==6) {	$cQ7a=4;}else if ($Q7==4) {$cQ7a=3;}else if ($Q7==2) {$cQ7a=2;	}else if ($Q7==0) {$cQ7a=1;}	else {$cQ7a==1;}
				$cQ7comment=$test['Q7comment'] ;
				$cQ7AI=$test['Q7AI'] ;				
				$Q8=$test['Q8'] ; if ($Q8==6) {	$cQ8a=4;}else if ($Q8==4) {$cQ8a=3;}else if ($Q8==2) {$cQ8a=2;	}else if ($Q8==0) {$cQ8a=1;}	else {$cQ8a==1;}
				$cQ8comment=$test['Q8comment'] ;
				$cQ8AI=$test['Q8AI'] ;				
				$Q9=$test['Q9'] ; if ($Q9==6) {	$cQ9a=4;}else if ($Q9==4) {$cQ9a=3;}else if ($Q9==2) {$cQ9a=2;	}else if ($Q9==0) {$cQ9a=1;}	else {$cQ9a==1;}
				$cQ9comment=$test['Q9comment'] ;
				$cQ9AI=$test['Q9AI'] ;
				$Q10=$test['Q10'] ; if ($Q10==6) {	$cQ10a=4;}else if ($Q10==4) {$cQ10a=3;}else if ($Q10==2) {$cQ10a=2;	}else if ($Q10==0) {$cQ10a=1;}	else {$cQ10a==1;}
				$cQ10comment=$test['Q10comment'] ;
				$cQ10AI=$test['Q10AI'] ;	
				$Q11=$test['Q11'] ; if ($Q11==6) {	$cQ11a=4;}else if ($Q11==4) {$cQ11a=3;}else if ($Q11==2) {$cQ11a=2;	}else if ($Q11==0) {$cQ11a=1;}	else {$cQ11a==1;}
				$cQ11comment=$test['Q11comment'] ;
				$cQ11AI=$test['Q11AI'] ;				
				$Q12=$test['Q12'] ; if ($Q12==6) {	$cQ12a=4;}else if ($Q12==4) {$cQ12a=3;}else if ($Q12==2) {$cQ12a=2;	}else if ($Q12==0) {$cQ12a=1;}	else {$cQ12a==1;}
				$cQ12comment=$test['Q12comment'] ;
				$cQ12AI=$test['Q12AI'] ;				
				$Q13=$test['Q13'] ; if ($Q13==6) {	$cQ13a=4;}else if ($Q13==4) {$cQ13a=3;}else if ($Q13==2) {$cQ13a=2;	}else if ($Q13==0) {$cQ13a=1;}	else {$cQ13a==1;}
				$cQ13comment=$test['Q13comment'] ;
				$cQ13AI=$test['Q13AI'] ;				
				$Q14=$test['Q14'] ; if ($Q14==6) {	$cQ14a=4;}else if ($Q14==4) {$cQ14a=3;}else if ($Q14==2) {$cQ14a=2;	}else if ($Q14==0) {$cQ14a=1;}	else {$cQ14a==1;}
				$cQ14comment=$test['Q14comment'] ;
				$cQ14AI=$test['Q14AI'] ;				
				$Q15=$test['Q15'] ; if ($Q15==6) {	$cQ15a=4;}else if ($Q15==4) {$cQ15a=3;}else if ($Q15==2) {$cQ15a=2;	}else if ($Q15==0) {$cQ15a=1;}	else {$cQ15a==1;}
				$cQ15comment=$test['Q15comment'] ;
				$cQ15AI=$test['Q15AI'] ;				
				$Q16=$test['Q16'] ; if ($Q16==6) {	$cQ16a=4;}else if ($Q16==4) {$cQ16a=3;}else if ($Q16==2) {$cQ16a=2;	}else if ($Q16==0) {$cQ16a=1;}	else {$cQ16a==1;}
				$cQ16comment=$test['Q16comment'] ;
				$cQ16AI=$test['Q16AI'] ;				
				$Q17=$test['Q17'] ; if ($Q17==6) {	$cQ17a=4;}else if ($Q17==4) {$cQ17a=3;}else if ($Q17==2) {$cQ17a=2;	}else if ($Q17==0) {$cQ17a=1;}	else {$cQ17a==1;}
				$cQ17comment=$test['Q17comment'] ;
				$cQ17AI=$test['Q17AI'] ;				
				$Q18=$test['Q18'] ; if ($Q18==6) {	$cQ18a=4;}else if ($Q18==4) {$cQ18a=3;}else if ($Q18==2) {$cQ18a=2;	}else if ($Q18==0) {$cQ18a=1;}	else {$cQ18a==1;}
				$cQ18comment=$test['Q18comment'] ;
				$cQ18AI=$test['Q18AI'] ;				
				$Q19=$test['Q19'] ; if ($Q19==6) {	$cQ19a=4;}else if ($Q19==4) {$cQ19a=3;}else if ($Q19==2) {$cQ19a=2;	}else if ($Q19==0) {$cQ19a=1;}	else {$cQ19a==1;}
				$cQ19comment=$test['Q19comment'] ;
				$cQ19AI=$test['Q19AI'] ;
				$Q20=$test['Q20'] ; if ($Q20==6) {	$cQ20a=4;}else if ($Q20==4) {$cQ20a=3;}else if ($Q20==2) {$cQ20a=2;	}else if ($Q20==0) {$cQ20a=1;}	else {$cQ20a==1;}
				$cQ20comment=$test['Q20comment'] ;
				$cQ20AI=$test['Q20AI'] ;
				$Q21=$test['Q21'] ; if ($Q21==6) {	$cQ21a=4;}else if ($Q21==4) {$cQ21a=3;}else if ($Q21==2) {$cQ21a=2;	}else if ($Q21==0) {$cQ21a=1;}	else {$cQ21a==1;}
				$cQ21comment=$test['Q21comment'] ;
				$cQ21AI=$test['Q21AI'] ;
				$Q22=$test['Q22'] ; if ($Q22==6) {	$cQ22a=4;}else if ($Q22==4) {$cQ22a=3;}else if ($Q22==2) {$cQ22a=2;	}else if ($Q22==0) {$cQ22a=1;}	else {$cQ22a==1;}
				$cQ22comment=$test['Q22comment'] ;
				$cQ22AI=$test['Q22AI'] ;
				$Q23=$test['Q23'] ; if ($Q23==6) {	$cQ23a=4;}else if ($Q23==4) {$cQ23a=3;}else if ($Q23==2) {$cQ23a=2;	}else if ($Q23==0) {$cQ23a=1;}	else {$cQ23a==1;}
				$cQ23comment=$test['Q23comment'] ;
				$cQ23AI=$test['Q23AI'] ;
				$Q24=$test['Q24'] ; if ($Q24==6) {	$cQ24a=4;}else if ($Q24==4) {$cQ24a=3;}else if ($Q24==2) {$cQ24a=2;	}else if ($Q24==0) {$cQ24a=1;}	else {$cQ24a==1;}
				$cQ24comment=$test['Q24comment'] ;
				$cQ24AI=$test['Q24AI'] ;
				$Q25=$test['Q25'] ; if ($Q25==6) {	$cQ25a=4;}else if ($Q25==4) {$cQ25a=3;}else if ($Q25==2) {$cQ25a=2;	}else if ($Q25==0) {$cQ25a=1;}	else {$cQ25a==1;}
				$cQ25comment=$test['Q25comment'] ;
				$cQ25AI=$test['Q25AI'] ;
				$Q26=$test['Q26'] ; if ($Q26==6) {	$cQ26a=4;}else if ($Q26==4) {$cQ26a=3;}else if ($Q26==2) {$cQ26a=2;	}else if ($Q26==0) {$cQ26a=1;}	else {$cQ26a==1;}
				$cQ26comment=$test['Q26comment'] ;
				$cQ26AI=$test['Q26AI'] ;
				$Q27=$test['Q27'] ; if ($Q27==6) {	$cQ27a=4;}else if ($Q27==4) {$cQ27a=3;}else if ($Q27==2) {$cQ27a=2;	}else if ($Q27==0) {$cQ27a=1;}	else {$cQ27a==1;}
				$cQ27comment=$test['Q27comment'] ;
				$cQ27AI=$test['Q27AI'] ;	
				$Q28=$test['Q28'] ; if ($Q28==6) {	$cQ28a=4;}else if ($Q28==4) {$cQ28a=3;}else if ($Q28==2) {$cQ28a=2;	}else if ($Q28==0) {$cQ28a=1;}	else {$cQ28a==1;}
				$cQ28comment=$test['Q28comment'] ;
				$cQ28AI=$test['Q28AI'] ;
				$Q29=$test['Q29'] ; if ($Q29==6) {	$cQ29a=4;}else if ($Q29==4) {$cQ29a=3;}else if ($Q29==2) {$cQ29a=2;	}else if ($Q29==0) {$cQ29a=1;}	else {$cQ29a==1;}
				$cQ29comment=$test['Q29comment'] ;
				$cQ29AI=$test['Q29AI'] ;
				$Q30=$test['Q30'] ; if ($Q30==6) {	$cQ30a=4;}else if ($Q30==4) {$cQ30a=3;}else if ($Q30==2) {$cQ30a=2;	}else if ($Q30==0) {$cQ30a=1;}	else {$cQ30a==1;}
				$cQ30comment=$test['Q30comment'] ;
				$cQ30AI=$test['Q30AI'] ;
				$Q31=$test['Q31'] ; if ($Q31==6) {	$cQ31a=4;}else if ($Q31==4) {$cQ31a=3;}else if ($Q31==2) {$cQ31a=2;	}else if ($Q31==0) {$cQ31a=1;}	else {$cQ31a==1;}
				$cQ31comment=$test['Q31comment'] ;
				$cQ31AI=$test['Q31AI'] ;
				$Q32=$test['Q32'] ; if ($Q32==6) {	$cQ32a=4;}else if ($Q32==4) {$cQ32a=3;}else if ($Q32==2) {$cQ32a=2;	}else if ($Q32==0) {$cQ32a=1;}	else {$cQ32a==1;}
				$cQ32comment=$test['Q32comment'] ;
				$cQ32AI=$test['Q32AI'] ;
				$Q33=$test['Q33'] ; if ($Q33==6) {	$cQ33a=4;}else if ($Q33==4) {$cQ33a=3;}else if ($Q33==2) {$cQ33a=2;	}else if ($Q33==0) {$cQ33a=1;}	else {$cQ33a==1;}
				$cQ33comment=$test['Q33comment'] ;
				$cQ33AI=$test['Q33AI'] ;
				$Q34=$test['Q34'] ; if ($Q34==6) {	$cQ34a=4;}else if ($Q34==4) {$cQ34a=3;}else if ($Q34==2) {$cQ34a=2;	}else if ($Q34==0) {$cQ34a=1;}	else {$cQ34a==1;}
				$cQ34comment=$test['Q34comment'] ;
				$cQ34AI=$test['Q34AI'] ;
				$Q35=$test['Q35'] ; if ($Q35==6) {	$cQ35a=4;}else if ($Q35==4) {$cQ35a=3;}else if ($Q35==2) {$cQ35a=2;	}else if ($Q35==0) {$cQ35a=1;}	else {$cQ35a==1;}
				$cQ35comment=$test['Q35comment'] ;
				$cQ35AI=$test['Q35AI'] ;
				$Q36=$test['Q36'] ; if ($Q36==6) {	$cQ36a=4;}else if ($Q36==4) {$cQ36a=3;}else if ($Q36==2) {$cQ36a=2;	}else if ($Q36==0) {$cQ36a=1;}	else {$cQ36a==1;}
				$cQ36comment=$test['Q36comment'] ;
				$cQ36AI=$test['Q36AI'] ;
				$Q37=$test['Q37'] ; if ($Q37==6) {	$cQ37a=4;}else if ($Q37==4) {$cQ37a=3;}else if ($Q37==2) {$cQ37a=2;	}else if ($Q37==0) {$cQ37a=1;}	else {$cQ37a==1;}
				$cQ37comment=$test['Q37comment'] ;
				$cQ37AI=$test['Q37AI'] ;
				$Q38=$test['Q38'] ; if ($Q38==6) {	$cQ38a=4;}else if ($Q38==4) {$cQ38a=3;}else if ($Q38==2) {$cQ38a=2;	}else if ($Q38==0) {$cQ38a=1;}	else {$cQ38a==1;}
				$cQ38comment=$test['Q38comment'] ;
				$cQ38AI=$test['Q38AI'] ;
				$Q39=$test['Q39'] ; if ($Q39==6) {	$cQ39a=4;}else if ($Q39==4) {$cQ39a=3;}else if ($Q39==2) {$cQ39a=2;	}else if ($Q39==0) {$cQ39a=1;}	else {$cQ39a==1;}
				$cQ39comment=$test['Q39comment'] ;
				$cQ39AI=$test['Q39AI'] ;
				$Q40=$test['Q40'] ; if ($Q40==6) {	$cQ40a=4;}else if ($Q40==4) {$cQ40a=3;}else if ($Q40==2) {$cQ40a=2;	}else if ($Q40==0) {$cQ40a=1;}	else {$cQ40a==1;}
				$cQ40comment=$test['Q40comment'] ;
				$cQ40AI=$test['Q40AI'] ;
				$Q41=$test['Q41'] ; if ($Q41==6) {	$cQ41a=4;}else if ($Q41==4) {$cQ41a=3;}else if ($Q41==2) {$cQ41a=2;	}else if ($Q41==0) {$cQ41a=1;}	else {$cQ41a==1;}
				$cQ41comment=$test['Q41comment'] ;
				$cQ41AI=$test['Q41AI'] ;			
				
$headeratas = '
<div style="text-align:center"><img src="img/logo4.png" height="60" width="80" style=""><br><br>
<font face="sans-serif" color="#880000" size="6"><b>VACCINE DOSSIER MAPPING TOOL</b></font></div>

<h3 align="center">Vaccine Dossier Form</h3>
<div style="text-align:center"><strong>DEPARTMENT OF VETERINARY SERVICES</strong><br>

Wisma Tani, Podium Block, Lot 4G1, Persiaran Perdana, Precint 4<br>
Federal Government Administration Centre, 62630 Putrajaya<br>
<i>(Tel)</i> 603-8870 2000   |   <i>(Fax)</i> 03-8890 5830   |   <i>(Web)</i> http://www.dvs.gov.my</div>
<div style="text-align:center"><h5><i><strong>This document was generated on '.date('d M Y').'</strong></i></h5>
<hr />
<div style="text-align:left">
<strong>Dossier ID: </strong>'.$idvac.'<DT>
<strong>Evaluator: </strong><br><td>A. '.$AssessA.', <br>B. '.$AssessB.', <br>C. '.$AssessC.'</td><DT>

<hr />
<strong>Trade Name: </strong><td>'.$tradename.'</td><DT>
<strong>Manufacturer Name: </strong><td>'.$manufacturername.'</td><DT>
<strong>Local Agent Address: </strong><td>'.$locagentadd.'</td><DT>
<strong>Local Agent Contact: </strong><td>'.$loacagentphone.'</td><DT>
<strong>Plant Affiliation: </strong><td>'.$plantaff.'</td><DT>
<strong>Main Plant Activity: </strong><td>'.$mainplant.'</td><DT>
<strong>Type of Vaccine: </strong><td>'.$vacctype.'</td>
<hr />
';

$groupA ='
<h3><strong> A. LICENSE </strong></h3>

<table border = "1" align="center" style="border: 1px solid #880000; font-family: calibri; font-size: 10pt; ">
<thead>
                                            <tr>
                                                <th colspan="1"></th>
												<th colspan="1"></th>
                                                <th colspan="4"><center>Scores</center></th>
                                                <th colspan="3"><center>Assessor Score</center></th>								
												<th colspan="2"><center>Comments and <br> Additional Information</center></th>
												
                                            </tr>
                                        </thead>
										<thead>
                                            <tr>
                                                <th><center>#</center></th>
                                                <th><center>Sub Category</center></th>
                                                <th><center>4</center></th>
                                                <th><center>3</center></th>
												<th><center>2</center></th>
												<th><center>1</center></th>
												<th><center>A</center></th>	
												<th><center>B</center></th>													
												<th><center>C</center></th>
												<th><center>Assessor <br>Comments</center></th>
												<th><center>Additional <br>Information</center></th>
                                            </tr>
                                        </thead>
										<tbody>
                                            <tr>

                                                <th scope="row">1</th>
                                                <td>Copy of manufacturing license or registration certificate of the manufacturer in the country of origin</td>
                                                <td>Availabity of current License and GMP certificates, written in English</td>
                                                <td>Availability of Current License and GMP certificate written in other language</td>
												<td>Availabiity of  Current License only</td>
												<td>License not submitted </td>

    

												<td><center>'.$aQ1a.'</center></td>
												<td><center>'.$bQ1a.'</center></td>
												<td><center>'.$cQ1a.'</center></td>
												<td><center>'.$aQ1comment.'<br>'.$bQ1comment.'<br>'.$cQ1comment.'</center></td>
												<td><center>'.$aQ1AI.'<br>'.$bQ1AI.'<br>'.$cQ1AI.'</center></td>
                                            </tr>
                                            <tr>
                                                <th scope="row">2</th>
                                                <td>Country of Origin</td>
                                                <td>European</td>
                                                <td>North America</td>
												<td>Japan, Australia, Asean</td>
												<td>Others</td>
												<td><center>'.$aQ2a.'</center></td>
												<td><center>'.$bQ2a.'</center></td>
												<td><center>'.$cQ2a.'</center></td>
												<td><center>'.$aQ2comment.'<br>'.$bQ2comment.'<br>'.$cQ2comment.'</center></td>
												<td><center>'.$aQ2AI.'<br>'.$bQ2AI.'<br>'.$cQ2AI.'</center></td>
                                            </tr>
                                            <tr>
                                                <th scope="row">3</th>
                                                <td>Copy of letter of attorney or authorization letter by the manufacturer</td>
                                                <td>Availability of the current letter by the manufacturer  with endorsement from relevant authority or third party.</td>
                                                <td>Availability of the current letter by the manufacturer .</td>
												<td>The letter is written in other than English language</td>
												<td>The letter not submitted, or date has expired.</td>
												<td><center>'.$aQ3a.'</center></td>
												<td><center>'.$bQ3a.'</center></td>
												<td><center>'.$cQ3a.'</center></td>
												<td><center>'.$aQ3comment.'<br>'.$bQ3comment.'<br>'.$cQ3comment.'</center></td>
												<td><center>'.$aQ3AI.'<br>'.$bQ3AI.'<br>'.$cQ3AI.'</center></td>
                                            </tr>
										</tbody>

</table><br>
';

$groupB ='
<h3><strong> B. OTHER INFORMATION AND SUPPORTING DOCUMENTS </strong></h3>

<table border = "1" align="center" style="border: 1px solid #880000; font-family: calibri; font-size: 10pt; ">
<thead>
                                            <tr>
                                                <th colspan="1"></th>
												<th colspan="1"></th>
                                                <th colspan="4"><center>Scores</center></th>
                                                <th colspan="3"><center>Assessor<br>Score</center></th>								
												<th colspan="2"><center>Comments and <br> Additional Information</center></th>
												
                                            </tr>
                                        </thead>
										<thead>
                                            <tr>
                                                <th><center>#</center></th>
                                                <th><center>Sub Category</center></th>
                                                <th><center>4</center></th>
                                                <th><center>3</center></th>
												<th><center>2</center></th>
												<th><center>1</center></th>
												<th><center>A</center></th>
												<th><center>B</center></th>	
												<th><center>C</center></th>												
												<th><center>Assessor <br>Comments</center></th>
												<th><center>Additional <br>Information</center></th>
                                            </tr>
                                        </thead>
										<tbody>
                                            <tr>
                                                <th scope="row">4</th>
                                                <td>Copy of assay certificate or certificate of release for latest 3 batches</td>
                                                <td>Availability of these certificates of the latest 3 vaccine batches</td>
                                                <td>Latest Certificates provided  less than 3 batches</td>
												<td>Latest Certificates provided less than 2 batches </td>
												<td>Certificates not provided or of old batches of production</td>
												<td><center>'.$aQ4a.'</center></td>
												<td><center>'.$bQ4a.'</center></td>
												<td><center>'.$cQ4a.'</center></td>
												<td><center>'.$aQ4comment.'<br>'.$bQ4comment.'<br>'.$cQ4comment.'</center></td>
												<td><center>'.$aQ4AI.'<br>'.$bQ4AI.'<br>'.$cQ4AI.'</center></td>
                                            </tr>
                                            <tr>
                                                <th scope="row">5</th>
                                                <td>Copy of registration certificate or free sale certificate of vaccine in country of origin</td>
                                                <td>Availability of current  registration certificate  and  free sale certificate in country of origin</td>
                                                <td>Availability of current Free Sale Certificate in country of origin</td>
												<td>Insufficient information or expired date of Registration certificate or Free Sale Certificate</td>
												<td>Certificates not submitted</td>
												<td><center>'.$aQ5a.'</center></td>
												<td><center>'.$bQ5a.'</center></td>
												<td><center>'.$cQ5a.'</center></td>
												<td><center>'.$aQ5comment.'<br>'.$bQ5comment.'<br>'.$cQ5comment.'</center></td>
												<td><center>'.$aQ5AI.'<br>'.$bQ5AI.'<br>'.$cQ5AI.'</center></td>
                                            </tr>
                                            <tr>
                                                <th scope="row">6</th>
                                                <td>Copy of registration certificate of the vaccine in two other countries.</td>
                                                <td>Availability of current Registration certificates from ASEAN countries</td>
                                                <td>Registration certificates from EU ,  North American ,Japan, Australia countries</td>
												<td>Regsitration certificates from countries other than EU, North America, Japan, Australia, ASEAN,  or at least one certificate provided.</td>
												<td>Certificates not submitted</td>
												<td><center>'.$aQ6a.'</center></td>
												<td><center>'.$bQ6a.'</center></td>
												<td><center>'.$cQ6a.'</center></td>
												<td><center>'.$aQ6comment.'<br>'.$bQ6comment.'<br>'.$cQ6comment.'</center></td>
												<td><center>'.$aQ6AI.'<br>'.$bQ6AI.'<br>'.$cQ6AI.'</center></td>
                                            </tr>
										</tbody>

</table><br>
';

$groupC ='
<h3><strong> C. VACCINATION REGIME </strong></h3>

<table border = "1" align="center" style="border: 1px solid #880000; font-family: calibri; font-size: 10pt; ">
<thead>
                                            <tr>
                                                <th colspan="1"></th>
												<th colspan="1"></th>
                                                <th colspan="4"><center>Scores</center></th>
                                                <th colspan="3"><center>Assessor<br>Score</center></th>								
												<th colspan="2"><center>Comments and <br> Additional Information</center></th>
												
                                            </tr>
                                        </thead>
										<thead>
                                            <tr>
                                                <th><center>#</center></th>
                                                <th><center>Sub Category</center></th>
                                                <th><center>4</center></th>
                                                <th><center>3</center></th>
												<th><center>2</center></th>
												<th><center>1</center></th>
												<th><center>A</center></th>	
												<th><center>B</center></th>
												<th><center>C</center></th>
												<th><center>Assessor <br>Comments</center></th>
												<th><center>Additional <br>Information</center></th>
                                            </tr>
                                        </thead>
										<tbody>
                                            <tr>
                                                <th scope="row">7</th>
                                                <td> Risk of application of the vaccine based on strain used or type of manufacturing technology (Category II &III of Biotech vaccine)</td>
                                                <td>Safe (host, human, environment)</td>
                                                <td>Safe , subjects to certain precautions </td>
												<td>Unknown </td>
												<td>High risk</td>
												<td><center>'.$aQ7a.'</center></td>
												<td><center>'.$bQ7a.'</center></td>
												<td><center>'.$cQ7a.'</center></td>
												<td><center>'.$aQ7comment.'<br>'.$bQ7comment.'<br>'.$cQ7comment.'</center></td>
												<td><center>'.$aQ7AI.'<br>'.$bQ7AI.'<br>'.$cQ7AI.'</center></td>
                                            </tr>
                                            <tr>
                                                <th scope="row">8</th>
                                                <td>Vaccinating Schedule</td>
                                                <td>Availability  of schedules and validation via studies on immune response</td>
                                                <td>Availability of schedule , but with partial validation study</td>
												<td>Only vaccination schedule provided.</td>
												<td>Vaccination schedule too general or not provided.</td>
												<td><center>'.$aQ8a.'</center></td>
												<td><center>'.$bQ8a.'</center></td>
												<td><center>'.$cQ8a.'</center></td>
												<td><center>'.$aQ8comment.'<br>'.$bQ8comment.'<br>'.$cQ8comment.'</center></td>
												<td><center>'.$aQ8AI.'<br>'.$bQ8AI.'<br>'.$cQ8AI.'</center></td>
                                            </tr>
                                            <tr>
                                                <th scope="row">9</th>
                                                <td>Target age/group</td>
                                                <td>Availability of validation  data of efficacy following this ages</td>
                                                <td>Availability of partial validation data of effcacy following the ages</td>
												<td>Only target age/group provided</td>
												<td>Target age/group too general or not provided.</td>
												<td><center>'.$aQ9a.'</center></td>
												<td><center>'.$bQ9a.'</center></td>
												<td><center>'.$cQ9a.'</center></td>
												<td><center>'.$aQ9comment.'<br>'.$bQ9comment.'<br>'.$cQ9comment.'</center></td>
												<td><center>'.$aQ9AI.'<br>'.$bQ9AI.'<br>'.$cQ9AI.'</center></td>
                                            </tr>
										</tbody>

</table><br>
';

$groupD ='
<h3><strong> D. DOSAGE </strong></h3>

<table border = "1" align="center" style="border: 1px solid #880000; font-family: calibri; font-size: 10pt; ">
<thead>
                                            <tr>
                                                <th colspan="1"></th>
												<th colspan="1"></th>
                                                <th colspan="4"><center>Scores</center></th>
                                                <th colspan="3"><center>Assessor<br>Score</center></th>								
												<th colspan="2"><center>Comments and <br> Additional Information</center></th>
												
                                            </tr>
                                        </thead>
										<thead>
                                            <tr>
                                                <th><center>#</center></th>
                                                <th><center>Sub Category</center></th>
                                                <th><center>4</center></th>
                                                <th><center>3</center></th>
												<th><center>2</center></th>
												<th><center>1</center></th>
												<th><center>A</center></th>												
												<th><center>B</center></th>	
												<th><center>C</center></th>	
												<th><center>Assessor <br>Comments</center></th>
												<th><center>Additional <br>Information</center></th>
                                            </tr>
                                        </thead>
										<tbody>
                                            <tr>
                                                <th scope="row">10</th>
                                                <td> Dosage and route of vaccination</td>
                                                <td>Availability of validation data  of efficacy  following these doses and routes</td>
                                                <td>Availability of partial validation data of effcacy following the doses and routes </td>
												<td>Only dosage and route of vaccination provided</td>
												<td>Dosage and route of vaccination is too general or not provided.</td>
												<td><center>'.$aQ10a.'</center></td>
												<td><center>'.$bQ10a.'</center></td>
												<td><center>'.$cQ10a.'</center></td>
												<td><center>'.$aQ10comment.'<br>'.$bQ10comment.'<br>'.$cQ10comment.'</center></td>
												<td><center>'.$aQ10AI.'<br>'.$bQ10AI.'<br>'.$cQ10AI.'</center></td>
                                            </tr>
										</tbody>

</table><br>
';
$groupE ='
<h3><strong> E. LABELS AND PACKAGING </strong></h3>

<table border = "1" align="center" style="border: 1px solid #880000; font-family: calibri; font-size: 10pt; ">
<thead>
                                            <tr>
                                                <th colspan="1"></th>
												<th colspan="1"></th>
                                                <th colspan="4"><center>Scores</center></th>
                                                <th colspan="3"><center>Assessor<br>Score</center></th>								
												<th colspan="2"><center>Comments and <br> Additional Information</center></th>
												
                                            </tr>
                                        </thead>
										<thead>
                                            <tr>
                                                <th><center>#</center></th>
                                                <th><center>Sub Category</center></th>
                                                <th><center>4</center></th>
                                                <th><center>3</center></th>
												<th><center>2</center></th>
												<th><center>1</center></th>
												<th><center>A</center></th>												
												<th><center>B</center></th>
												<th><center>C</center></th>
												<th><center>Assessor <br>Comments</center></th>
												<th><center>Additional <br>Information</center></th>
                                            </tr>
                                        </thead>
										<tbody>
                                            <tr>
                                                <th scope="row">11</th>
                                                <td>Diluent</td>
                                                <td>Availability of validation data at room temperature, chill, or other relevant temperature for the stability of the diluent and its compenents.</td>
                                                <td>Availability of validation data for the stability of the diluent at certain temperature storage .</td>
												<td>Insufficient stability data of the diluent  provided.</td>
												<td>Diluent stability data not provided.</td>
												<td><center>'.$aQ11a.'</center></td>
												<td><center>'.$bQ11a.'</center></td>
												<td><center>'.$cQ11a.'</center></td>
												<td><center>'.$aQ11comment.'<br>'.$bQ11comment.'<br>'.$cQ11comment.'</center></td>
												<td><center>'.$aQ11AI.'<br>'.$bQ11AI.'<br>'.$cQ11AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">12</th>
                                                <td>Doses per package</td>
                                                <td>Clearly printed in English and Malay languages on packages</td>
                                                <td> Clearly printed in English or Malay language  on packages</td>
												<td>Printed in languages other than English or Malay.</td>
												<td>No information founded .</td>
												<td><center>'.$aQ12a.'</center></td>
												<td><center>'.$bQ12a.'</center></td>
												<td><center>'.$cQ12a.'</center></td>
												<td><center>'.$aQ12comment.'<br>'.$bQ12comment.'<br>'.$cQ12comment.'</center></td>
												<td><center>'.$aQ12AI.'<br>'.$bQ12AI.'<br>'.$cQ12AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">13</th>
                                                <td>Instructional pamphlet and specimen of label</td>
                                                <td>Availability of usage instructions/ indications/ precautions/ vaccinations schedules/ dose/ route/ storage conditions  in English or Malay language. Tamper-proof label.</td>
                                                <td> Information on the pamphlet of these items is partially provided. </td>
												<td>Availability of usage instructions/ indications/ precautions/ vaccinations schedules/ dose/ route/ storage conditions  in other than  English or Malay  language</td>
												<td>No information founded .</td>
												<td><center>'.$aQ13a.'</center></td>
												<td><center>'.$bQ13a.'</center></td>
												<td><center>'.$cQ13a.'</center></td>
												<td><center>'.$aQ13comment.'<br>'.$bQ13comment.'<br>'.$cQ13comment.'</center></td>
												<td><center>'.$aQ13AI.'<br>'.$bQ13AI.'<br>'.$cQ13AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">14</th>
                                                <td>Storage condition/ requirement</td>
                                                <td>Availablity of information on storage temperature, storage device/ transport, precautions, and steps to be taken before use.</td>
                                                <td> Information on the storage condition  is partially provided </td>
												<td>General information provided</td>
												<td>No information founded .</td>
												<td><center>'.$aQ14a.'</center></td>
												<td><center>'.$bQ14a.'</center></td>
												<td><center>'.$cQ14a.'</center></td>
												<td><center>'.$aQ14comment.'<br>'.$bQ14comment.'<br>'.$cQ14comment.'</center></td>
												<td><center>'.$aQ14AI.'<br>'.$bQ14AI.'<br>'.$cQ14AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">15</th>
                                                <td>Indications and contra-indications</td>
                                                <td>Indication answers what is the function of the vaccine . Both information (indication and contraindication)  provided with evidence </td>
                                                <td>Only indication  or contarindication provided with evidence  </td>
												<td>General information on indication. No evidence provided </td>
												<td>No information founded .</td>
												<td><center>'.$aQ15a.'</center></td>
												<td><center>'.$bQ15a.'</center></td>
												<td><center>'.$cQ15a.'</center></td>
												<td><center>'.$aQ15comment.'<br>'.$bQ15comment.'<br>'.$cQ15comment.'</center></td>
												<td><center>'.$aQ15AI.'<br>'.$bQ15AI.'<br>'.$cQ15AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">16</th>
                                                <td>Side effects and precautions</td>
                                                <td>Availability of  information on any possible effects and how these can be  mitigated </td>
                                                <td>Availablity   of information   on side effects and precautions but mitigation is not provided.</td>
												<td>"Unknown" </td>
												<td>No information founded .</td>
												<td><center>'.$aQ16a.'</center></td>
												<td><center>'.$bQ16a.'</center></td>
												<td><center>'.$cQ16a.'</center></td>
												<td><center>'.$aQ16comment.'<br>'.$bQ16comment.'<br>'.$cQ16comment.'</center></td>
												<td><center>'.$aQ16AI.'<br>'.$bQ16AI.'<br>'.$cQ16AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">17</th>
                                                <td>Batch serial number & expiry date</td>
                                                <td>Availability of serial number and expiry date with a known system of fast tract of tracibility.</td>
                                                <td>Availability of serial number and expiry date with unknown system of fast tract of tracibility.</td>
												<td>Availability of either serial number or expiry date only</td>
												<td>No information founded .</td>
												<td><center>'.$aQ17a.'</center></td>
												<td><center>'.$bQ17a.'</center></td>
												<td><center>'.$cQ17a.'</center></td>
												<td><center>'.$aQ17comment.'<br>'.$bQ17comment.'<br>'.$cQ17comment.'</center></td>
												<td><center>'.$aQ17AI.'<br>'.$bQ17AI.'<br>'.$cQ17AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">18</th>
                                                <td>Master seed history  </td>
                                                <td>Availability of complete data/ information on pathotype/ serotype/ strain and history of acquisition of master seedlot with date , place and signatory of supplie.</td>
                                                <td>Availability  most of  data/ information on pathotype/ serotype/ strain, and history of acquisation of master seedlotn with date, place and signatory of supplier</td>
												<td>Insufficient data/ information on pathotype/ serotype/ strain, and history of acquisation of master seedlot </td>
												<td>No information founded .</td>
												<td><center>'.$aQ18a.'</center></td>
												<td><center>'.$bQ18a.'</center></td>
												<td><center>'.$cQ18a.'</center></td>
												<td><center>'.$aQ18comment.'<br>'.$bQ18comment.'<br>'.$cQ18comment.'</center></td>
												<td><center>'.$aQ18AI.'<br>'.$bQ18AI.'<br>'.$cQ18AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">19</th>
                                                <td>Master seed identity </td>
                                                <td>Availablity of complete validation data on identity and serotype of each organism</td>
                                                <td>Availablity  most of validation data  on identity and serotype of each organism</td>
												<td>Insufficient validation data  on identity and serotype of each organism</td>
												<td>No information founded .</td>
												<td><center>'.$aQ19a.'</center></td>
												<td><center>'.$bQ19a.'</center></td>
												<td><center>'.$cQ19a.'</center></td>
												<td><center>'.$aQ19comment.'<br>'.$bQ19comment.'<br>'.$cQ19comment.'</center></td>
												<td><center>'.$aQ19AI.'<br>'.$bQ19AI.'<br>'.$cQ19AI.'</center></td>
                                            </tr>
										</tbody>

</table><br>
';

$groupF ='
<h3><strong> F. VACCINE PRODUCTION CAPABILITY </strong></h3>

<table border = "1" align="center" style="border: 1px solid #880000; font-family: calibri; font-size: 10pt; ">
<thead>
                                            <tr>
                                                <th colspan="1"></th>
												<th colspan="1"></th>
                                                <th colspan="4"><center>Scores</center></th>
                                                <th colspan="3"><center>Assessor<br>Score</center></th>								
												<th colspan="2"><center>Comments and <br> Additional Information</center></th>
												
                                            </tr>
                                        </thead>
										<thead>
                                            <tr>
                                                <th><center>#</center></th>
                                                <th><center>Sub Category</center></th>
                                                <th><center>4</center></th>
                                                <th><center>3</center></th>
												<th><center>2</center></th>
												<th><center>1</center></th>
												<th><center>A</center></th>		
												<th><center>B</center></th>	
												<th><center>C</center></th>	
												<th><center>Assessor <br>Comments</center></th>
												<th><center>Additional <br>Information</center></th>
                                            </tr>
                                        </thead>
										<tbody>
                                            <tr>
                                                <th scope="row">20</th>
                                                <td>Master seed purity</td>
                                                <td> A Master lot of Seed or continuous Cell line is tested extensively for identity and purity by the firm, with confirmatory testing by the relevant authority laboratory. Recombinant Master Seeds should be tested to ensure expression of the relevant antigen</td>
                                                <td>Testing of Master seed purity is conducted only by the manufacturer.</td>
												<td>Insufficient  testing  data  on purity of the Master seed</td>
												<td>No information founded .</td>
												<td><center>'.$aQ20a.'</center></td>
												<td><center>'.$bQ20a.'</center></td>
												<td><center>'.$cQ20a.'</center></td>
												<td><center>'.$aQ20comment.'<br>'.$bQ20comment.'<br>'.$cQ20comment.'</center></td>
												<td><center>'.$aQ20AI.'<br>'.$bQ20AI.'<br>'.$cQ20AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">21</th>
                                                <td>Substrate for propagation (including Master Cell Stock information)</td>
                                                <td>Availability of information on substrate composition, substrate purity/ sterility/ safety and cell cultures are free from oncogenicity & tumorigenicity</td>
                                                <td>Availability most of information on substrate composition , substrate purity/ sterility/ safety and cell cultures are free from oncogenicity & tumorigenicity</td>
												<td>Insufficient data/ information on substrate quality </td>
												<td>No information founded .</td>
												<td><center>'.$aQ21a.'</center></td>
												<td><center>'.$bQ21a.'</center></td>
												<td><center>'.$cQ21a.'</center></td>
												<td><center>'.$aQ21comment.'<br>'.$bQ21comment.'<br>'.$cQ21comment.'</center></td>
												<td><center>'.$aQ21AI.'<br>'.$bQ21AI.'<br>'.$cQ21AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">22</th>
                                                <td>SPF status of production support (eggs, primary cell culture) * When master cell stock are not used</td>
                                                <td>The production of SPF Eggs is based on the guidelines of the current European Pharmacopoeia  and the United States Department of Agriculture Veterinary Services Memorandum . To achieve and maintain SPF Status under these requirements, two generations prior to the producing generation must be free of the listed agents. </td>
                                                <td>The production of SPF Eggs does not  based on the guidelines of the current European Pharmacopoeia  and the United States Department of Agriculture Veterinary Services Memorandum ,but has the evidence to prove its standard requirement.</td>
												<td>SPF  status partially fulfils the  listed agents , or produced not accordance to EU or USDA guidelines.</td>
												<td>No information founded .</td>
												<td><center>'.$aQ22a.'</center></td>
												<td><center>'.$bQ22a.'</center></td>
												<td><center>'.$cQ22a.'</center></td>
												<td><center>'.$aQ22comment.'<br>'.$bQ22comment.'<br>'.$cQ22comment.'</center></td>
												<td><center>'.$aQ22AI.'<br>'.$bQ22AI.'<br>'.$cQ22AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">23</th>
                                                <td>Other starting material of animal origin * Part of culture media or freeze-drying excipient</td>
                                                <td>Availability of information on sterilisation, or source from healthy animals free from pathogens. In certain cases, certification of Halal must be provided.</td>
                                                <td>Availability of information on sterility only.</td>
												<td>General information provided</td>
												<td>No information founded .</td>
												<td><center>'.$aQ23a.'</center></td>
												<td><center>'.$bQ23a.'</center></td>
												<td><center>'.$cQ23a.'</center></td>
												<td><center>'.$aQ23comment.'<br>'.$bQ23comment.'<br>'.$cQ23comment.'</center></td>
												<td><center>'.$aQ23AI.'<br>'.$bQ23AI.'<br>'.$cQ23AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">24</th>
                                                <td>Vaccine inactivation process (for inactivated antigens) </td>
                                                <td>Availability of complete data on inactivation kinetics, safety margin for each organism and inactivation test for each organism  at release</td>
                                                <td>Availability of most of data on inactivation kinetics, safety margin for each organism and inactivation test for each organism  at release</td>
												<td>Insufficeint data on vaccine inactivation process</td>
												<td>No data provided to support the claim.</td>
												<td><center>'.$aQ24a.'</center></td>
												<td><center>'.$bQ24a.'</center></td>
												<td><center>'.$cQ24a.'</center></td>
												<td><center>'.$aQ24comment.'<br>'.$bQ24comment.'<br>'.$cQ24comment.'</center></td>
												<td><center>'.$aQ24AI.'<br>'.$bQ24AI.'<br>'.$cQ24AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">25</th>
                                                <td>Chemical starting material * Chemical compositions: chemical starting materials used in adjuvant/ emulsion/ suspension</td>
                                                <td>Availability of complete data/ information on chemical starting material, Chemical compositions: chemical starting materials used :<br>- Antibiotics, etc <br>- levels of toxic components<br>- antigenic mass per dose/ titre per dose of each organism & compare with MID</td>
                                                <td>Majority of data provided</td>
												<td>Insufficeint data on chemical composition provided</td>
												<td>No data provided to support the claim.</td>
												<td><center>'.$aQ25a.'</center></td>
												<td><center>'.$bQ25a.'</center></td>
												<td><center>'.$cQ25a.'</center></td>
												<td><center>'.$aQ25comment.'<br>'.$bQ25comment.'<br>'.$cQ25comment.'</center></td>
												<td><center>'.$aQ25AI.'<br>'.$bQ25AI.'<br>'.$cQ25AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">26</th>
                                                <td>Sterility tests</td>
                                                <td>Availability of validation data on freedom for extraneous organisms</td>
                                                <td>Majority of data provided</td>
												<td>Insufficeint data on sterility tests provided</td>
												<td>No data provided to support the claim.</td>
												<td><center>'.$aQ26a.'</center></td>
												<td><center>'.$bQ26a.'</center></td>	
												<td><center>'.$cQ26a.'</center></td>													
												<td><center>'.$aQ26comment.'<br>'.$bQ26comment.'<br>'.$cQ26comment.'</center></td>
												<td><center>'.$aQ26AI.'<br>'.$bQ26AI.'<br>'.$cQ26AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">27</th>
                                                <td>Inocuity tests</td>
                                                <td>Availabity of  validation data at appropriate ages, all recommended routes and at 2x & 10x; field doses in  all species of intended hosts</td>
                                                <td>Majority of data provided</td>
												<td>Insufficeint data on sterility tests provided</td>
												<td>No data provided to support the claim.</td>
												<td><center>'.$aQ27a.'</center></td>
												<td><center>'.$bQ27a.'</center></td>
												<td><center>'.$cQ27a.'</center></td>
												<td><center>'.$aQ27comment.'<br>'.$bQ27comment.'<br>'.$cQ27comment.'</center></td>
												<td><center>'.$aQ27AI.'<br>'.$bQ27AI.'<br>'.$cQ27AI.'</center></td>
                                            </tr>
										</tbody>

</table><br>
';
$groupG ='
<h3><strong> G. QUALITY CONTROL ON FINISHED PRODUCTS</strong></h3>

<table border = "1" align="center" style="border: 1px solid #880000; font-family: calibri; font-size: 10pt; ">
<thead>
                                            <tr>
                                                <th colspan="1"></th>
												<th colspan="1"></th>
                                                <th colspan="4"><center>Scores</center></th>
                                                <th colspan="3"><center>Assessor<br>Score</center></th>								
												<th colspan="2"><center>Comments and <br> Additional Information</center></th>
												
                                            </tr>
                                        </thead>
										<thead>
                                            <tr>
                                                <th><center>#</center></th>
                                                <th><center>Sub Category</center></th>
                                                <th><center>4</center></th>
                                                <th><center>3</center></th>
												<th><center>2</center></th>
												<th><center>1</center></th>
												<th><center>A</center></th>	
												<th><center>B</center></th>	
												<th><center>C</center></th>	
												<th><center>Assessor <br>Comments</center></th>
												<th><center>Additional <br>Information</center></th>
                                            </tr>
                                        </thead>
										<tbody>
                                            <tr>
                                                <th scope="row">28</th>
                                                <td>Moisture contents (for live vaccines)</td>
                                                <td>Information on moisture content provided with reference to EU,  USDA , or OIE.</td>
                                                <td>Information on moisture content provided with reference to other standards than EU, USDA, OIE</td>
												<td>Moisture content provided with no references </td>
												<td>No information provided</td>
												<td><center>'.$aQ28a.'</center></td>
												<td><center>'.$bQ28a.'</center></td>
												<td><center>'.$cQ28a.'</center></td>
												<td><center>'.$aQ28comment.'<br>'.$bQ28comment.'<br>'.$cQ28comment.'</center></td>
												<td><center>'.$aQ28AI.'<br>'.$bQ28AI.'<br>'.$cQ28AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">29</th>
                                                <td>Viscosity of vaccine (for inactivated vaccines)</td>
                                                <td> Availability of validation data on   accelerated stability tests confirmed by efficacy tests after expiry and 6 months beyond</td>
                                                <td>Validation data on viscosity is partially provided</td>
												<td>General information on viscocity provided</td>
												<td>No information founded .</td>
												<td><center>'.$aQ29a.'</center></td>
												<td><center>'.$bQ29a.'</center></td>
												<td><center>'.$cQ29a.'</center></td>
												<td><center>'.$aQ29comment.'<br>'.$bQ29comment.'<br>'.$cQ29comment.'</center></td>
												<td><center>'.$aQ29AI.'<br>'.$bQ29AI.'<br>'.$cQ29AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">30</th>
                                                <td> Purity test of live vaccines</td>
                                                <td>Availability of the detection of extraneous viruses, bacteria, mycoplasma and fungi:<br>Salmonella, Brucella, chlamydial agents, haemagglutinating viruses, avian lymphoid leucosis (virus),<br>pathogens detected by a chicken inoculation test, or a chicken embryo inoculation test,<br>lymphocytic choriomeningitis virus, cytopathic and haemadsorbing agents, and pathogens detected by enzyme-linked immunosorbent assay, polymerase chain reaction, or the fluorescent antibody technique. </td>
                                                <td>Majority of data provided</td>
												<td>General information on purity test provided.</td>
												<td>No information provided</td>
												<td><center>'.$aQ30a.'</center></td>
												<td><center>'.$bQ30a.'</center></td>
												<td><center>'.$cQ30a.'</center></td>
												<td><center>'.$aQ30comment.'<br>'.$bQ30comment.'<br>'.$cQ30comment.'</center></td>
												<td><center>'.$aQ30AI.'<br>'.$bQ30AI.'<br>'.$cQ30AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">31</th>
                                                <td>Composition of final product</td>
                                                <td>Availability of information on composition of final product including tests for the determination of concentrations of preservatives  carried out to show that these are in conformity with the limits set for the product. </td>
                                                <td>Majority of data is provided</td>
												<td>General information on composition of final product provided</td>
												<td>No information provided</td>
												<td><center>'.$aQ31a.'</center></td>
												<td><center>'.$bQ31a.'</center></td>
												<td><center>'.$cQ31a.'</center></td>
												<td><center>'.$aQ31comment.'<br>'.$bQ31comment.'<br>'.$cQ31comment.'</center></td>
												<td><center>'.$aQ31AI.'<br>'.$bQ31AI.'<br>'.$cQ31AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">32</th>
                                                <td> Nature of final products (Lyophilised /inactivated /Live attenuated /Recombinant /subunit /Transgenic /Combination /Vectored </td>
                                                <td>Availability of information describing method of production and validation in consistent with nature of final product, as appear on vaccine registration certificate by competent authority  </td>
                                                <td>Information on validation data is partially provided.</td>
												<td>General information on nature of final prduct provided</td>
												<td>No information provided or inconsistency of information  between method of production and final product </td>
												<td><center>'.$aQ32a.'</center></td>
												<td><center>'.$bQ32a.'</center></td>
												<td><center>'.$cQ32a.'</center></td>
												<td><center>'.$aQ32comment.'<br>'.$bQ32comment.'<br>'.$cQ32comment.'</center></td>
												<td><center>'.$aQ32AI.'<br>'.$bQ32AI.'<br>'.$cQ32AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">33</th>
                                                <td>Stability study </td>
                                                <td>Under recommended condition, the level of safety and efficacy has been demonstrated to be acceptable including information /data on extended shelf life</td>
                                                <td>Under recommended condition partial information is provided on safety and efficacy level of the vaccine.</td>
												<td>General information on stability study provided.</td>
												<td>No information provided</td>
												<td><center>'.$aQ33a.'</center></td>
												<td><center>'.$bQ33a.'</center></td>
												<td><center>'.$cQ33a.'</center></td>
												<td><center>'.$aQ33comment.'<br>'.$bQ33comment.'<br>'.$cQ33comment.'</center></td>
												<td><center>'.$aQ33AI.'<br>'.$bQ33AI.'<br>'.$cQ33AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">34</th>
                                                <td>Vaccine Safety</td>
                                                <td>Information on final concentration of  anti microbial preservative used, confirmation test for freedom of extarneous agents as describe by EU, USDA and OIE</td>
                                                <td>Majority of data provided, or with reference other than EU, USDA, OIE </td>
												<td>General information on safety study provided</td>
												<td>No information provided</td>
												<td><center>'.$aQ34a.'</center></td>
												<td><center>'.$bQ34a.'</center></td>
												<td><center>'.$cQ34a.'</center></td>
												<td><center>'.$aQ34comment.'<br>'.$bQ34comment.'<br>'.$cQ34comment.'</center></td>
												<td><center>'.$aQ34AI.'<br>'.$bQ34AI.'<br>'.$cQ34AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">35</th>
                                                <td>Field trials</td>
                                                <td>Field trials are conducted in 3 farms in various breeds in different (3) locations representing different husbandry systems, covering all the recommended ages of vaccination compared with control group. Provision of  procedures and results to see if they are appropriate ,other possible related effects: different body weight gain, increased mortalities or carcass condemnation at slaughter, etc. <br>Do results reflect vaccine safety under field conditions?</td>
                                                <td>Majority of data provided</td>
												<td>Insufficient data on filed trials provided.</td>
												<td>No data provided to support the claim.</td>
												<td><center>'.$aQ35a.'</center></td>
												<td><center>'.$bQ35a.'</center></td>
												<td><center>'.$cQ35a.'</center></td>
												<td><center>'.$aQ35comment.'<br>'.$bQ35comment.'<br>'.$cQ35comment.'</center></td>
												<td><center>'.$aQ35AI.'<br>'.$bQ35AI.'<br>'.$cQ35AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">36</th>
                                                <td>Reversion to virulence (for live vaccines)</td>
                                                <td>Availability of validation data  on reversion to  virulence with  results of  back passage studies</td>
                                                <td>Majority of data provided</td>
												<td>Insufficient data on reversion to virulence  provided.</td>
												<td>No data provided to support the claim.</td>
												<td><center>'.$aQ36a.'</center></td>
												<td><center>'.$bQ36a.'</center></td>
												<td><center>'.$cQ36a.'</center></td>
												<td><center>'.$aQ36comment.'<br>'.$bQ36comment.'<br>'.$cQ36comment.'</center></td>
												<td><center>'.$aQ36AI.'<br>'.$bQ36AI.'<br>'.$cQ36AI.'</center></td>
                                            </tr>
										</tbody>

</table><br>
';


$groupH='
<h3><strong>H. VACCINE EFFICACY </strong></h3>

<table border = "1" align="center" style="border: 1px solid #880000; font-family: calibri; font-size: 10pt; ">
<thead>
                                            <tr>
                                                <th colspan="1"></th>
												<th colspan="1"></th>
                                                <th colspan="4"><center>Scores</center></th>
                                                <th colspan="3"><center>Assessor<br>Score</center></th>								
												<th colspan="2"><center>Comments and <br> Additional Information</center></th>
												
                                            </tr>
                                        </thead>
										<thead>
                                            <tr>
                                                <th><center>#</center></th>
                                                <th><center>Sub Category</center></th>
                                                <th><center>4</center></th>
                                                <th><center>3</center></th>
												<th><center>2</center></th>
												<th><center>1</center></th>
												<th><center>A</center></th>
												<th><center>B</center></th>
												<th><center>C</center></th>
												<th><center>Assessor <br>Comments</center></th>
												<th><center>Additional <br>Information</center></th>
                                            </tr>
                                        </thead>
										<tbody>
                                            <tr>
                                                <th scope="row">37</th>
                                                <td>Potency/ Efficacy</td>
                                                <td>Test  design according to EU, US, standard procedures and  support claim on the label, demonstrated by statistically valid vaccination-challenge studies using the youngest recommeded animals </td>
                                                <td>Use of field efficay studies data when vaccination-challenge studies are not feasible.</td>
												<td>Insufficient data on efficacy provided.</td>
												<td>No data provided to support the claim</td>
												<td><center>'.$aQ37a.'</center></td>
												<td><center>'.$bQ37a.'</center></td>
												<td><center>'.$cQ37a.'</center></td>
												<td><center>'.$aQ37comment.'<br>'.$bQ37comment.'<br>'.$cQ37comment.'</center></td>
												<td><center>'.$aQ37AI.'<br>'.$bQ37AI.'<br>'.$cQ37AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">38</th>
                                                <td>Minimum immunogenic dose (Procedure for determination MID)</td>
                                                <td>Vaccination dose = min. imm. dose per host <br>
    * Multi-component vaccines: 1 field 
      dose of the multi-component vaccine itself (not OTHER single  component or multi-component vaccines containing the component being tested)<br>
  - Take note for each recommended route & check for validation by vaccination<br>-challenge tests in intended hosts for each recommended route for 
     each vaccine component<br>* Field dose : > log10 0.7 of MID through expiration 
</td>
                                                <td>Majority of data provided</td>
												<td>Insufficient data on MID provided</td>
												<td>No data provided to support the claim</td>
												<td><center>'.$aQ38a.'</center></td>
												<td><center>'.$bQ38a.'</center></td>
												<td><center>'.$cQ38a.'</center></td>
												<td><center>'.$aQ38comment.'<br>'.$bQ38comment.'<br>'.$cQ38comment.'</center></td>
												<td><center>'.$aQ38AI.'<br>'.$bQ38AI.'<br>'.$cQ38AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">39</th>
                                                <td> Immune levels and duration</td>
                                                <td>Availability of information on  Immune levels and duration (challenge and serology results) 
with  confirmation in studies carried out in the intended hosts via all  the recommended routes of administration at all the recommended ages</td>
                                                <td>Insufficient information on immune level and duration in intended host provided.</td>
												<td>General information on immune level and duration provided</td>
												<td>No information provided</td>
												<td><center>'.$aQ39a.'</center></td>
												<td><center>'.$bQ39a.'</center></td>
												<td><center>'.$cQ39a.'</center></td>
												<td><center>'.$aQ39comment.'<br>'.$bQ39comment.'<br>'.$cQ39comment.'</center></td>
												<td><center>'.$aQ39AI.'<br>'.$bQ39AI.'<br>'.$cQ39AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">40</th>
                                                <td>Transmitted passive immunity in progeny  (when relevant)</td>
                                                <td>Information provided via serology and or challenge studies.</td>
                                                <td>Insufficient data or information on transmitted immunity in progeny provided</td>
												<td>General information on transmitted immunity in progeny provided</td>
												<td>No information provided though relevant</td>
												<td><center>'.$aQ40a.'</center></td>
												<td><center>'.$bQ40a.'</center></td>
												<td><center>'.$cQ40a.'</center></td>
												<td><center>'.$aQ40comment.'<br>'.$bQ40comment.'<br>'.$cQ40comment.'</center></td>
												<td><center>'.$aQ40AI.'<br>'.$bQ40AI.'<br>'.$cQ40AI.'</center></td>
                                            </tr>
											<tr>
                                                <th scope="row">41</th>
                                                <td>Shelf life</td>
                                                <td>Availability of information on  conditions of storage and expiry duration with  validation via efficacy or potency tests carried out intervals up to expiry and 6 months beyond</td>
                                                <td>Insufficient data or information on shelf life  provided</td>
												<td>General information on shelf life provided.</td>
												<td>No information provided</td>
												<td><center>'.$aQ41a.'</center></td>
												<td><center>'.$bQ41a.'</center></td>
												<td><center>'.$cQ41a.'</center></td>
												<td><center>'.$aQ41comment.'<br>'.$bQ41comment.'<br>'.$cQ41comment.'</center></td>
												<td><center>'.$aQ41AI.'<br>'.$bQ41AI.'<br>'.$cQ41AI.'</center></td>
                                            </tr>
										</tbody>

</table><br>
';
  







;
//==============================================================
//==============================================================
//==============================================================

include("mpdf.php");
$mpdf=new mPDF('c','A4-L'); 
$mpdf->setFooter("VACDOS Mapping Tool v1.0 (2020) | VACDOS ID $idvac by $Assess  | Page {PAGENO} of {nb}");

$mpdf->WriteHTML($headeratas);
$mpdf->AddPage();
$mpdf->WriteHTML($groupA);
$mpdf->AddPage();
$mpdf->WriteHTML($groupB);
$mpdf->AddPage();
$mpdf->WriteHTML($groupC);
$mpdf->AddPage();
$mpdf->WriteHTML($groupD);
$mpdf->AddPage();
$mpdf->WriteHTML($groupE);
$mpdf->AddPage();
$mpdf->WriteHTML($groupF);
$mpdf->AddPage();
$mpdf->WriteHTML($groupG);
$mpdf->AddPage();
$mpdf->WriteHTML($groupH);
$mpdf->WriteHTML($groupI);
$mpdf->WriteHTML($groupdeclaration);
//$mpdf->SetWatermarkText("Research Management Center");
//$mpdf->showWatermarkText = true;
//$mpdf->watermark_font = 'DejaVuSansCondensed';
//$mpdf->watermarkTextAlpha = 0.1;
//$mpdf->SetWatermarkImage('../images/DVS-glow2.png');
//$mpdf->showWatermarkImage = true;





$mpdf->Output("VACDOS.$idvac.Form.$Assess.pdf","I");
exit;

//==============================================================
//==============================================================
//==============================================================


?>
