-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd.php
More file actions
70 lines (56 loc) · 1.76 KB
/
add.php
File metadata and controls
70 lines (56 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php session_start();
if (isset($_SESSION['id']) && isset($_SESSION['Login'])) {
?>
<?php include('connect.php');?>
<?php include('operations.php');?>
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Eternis Dashboard</title>
</head>
<body>
<div class="nav">
<div class="navContainer">
<a href="home.php"><div class="logo">
<img src="image/logo.png" alt="">
</div></a>
<button class="hamburger">
<span class="hamburger__box">
<span class="hamburger__inner"></span>
</span>
</button>
<ul class="navUlTop .On">
<a href="home.php"><li class="navLiTop">Home</li></a>
<a href="add.php"><li class="navLiTop active">Dodaj</li></a>
<a href="statistics.php"><li class="navLiTop">Statystyki</li></a>
<a href="search.php"><li class="navLiTop">Szukaj</li></a>
</ul>
</div>
</div>
<div class="container">
<div class="contSrodkowy">
<p class="welcome">Dodaj miejscowość:</p>
<br>
<div class="optionName">Ostatnie 30 dni:</div>
<table>
<tr>
<th>Lp.</th>
<th>Miejscowość</th>
<th>Data</th>
<th>Opcje</th>
</tr>
<?php wyswietlanie30Dni(); ?>
</table>
</div>
</div>
</body>
<script src="script/app.js"></script>
</html>
<?php
} else {
header("Location: index.php");
exit();
}
?>