Initial commit

This commit is contained in:
2018-04-02 08:23:14 +02:00
commit 9b83d1dc09
151 changed files with 20566 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\Budget $budget
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('List Budget'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Wl Schooltypes'), ['controller' => 'WlSchooltypes', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Wl Schooltype'), ['controller' => 'WlSchooltypes', 'action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Wl Budgets'), ['controller' => 'WlBudgets', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Wl Budget'), ['controller' => 'WlBudgets', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="budget form large-9 medium-8 columns content">
<?= $this->Form->create($budget) ?>
<fieldset>
<legend><?= __('Add Budget') ?></legend>
<?php
echo $this->Form->control('wl_schooltype_id', ['options' => $wlSchooltypes]);
echo $this->Form->control('snr');
echo $this->Form->control('wl_budget_id', ['options' => $wlBudgets]);
echo $this->Form->control('count');
echo $this->Form->control('comment');
echo $this->Form->control('year');
?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>
</div>

View File

@@ -0,0 +1,3 @@
<?php
debug($to_del);
?>

View File

@@ -0,0 +1,23 @@
<?php
echo '<table>';
echo '<tr>';
foreach ($headers as $header) {
echo '<th>' . str_replace('"','',$header) . '</th>';
}
echo '</tr>';
foreach ($content_arr as $line) {
echo '<tr>';
foreach ($line as $cell) {
echo '<td>' . str_replace('"','',$cell) . '</td>';
}
echo '</tr>';
}
echo '</table>';
?>

View File

@@ -0,0 +1,38 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\Budget $budget
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Form->postLink(
__('Delete'),
['action' => 'delete', $budget->id],
['confirm' => __('Are you sure you want to delete # {0}?', $budget->id)]
)
?></li>
<li><?= $this->Html->link(__('List Budget'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Wl Schooltypes'), ['controller' => 'WlSchooltypes', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Wl Schooltype'), ['controller' => 'WlSchooltypes', 'action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Wl Budgets'), ['controller' => 'WlBudgets', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Wl Budget'), ['controller' => 'WlBudgets', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="budget form large-9 medium-8 columns content">
<?= $this->Form->create($budget) ?>
<fieldset>
<legend><?= __('Edit Budget') ?></legend>
<?php
echo $this->Form->control('wl_schooltype_id', ['options' => $wlSchooltypes]);
echo $this->Form->control('snr');
echo $this->Form->control('wl_budget_id', ['options' => $wlBudgets]);
echo $this->Form->control('count');
echo $this->Form->control('comment');
echo $this->Form->control('year');
?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>
</div>

View File

@@ -0,0 +1 @@
<p>Hallo Export</p>

View File

@@ -0,0 +1,13 @@
<?php
echo $this->Form->create($budget);
foreach($schools as $school) {
//debug($school);die;
//echo $this->Form->label('budget.count_'.$school['id'],$school['dst_schluessel'.' '.$school['dst_name']]);
echo $this->Form->control('count_'.$school['id'], ['type' => 'decimal','label' => $school['dst_schluessel'] .' '.$school['dst_name'] ]);
}
echo $this->Form->button(__('Submit'));
echo $this->Form->end();

View File

@@ -0,0 +1,10 @@
<h1>Upload File</h1>
<div class="content">
<?= $this->Flash->render() ?>
<div class="upload-frm">
<?php echo $this->Form->create($uploadData, ['type' => 'file']); ?>
<?php echo $this->Form->input('file', ['type' => 'file', 'class' => 'form-control']); ?>
<?php echo $this->Form->button(__('Upload File'), ['type'=>'submit', 'class' => 'form-controlbtn btn-default']); ?>
<?php echo $this->Form->end(); ?>
</div>
</div>

View File

@@ -0,0 +1,65 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\Budget[]|\Cake\Collection\CollectionInterface $budget
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('New Budget'), ['action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Wl Schooltypes'), ['controller' => 'WlSchooltypes', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Wl Schooltype'), ['controller' => 'WlSchooltypes', 'action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Wl Budgets'), ['controller' => 'WlBudgets', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Wl Budget'), ['controller' => 'WlBudgets', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="budget index large-9 medium-8 columns content">
<h3><?= __('Budget') ?></h3>
<table cellpadding="0" cellspacing="0">
<thead>
<tr>
<th scope="col"><?= $this->Paginator->sort('id') ?></th>
<th scope="col"><?= $this->Paginator->sort('wl_schooltype_id') ?></th>
<th scope="col"><?= $this->Paginator->sort('snr') ?></th>
<th scope="col"><?= $this->Paginator->sort('wl_budget_id') ?></th>
<th scope="col"><?= $this->Paginator->sort('count') ?></th>
<th scope="col"><?= $this->Paginator->sort('comment') ?></th>
<th scope="col"><?= $this->Paginator->sort('year') ?></th>
<th scope="col"><?= $this->Paginator->sort('created') ?></th>
<th scope="col"><?= $this->Paginator->sort('modified') ?></th>
<th scope="col" class="actions"><?= __('Actions') ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($budget as $budget): ?>
<tr>
<td><?= $this->Number->format($budget->id) ?></td>
<td><?= $budget->has('wl_schooltype') ? $this->Html->link($budget->wl_schooltype->short, ['controller' => 'WlSchooltypes', 'action' => 'view', $budget->wl_schooltype->id]) : '' ?></td>
<td><?= h($budget->snr) ?></td>
<td><?= $budget->has('wl_budget') ? $this->Html->link($budget->wl_budget->wl_kurz_bezeichnung, ['controller' => 'WlBudgets', 'action' => 'view', $budget->wl_budget->id]) : '' ?></td>
<td><?= $this->Number->format($budget->count) ?></td>
<td><?= h($budget->comment) ?></td>
<td><?= h($budget->year) ?></td>
<td><?= h($budget->created) ?></td>
<td><?= h($budget->modified) ?></td>
<td class="actions">
<?= $this->Html->link(__('View'), ['action' => 'view', $budget->id]) ?>
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $budget->id]) ?>
<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $budget->id], ['confirm' => __('Are you sure you want to delete # {0}?', $budget->id)]) ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="paginator">
<ul class="pagination">
<?= $this->Paginator->first('<< ' . __('first')) ?>
<?= $this->Paginator->prev('< ' . __('previous')) ?>
<?= $this->Paginator->numbers() ?>
<?= $this->Paginator->next(__('next') . ' >') ?>
<?= $this->Paginator->last(__('last') . ' >>') ?>
</ul>
<p><?= $this->Paginator->counter(['format' => __('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')]) ?></p>
</div>
</div>

View File

@@ -0,0 +1,65 @@
<?php
$cols = array();
array_push($cols,'SNR');
array_push($cols,'Schule');
$col_width = array();
array_push($col_width,'50');
array_push($col_width,'300');
foreach($wlBudgets as $budget) {
array_push($cols,$budget);
array_push($col_width,'30');
}
//debug(json_encode($cols));
?>
<div class="controls">
<button name="load" id="load" class="intext-btn">Load</button>
<button name="save" id="save" class="intext-btn">Save</button>
<label><input name="autosave" id="autosave" checked="checked" autocomplete="off" type="checkbox">Autosave</label>
</div>
<pre id="example1console" class="console">Data loaded</pre>
<div id="example"></div>
<script>
var data = <?php echo json_encode($data); ?>;
var container = document.getElementById('example');
var exampleConsole = document.getElementById('example1console');
var autosave = document.getElementById('autosave');
var load = document.getElementById('load');
var save = document.getElementById('save');
var autosaveNotification;
var rotated = false;
var hot = new Handsontable(container, {
data: data,
width: 1400,
height: 1000,
rowHeaders: true,
wordWrap: false,
colHeaders: <?php echo json_encode($cols) ?> ,
colWidths: <?php echo json_encode($col_width) ?>,
filters: true,
dropdownMenu: true,
afterGetColHeader: function(i, TH) {
if($(TH).find(".testhead").length == 0) {
TH.innerHTML = '<div class="testhead">' + TH.innerHTML + '</div>';
}
}
});
Handsontable.dom.addEvent(save, 'click', function() {
// save all cell's data
//console.log(hot.getData());
//console.log(JSON.stringify({data: hot.getData()}));
$.ajax({
url: "sajax",
data: JSON.stringify(hot.getData()),
type: 'POST',
success: function (res) {
//console.log(res);
//var data = JSON.parse(res);
}
});
});
</script>

View File

@@ -0,0 +1,33 @@
<?php
echo '<table>';
echo '<tr>';
foreach($data[1] as $key => $value) {
echo '<th>' . $key . '</th>';
}
echo '</tr>';
for($i=1;$i <= (sizeof($data));$i++) {
echo '<tr>';
foreach($data[$i] as $key => $value) {
echo '<td>' . $value . '</td>';
}
echo '</tr>';
}
echo '</table>';
//echo '<p>Summe: ' .$data['sum'] . '</p>';
?>
<div class="budget form large-9 medium-8 columns content">
<?= $this->Form->create($budget) ?>
<fieldset>
<legend><?= __('Add Budget') ?></legend>
<?php
echo $this->Form->hidden('wl_schooltype_id', ['value' => '04']);
echo $this->Form->hidden('snr', ['value' => $snr]);
echo $this->Form->control('wl_budget_id', ['options' => $wlBudgets]);
echo $this->Form->control('count');
echo $this->Form->control('comment');
echo $this->Form->hidden('year', ['value' => '2018']);
?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>
</div>

View File

View File

@@ -0,0 +1,60 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\Budget $budget
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('Edit Budget'), ['action' => 'edit', $budget->id]) ?> </li>
<li><?= $this->Form->postLink(__('Delete Budget'), ['action' => 'delete', $budget->id], ['confirm' => __('Are you sure you want to delete # {0}?', $budget->id)]) ?> </li>
<li><?= $this->Html->link(__('List Budget'), ['action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Budget'), ['action' => 'add']) ?> </li>
<li><?= $this->Html->link(__('List Wl Schooltypes'), ['controller' => 'WlSchooltypes', 'action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Wl Schooltype'), ['controller' => 'WlSchooltypes', 'action' => 'add']) ?> </li>
<li><?= $this->Html->link(__('List Wl Budgets'), ['controller' => 'WlBudgets', 'action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Wl Budget'), ['controller' => 'WlBudgets', 'action' => 'add']) ?> </li>
</ul>
</nav>
<div class="budget view large-9 medium-8 columns content">
<h3><?= h($budget->id) ?></h3>
<table class="vertical-table">
<tr>
<th scope="row"><?= __('Wl Schooltype') ?></th>
<td><?= $budget->has('wl_schooltype') ? $this->Html->link($budget->wl_schooltype->short, ['controller' => 'WlSchooltypes', 'action' => 'view', $budget->wl_schooltype->id]) : '' ?></td>
</tr>
<tr>
<th scope="row"><?= __('Snr') ?></th>
<td><?= h($budget->snr) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Wl Budget') ?></th>
<td><?= $budget->has('wl_budget') ? $this->Html->link($budget->wl_budget->wl_kurz_bezeichnung, ['controller' => 'WlBudgets', 'action' => 'view', $budget->wl_budget->id]) : '' ?></td>
</tr>
<tr>
<th scope="row"><?= __('Comment') ?></th>
<td><?= h($budget->comment) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Year') ?></th>
<td><?= h($budget->year) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Id') ?></th>
<td><?= $this->Number->format($budget->id) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Count') ?></th>
<td><?= $this->Number->format($budget->count) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Created') ?></th>
<td><?= h($budget->created) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Modified') ?></th>
<td><?= h($budget->modified) ?></td>
</tr>
</table>
</div>

View File

@@ -0,0 +1,5 @@
<?php
echo $html;
?>

View File

@@ -0,0 +1,10 @@
<?php
$class = 'message';
if (!empty($params['class'])) {
$class .= ' ' . $params['class'];
}
if (!isset($params['escape']) || $params['escape'] !== false) {
$message = h($message);
}
?>
<div class="<?= h($class) ?>" onclick="this.classList.add('hidden');"><?= $message ?></div>

View File

@@ -0,0 +1,6 @@
<?php
if (!isset($params['escape']) || $params['escape'] !== false) {
$message = h($message);
}
?>
<div class="message error" onclick="this.classList.add('hidden');"><?= $message ?></div>

View File

@@ -0,0 +1,6 @@
<?php
if (!isset($params['escape']) || $params['escape'] !== false) {
$message = h($message);
}
?>
<div class="message success" onclick="this.classList.add('hidden')"><?= $message ?></div>

View File

@@ -0,0 +1,20 @@
<?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
*/
$content = explode("\n", $content);
foreach ($content as $line) :
echo '<p> ' . $line . "</p>\n";
endforeach;

View File

@@ -0,0 +1,16 @@
<?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
*/
echo $content;

View File

@@ -0,0 +1,38 @@
<?php
use Cake\Core\Configure;
use Cake\Error\Debugger;
$this->layout = 'error';
if (Configure::read('debug')) :
$this->layout = 'dev_error';
$this->assign('title', $message);
$this->assign('templateName', 'error400.ctp');
$this->start('file');
?>
<?php if (!empty($error->queryString)) : ?>
<p class="notice">
<strong>SQL Query: </strong>
<?= h($error->queryString) ?>
</p>
<?php endif; ?>
<?php if (!empty($error->params)) : ?>
<strong>SQL Query Params: </strong>
<?php Debugger::dump($error->params) ?>
<?php endif; ?>
<?= $this->element('auto_table_warning') ?>
<?php
if (extension_loaded('xdebug')) :
xdebug_print_function_stack();
endif;
$this->end();
endif;
?>
<h2><?= h($message) ?></h2>
<p class="error">
<strong><?= __d('cake', 'Error') ?>: </strong>
<?= __d('cake', 'The requested address {0} was not found on this server.', "<strong>'{$url}'</strong>") ?>
</p>

View File

@@ -0,0 +1,43 @@
<?php
use Cake\Core\Configure;
use Cake\Error\Debugger;
$this->layout = 'error';
if (Configure::read('debug')) :
$this->layout = 'dev_error';
$this->assign('title', $message);
$this->assign('templateName', 'error500.ctp');
$this->start('file');
?>
<?php if (!empty($error->queryString)) : ?>
<p class="notice">
<strong>SQL Query: </strong>
<?= h($error->queryString) ?>
</p>
<?php endif; ?>
<?php if (!empty($error->params)) : ?>
<strong>SQL Query Params: </strong>
<?php Debugger::dump($error->params) ?>
<?php endif; ?>
<?php if ($error instanceof Error) : ?>
<strong>Error in: </strong>
<?= sprintf('%s, line %s', str_replace(ROOT, 'ROOT', $error->getFile()), $error->getLine()) ?>
<?php endif; ?>
<?php
echo $this->element('auto_table_warning');
if (extension_loaded('xdebug')) :
xdebug_print_function_stack();
endif;
$this->end();
endif;
?>
<h2><?= __d('cake', 'An Internal Error Has Occurred') ?></h2>
<p class="error">
<strong><?= __d('cake', 'Error') ?>: </strong>
<?= h($message) ?>
</p>

View File

@@ -0,0 +1,24 @@
<?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
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title><?= $this->fetch('title') ?></title>
</head>
<body>
<?= $this->fetch('content') ?>
</body>
</html>

View File

@@ -0,0 +1,16 @@
<?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
*/
echo $this->fetch('content');

View File

@@ -0,0 +1,16 @@
<?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
*/
echo $this->fetch('content');

View File

@@ -0,0 +1,62 @@
<?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 = 'CakePHP: the rapid development php framework';
?>
<!DOCTYPE html>
<html>
<head>
<?= $this->Html->charset() ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
<?= $cakeDescription ?>:
<?= $this->fetch('title') ?>
</title>
<?= $this->Html->meta('icon') ?>
<?= $this->Html->css('base.css') ?>
<?= $this->Html->css('cake.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">
<h1><a href=""><?= $this->fetch('title') ?></a></h1>
</li>
</ul>
<div class="top-bar-section">
<ul class="right">
<li><a target="_blank" href="https://book.cakephp.org/3.0/">Documentation</a></li>
<li><a target="_blank" href="https://api.cakephp.org/3.0/">API</a></li>
</ul>
</div>
</nav>
<?= $this->Flash->render() ?>
<div class="container clearfix">
<?= $this->fetch('content') ?>
</div>
<footer>
</footer>
</body>
</html>

View File

@@ -0,0 +1,47 @@
<?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
*/
?>
<!DOCTYPE html>
<html>
<head>
<?= $this->Html->charset() ?>
<title>
<?= $this->fetch('title') ?>
</title>
<?= $this->Html->meta('icon') ?>
<?= $this->Html->css('base.css') ?>
<?= $this->Html->css('cake.css') ?>
<?= $this->fetch('meta') ?>
<?= $this->fetch('css') ?>
<?= $this->fetch('script') ?>
</head>
<body>
<div id="container">
<div id="header">
<h1><?= __('Error') ?></h1>
</div>
<div id="content">
<?= $this->Flash->render() ?>
<?= $this->fetch('content') ?>
</div>
<div id="footer">
<?= $this->Html->link(__('Back'), 'javascript:history.back()') ?>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<?php
if (!isset($channel)) :
$channel = [];
endif;
if (!isset($channel['title'])) :
$channel['title'] = $this->fetch('title');
endif;
echo $this->Rss->document(
$this->Rss->channel([], $channel, $this->fetch('content'))
);

278
src/Template/Pages/home.ctp Normal file
View File

@@ -0,0 +1,278 @@
<?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
*/
use Cake\Cache\Cache;
use Cake\Core\Configure;
use Cake\Core\Plugin;
use Cake\Datasource\ConnectionManager;
use Cake\Error\Debugger;
use Cake\Network\Exception\NotFoundException;
$this->layout = false;
if (!Configure::read('debug')) :
throw new NotFoundException(
'Please replace src/Template/Pages/home.ctp with your own version or re-enable debug mode.'
);
endif;
$cakeDescription = 'CakePHP: the rapid development PHP framework';
?>
<!DOCTYPE html>
<html>
<head>
<?= $this->Html->charset() ?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>
<?= $cakeDescription ?>
</title>
<?= $this->Html->meta('icon') ?>
<?= $this->Html->css('base.css') ?>
<?= $this->Html->css('cake.css') ?>
<?= $this->Html->css('home.css') ?>
<link href="https://fonts.googleapis.com/css?family=Raleway:500i|Roboto:300,400,700|Roboto+Mono" rel="stylesheet">
</head>
<body class="home">
<header class="row">
<div class="header-image"><?= $this->Html->image('cake.logo.svg') ?></div>
<div class="header-title">
<h1>Welcome to CakePHP <?= Configure::version() ?> Red Velvet. Build fast. Grow solid.</h1>
</div>
</header>
<div class="row">
<div class="columns large-12">
<div class="ctp-warning alert text-center">
<p>Please be aware that this page will not be shown if you turn off debug mode unless you replace src/Template/Pages/home.ctp with your own version.</p>
</div>
<div id="url-rewriting-warning" class="alert url-rewriting">
<ul>
<li class="bullet problem">
URL rewriting is not properly configured on your server.<br />
1) <a target="_blank" href="https://book.cakephp.org/3.0/en/installation.html#url-rewriting">Help me configure it</a><br />
2) <a target="_blank" href="https://book.cakephp.org/3.0/en/development/configuration.html#general-configuration">I don't / can't use URL rewriting</a>
</li>
</ul>
</div>
<?php Debugger::checkSecurityKeys(); ?>
</div>
</div>
<div class="row">
<div class="columns large-6">
<h4>Environment</h4>
<ul>
<?php if (version_compare(PHP_VERSION, '5.6.0', '>=')) : ?>
<li class="bullet success">Your version of PHP is 5.6.0 or higher (detected <?= PHP_VERSION ?>).</li>
<?php else : ?>
<li class="bullet problem">Your version of PHP is too low. You need PHP 5.6.0 or higher to use CakePHP (detected <?= PHP_VERSION ?>).</li>
<?php endif; ?>
<?php if (extension_loaded('mbstring')) : ?>
<li class="bullet success">Your version of PHP has the mbstring extension loaded.</li>
<?php else : ?>
<li class="bullet problem">Your version of PHP does NOT have the mbstring extension loaded.</li>;
<?php endif; ?>
<?php if (extension_loaded('openssl')) : ?>
<li class="bullet success">Your version of PHP has the openssl extension loaded.</li>
<?php elseif (extension_loaded('mcrypt')) : ?>
<li class="bullet success">Your version of PHP has the mcrypt extension loaded.</li>
<?php else : ?>
<li class="bullet problem">Your version of PHP does NOT have the openssl or mcrypt extension loaded.</li>
<?php endif; ?>
<?php if (extension_loaded('intl')) : ?>
<li class="bullet success">Your version of PHP has the intl extension loaded.</li>
<?php else : ?>
<li class="bullet problem">Your version of PHP does NOT have the intl extension loaded.</li>
<?php endif; ?>
</ul>
</div>
<div class="columns large-6">
<h4>Filesystem</h4>
<ul>
<?php if (is_writable(TMP)) : ?>
<li class="bullet success">Your tmp directory is writable.</li>
<?php else : ?>
<li class="bullet problem">Your tmp directory is NOT writable.</li>
<?php endif; ?>
<?php if (is_writable(LOGS)) : ?>
<li class="bullet success">Your logs directory is writable.</li>
<?php else : ?>
<li class="bullet problem">Your logs directory is NOT writable.</li>
<?php endif; ?>
<?php $settings = Cache::getConfig('_cake_core_'); ?>
<?php if (!empty($settings)) : ?>
<li class="bullet success">The <em><?= $settings['className'] ?>Engine</em> is being used for core caching. To change the config edit config/app.php</li>
<?php else : ?>
<li class="bullet problem">Your cache is NOT working. Please check the settings in config/app.php</li>
<?php endif; ?>
</ul>
</div>
<hr />
</div>
<div class="row">
<div class="columns large-6">
<h4>Database</h4>
<?php
try {
$connection = ConnectionManager::get('default');
$connected = $connection->connect();
} catch (Exception $connectionError) {
$connected = false;
$errorMsg = $connectionError->getMessage();
if (method_exists($connectionError, 'getAttributes')) :
$attributes = $connectionError->getAttributes();
if (isset($errorMsg['message'])) :
$errorMsg .= '<br />' . $attributes['message'];
endif;
endif;
}
?>
<ul>
<?php if ($connected) : ?>
<li class="bullet success">CakePHP is able to connect to the database.</li>
<?php else : ?>
<li class="bullet problem">CakePHP is NOT able to connect to the database.<br /><?= $errorMsg ?></li>
<?php endif; ?>
</ul>
</div>
<div class="columns large-6">
<h4>DebugKit</h4>
<ul>
<?php if (Plugin::loaded('DebugKit')) : ?>
<li class="bullet success">DebugKit is loaded.</li>
<?php else : ?>
<li class="bullet problem">DebugKit is NOT loaded. You need to either install pdo_sqlite, or define the "debug_kit" connection name.</li>
<?php endif; ?>
</ul>
</div>
<hr />
</div>
<div class="row">
<div class="columns large-6">
<h3>Editing this Page</h3>
<ul>
<li class="bullet cutlery">To change the content of this page, edit: src/Template/Pages/home.ctp.</li>
<li class="bullet cutlery">You can also add some CSS styles for your pages at: webroot/css/.</li>
</ul>
</div>
<div class="columns large-6">
<h3>Getting Started</h3>
<ul>
<li class="bullet book"><a target="_blank" href="https://book.cakephp.org/3.0/en/">CakePHP 3.0 Docs</a></li>
<li class="bullet book"><a target="_blank" href="https://book.cakephp.org/3.0/en/tutorials-and-examples/bookmarks/intro.html">The 15 min Bookmarker Tutorial</a></li>
<li class="bullet book"><a target="_blank" href="https://book.cakephp.org/3.0/en/tutorials-and-examples/blog/blog.html">The 15 min Blog Tutorial</a></li>
<li class="bullet book"><a target="_blank" href="https://book.cakephp.org/3.0/en/tutorials-and-examples/cms/installation.html">The 15 min CMS Tutorial</a></li>
</ul>
</div>
</div>
<div class="row">
<div class="columns large-12 text-center">
<h3 class="more">More about Cake</h3>
<p>
CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Front Controller and MVC.<br />
Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility.
</p>
</div>
<hr/>
</div>
<div class="row">
<div class="columns large-4">
<i class="icon support">P</i>
<h3>Help and Bug Reports</h3>
<ul>
<li class="bullet cutlery">
<a href="irc://irc.freenode.net/cakephp">irc.freenode.net #cakephp</a>
<ul><li>Live chat about CakePHP</li></ul>
</li>
<li class="bullet cutlery">
<a href="http://cakesf.herokuapp.com/">Slack</a>
<ul><li>CakePHP Slack support</li></ul>
</li>
<li class="bullet cutlery">
<a href="https://github.com/cakephp/cakephp/issues">CakePHP Issues</a>
<ul><li>CakePHP issues and pull requests</li></ul>
</li>
<li class="bullet cutlery">
<a href="http://discourse.cakephp.org/">CakePHP Forum</a>
<ul><li>CakePHP official discussion forum</li></ul>
</li>
</ul>
</div>
<div class="columns large-4">
<i class="icon docs">r</i>
<h3>Docs and Downloads</h3>
<ul>
<li class="bullet cutlery">
<a href="https://api.cakephp.org/3.0/">CakePHP API</a>
<ul><li>Quick Reference</li></ul>
</li>
<li class="bullet cutlery">
<a href="https://book.cakephp.org/3.0/en/">CakePHP Documentation</a>
<ul><li>Your Rapid Development Cookbook</li></ul>
</li>
<li class="bullet cutlery">
<a href="https://bakery.cakephp.org">The Bakery</a>
<ul><li>Everything CakePHP</li></ul>
</li>
<li class="bullet cutlery">
<a href="https://plugins.cakephp.org">CakePHP plugins repo</a>
<ul><li>A comprehensive list of all CakePHP plugins created by the community</li></ul>
</li>
<li class="bullet cutlery">
<a href="https://github.com/cakephp/">CakePHP Code</a>
<ul><li>For the Development of CakePHP Git repository, Downloads</li></ul>
</li>
<li class="bullet cutlery">
<a href="https://github.com/FriendsOfCake/awesome-cakephp">CakePHP Awesome List</a>
<ul><li>A curated list of amazingly awesome CakePHP plugins, resources and shiny things.</li></ul>
</li>
<li class="bullet cutlery">
<a href="https://www.cakephp.org">CakePHP</a>
<ul><li>The Rapid Development Framework</li></ul>
</li>
</ul>
</div>
<div class="columns large-4">
<i class="icon training">s</i>
<h3>Training and Certification</h3>
<ul>
<li class="bullet cutlery">
<a href="https://cakefoundation.org/">Cake Software Foundation</a>
<ul><li>Promoting development related to CakePHP</li></ul>
</li>
<li class="bullet cutlery">
<a href="https://training.cakephp.org/">CakePHP Training</a>
<ul><li>Learn to use the CakePHP framework</li></ul>
</li>
<li class="bullet cutlery">
<a href="https://certification.cakephp.org/">CakePHP Certification</a>
<ul><li>Become a certified CakePHP developer</li></ul>
</li>
</ul>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,27 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\School $school
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('List Schools'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Budget'), ['controller' => 'Budget', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Budget'), ['controller' => 'Budget', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="schools form large-9 medium-8 columns content">
<?= $this->Form->create($school) ?>
<fieldset>
<legend><?= __('Add School') ?></legend>
<?php
echo $this->Form->control('dst_schluessel');
echo $this->Form->control('dst_name');
echo $this->Form->control('dst_schulart');
?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>
</div>

View File

@@ -0,0 +1,33 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\School $school
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Form->postLink(
__('Delete'),
['action' => 'delete', $school->id],
['confirm' => __('Are you sure you want to delete # {0}?', $school->id)]
)
?></li>
<li><?= $this->Html->link(__('List Schools'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Budget'), ['controller' => 'Budget', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Budget'), ['controller' => 'Budget', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="schools form large-9 medium-8 columns content">
<?= $this->Form->create($school) ?>
<fieldset>
<legend><?= __('Edit School') ?></legend>
<?php
echo $this->Form->control('dst_schluessel');
echo $this->Form->control('dst_name');
echo $this->Form->control('dst_schulart');
?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>
</div>

View File

@@ -0,0 +1,53 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\School[]|\Cake\Collection\CollectionInterface $schools
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('New School'), ['action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Budget'), ['controller' => 'Budget', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Budget'), ['controller' => 'Budget', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="schools index large-9 medium-8 columns content">
<h3><?= __('Schools') ?></h3>
<table cellpadding="0" cellspacing="0">
<thead>
<tr>
<th scope="col"><?= $this->Paginator->sort('id') ?></th>
<th scope="col"><?= $this->Paginator->sort('dst_schluessel') ?></th>
<th scope="col"><?= $this->Paginator->sort('dst_name') ?></th>
<th scope="col"><?= $this->Paginator->sort('dst_schulart') ?></th>
<th scope="col" class="actions"><?= __('Actions') ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($schools as $school): ?>
<tr>
<td><?= $this->Number->format($school->id) ?></td>
<td><?= h($school->dst_schluessel) ?></td>
<td><?= h($school->dst_name) ?></td>
<td><?= h($school->dst_schulart) ?></td>
<td class="actions">
<?= $this->Html->link(__('View'), ['action' => 'view', $school->id]) ?>
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $school->id]) ?>
<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $school->id], ['confirm' => __('Are you sure you want to delete # {0}?', $school->id)]) ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="paginator">
<ul class="pagination">
<?= $this->Paginator->first('<< ' . __('first')) ?>
<?= $this->Paginator->prev('< ' . __('previous')) ?>
<?= $this->Paginator->numbers() ?>
<?= $this->Paginator->next(__('next') . ' >') ?>
<?= $this->Paginator->last(__('last') . ' >>') ?>
</ul>
<p><?= $this->Paginator->counter(['format' => __('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')]) ?></p>
</div>
</div>

View File

@@ -0,0 +1,23 @@
<?php
$results_array = json_decode(json_encode($results), true);
$anzahl = sizeof($results_array);
//debug($results_array);die;
echo $this->Html->link('Export CSV',['controller' => 'budget', 'action' => 'export-csv']) . ' ';
echo $this->Html->link('Import CSV',['controller' => 'budget', 'action' => 'import-csv']);
echo '<table>';
for($i = 0;$i < $anzahl/2;$i++) {
$l = $results_array[$i*2];
$r = $results_array[$i*2+1];
echo '<tr>
<td>' . $this->Html->link($l['dst_schluessel'] . ' ' . $l['dst_name'],['controller' => 'budget', 'action' => 'readAsd',$l['dst_schluessel'] ]) . '</td>
<td>' . $this->Html->link($r['dst_schluessel'] . ' ' . $r['dst_name'],['controller' => 'budget', 'action' => 'readAsd',$r['dst_schluessel'] ]) . '</td>
</tr>';
//debug($results);
}
echo '</table>';
?>

View File

@@ -0,0 +1,75 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\School $school
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('Edit School'), ['action' => 'edit', $school->id]) ?> </li>
<li><?= $this->Form->postLink(__('Delete School'), ['action' => 'delete', $school->id], ['confirm' => __('Are you sure you want to delete # {0}?', $school->id)]) ?> </li>
<li><?= $this->Html->link(__('List Schools'), ['action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New School'), ['action' => 'add']) ?> </li>
<li><?= $this->Html->link(__('List Budget'), ['controller' => 'Budget', 'action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Budget'), ['controller' => 'Budget', 'action' => 'add']) ?> </li>
</ul>
</nav>
<div class="schools view large-9 medium-8 columns content">
<h3><?= h($school->dst_schluessel) ?></h3>
<table class="vertical-table">
<tr>
<th scope="row"><?= __('Dst Schluessel') ?></th>
<td><?= h($school->dst_schluessel) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Dst Name') ?></th>
<td><?= h($school->dst_name) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Dst Schulart') ?></th>
<td><?= h($school->dst_schulart) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Id') ?></th>
<td><?= $this->Number->format($school->id) ?></td>
</tr>
</table>
<div class="related">
<h4><?= __('Related Budget') ?></h4>
<?php if (!empty($school->budget)): ?>
<table cellpadding="0" cellspacing="0">
<tr>
<th scope="col"><?= __('Id') ?></th>
<th scope="col"><?= __('Wl Schooltype Id') ?></th>
<th scope="col"><?= __('School Id') ?></th>
<th scope="col"><?= __('Wl Budget Id') ?></th>
<th scope="col"><?= __('Count') ?></th>
<th scope="col"><?= __('Comment') ?></th>
<th scope="col"><?= __('Year') ?></th>
<th scope="col"><?= __('Created') ?></th>
<th scope="col"><?= __('Modified') ?></th>
<th scope="col" class="actions"><?= __('Actions') ?></th>
</tr>
<?php foreach ($school->budget as $budget): ?>
<tr>
<td><?= h($budget->id) ?></td>
<td><?= h($budget->wl_schooltype_id) ?></td>
<td><?= h($budget->school_id) ?></td>
<td><?= h($budget->wl_budget_id) ?></td>
<td><?= h($budget->count) ?></td>
<td><?= h($budget->comment) ?></td>
<td><?= h($budget->year) ?></td>
<td><?= h($budget->created) ?></td>
<td><?= h($budget->modified) ?></td>
<td class="actions">
<?= $this->Html->link(__('View'), ['controller' => 'Budget', 'action' => 'view', $budget->id]) ?>
<?= $this->Html->link(__('Edit'), ['controller' => 'Budget', 'action' => 'edit', $budget->id]) ?>
<?= $this->Form->postLink(__('Delete'), ['controller' => 'Budget', 'action' => 'delete', $budget->id], ['confirm' => __('Are you sure you want to delete # {0}?', $budget->id)]) ?>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>
</div>
</div>

View File

@@ -0,0 +1,28 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\WlBudget $wlBudget
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('List Wl Budgets'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Budget'), ['controller' => 'Budget', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Budget'), ['controller' => 'Budget', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="wlBudgets form large-9 medium-8 columns content">
<?= $this->Form->create($wlBudget) ?>
<fieldset>
<legend><?= __('Add Wl Budget') ?></legend>
<?php
echo $this->Form->control('wl_werteliste_nr');
echo $this->Form->control('wl_kurz_bezeichnung');
echo $this->Form->control('schulart');
echo $this->Form->control('modfied');
?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>
</div>

View File

@@ -0,0 +1,34 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\WlBudget $wlBudget
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Form->postLink(
__('Delete'),
['action' => 'delete', $wlBudget->id],
['confirm' => __('Are you sure you want to delete # {0}?', $wlBudget->id)]
)
?></li>
<li><?= $this->Html->link(__('List Wl Budgets'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Budget'), ['controller' => 'Budget', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Budget'), ['controller' => 'Budget', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="wlBudgets form large-9 medium-8 columns content">
<?= $this->Form->create($wlBudget) ?>
<fieldset>
<legend><?= __('Edit Wl Budget') ?></legend>
<?php
echo $this->Form->control('wl_werteliste_nr');
echo $this->Form->control('wl_kurz_bezeichnung');
echo $this->Form->control('schulart');
echo $this->Form->control('modfied');
?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>
</div>

View File

@@ -0,0 +1,57 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\WlBudget[]|\Cake\Collection\CollectionInterface $wlBudgets
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('New Wl Budget'), ['action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Budget'), ['controller' => 'Budget', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Budget'), ['controller' => 'Budget', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="wlBudgets index large-9 medium-8 columns content">
<h3><?= __('Wl Budgets') ?></h3>
<table cellpadding="0" cellspacing="0">
<thead>
<tr>
<th scope="col"><?= $this->Paginator->sort('id') ?></th>
<th scope="col"><?= $this->Paginator->sort('wl_werteliste_nr') ?></th>
<th scope="col"><?= $this->Paginator->sort('wl_kurz_bezeichnung') ?></th>
<th scope="col"><?= $this->Paginator->sort('schulart') ?></th>
<th scope="col"><?= $this->Paginator->sort('created') ?></th>
<th scope="col"><?= $this->Paginator->sort('modfied') ?></th>
<th scope="col" class="actions"><?= __('Actions') ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($wlBudgets as $wlBudget): ?>
<tr>
<td><?= $this->Number->format($wlBudget->id) ?></td>
<td><?= h($wlBudget->wl_werteliste_nr) ?></td>
<td><?= h($wlBudget->wl_kurz_bezeichnung) ?></td>
<td><?= h($wlBudget->schulart) ?></td>
<td><?= h($wlBudget->created) ?></td>
<td><?= h($wlBudget->modfied) ?></td>
<td class="actions">
<?= $this->Html->link(__('View'), ['action' => 'view', $wlBudget->id]) ?>
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $wlBudget->id]) ?>
<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $wlBudget->id], ['confirm' => __('Are you sure you want to delete # {0}?', $wlBudget->id)]) ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="paginator">
<ul class="pagination">
<?= $this->Paginator->first('<< ' . __('first')) ?>
<?= $this->Paginator->prev('< ' . __('previous')) ?>
<?= $this->Paginator->numbers() ?>
<?= $this->Paginator->next(__('next') . ' >') ?>
<?= $this->Paginator->last(__('last') . ' >>') ?>
</ul>
<p><?= $this->Paginator->counter(['format' => __('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')]) ?></p>
</div>
</div>

View File

@@ -0,0 +1,18 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\WlBudget $wlBudget
*/
?>
<div class="wlBudgets form large-9 medium-8 columns content">
<?= $this->Form->create($wlBudget) ?>
<fieldset>
<legend><?= __('Edit Wl Budget') ?></legend>
<?php
echo $this->Form->control('wl_Budgets');
?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>
</div>

View File

@@ -0,0 +1,83 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\WlBudget $wlBudget
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('Edit Wl Budget'), ['action' => 'edit', $wlBudget->id]) ?> </li>
<li><?= $this->Form->postLink(__('Delete Wl Budget'), ['action' => 'delete', $wlBudget->id], ['confirm' => __('Are you sure you want to delete # {0}?', $wlBudget->id)]) ?> </li>
<li><?= $this->Html->link(__('List Wl Budgets'), ['action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Wl Budget'), ['action' => 'add']) ?> </li>
<li><?= $this->Html->link(__('List Budget'), ['controller' => 'Budget', 'action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Budget'), ['controller' => 'Budget', 'action' => 'add']) ?> </li>
</ul>
</nav>
<div class="wlBudgets view large-9 medium-8 columns content">
<h3><?= h($wlBudget->wl_kurz_bezeichnung) ?></h3>
<table class="vertical-table">
<tr>
<th scope="row"><?= __('Wl Werteliste Nr') ?></th>
<td><?= h($wlBudget->wl_werteliste_nr) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Wl Kurz Bezeichnung') ?></th>
<td><?= h($wlBudget->wl_kurz_bezeichnung) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Schulart') ?></th>
<td><?= h($wlBudget->schulart) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Id') ?></th>
<td><?= $this->Number->format($wlBudget->id) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Created') ?></th>
<td><?= h($wlBudget->created) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Modfied') ?></th>
<td><?= h($wlBudget->modfied) ?></td>
</tr>
</table>
<div class="related">
<h4><?= __('Related Budget') ?></h4>
<?php if (!empty($wlBudget->budget)): ?>
<table cellpadding="0" cellspacing="0">
<tr>
<th scope="col"><?= __('Id') ?></th>
<th scope="col"><?= __('Wl Schooltype Id') ?></th>
<th scope="col"><?= __('Snr') ?></th>
<th scope="col"><?= __('Wl Budget Id') ?></th>
<th scope="col"><?= __('Count') ?></th>
<th scope="col"><?= __('Comment') ?></th>
<th scope="col"><?= __('Year') ?></th>
<th scope="col"><?= __('Created') ?></th>
<th scope="col"><?= __('Modified') ?></th>
<th scope="col" class="actions"><?= __('Actions') ?></th>
</tr>
<?php foreach ($wlBudget->budget as $budget): ?>
<tr>
<td><?= h($budget->id) ?></td>
<td><?= h($budget->wl_schooltype_id) ?></td>
<td><?= h($budget->snr) ?></td>
<td><?= h($budget->wl_budget_id) ?></td>
<td><?= h($budget->count) ?></td>
<td><?= h($budget->comment) ?></td>
<td><?= h($budget->year) ?></td>
<td><?= h($budget->created) ?></td>
<td><?= h($budget->modified) ?></td>
<td class="actions">
<?= $this->Html->link(__('View'), ['controller' => 'Budget', 'action' => 'view', $budget->id]) ?>
<?= $this->Html->link(__('Edit'), ['controller' => 'Budget', 'action' => 'edit', $budget->id]) ?>
<?= $this->Form->postLink(__('Delete'), ['controller' => 'Budget', 'action' => 'delete', $budget->id], ['confirm' => __('Are you sure you want to delete # {0}?', $budget->id)]) ?>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>
</div>
</div>

View File

@@ -0,0 +1,26 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\WlDstTyp $wlDstTyp
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('List Wl Dst Typ'), ['action' => 'index']) ?></li>
</ul>
</nav>
<div class="wlDstTyp form large-9 medium-8 columns content">
<?= $this->Form->create($wlDstTyp) ?>
<fieldset>
<legend><?= __('Add Wl Dst Typ') ?></legend>
<?php
echo $this->Form->control('key_value');
echo $this->Form->control('short');
echo $this->Form->control('name');
echo $this->Form->control('modfied');
?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>
</div>

View File

@@ -0,0 +1,32 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\WlDstTyp $wlDstTyp
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Form->postLink(
__('Delete'),
['action' => 'delete', $wlDstTyp->id],
['confirm' => __('Are you sure you want to delete # {0}?', $wlDstTyp->id)]
)
?></li>
<li><?= $this->Html->link(__('List Wl Dst Typ'), ['action' => 'index']) ?></li>
</ul>
</nav>
<div class="wlDstTyp form large-9 medium-8 columns content">
<?= $this->Form->create($wlDstTyp) ?>
<fieldset>
<legend><?= __('Edit Wl Dst Typ') ?></legend>
<?php
echo $this->Form->control('key_value');
echo $this->Form->control('short');
echo $this->Form->control('name');
echo $this->Form->control('modfied');
?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>
</div>

View File

@@ -0,0 +1,55 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\WlDstTyp[]|\Cake\Collection\CollectionInterface $wlDstTyp
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('New Wl Dst Typ'), ['action' => 'add']) ?></li>
</ul>
</nav>
<div class="wlDstTyp index large-9 medium-8 columns content">
<h3><?= __('Wl Dst Typ') ?></h3>
<table cellpadding="0" cellspacing="0">
<thead>
<tr>
<th scope="col"><?= $this->Paginator->sort('id') ?></th>
<th scope="col"><?= $this->Paginator->sort('key_value') ?></th>
<th scope="col"><?= $this->Paginator->sort('short') ?></th>
<th scope="col"><?= $this->Paginator->sort('name') ?></th>
<th scope="col"><?= $this->Paginator->sort('created') ?></th>
<th scope="col"><?= $this->Paginator->sort('modfied') ?></th>
<th scope="col" class="actions"><?= __('Actions') ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($wlDstTyp as $wlDstTyp): ?>
<tr>
<td><?= $this->Number->format($wlDstTyp->id) ?></td>
<td><?= h($wlDstTyp->key_value) ?></td>
<td><?= h($wlDstTyp->short) ?></td>
<td><?= h($wlDstTyp->name) ?></td>
<td><?= h($wlDstTyp->created) ?></td>
<td><?= h($wlDstTyp->modfied) ?></td>
<td class="actions">
<?= $this->Html->link(__('View'), ['action' => 'view', $wlDstTyp->id]) ?>
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $wlDstTyp->id]) ?>
<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $wlDstTyp->id], ['confirm' => __('Are you sure you want to delete # {0}?', $wlDstTyp->id)]) ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="paginator">
<ul class="pagination">
<?= $this->Paginator->first('<< ' . __('first')) ?>
<?= $this->Paginator->prev('< ' . __('previous')) ?>
<?= $this->Paginator->numbers() ?>
<?= $this->Paginator->next(__('next') . ' >') ?>
<?= $this->Paginator->last(__('last') . ' >>') ?>
</ul>
<p><?= $this->Paginator->counter(['format' => __('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')]) ?></p>
</div>
</div>

View File

@@ -0,0 +1,44 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\WlDstTyp $wlDstTyp
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('Edit Wl Dst Typ'), ['action' => 'edit', $wlDstTyp->id]) ?> </li>
<li><?= $this->Form->postLink(__('Delete Wl Dst Typ'), ['action' => 'delete', $wlDstTyp->id], ['confirm' => __('Are you sure you want to delete # {0}?', $wlDstTyp->id)]) ?> </li>
<li><?= $this->Html->link(__('List Wl Dst Typ'), ['action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Wl Dst Typ'), ['action' => 'add']) ?> </li>
</ul>
</nav>
<div class="wlDstTyp view large-9 medium-8 columns content">
<h3><?= h($wlDstTyp->name) ?></h3>
<table class="vertical-table">
<tr>
<th scope="row"><?= __('Key Value') ?></th>
<td><?= h($wlDstTyp->key_value) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Short') ?></th>
<td><?= h($wlDstTyp->short) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Name') ?></th>
<td><?= h($wlDstTyp->name) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Id') ?></th>
<td><?= $this->Number->format($wlDstTyp->id) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Created') ?></th>
<td><?= h($wlDstTyp->created) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Modfied') ?></th>
<td><?= h($wlDstTyp->modfied) ?></td>
</tr>
</table>
</div>

View File

@@ -0,0 +1,28 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\WlSchooltype $wlSchooltype
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('List Wl Schooltypes'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Budget'), ['controller' => 'Budget', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Budget'), ['controller' => 'Budget', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="wlSchooltypes form large-9 medium-8 columns content">
<?= $this->Form->create($wlSchooltype) ?>
<fieldset>
<legend><?= __('Add Wl Schooltype') ?></legend>
<?php
echo $this->Form->control('key_value');
echo $this->Form->control('short');
echo $this->Form->control('name');
echo $this->Form->control('modfied');
?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>
</div>

View File

@@ -0,0 +1,34 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\WlSchooltype $wlSchooltype
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Form->postLink(
__('Delete'),
['action' => 'delete', $wlSchooltype->id],
['confirm' => __('Are you sure you want to delete # {0}?', $wlSchooltype->id)]
)
?></li>
<li><?= $this->Html->link(__('List Wl Schooltypes'), ['action' => 'index']) ?></li>
<li><?= $this->Html->link(__('List Budget'), ['controller' => 'Budget', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Budget'), ['controller' => 'Budget', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="wlSchooltypes form large-9 medium-8 columns content">
<?= $this->Form->create($wlSchooltype) ?>
<fieldset>
<legend><?= __('Edit Wl Schooltype') ?></legend>
<?php
echo $this->Form->control('key_value');
echo $this->Form->control('short');
echo $this->Form->control('name');
echo $this->Form->control('modfied');
?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>
</div>

View File

@@ -0,0 +1,57 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\WlSchooltype[]|\Cake\Collection\CollectionInterface $wlSchooltypes
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('New Wl Schooltype'), ['action' => 'add']) ?></li>
<li><?= $this->Html->link(__('List Budget'), ['controller' => 'Budget', 'action' => 'index']) ?></li>
<li><?= $this->Html->link(__('New Budget'), ['controller' => 'Budget', 'action' => 'add']) ?></li>
</ul>
</nav>
<div class="wlSchooltypes index large-9 medium-8 columns content">
<h3><?= __('Wl Schooltypes') ?></h3>
<table cellpadding="0" cellspacing="0">
<thead>
<tr>
<th scope="col"><?= $this->Paginator->sort('id') ?></th>
<th scope="col"><?= $this->Paginator->sort('key_value') ?></th>
<th scope="col"><?= $this->Paginator->sort('short') ?></th>
<th scope="col"><?= $this->Paginator->sort('name') ?></th>
<th scope="col"><?= $this->Paginator->sort('created') ?></th>
<th scope="col"><?= $this->Paginator->sort('modfied') ?></th>
<th scope="col" class="actions"><?= __('Actions') ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($wlSchooltypes as $wlSchooltype): ?>
<tr>
<td><?= $this->Number->format($wlSchooltype->id) ?></td>
<td><?= h($wlSchooltype->key_value) ?></td>
<td><?= h($wlSchooltype->short) ?></td>
<td><?= h($wlSchooltype->name) ?></td>
<td><?= h($wlSchooltype->created) ?></td>
<td><?= h($wlSchooltype->modfied) ?></td>
<td class="actions">
<?= $this->Html->link(__('View'), ['action' => 'view', $wlSchooltype->id]) ?>
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $wlSchooltype->id]) ?>
<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $wlSchooltype->id], ['confirm' => __('Are you sure you want to delete # {0}?', $wlSchooltype->id)]) ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div class="paginator">
<ul class="pagination">
<?= $this->Paginator->first('<< ' . __('first')) ?>
<?= $this->Paginator->prev('< ' . __('previous')) ?>
<?= $this->Paginator->numbers() ?>
<?= $this->Paginator->next(__('next') . ' >') ?>
<?= $this->Paginator->last(__('last') . ' >>') ?>
</ul>
<p><?= $this->Paginator->counter(['format' => __('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')]) ?></p>
</div>
</div>

View File

@@ -0,0 +1,81 @@
<?php
/**
* @var \App\View\AppView $this
* @var \App\Model\Entity\WlSchooltype $wlSchooltype
*/
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
<ul class="side-nav">
<li class="heading"><?= __('Actions') ?></li>
<li><?= $this->Html->link(__('Edit Wl Schooltype'), ['action' => 'edit', $wlSchooltype->id]) ?> </li>
<li><?= $this->Form->postLink(__('Delete Wl Schooltype'), ['action' => 'delete', $wlSchooltype->id], ['confirm' => __('Are you sure you want to delete # {0}?', $wlSchooltype->id)]) ?> </li>
<li><?= $this->Html->link(__('List Wl Schooltypes'), ['action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Wl Schooltype'), ['action' => 'add']) ?> </li>
<li><?= $this->Html->link(__('List Budget'), ['controller' => 'Budget', 'action' => 'index']) ?> </li>
<li><?= $this->Html->link(__('New Budget'), ['controller' => 'Budget', 'action' => 'add']) ?> </li>
</ul>
</nav>
<div class="wlSchooltypes view large-9 medium-8 columns content">
<h3><?= h($wlSchooltype->name) ?></h3>
<table class="vertical-table">
<tr>
<th scope="row"><?= __('Key Value') ?></th>
<td><?= h($wlSchooltype->key_value) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Short') ?></th>
<td><?= h($wlSchooltype->short) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Name') ?></th>
<td><?= h($wlSchooltype->name) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Id') ?></th>
<td><?= $this->Number->format($wlSchooltype->id) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Created') ?></th>
<td><?= h($wlSchooltype->created) ?></td>
</tr>
<tr>
<th scope="row"><?= __('Modfied') ?></th>
<td><?= h($wlSchooltype->modfied) ?></td>
</tr>
</table>
<div class="related">
<h4><?= __('Related Budget') ?></h4>
<?php if (!empty($wlSchooltype->budget)): ?>
<table cellpadding="0" cellspacing="0">
<tr>
<th scope="col"><?= __('Id') ?></th>
<th scope="col"><?= __('Wl Schooltype Id') ?></th>
<th scope="col"><?= __('School Id') ?></th>
<th scope="col"><?= __('Wl Budget Id') ?></th>
<th scope="col"><?= __('Count') ?></th>
<th scope="col"><?= __('Year') ?></th>
<th scope="col"><?= __('Created') ?></th>
<th scope="col"><?= __('Modified') ?></th>
<th scope="col" class="actions"><?= __('Actions') ?></th>
</tr>
<?php foreach ($wlSchooltype->budget as $budget): ?>
<tr>
<td><?= h($budget->id) ?></td>
<td><?= h($budget->wl_schooltype_id) ?></td>
<td><?= h($budget->school_id) ?></td>
<td><?= h($budget->wl_budget_id) ?></td>
<td><?= h($budget->count) ?></td>
<td><?= h($budget->year) ?></td>
<td><?= h($budget->created) ?></td>
<td><?= h($budget->modified) ?></td>
<td class="actions">
<?= $this->Html->link(__('View'), ['controller' => 'Budget', 'action' => 'view', $budget->id]) ?>
<?= $this->Html->link(__('Edit'), ['controller' => 'Budget', 'action' => 'edit', $budget->id]) ?>
<?= $this->Form->postLink(__('Delete'), ['controller' => 'Budget', 'action' => 'delete', $budget->id], ['confirm' => __('Are you sure you want to delete # {0}?', $budget->id)]) ?>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>
</div>
</div>