<!DOCTYPE html>
<?php session_start();?>

<?php
	if($_SESSION ["role"]=="Evaluator")
	{
		
		$role = $_SESSION["role"];
		$email = $_SESSION["email"];
		
		// header('location:form.php');
	}
	else
	{
		header('location:expired.php');
		// $userName = $_SESSION["userName"]; $userRole = $_SESSION["userRole"];
		}
?>
<?
require ("_common/global.php");
require ("_common/conn.php");
//require ("_common/function.php");
require ("_common/check_session.php");
?>
<html lang="en">
    <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
        <title>VAC-DOS | Vaccine Dossier Mapping Tool</title>
        <meta content="Admin Dashboard" name="description" />
        <meta content="ThemeDesign" name="author" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />

        <link rel="shortcut icon" href="assets/images/favicon.ico">

        <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css">
        <link href="assets/css/icons.css" rel="stylesheet" type="text/css">
        <link href="assets/css/style.css" rel="stylesheet" type="text/css">

    </head>


    <body>

        <!-- Loader -->
        <div id="preloader"><div id="status"><div class="spinner"></div></div></div>

        <!-- Navigation Bar-->
        <header id="topnav">
            <div class="topbar-main">
                <div class="container-fluid">

                    <!-- Logo container-->
                    <div class="logo">
                        <!-- Image Logo -->
                        <a href="index.html" class="logo">
                            <img src="assets/images/logo-sm.png" alt="" height="32" class="logo-small">
                            <img src="assets/images/logo.png" alt="" height="20" class="logo-large">
                        </a>

                    </div>
                    <!-- End Logo container-->


                    <div class="menu-extras topbar-custom">

                        
                        <ul class="list-inline float-right mb-0">
                            <!-- Search -->
                            
                            <!-- Messages-->
                            
                            <!-- notification-->
                            
                            <!-- User-->
                            <li class="list-inline-item dropdown notification-list">
                                <a class="nav-link dropdown-toggle arrow-none waves-effect nav-user" data-toggle="dropdown" href="#" role="button"
                                    aria-haspopup="false" aria-expanded="false">
                                    <img src="assets/images/users/user-1.jpg" alt="user" class="rounded-circle">
                                </a>
                                <div class="dropdown-menu dropdown-menu-right dropdown-menu-animated profile-dropdown ">
                                    <a class="dropdown-item" href="#"><i class="mdi mdi-account-circle m-r-5 text-muted"></i> Profile</a>
                                   
                                    <a class="dropdown-item" href="logout.php"><i class="mdi mdi-logout m-r-5 text-muted"></i> Logout</a>
                                </div>

                            </li>
                            <li class="menu-item list-inline-item">
                                <!-- Mobile menu toggle-->
                                <a class="navbar-toggle nav-link">
                                    <div class="lines">
                                        <span></span>
                                        <span></span>
                                        <span></span>
                                    </div>
                                </a>
                                <!-- End mobile menu toggle-->
                            </li>

                        </ul>
                    </div>
                    <!-- end menu-extras -->

                    <div class="clearfix"></div>

                </div> <!-- end container -->
            </div>
            <!-- end topbar-main -->

            <!-- MENU Start -->
            <div class="navbar-custom">
                <div class="container-fluid">
                    <div id="navigation">
                        <!-- Navigation Menu-->
                        <ul class="navigation-menu">

                            <li class="has-submenu">
                                <a href="dashboard.php"><i class="dripicons-meter"></i>Dashboard</a>
                            </li>

                            

                            <li class="has-submenu">
                                <a href="#"><i class="dripicons-broadcast"></i>Task</a>
                                <ul class="submenu">
									<li><a href="list.php">New</a></li>									
                                    <li><a href="listcomplete.php">Completed</a></li>
									
									
                                    
                                </ul>
                            </li>

                            

                            <li class="has-submenu">
                                <a href="#"><i class="dripicons-graph-bar"></i>About</a>
                                <ul class="submenu">
                                    <li><a href="#">About VAC-DOS</a></li>
                                    <li><a href="#">User Manual</a></li>
                                    
                                </ul>
                            </li>

                            

                        </ul>
                        <!-- End navigation menu -->
                    </div> <!-- end #navigation -->
                </div> <!-- end container -->
            </div> <!-- end navbar-custom -->
        </header>
        <!-- End Navigation Bar-->


        <div class="wrapper">
            <div class="container-fluid">
<?php
$idvac =$_REQUEST['idvac'];
?>
                <!-- Page-Title -->
                <div class="row">
                    <div class="col-sm-12">
                        <div class="page-title-box">
                            <div class="btn-group float-right">
                                <ol class="breadcrumb hide-phone p-0 m-0">
                                    <li class="breadcrumb-item"><a href="#">Task</a></li>
                                    <li class="breadcrumb-item"><a href="list.php">New</a></li>
                                    <li class="breadcrumb-item active"><a href="dossierform2.php?idvac=<?php echo $idvac ?>">Dossier Form</a></li>
                                    <li class="breadcrumb-item active"><a href="#">Vaccine Efficacy</a></li>
                                </ol>
                            </div>
                            <h4 class="page-title">Vaccine Dossier Scoring Form</h4>
                        </div>
						<div class="col-sm-1">
                                        <a href="dossierform2.php?idvac=<?php echo $idvac ?>"><button class="btn btn-primary btn-block waves-effect waves-light">Go Back</button></a>
										
                        </div>
                    </div>
                </div>
                <!-- end page title end breadcrumb -->
				
				
<?php
$idvac =$_REQUEST['idvac'];
$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..");
		}
				$tradename=$test['tradename'] ;
mysql_close($conn);
?>
 <?php
//$idvac =$_REQUEST['idvac'];
//$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 email='$email'");
$test = mysql_fetch_array($result);
if (!$result)
		{
		die("Error: Data not found..");
		}
				$Assess=$test['name'] ;	
mysql_close($conn);
?>
				<br>
				<div class="row">
                    <div class="col-xl-12">
                        <div class="card m-b-30">
                            <div class="card-body">
								
                                
								 <form action="adddataefficacy.php" method="post"> 
                                <div class="form-group row">
                                    <label for="example-text-input" class="col-sm-2 col-form-label">ID</label>
                                    <div class="col-sm-10">
                                        <input class="form-control" type="text" value="<?php echo $idvac ?>" name="idvac"/readonly>
                                    </div>
                                </div>
								<div class="form-group row">
                                    <label for="example-text-input" class="col-sm-2 col-form-label">Trade Name</label>
                                    <div class="col-sm-10">
                                        <input class="form-control" type="text" value="<?php echo $tradename ?>" name="tradename"/readonly>
                                    </div>
                                </div>
								<div class="form-group row">
                                    <label for="example-text-input" class="col-sm-2 col-form-label">Evaluator</label>
                                    <div class="col-sm-10">
                                        <input class="form-control" type="text" value="<?php echo $Assess ?>" name="Assess"/readonly>
                                    </div>
                                </div>

  <?php
//$idvac =$_REQUEST['idvac'];
//$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 dossierform WHERE idvac='$idvac' AND Assess='$Assess'");
$test = mysql_fetch_array($result);
if (!$result)
		{
		die("Error: Data not found..");
		}
				$vacctype=$test['vacctype'] ;
				$Assess=$test['Assess'] ;
				$Q37=$test['Q37'] ;
				$Q37comment=$test['Q37comment'] ;
				$Q37AI=$test['Q37AI'] ;
				$Q38=$test['Q38'] ;
				$Q38comment=$test['Q38comment'] ;
				$Q38AI=$test['Q38AI'] ;
				$Q39=$test['Q39'] ;
				$Q39comment=$test['Q39comment'] ;
				$Q39AI=$test['Q39AI'] ;
				$Q40=$test['Q40'] ;
				$Q40comment=$test['Q40comment'] ;
				$Q40AI=$test['Q40AI'] ;
				$Q41=$test['Q41'] ;
				$Q41comment=$test['Q41comment'] ;
				$Q41AI=$test['Q41AI'] ;	
				$refQ37=$test['refQ37'] ;
				$refQ38=$test['refQ38'] ;
				$refQ39=$test['refQ39'] ;
				$refQ40=$test['refQ40'] ;
				$refQ41=$test['refQ41'] ;
				
mysql_close($conn);

?>	                         
                        
   
                                    <p class="text-muted m-b-30 font-14">AREA: <strong>Overall Quality: Potency</strong> <br>CATEGORY: <strong>Vaccine Efficacy</strong><br>Default Score: <strong>1</strong></p>
										<div class="table-responsive">
                                    <table class="table table-bordered mb-0">
                                        <thead>
                                            <tr>
                                                <th colspan="2" width="10%"></th>
                                                <th colspan="4"width="30%"><center>Scores</center></th>
                                                <th colspan="1" width="5%"><center>Assessor Score</center></th>								
												<th colspan="3" width="55%"><center>Comments and <br> Additional Information</center></th>
												
                                            </tr>
                                        </thead>
										<thead>
                                            <tr>
                                                <th><center>#</center></th>
                                                <th><center>Sub Category</center></th>
                                                <th width="7.5%"><center>4</center></th>
                                                <th width="7.5%"><center>3</center></th>
												<th width="7.5%"><center>2</center></th>
												<th width="7.5%"><center>1</center></th>
													
												<th><center>Score</center></th>	
												<th><center>Assessor <br>Comments</center></th>
												<th><center>Additional <br>Information</center></th>
												<th width="10%"><center>Reference</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>
												<input type="radio" name="Q37" id="Q37" value="6" <?php if($Q37=="6") echo "checked" ?>>
												<label for="Q37">4</label><br>
												<input type="radio" name="Q37" id="Q37" value="4" <?php if($Q37=="4") echo "checked" ?>>
												<label for="Q37">3</label>		<br>											
												<input type="radio" name="Q37" id="Q37" value="2" <?php if($Q37=="2") echo "checked" ?>>
												<label for="Q37">2</label><br>
												<input type="radio" name="Q37" id="Q37" value="0" <?php if($Q37=="0") echo "checked" ?>>
												<label for="Q37">1</label>	
												</td>
												
												<td><textarea id="elm1" name="Q37comment" placeholder=""><?php echo $Q37comment ?></textarea></td>
												<td><textarea id="elm1" name="Q37AI"><?php echo $Q37AI ?></textarea></td>
												<td><textarea name="refQ37" ><?php echo $refQ37 ?></textarea></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>
												<input type="radio" name="Q38" id="Q38" value="6" <?php if($Q38=="6") echo "checked" ?>>
												<label for="Q38">4</label><br>
												<input type="radio" name="Q38" id="Q38" value="4" <?php if($Q38=="4") echo "checked" ?>>
												<label for="Q38">3</label>		<br>											
												<input type="radio" name="Q38" id="Q38" value="2" <?php if($Q38=="2") echo "checked" ?>>
												<label for="Q38">2</label><br>
												<input type="radio" name="Q38" id="Q38" value="0" <?php if($Q38=="0") echo "checked" ?>>
												<label for="Q38">1</label>	
												</td>
												<td><textarea id="elm1" name="Q38comment" placeholder=""><?php echo $Q38comment ?></textarea></td>
												<td><textarea id="elm1" name="Q38AI"><?php echo $Q38AI ?></textarea></td>
												<td><textarea name="refQ38" ><?php echo $refQ38 ?></textarea></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>
												<input type="radio" name="Q39" id="Q39" value="6" <?php if($Q39=="6") echo "checked" ?>>
												<label for="Q39">4</label><br>
												<input type="radio" name="Q39" id="Q39" value="4" <?php if($Q39=="4") echo "checked" ?>>
												<label for="Q39">3</label>		<br>											
												<input type="radio" name="Q39" id="Q39" value="2" <?php if($Q39=="2") echo "checked" ?>>
												<label for="Q39">2</label><br>
												<input type="radio" name="Q39" id="Q39" value="0" <?php if($Q39=="0") echo "checked" ?>>
												<label for="Q39">1</label>	
												</td>
												<td><textarea id="elm1" name="Q39comment" placeholder=""><?php echo $Q39comment ?></textarea></td>
												<td><textarea id="elm1" name="Q39AI"><?php echo $Q39AI ?></textarea></td>
												<td><textarea name="refQ39" ><?php echo $refQ39 ?></textarea></td>
                                            </tr>
											<tr>
                                                <th scope="row">40</th>
                                                <td>Transmitted passive immunity in progeny <br> (if not relevant, please tick 4)</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>
												<input type="radio" name="Q40" id="Q40" value="6" <?php if($Q40=="6") echo "checked" ?>>
												<label for="Q40">4</label><br>
												<input type="radio" name="Q40" id="Q40" value="4" <?php if($Q40=="4") echo "checked" ?>>
												<label for="Q40">3</label>		<br>											
												<input type="radio" name="Q40" id="Q40" value="2" <?php if($Q40=="2") echo "checked" ?>>
												<label for="Q40">2</label><br>
												<input type="radio" name="Q40" id="Q40" value="0" <?php if($Q40=="0") echo "checked" ?>>
												<label for="Q40">1</label>	
												</td>
												<td><textarea id="elm1" name="Q40comment" placeholder=""><?php echo $Q40comment ?></textarea></td>
												<td><textarea id="elm1" name="Q40AI"><?php echo $Q40AI ?></textarea></td>
												<td><textarea name="refQ40" ><?php echo $refQ40 ?></textarea></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>
												<input type="radio" name="Q41" id="Q41" value="6" <?php if($Q41=="6") echo "checked" ?>>
												<label for="Q41">4</label><br>
												<input type="radio" name="Q41" id="Q41" value="4" <?php if($Q41=="4") echo "checked" ?>>
												<label for="Q41">3</label>		<br>											
												<input type="radio" name="Q41" id="Q41" value="2" <?php if($Q41=="2") echo "checked" ?>>
												<label for="Q41">2</label><br>
												<input type="radio" name="Q41" id="Q41" value="0" <?php if($Q41=="0") echo "checked" ?>>
												<label for="Q41">1</label>	
												</td>
												<td><textarea id="elm1" name="Q41comment" placeholder=""><?php echo $Q41comment ?></textarea></td>
												<td><textarea id="elm1" name="Q41AI"><?php echo $Q41AI ?></textarea></td>
												<td><textarea name="refQ41" ><?php echo $refQ41 ?></textarea></td>
                                            </tr>
										 </tbody>
                                    </table>
									</div><br>
                                
									<div class="form-group row">
                                   
                                    <div class="col-sm-1">
                                        <button class="btn btn-primary btn-block waves-effect waves-light" type="submit">Save</button>
                                    </div></form>
									
									
									
                                </div>
                               
                    </div>
					</p>
									</div>
                                 </div>
								</div>
                        </div>
                    </div>
					</div> <!-- end row -->
				</div> <!-- end container -->
        </div>
        <!-- Footer -->
        <footer class="footer">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-12">
                        © 2020 <b>VAC-DOS </b>V1.0<br><span class="d-none d-sm-inline-block">Crafted by <b>Research and Innovation</b> Division, DVS</span>
                    </div>
                </div>
            </div>
        </footer>
        <!-- End Footer -->
    

        <!-- jQuery  -->
        <script src="assets/js/jquery.min.js"></script>
        <script src="assets/js/bootstrap.bundle.min.js"></script>
        <script src="assets/js/modernizr.min.js"></script>
        <script src="assets/js/detect.js"></script>
        <script src="assets/js/fastclick.js"></script>
        <script src="assets/js/jquery.slimscroll.js"></script>
        <script src="assets/js/jquery.blockUI.js"></script>
        <script src="assets/js/waves.js"></script>

		<!--Wysiwig js-->
        <script src="assets/plugins/tinymce/tinymce.min.js"></script>
        <!-- App js -->
        <script src="assets/js/app.js"></script>
		<script>
            $(document).ready(function () {
                if($("#elm1").length > 0){
                    tinymce.init({
                        selector: "textarea#elm1",
                        theme: "modern",
                        height:300,
                        plugins: [
                            "advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker",
                            "searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking",
                            "save table contextmenu directionality emoticons template paste textcolor"
                        ],
                        toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | l      ink image | print preview media fullpage | forecolor backcolor emoticons",
                        style_formats: [
                            {title: 'Bold text', inline: 'b'},
                            {title: 'Red text', inline: 'span', styles: {color: '#ff0000'}},
                            {title: 'Red header', block: 'h1', styles: {color: '#ff0000'}},
                            {title: 'Example 1', inline: 'span', classes: 'example1'},
                            {title: 'Example 2', inline: 'span', classes: 'example2'},
                            {title: 'Table styles'},
                            {title: 'Table row 1', selector: 'tr', classes: 'tablerow1'}
                        ]
                    });
                }
            });
        </script>
    </body>
</html>