<?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');
$cakeDescription = __d('cake_dev', 'foqas');
?>
<!DOCTYPE html>
<html>
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
	<link rel="shortcut icon" type="image/x-icon" href="<?php echo $this->webroot; ?>img/foqas_symbol.png">
		<?php echo $this->Html->meta('foqas_symbol.png','img/foqas_symbol.png',array('type' => 'icon')); ?>
	</title>
	<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css(array('bootstrap_new','bootstrap','bootstrap-responsive','grid','style','custom','opaicons','media-queries','chat'));
		echo $this->Html->script(array('jquery-1.9.1.min','menu','chat'));

		//echo $this->fetch('meta');
		//echo $this->fetch('css');
		//echo $this->fetch('script');
	?>
</head>
<body>
	<div class="container-fluid">
		<div class="site-container">
			
			<?php echo $this->element('head');?>
			<?php echo $this->element('menu');?>

			<?php echo $this->Session->flash(); ?>
	
	
			<!--[MAIN-CONTENT]----------------------------------------------------- -->
			<div class="row-fluid">
				
				<!--[LEFT-CONTENT]------------------------ -->
				<div class="span2">
					<!--[LEFT-MENU]-->
						<div class="leftMenu">
							<ul>
								<li><?php echo $this->Html->link('Home',array('controller' => 'pages', 'action' =>'/'),array('class'=>'iconlink iconlinktext linkhome')); ?></li>
								<?php
								if(!empty($course)):
									foreach($course as $cours):
									$arr_title = explode('~',$cours['Setting']['title']);
										echo "<li>";
										echo $this->Html->link($arr_title[0],array('controller'=>'courseroles','action'=>'coursedetails',$cours['Course']['id']),array('class'=>'iconlink iconlinktext linkclass'));
										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']),array('class'=>'iconlink iconlinktext linkgroup'));
										echo "</li>";
									endforeach;
								endif;
							?>
							</ul>
						</div>
				</div>
				
				
				<!--[LEFT-CONTENT]------------------------ -->
				<div class="span6 leftContent">
	
					<!--[ALL-CONENT]-->
					<div class="row-fluid allContent">
	
						
	
						<!--[PG-CONTENT]-->
						<div class="">
							<div class="row-fluid">
								
								<!-- CONTENT-FOR-VIEW -->
								<div class="span9 mCont">
									dsadasd
									<?php echo $this->fetch('content'); ?>
								</div>
								
								<!-- PAGE-LINK -->
								<div class="span3 pgLink">
									<ul>
										<?php
										echo "<li>".$this->Html->link('Join a class',array('controller'=>'classmembers','action'=>'add'),array('class'=>'iconlink iconlinktext linkright1'))."</li>";
										echo "<li>".$this->Html->link('Create a class',array('controller'=>'crtclasses','action'=>'add'),array('class'=>'iconlink iconlinktext linkcreate'))."</li>";
										echo "<li>".$this->Html->link('Join a group',array('controller'=>'groupmembers','action'=>'add'),array('class'=>'iconlink iconlinktext linkright2'))."</li>";
										echo "<li>".$this->Html->link('Create a group',array('controller'=>'groups','action'=>'add'),array('class'=>'iconlink iconlinktext linkcreate'))."</li>";
										echo "<li>".$this->Html->link('My creation',array('controller'=>'users','action'=>'dashboard'),array('class'=>'iconlink iconlinktext linkexpand'))."</li>";
										?>
									</ul>
								</div>
							</div>
						</div>
					</div>
				</div>
				
				<!-- CHATING-OPTIONS -->
				<div class="span4 right-content">
					<?php echo $this->element('right_part');?>
				</div>
				
			</div>
	
			<!--[FOOTER]----------------------------------------------------- -->
			<div class="row">
	
			</div>
			<div class="cl"></div>
	
		</div>
	</div>
	<?php //echo $this->element('sql_dump'); ?>
</body>
</html>
