| Server IP : 193.86.120.172 / Your IP : 216.73.216.215 Web Server : Apache/2.4.63 (Unix) System : Linux JServices 3.10.108 #86003 SMP Wed Oct 22 13:20:46 CST 2025 x86_64 User : kubec ( 1026) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /volume1/web/hotellesnizatisi_cz/new/ |
Upload File : |
<?php
require_once __DIR__ . '/includes/auth.php';
$user = require_section('obsah');
require_once __DIR__ . '/includes/layout.php';
$sekce = db()->query('SELECT * FROM web_sekce ORDER BY poradi')->fetchAll();
admin_layout_start('obsah', 'Texty sekcí', 'Nadpisy a odstavce, které se zobrazují na webu', $user);
render_flash();
?>
<div class="panel__head">
<p>Texty, které tvoří jednotlivé sekce webu. Popisky tlačítek a menu se zde needitují.</p>
</div>
<div class="table-wrap">
<table>
<thead><tr><th>Sekce</th><th>Nadpis (CS)</th><th>Pořadí</th><th>Stav</th><th></th></tr></thead>
<tbody>
<?php foreach ($sekce as $s): ?>
<tr>
<td class="mono" style="color:var(--ink-soft);"><?= htmlspecialchars($s['klic']) ?></td>
<td><?= htmlspecialchars($s['nadpis_cs'] ?? '') ?></td>
<td class="num"><?= (int)$s['poradi'] ?></td>
<td><?= $s['aktivni'] ? '<span class="badge badge-on">Aktivní</span>' : '<span class="badge badge-off">Skryté</span>' ?></td>
<td class="actions"><a class="btn-text" href="obsah-upravit.php?id=<?= (int)$s['id'] ?>">Upravit</a></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php admin_layout_end(); ?>