<?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('bootstrap_new','bootstrap','bootstrap-responsive','grid','style','custom','opaicons','media-queries','chat','4'));
		echo $this->Html->script(array('jquery-1.9.1.min','menu','chat','4'));

		//echo $this->fetch('meta');
		//echo $this->fetch('css');
		//echo $this->fetch('script');
	?>
    </head>
    <body>
        <div class="container1">
		<?php echo $this->element('head');?>
        </div>

        <div class="container2">
            <div class="cont2right">
			<?php echo $this->element('menu');?>
            </div>
        </div>

        <div class="container3">

            <!-- MAIN-CONTENT[LEFT-MENU] -->

            <div class="divONE">
                <div class="leftMenu">
                    <ul>
                        <li><?php echo $this->Html->link('Home',array('controller' => 'users', 'action' =>'dashboard'),array('class'=>'iconlink iconlinktext linkhome')); ?></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']),array('class'=>'iconlink iconlinktext linkclass'));
							echo "</li>";
						endforeach;
					endif;*/
					if(!empty($_SESSION['my_classes'])){
						echo $_SESSION['my_classes'];
					}
					?>
                    </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>


            <div class="divTWO">

                <div class="partA">
                    <div style="padding: 5px;"> 
					<?php echo $this->fetch('content'); ?>
                    </div>
                </div>

                <div class="partX">
                    <div class="partB">
                        <!--part B-->
                        <br/>
                        <a href="#" onclick="gotoLeft();">L</a>
                        <a href="#" onclick="gotoRight();">R</a>

                        <br/>

                        <a href="#" onclick="getLargeC();">1</a>
                        <a href="#" onclick="gotoRight();">2</a>

                    </div>

                    <div class="partC">
                        <!--part C-->
                        <form>
                            <textarea rows="" cols=""></textarea>
                        </form>
                    </div>
                </div>

            </div>

        </div>

        <div class="clearall"></div>

        <div class="container-fluid" style="display: none;">
            <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" style="width: 120px">
                        <!--[LEFT-MENU]-->
                        <div class="leftMenu">
                            <ul>
                                <li><?php echo $this->Html->link('Home',array('controller' => 'users', 'action' =>'dashboard'),array('class'=>'iconlink iconlinktext linkhome')); ?></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']),array('class'=>'iconlink iconlinktext linkclass'));
										echo "</li>";
									endforeach;
								endif;*/
								if(!empty($_SESSION['my_classes'])){
									echo $_SESSION['my_classes'];
								}
								?>
                            </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="row-fluid">

                                <!-- CONTENT-FOR-VIEW -->
                                <div class="span12 mCont" id="ajaxData">
									<?php echo $this->fetch('content'); ?>
                                </div>
                                <!-- PAGE-LINK -->

                            </div>
                        </div>
                    </div>

                    <!-- CHATING-OPTIONS -->
                    <div class="span4 right-content">
                        <div class="row-fluid">
                            <div class="r-content">
							<?php echo $this->element('right_part'); ?>
                            </div>
                        </div>
                    </div>

                </div>

                <!--[FOOTER]----------------------------------------------------- -->
                <div class="row">

                </div>
                <div class="cl"></div>

            </div>
        </div>
	<?php echo $this->element('sql_dump'); ?>
	<?php echo $this->Js->writeBuffer();?>
    </body>
</html>
