<?php
/**
 *
 * 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>
	<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css(array('grid','style','custom','media-queries'));
		echo $this->Html->script(array('jquery-1.9.1.min'));
		
		//echo $this->fetch('meta');
		//echo $this->fetch('css');
		//echo $this->fetch('script');
	?>
</head>
<body>
	<div class="container">
		
		<?php echo $this->element('head');?>
		<?php echo $this->element('menu');?>
		
		<?php echo $this->Session->flash(); ?>
		
		
		
		<!--[MAIN-CONTENT]----------------------------------------------------- -->
		<div class="row">
			
			<!--[LEFT-CONTENT]------------------------ -->
			<div class="leftContent fl">
				
				<!--[TOP-MENU]-->
				
				
				<!--[ALL-CONENT]-->
				<div class="allContent">
					
					<!--[LEFT-MENU]-->
					<div class="leftMenu">
						<ul>
							<?php
							if(!empty($class)): 
								foreach($class as $cls):
									echo "<li>";
									echo $this->Html->link($cls['Crtclass']['name'],array('controller'=>'users','action'=>'classdetails'));
									echo "</li>";
								endforeach;
							endif;
							?>
							
						</ul>
						<ul>
					<?php 
						if(!empty($group)):
							foreach($group as $grp):
								echo "<li>";
								echo $this->Html->link($grp['Group']['name'],array('controller'=>'classmembers','action'=>'classdetails',$grp['Group']['id']));
								echo "</li>";
							endforeach;
						endif;
					?>
				</ul>
					</div>
					
					<!--[PG-CONTENT]-->
					
					<div class="pageContent">
						<div class="mContFullPage">
							<?php echo $this->fetch('content'); ?>
						</div>
						<div class="cl"></div>
					</div>
					<div class="cl"></div>
				</div>
			</div>
			<?php echo $this->element('right_part');?>
		</div>
		<div class="cl"></div>
		
		<!--[FOOTER]----------------------------------------------------- -->
		<div class="row">
			
		</div>
		<div class="cl"></div>
		
	</div>
	<?php echo $this->element('sql_dump'); ?>
</body>
</html>
