<?php
/**
 * [ACTIVE-LAYOUT]
 * 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(); ?>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<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','opaicons','bootextra','media-queries','chat','4','font'));
		echo $this->Html->script(array('jquery-1.9.1.min','menu','4'));

		//echo $this->fetch('meta');
		//echo $this->fetch('css');
		//echo $this->fetch('script');
	?>
        
        <style>   
/*            body{
                min-width: 960px;
            }*/
            body{
                min-width: 850px;
            }
            .logo img {
                    height: 43px;
                    padding: 3px 5px 3px 33px;
                    max-width: 100%;
                } 
        </style>
	
</head>
<body>
	<div class="container1">
		<?php echo $this->element('head');?>
	</div>
	
	
	<div class="container3"> 
		<!-- MAIN-CONTENT[LEFT-MENU] -->
		
		<div class="divONE">
			<div class="tac">
                        
                <div style="overflow: hidden">
					<?php 
					/*echo '<pre>';
					print_r($networks);
					echo '<pre>';*/
					if(!empty($networks[0]['Network']['link1'])){?>
						<img src="<?php echo $networks[0]['Network']['link1'];?>" width="164px" height="164px">
					<?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 $networks[0]['Network']['title'] ?? '';?></div>
			
			<div id="updateMenu">
				<?php echo $this->element('networkmenu');?>
			</div>
		</div>
		
		
		<div class="divTWO">
		
			<div class="partA">
				<div class="pd5 " id="ajaxData">
					<?php echo $this->fetch('content'); ?>
				</div>
			</div>
			
			<div class="partX">
				
				<?php  echo $this->element('right_part_update'); ?>
			</div>
			
		</div>
	
	</div>
	
	<div class="clearall"></div>
	<br/>
	
	<?php echo $this->Html->script(array('bootstrap-transition','bootstrap-collapse'));?>
	<?php //echo $this->element('sql_dump'); ?>
	<?php //echo $this->Js->writeBuffer();?>
</body>
</html>
