403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /volume1/web/hotellesnizatisi_cz/new/cenik.php
<?php
require_once __DIR__ . '/includes/auth.php';
$user = require_section('cenik');
require_once __DIR__ . '/includes/layout.php';

$cenik = db()->query('SELECT * FROM web_cenik_polozky ORDER BY poradi')->fetchAll();
$storno = db()->query('SELECT * FROM web_storno_podminky ORDER BY poradi')->fetchAll();

admin_layout_start('cenik', 'Ceník a storno', 'Položky ceníku a podmínky storna zobrazené na webu', $user);
render_flash();
?>

<h3 style="font-size:.95rem;margin-bottom:12px;">Ceník</h3>
<div class="table-wrap" style="margin-bottom:14px;">
  <table>
    <thead><tr><th>Položka</th><th>Částka</th><th>Pořadí</th><th>Stav</th><th></th></tr></thead>
    <tbody>
      <?php foreach ($cenik as $c): ?>
      <tr>
        <td><?= htmlspecialchars($c['nazev_cs']) ?></td>
        <td class="num"><?= number_format((float)$c['castka'], 0, ',', ' ') ?> <?= htmlspecialchars($c['mena']) ?></td>
        <td class="num"><?= (int)$c['poradi'] ?></td>
        <td><?= $c['aktivni'] ? '<span class="badge badge-on">Aktivní</span>' : '<span class="badge badge-off">Skryté</span>' ?></td>
        <td class="actions">
          <a class="btn-text" href="cenik-upravit.php?id=<?= (int)$c['id'] ?>">Upravit</a>
          <form method="post" action="cenik-smazat.php" style="display:inline;" onsubmit="return confirm('Opravdu smazat tuto položku ceníku?');">
            <input type="hidden" name="id" value="<?= (int)$c['id'] ?>">
            <button type="submit" class="btn-text" style="background:none;border:none;padding:0;cursor:pointer;">Smazat</button>
          </form>
        </td>
      </tr>
      <?php endforeach; ?>
      <?php if (!$cenik): ?>
      <tr><td colspan="5" style="color:var(--ink-soft);text-align:center;padding:20px;">Zatím žádné položky.</td></tr>
      <?php endif; ?>
    </tbody>
  </table>
</div>
<a class="btn btn-secondary btn-sm" href="cenik-upravit.php" style="margin-bottom:32px;display:inline-flex;">+ Přidat položku ceníku</a>

<h3 style="font-size:.95rem;margin-bottom:12px;">Storno podmínky</h3>
<div class="table-wrap" style="margin-bottom:14px;">
  <table>
    <thead><tr><th>Text</th><th>Pořadí</th><th>Stav</th><th></th></tr></thead>
    <tbody>
      <?php foreach ($storno as $s): ?>
      <tr>
        <td><?= htmlspecialchars($s['text_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="storno-upravit.php?id=<?= (int)$s['id'] ?>">Upravit</a>
          <form method="post" action="storno-smazat.php" style="display:inline;" onsubmit="return confirm('Opravdu smazat tuto storno podmínku?');">
            <input type="hidden" name="id" value="<?= (int)$s['id'] ?>">
            <button type="submit" class="btn-text" style="background:none;border:none;padding:0;cursor:pointer;">Smazat</button>
          </form>
        </td>
      </tr>
      <?php endforeach; ?>
      <?php if (!$storno): ?>
      <tr><td colspan="4" style="color:var(--ink-soft);text-align:center;padding:20px;">Zatím žádné podmínky.</td></tr>
      <?php endif; ?>
    </tbody>
  </table>
</div>
<a class="btn btn-secondary btn-sm" href="storno-upravit.php" style="display:inline-flex;">+ Přidat podmínku</a>

<?php admin_layout_end(); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit