<?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', 'CakePHP: the rapid development php framework');
?>
<!DOCTYPE html>
<html>
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo $cakeDescription ?>:
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css(array('grid','style','custom','media-queries'));
		echo $this->Html->script(array("jquery.1.7.2.min"));
		
		//echo $this->fetch('meta');
		//echo $this->fetch('css');
		//echo $this->fetch('script');
	?>
</head>
<body>
	<div class="container">
		
		<?php echo $this->element('head');?>

		<!--[MAIN-CONTENT]----------------------------------------------------- -->
<div class="row">
	
	<!--[LEFT-CONTENT]------------------------ -->
	<div class="leftContent fl">
	
		<!--[TOP-MENU]-->
		<?php echo $this->element('menu');?>
		
		<!--[ALL-CONENT]-->
		<div class="allContent">
			
			<!--[LEFT-MENU]-->
			<div class="leftMenu">
				<ul>
					<li><?php echo $this->Html->link('Home',array('controller' => 'pages', 'action' =>'/')) ?></li>
					<?php 
						if(!empty($class)):
							foreach($class as $cls):
								echo "<li>";
								echo $this->Html->link($cls['Crtclass']['name'],array('controller'=>'classmembers','action'=>'classdetails',$cls['Crtclass']['id']));
								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">
				<?php echo $this->fetch('content'); ?>
			</div>
			
			<div class="cl"></div>
		</div>
	</div>
	
	<!--[RIGHT-CONTENT]------------------------ -->
	<?php echo $this->element('right_part');?>

</div>
		
		
		<?php echo $this->Session->flash(); ?>
		
		
		
		
	</div>
	<?php echo $this->element('sql_dump'); ?>
</body>
</html>
