You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.1 KiB
42 lines
1.1 KiB
<?php
|
|
session_start();
|
|
include("init.php");
|
|
|
|
if(!isset($_SESSION["logged"])){
|
|
header("Location: /?error=3"); //error 3 = přístup odepřen
|
|
}
|
|
$ptitle="Zápis do knihy";
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<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">
|
|
<title>Zápis do knihy</title>
|
|
<link rel="stylesheet" href="css/bootstrap.css">
|
|
</head>
|
|
<body class="d-flex flex-column min-vh-100">
|
|
<div class="container">
|
|
|
|
<?php
|
|
include "menu.php";
|
|
?>
|
|
<form action="action_write.php" method="post">
|
|
<label for="title">Nadpis:</label><br>
|
|
<input type="text" name="title" id="title"><br>
|
|
|
|
<label for="msg">Zpráva do knihy:</label><br>
|
|
<textarea name="msg" id="msg" cols="30" rows="10"></textarea>
|
|
<br>
|
|
<input type="submit" value="Zapsat do knihy">
|
|
</form>
|
|
</div>
|
|
|
|
<?php
|
|
include "footer.php";
|
|
?>
|
|
<script src="js/bootstrap.bundle.js"></script>
|
|
|
|
</body>
|
|
</html>
|