<!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 Production Capability</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="adddataproduction.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'] ;
				$Q20=$test['Q20'] ;
				$Q20comment=$test['Q20comment'] ;
				$Q20AI=$test['Q20AI'] ;
				$Q21=$test['Q21'] ;
				$Q21comment=$test['Q21comment'] ;
				$Q21AI=$test['Q21AI'] ;
				$Q22=$test['Q22'] ;
				$Q22comment=$test['Q22comment'] ;
				$Q22AI=$test['Q22AI'] ;
				$Q23=$test['Q23'] ;
				$Q23comment=$test['Q23comment'] ;
				$Q23AI=$test['Q23AI'] ;
				$Q24=$test['Q24'] ;
				$Q24comment=$test['Q24comment'] ;
				$Q24AI=$test['Q24AI'] ;
				$Q25=$test['Q25'] ;
				$Q25comment=$test['Q25comment'] ;
				$Q25AI=$test['Q25AI'] ;
				$Q26=$test['Q26'] ;
				$Q26comment=$test['Q26comment'] ;
				$Q26AI=$test['Q26AI'] ;
				$Q27=$test['Q27'] ;
				$Q27comment=$test['Q27comment'] ;
				$Q27AI=$test['Q27AI'] ;	
				$refQ20=$test['refQ20'] ;
				$refQ21=$test['refQ21'] ;
				$refQ22=$test['refQ22'] ;
				$refQ23=$test['refQ23'] ;
				$refQ24=$test['refQ24'] ;
				$refQ25=$test['refQ25'] ;
				$refQ26=$test['refQ26'] ;
				$refQ27=$test['refQ27'] ;
				
mysql_close($conn);

?>	                         
                        
   
                                    <p class="text-muted m-b-30 font-14">AREA: <strong>Overall quality - Safety</strong> <br>CATEGORY: <strong>Vaccine Production Capability</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">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>
												<input type="radio" name="Q20" id="Q20" value="6" <?php if($Q20=="6") echo "checked" ?>>
												<label for="Q20">4</label><br>
												<input type="radio" name="Q20" id="Q20" value="4" <?php if($Q20=="4") echo "checked" ?>>
												<label for="Q20">3</label>		<br>											
												<input type="radio" name="Q20" id="Q20" value="2" <?php if($Q20=="2") echo "checked" ?>>
												<label for="Q20">2</label><br>
												<input type="radio" name="Q20" id="Q20" value="0" <?php if($Q20=="0") echo "checked" ?>>
												<label for="Q20">1</label>	
												</td>
												
												<td><textarea id="elm1" name="Q20comment" placeholder=""><?php echo $Q20comment ?></textarea></td>
												<td><textarea id="elm1" name="Q20AI"><?php echo $Q20AI ?></textarea></td>
												<td><textarea name="refQ20" ><?php echo $refQ20 ?></textarea></td>
                                            </tr>
											<tr>
                                                <th scope="row">21</th>
                                                <td>Substrate for propagation (including Master Cell Stock information)<br><p style="color:red"><sub>*Not applicable for Live Vaccine</sub></p></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> 
												<input type="radio" name="Q21" id="Q21" value="6" <?php if($vacctype=="Live") echo "disabled"; else if($Q21=="6") echo "checked" ?>>
												<label for="Q21">4</label><br>
												<input type="radio" name="Q21" id="Q21" value="4" <?php if($vacctype=="Live") echo "disabled"; else if($Q21=="4") echo "checked" ?>>
												<label for="Q21">3</label>		<br>											
												<input type="radio" name="Q21" id="Q21" value="2" <?php if($vacctype=="Live") echo "disabled"; else if($Q21=="2") echo "checked" ?>>
												<label for="Q21">2</label><br>
												<input type="radio" name="Q21" id="Q21" value="0" <?php if($vacctype=="Live") echo "disabled"; else if($Q21=="0") echo "checked" ?>>
												<label for="Q21">1</label>	
												</td>
												
												<td><textarea id="elm1" name="Q21comment" placeholder="" <?php if($vacctype=="Live") echo "disabled"?>><?php echo $Q21comment ?></textarea></td>
												<td><textarea id="elm1" name="Q21AI" <?php if($vacctype=="Live") echo "disabled"?>><?php echo $Q21AI ?></textarea></td>
												<td><textarea name="refQ21" <?php if($vacctype=="Live") echo "disabled"?>><?php echo $refQ21 ?></textarea></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>
												<input type="radio" name="Q22" id="Q22" value="6" <?php if($Q22=="6") echo "checked" ?>>
												<label for="Q22">4</label><br>
												<input type="radio" name="Q22" id="Q22" value="4" <?php if($Q22=="4") echo "checked" ?>>
												<label for="Q22">3</label>		<br>											
												<input type="radio" name="Q22" id="Q22" value="2" <?php if($Q22=="2") echo "checked" ?>>
												<label for="Q22">2</label><br>
												<input type="radio" name="Q22" id="Q22" value="0" <?php if($Q22=="0") echo "checked" ?>>
												<label for="Q22">1</label>	
												</td>
												
												<td><textarea id="elm1" name="Q22comment" placeholder=""><?php echo $Q22comment ?></textarea></td>
												<td><textarea id="elm1" name="Q22AI"><?php echo $Q22AI ?></textarea></td>
												<td><textarea name="refQ22" ><?php echo $refQ22 ?></textarea></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>
												<input type="radio" name="Q23" id="Q23" value="6" <?php if($Q23=="6") echo "checked" ?>>
												<label for="Q23">4</label><br>
												<input type="radio" name="Q23" id="Q23" value="4" <?php if($Q23=="4") echo "checked" ?>>
												<label for="Q23">3</label>		<br>											
												<input type="radio" name="Q23" id="Q23" value="2" <?php if($Q23=="2") echo "checked" ?>>
												<label for="Q23">2</label><br>
												<input type="radio" name="Q23" id="Q23" value="0" <?php if($Q23=="0") echo "checked" ?>>
												<label for="Q23">1</label>	
												</td>
												
												<td><textarea id="elm1" name="Q23comment" placeholder=""><?php echo $Q23comment ?></textarea></td>
												<td><textarea id="elm1" name="Q23AI"><?php echo $Q23AI ?></textarea></td>
												<td><textarea name="refQ23" ><?php echo $refQ23 ?></textarea></td>
                                            </tr>
											<tr>
                                                <th scope="row">24</th>
                                                <td>Vaccine inactivation process (for inactivated antigens)<p style="color:red"><sub>*Not applicable for Live Vaccine</sub></p> </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>
												<input type="radio" name="Q24" id="Q24" value="6" <?php if($vacctype=="Live") echo "disabled"; else if($Q24=="6") echo "checked" ?>>
												<label for="Q24">4</label><br>
												<input type="radio" name="Q24" id="Q24" value="4" <?php if($vacctype=="Live") echo "disabled"; else if($Q24=="4") echo "checked" ?>>
												<label for="Q24">3</label>		<br>											
												<input type="radio" name="Q24" id="Q24" value="2" <?php if($vacctype=="Live") echo "disabled"; else if($Q24=="2") echo "checked" ?>>
												<label for="Q24">2</label><br>
												<input type="radio" name="Q24" id="Q24" value="0" <?php if($vacctype=="Live") echo "disabled"; else if($Q24=="0") echo "checked" ?>>
												<label for="Q24">1</label>	
												</td>
												
												<td><textarea id="elm1" name="Q24comment" placeholder="" <?php if($vacctype=="Live") echo "disabled"?>><?php echo $Q24comment ?></textarea></td>
												<td><textarea id="elm1" name="Q24AI" <?php if($vacctype=="Live") echo "disabled"?>><?php echo $Q24AI ?></textarea></td>
												<td><textarea name="refQ24" <?php if($vacctype=="Live") echo "disabled"?>><?php echo $refQ24 ?></textarea></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>
												<input type="radio" name="Q25" id="Q25" value="6" <?php if($Q25=="6") echo "checked" ?>>
												<label for="Q25">4</label><br>
												<input type="radio" name="Q25" id="Q25" value="4" <?php if($Q25=="4") echo "checked" ?>>
												<label for="Q25">3</label>		<br>											
												<input type="radio" name="Q25" id="Q25" value="2" <?php if($Q25=="2") echo "checked" ?>>
												<label for="Q25">2</label><br>
												<input type="radio" name="Q25" id="Q25" value="0" <?php if($Q25=="0") echo "checked" ?>>
												<label for="Q25">1</label>	
												</td>
												
												<td><textarea id="elm1" name="Q25comment" placeholder=""><?php echo $Q25comment ?></textarea></td>
												<td><textarea id="elm1" name="Q25AI"><?php echo $Q25AI ?></textarea></td>
												<td><textarea name="refQ25" ><?php echo $refQ25 ?></textarea></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>
												<input type="radio" name="Q26" id="Q26" value="6" <?php if($Q26=="6") echo "checked" ?>>
												<label for="Q26">4</label><br>
												<input type="radio" name="Q26" id="Q26" value="4" <?php if($Q26=="4") echo "checked" ?>>
												<label for="Q26">3</label>		<br>											
												<input type="radio" name="Q26" id="Q26" value="2" <?php if($Q26=="2") echo "checked" ?>>
												<label for="Q26">2</label><br>
												<input type="radio" name="Q26" id="Q26" value="0" <?php if($Q26=="0") echo "checked" ?>>
												<label for="Q26">1</label>	
												</td>
												
												<td><textarea id="elm1" name="Q26comment" placeholder=""><?php echo $Q26comment ?></textarea></td>
												<td><textarea id="elm1" name="Q26AI"><?php echo $Q26AI ?></textarea></td>
												<td><textarea name="refQ26" ><?php echo $refQ26 ?></textarea></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>
												<input type="radio" name="Q27" id="Q27" value="6" <?php if($Q27=="6") echo "checked" ?>>
												<label for="Q27">4</label><br>
												<input type="radio" name="Q27" id="Q27" value="4" <?php if($Q27=="4") echo "checked" ?>>
												<label for="Q27">3</label>		<br>											
												<input type="radio" name="Q27" id="Q27" value="2" <?php if($Q27=="2") echo "checked" ?>>
												<label for="Q27">2</label><br>
												<input type="radio" name="Q27" id="Q27" value="0" <?php if($Q27=="0") echo "checked" ?>>
												<label for="Q27">1</label>	
												</td>
												
												<td><textarea id="elm1" name="Q27comment" placeholder=""><?php echo $Q27comment ?></textarea></td>
												<td><textarea id="elm1" name="Q27AI"><?php echo $Q27AI ?></textarea></td>
												<td><textarea name="refQ27" ><?php echo $refQ27 ?></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>