This commit is contained in:
2024-03-29 15:47:35 +01:00
parent 85d2cf4be2
commit 7619856ef2
27 changed files with 2255 additions and 193 deletions

22
pages/knochen.php Normal file
View File

@ -0,0 +1,22 @@
<?php
require_once __DIR__ . '/../inc/db.inc.php';
$tpl['file'] = 'knochen.twig';
$res = $db->query(<<<SQL
SELECT
type, id, title, solution, origin
FROM ft_knochen
ORDER BY id
SQL)->fetchAll($db::FETCH_GROUP);
$tpl['data'] = [
'types' => [
'nimm' => 'Nimm Knochen weg',
'lege' => 'Lege Knochen um'
],
'knochen' => [
'nimm' => $res['nimm'],
'lege' => $res['lege']
]
];