-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrak_danych.php
88 lines (81 loc) · 3.26 KB
/
brak_danych.php
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
session_start();
if(!isset($_SESSION['zalogowany']))
{
header('Location: login.php');
exit();
}
if(!isset($_SESSION['stan_konta'])|| ($_SESSION['stan_konta'] ==false))
{
header('Location: index.php');
exit();
}
require_once("connect.php");
$polaczenie = new mysqli($host, $db_user, $db_password, $db_name);
$id = $_SESSION['id'];
$sql = "SELECT * FROM kategorie WHERE id = '$id' AND wplywwyplyw = 'wyplyw' ";
$rezultat = mysqli_query($polaczenie,$sql);
$ile_kategorii = $rezultat -> num_rows;
if($ile_kategorii != 0)
{
header('Location: index.php');
exit();
}
?>
<!DOCTYPE HTML>
<html lang="pl">
<head>
<meta charset="utf-8">
<title>eWallet - twój elektroniczny portfel</title>
<link rel="stylesheet" href="style.css" type="text/css" / >
<link rel="stylesheet" href="img/fontello-9677cda3/css/fontello.css" type="text/css" / >
<link rel="stylesheet" href="img/fontello-571ab779/css/fontello.css" type="text/css" / >
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Montserrat&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Patua+One&display=swap" rel="stylesheet">
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
</head>
<body>
<div id="container">
<div id="title">
<a class="rejestracja" href="login.php"><i class="icon-wallet"></i>eWallett</a>
</div>
<div id="meni">
<ol>
<li><a class="rejestraja" href="index2.php"><i class="icon-home"></i>Ekran główny</a></li>
<li><a class="rejestraja" href="dodawanie.php"><i class="icon-plus-circled"></i>Nowa transakcja</a></li>
<li><a class="rejestraja" href="historia.php"><i class="icon-history"></i>Historia portfela</a></li>
<li><a class="rejestraja" href="#"><i class="icon-bank"></i>Skarbonka</a>
<ul>
<li><a class="rejestraja" href="skarbonka.php">Dodaj transakcję</a></li>
<li><a class="rejestraja" href="historia_skarbonki.php">Historia skarbonki</a></li>
</ul>
</li>
<li><a class="rejestraja" href="#"><i class="icon-chart-bar"></i>Wykresy</a>
<ul>
<li><a class="rejestraja" href="kategorie_wydatkow.php">Kategorie wydatków (ilościowy)</a></li>
<li><a class="rejestraja" href="kategorie_wydatkowprocent.php">Kategorie wydatków (kwotowy)</a></li>
<li><a class="rejestraja" href="kategorie_wplywow.php">Kategorie przychodów (ilościowy)</a></li>
<li><a class="rejestraja" href="kategorie_wplywowprocent.php">Kategorie przychodów (kwotowy)</a></li>
<li><a class="rejestraja" href="stan_portfela.php">Stan portfela</a></li>
</ul>
</li>
<li><a class="rejestraja" href="wyloguj.php"><i class="icon-logout"></i>Wyloguj</a></li>
</ol>
</div>
<div id="z" style="min-height:600px;">
<div id="formularz" >
<form action="index2.php" method = "POST" >
<?php
echo '</br>'.'<span style="color:red; font-size: 19px;" >Brak transakcji!</span>'.'</br>';
?>
<input type="submit" class="filtruj" value="Wróć"></input>
</form>
</div></div>
<div id="footer">Wszelkie prawa zastrzeżone
</div>
</body>
</html>