Current Path : /data/web/virtuals/51568/virtual/www/subdom/agenda/php/zapisy/ |
Current File : /data/web/virtuals/51568/virtual/www/subdom/agenda/php/zapisy/jednaniTisk.php |
<?php if (session_status() !== PHP_SESSION_ACTIVE) { session_start(); } if (!isset($_SESSION["account"])) { header("location: ../../login.php"); } else { $account = json_decode($_SESSION["account"]); } ?> <!DOCTYPE html> <html lang="cz"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"> <link rel="stylesheet" href="../css/tiskoduceno.css"> <title>ZŠ Republiky - tisk zápisu z jednání</title> </head> <body> <?php spl_autoload_register(function ($class_name) { include ($class_name . '.php'); }); $id = (isset($_REQUEST["id"])) ? $_REQUEST["id"] : 0; if($id && $account->id){ $tisk = new Jednani($account->id); echo $tisk->tisk($id); } else { echo '<div class="m-4 h4">Chybné parametry skriptu.</div>'; } ?> </body> </html>