<?php
/**
 *[active-class]
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */

$cakeDescription = __d('cake_dev', 'Foqas');
?>
<!DOCTYPE html>
<html>
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo $cakeDescription ?>
	</title>
	<link rel="shortcut icon" type="image/x-icon" href="<?php echo $this->webroot; ?>img/foqas_symbol.png">
	<?php
//		echo $this->Html->meta('icon');
        echo $this->Html->meta('foqas_symbol.png','/img/foqas_symbol.png',array('type' => 'icon'));
		echo $this->Html->css(array('bootstrap_new','bootstrap','bootstrap-responsive','grid','style','custom','bootextra','opaicons','media-queries','font','4'));
		echo $this->Html->script(array('jquery-1.9.1.min','4'));
		echo $this->Html->script(array('ckeditor/ckeditor')); 
		//echo $this->Html->script(array('jquery.min'));
		//echo $this->Html->script('chat');

		//echo $this->fetch('meta');
		//echo $this->fetch('css');
		//echo $this->fetch('script');
	?>
</script>


    <style>
        body{
            min-width: 850px;
        } 
    </style>
    <style type="text/css">
    	#cke_3, #cke_9, #cke_18, #cke_25, #cke_49, #cke_40, #cke_41, #cke_42, #cke_46, #cke_47, #cke_48, #cke_58, #cke_61, #cke_64, #cke_66, #cke_69 {
        display: none;
    }
	</style>
    <script type="text/javascript">
        function validate(file) {
    	    var ext = file.split(".");
    	    ext = ext[ext.length-1].toLowerCase();      
    	    var arrayExtensions = ["jpg" , "jpeg", "png", "bmp", "gif"];

    	    if (arrayExtensions.lastIndexOf(ext) == -1) {
    	        alert("Wrong extension type. Only below file types that can be uploaded: jpg, jpeg, png, bmp, gif");
    	        $("#image").val("");
    	    }
    	}

        function validate1(file) {
    	    var ext = file.split(".");
    	    ext = ext[ext.length-1].toLowerCase();      
    	    var arrayExtensions = ["mp4"];

    	    if (arrayExtensions.lastIndexOf(ext) == -1) {
    	        alert("Wrong extension type. Only below file types that can be uploaded: mp4");
    	        $("#image").val("");
    	    }
    	}
        function validate2(file) {
    	    var ext = file.split(".");
    	    ext = ext[ext.length-1].toLowerCase();      
    	    var arrayExtensions = ["docx" , "docm", "dotx", "dotm", "xlsx","xlsm" , "xltx", "xltm", "xlsb", "xlam","pptx" , "pptm", "potx", "potm", "ppam","ppsx" , "ppsm", "doc", "ppt", "pdf","odt" , "gif", "jpeg", "avi", "txt","tiff" , "jpg", "bmp", "rtf", "png","csv" , "xls", "html", "mp3", "zip","pps"];

    	    if (arrayExtensions.lastIndexOf(ext) == -1) {
    	        alert("Wrong extension type. Only below file types that can be uploaded: docx , docm, dotx, dotm, xlsx,xlsm , xltx, xltm, xlsb, xlam,pptx , pptm, potx, potm, ppam,ppsx , ppsm, doc, ppt, pdf,odt , gif, jpeg, avi, txt,tiff , jpg, bmp, rtf, png,csv , xls, html, mp3, zip,pps");
    	        $("#image").val("");
    	    }
    	}
    </script>
</head>

        <?php 
		
                $urlcss=substr($this->here,0,19);
	?>
	<?php if ($urlcss=='/quiztests/quiztest'){?>
<body oncontextmenu="return false" style="-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;">

	<?php }else{?>
	<body>

	<?php }?>
	<div class="container1">
		<?php echo $this->element('head');?>
	</div>
	<?php 
		$url=$this->here;
               
	?>
	<?php if ($url=='/classcontents/add/Discussion'){?>
	<div class="container3" style="height: 99.5%">
	<?php }else{?>
	<div class="container3">
	<?php }?>
	
		<!-- MAIN-CONTENT[LEFT-MENU] -->
		<div class="divONE">
			<div class="tac">
				<div style="overflow: hidden">
					<?php 
					
					if(!empty($courses['Course']['link1'])){?>
						<img src="<?php echo $courses['Course']['link1'];?>" width="164px" height="164px" style="
                                                     ">
					<?php }else{
						echo $this->Html->image('noimagefound.jpg',array('style'=>'width: 164px; height: 164px margin-top: 5px;','alt'=>'Class Image'));
					}
					?>
				</div>
			</div>
			
			<div class="activeModule bold">
			<?php 
                 echo $courseName['Course']['courseShortName'] ?? '';				
			?>
			</div>
			
			<?php
			echo $this->element('classmenu');
			?>
		</div>
		
		
		<div class="divTWO">
		
			<div class="partA">
			<?php echo $this->Session->flash(); ?>
				<div class="pd5">
					<div id="ajaxContent">
					<?php echo $this->fetch('content'); ?>
					</div>
				</div>
			</div>
			
			<!-- CHATING-OPTIONS -->
			<?php 
			if($this->params['action'] !='quiztest'){
				?>
				<div class="partX">
					<?php echo $this->element('right_part_course');?>
				</div>
				<?php 
			}
			?>
			
			
			
		</div>
	
	</div>

	<?php echo $this->Html->script(array('bootstrap-transition','bootstrap-collapse'));?>
	<br/>
	<?php // echo $this->element('sql_dump'); ?>
	<script type="text/javascript">
		/*
		$(document).ready(function(){
		    $(document).bind("contextmenu",function(e){
		        e.preventDefault();
		    });
		});
		*/
	</script>
</body>
</html>
