eventmanager/add_event.php

76 lines
2.9 KiB
PHP

<?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">
DODAJ SWOJE WYDARZENIE !<br /><br />
<form action="add.php" method="post">
Tytul: <br><input type="text" name="title3" /> <br />
Opis: <br> <textarea rows="4" cols="50" name="description3"></textarea> <br />
Data rozp.: <br> <input type="date" name="date_start3" /> <br />
Data zako.: <br /> <input type="date" name="date_stop3" /> <br />
Godzina rozp.: <br /> <input type="time" name="time_start3" /> <br />
Godzina zako.: <br /> <input type="time" name="time_stop3" /> <br />
Lokalizacja: <br /> <select name="location3">
<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="quantity3" min="1" max="20" /> <br />
Ilość miejsc min: <br /> <input type="number" name="quantity_min3" min="1" max="20" /> <br /> <br />
<input type="submit" value="Dodaj" />
<br /> <br />
</form>
<?php
if(isset($_SESSION['add_log'])){
echo "<span style='color:red'>".$_SESSION['add_log']."</span>";
unset($_SESSION['add_log']);
}
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>