eventmanager/edit_page.php

72 lines
2.8 KiB
PHP
Raw Permalink Normal View History

2021-03-27 17:15:10 +01:00
<?php
session_start();
if (!isset($_SESSION['zalogowany']) || $_SESSION['perm']=='normal')
{
$_SESSION['blad_perm'] = '<span style="color:red">Brak uprawnien!</span>';
header('Location: index.php');
exit();
}
?>
<!DOCTYPE HTML>
<html lang="pl">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Event Manager</title>
<meta name="author" content="Piotr Szefler">
<meta http-equiv="X-Ua-Compatible" content="IE=edge">
<link rel="stylesheet" href="style/style.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="main.css">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700&amp;subset=latin-ext" rel="stylesheet">
</head>
<body id="form">
<div class="container-form">
Uaktualnij wydarzenie<br /><br />
<form action="edit.php" method="post">
Tytul: <br /> <input type="text" name="title2" /> <br />
Opis: <br /> <textarea rows="4" cols="50" name="description2" ></textarea> <br />
Data rozp.: <br /> <input type="date" name="date_start2" /> <br />
Data zako.: <br /> <input type="date" name="date_stop2" /> <br />
Godzina rozp.: <br /> <input type="time" name="time_start2" /> <br />
Godzina zako.: <br /> <input type="time" name="time_stop2" /> <br />
Lokalizacja: <br /> <select name="location2">
<option value=""></option>
<option value="Salka Zielona">Salka Zielona</option>
<option value="Salka Niebieska">Salka Niebieska</option>
<option value="Salka Błękitna">Salka Błękitna</option>
<option value="Salka Operacyjna">Salka Operacyjna</option>
<option value="Salka Biała">Salka Biała</option>
<option value="Salka Czerwona">Salka Czerwona</option>
<option value="Salka Akwarium">Salka Akwarium</option>
</select> <br />
Ilość miejsc max: <br /> <input type="number" name="quantity2" min="1" max="10" /> <br />
Ilość miejsc min: <br /> <input type="number" name="quantity_min2" min="1" max="10" /> <br /> <br />
<input type="submit" value="Uaktualnij" />
<br /> <br />
</form>
<?php
echo '</br><p><a href="events.php">Powrót</a></p>';
unset($_SESSION['controller']);
?>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>