<?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.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('classmenu');?>
		
		<?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>
							<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">
						<div class="mCont">
							<?php if($this->request->params['action'] == 'classdetails'):?>
								<ul class="cdMenu">
									<li><a href="#">Notification</a></li>
									<li><a href="#">Assignment</a></li>
									<li><a href="#">My report</a></li>
								</ul>
							<?php endif;?>
							
							<div class="contClassDetails">
								<?php echo $this->fetch('content'); ?>
							</div>
							
							<?php if($this->request->params['action'] == 'classdetails'):?>
								<div class="classDetailstime">
									<ul>
										<li><a href="#">06:00 AM</a></li>
										<li><a href="#">06:00 AM</a></li>
										<li><a href="#">06:00 AM</a></li>
										<li><a href="#">06:00 AM</a></li>
										<li><a href="#">06:00 AM</a></li>
										<li><a href="#">06:00 AM</a></li>
										<li><a href="#">06:00 AM</a></li>
										<li><a href="#">06:00 AM</a></li>
										<li><a href="#">06:00 AM</a></li>
										<li><a href="#">06:00 AM</a></li>
										<li><a href="#">06:00 AM</a></li>
										<li><a href="#">06:00 AM</a></li>
										<li><a href="#">06:00 AM</a></li>
										<li><a href="#">06:00 AM</a></li>
									</ul>
								</div>
							<?php endif;?>
							
						</div>
						<?php if($this->request->params['action'] == 'classdetails'):?>
						<div class="pgLink">
							<h4>Today</h4>
							<ul>
								<li><a href="#">Class one</a></li>
								<li><a href="#">Class two</a></li>
								<li><a href="#">Class three</a></li>
								<li><a href="#">Class three</a></li>
								<li><a href="#"></a></li>
								<li><a href="#"></a></li>
								<li><a href="#"></a></li>
								<li><a href="#"></a></li>
								<li><a href="#"></a></li>
								<li><a href="#"></a></li>
								<li><a href="#">Group meeting</a></li>
							</ul>
						</div>
						<?php endif;?>
						<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>
