Files
budget/src/Template/Layout/default.ctp

74 lines
2.5 KiB
PHP

<?php
/**
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://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. (https://cakefoundation.org)
* @link https://cakephp.org CakePHP(tm) Project
* @since 0.10.0
* @license https://opensource.org/licenses/mit-license.php MIT License
*/
$cakeDescription = 'KM Bayern';
?>
<!DOCTYPE html>
<html>
<head>
<?= $this->Html->charset() ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>
<?= $cakeDescription ?>:
<?= $this->fetch('title') ?>
</title>
<?= $this->Html->meta('icon') ?>
<?= $this->Html->css('base.css') ?>
<?= $this->Html->css('cake.css') ?>
<?= $this->Html->css('budget-costum.css') ?>
<?= $this->Html->css('handsontable.min.css') ?>
<?= $this->Html->css('handsontable.costum.css') ?>
<?= $this->Html->script('handsontable.min.js') ?>
<?= $this->Html->script('jquery-3.3.1.min.js') ?>
<?= $this->fetch('meta') ?>
<?= $this->fetch('css') ?>
<?= $this->fetch('script') ?>
</head>
<body>
<nav class="top-bar expanded" data-topbar role="navigation">
<ul class="title-area large-3 medium-4 columns">
<li class="name">
<?php
$session = $this->request->session();
if ($session->read('SchoolType') == '02') {
echo '<h1>Realschule</h1>';
}
else {
echo '<h1>Gymnasium</h1>';
}
?>
</li>
</ul>
<div class="top-bar-section">
<ul class="right">
<li><?php echo $this->Html->link('Overview',array('controller' => 'budget', 'action' => 'overview')); ?></li>
<li><?php echo $this->Html->link('Budgetart wählen',array('controller' => 'budget', 'action' => 'list_budgets')); ?></li>
<li><?php echo $this->Html->link('Schulart ändern',array('controller' => 'budget', 'action' => 'change_school')); ?></li>
</ul>
</div>
</nav>
<?= $this->Flash->render() ?>
<div class="container clearfix">
<?= $this->fetch('content') ?>
</div>
<footer>
</footer>
</body>
</html>