-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
213 lines (183 loc) · 8.76 KB
/
index.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "payment";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT id, payDate FROM creditOne";
$result = $conn->query($sql);
$conn->close();
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Finance application</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- <link rel="stylesheet" type="text/css" href="homepage.css"> -->
</head>
<body>
<header>
<span id="headerTitle">
<button id="list" onclick="openNav()">
<i class="fa fa-th-list" style="font-size:20px">
</i>
</button>
Lucrum Martis
</span>
</header>
<nav id="leftMenu">
<ul>
<li class="menuItem" onclick="homePage()">
<span><i class="fa fa fa-home"></i></span>
<span class="text">Strona główna</span>
</li>
<li class="menuItem" onclick="creditOne()">
<span><i class="fa fa-bank"></i></span>
<span class="text">Kredyt Pekao</span>
</li>
<li class="menuItem" onclick="creditTwo()">
<span><i class="fa fa-bank"></i></span>
<span class="text">Kredyt Deutsche Bank</span>
</li>
<li class="menuItem" onclick="rent()">
<span><i class="fa fa-key"></i></span>
<span class="text">Czynsz</span>
</li>
<li class="menuItem" onclick="power()">
<span><i class="fa fa-flash"></i></span>
<span class="text">Prąd Tauron</span>
</li>
<li class="menuItem" onclick="internet()">
<span><i class="fa fa-wifi"></i></span>
<span class="text">Internet FineMedia</span>
</li>
<li class="menuItem" onclick="mobile()">
<span><i class="fa fa-mobile-phone"></i></span>
<span class="text">Telefon Play</span>
</li>
<li class="menuItem" onclick="insurance()">
<span><i class="fa fa-heartbeat"></i></span>
<span class="text">Ubezpieczenie Allianz</span>
</li>
<li class="menuItem" onclick="car()">
<span><i class="fa fa-car"></i></span>
<span class="text">Samochód</span>
</li>
<li class="menuItem" onclick="flat()">
<span><i class="fa fa-bed"></i></span>
<span class="text">Wynajem</span>
</li>
<li class="menuItem" onclick="info()">
<span><i class="fa fa-envelope"></i></span>
<span class="text">Powiadomienia</span>
</li>
<li class="menuItem" onclick="calendar()">
<span><i class="fa fa-flash"></i></span>
<span class="text">Kalendarz</span>
</li>
<li class="menuItem" onclick="notes()">
<span><i class="fa fa-pencil"></i></span>
<span class="text">Notatki</span>
</li>
<li class="menuItem" onclick="loans()">
<span><i class="fa fa-handshake-o"></i></span>
<span class="text">Zadłużenia</span>
</li>
<li class="menuItem" onclick="other()">
<span><i class="fa fa-circle"></i></span>
<span class="text">Inne</span>
</li>
<li class="menuItem" onclick="logOut()">
<span><i class="fa fa-power-off"></i></span>
<span class="text">Wyloguj</span>
</li>
</ul>
</nav>
<section class="all" id="main">
<div id="podtytul">Strona główna<div>
</section>
<div style="clear:both"></div>
<footer>
<span id="footerTitle">© 2018 Martyna Zyskowska. All rights reserved.</span>
</footer>
<script>
//Open or Close left side menu
function openNav() {
var y = document.getElementById("leftMenu");
var x = document.getElementById("main");
if (y.style.width == "250px") {
y.style.width = "70px";
x.style.left = "51px";
y.style.overflowX = "hidden";
} else {
y.style.width = "250px";
x.style.left = "250px";
}
}
function homePage() {
document.getElementById("main").innerHTML='<object type="text/html" data="homepage.html" width="100%" height="98.5%"></object>';
}
function creditOne() {
document.getElementById("main").innerHTML='<object type="text/html" data="creditOne.php" width="100%" height="98.5%"></object>';
}
function creditTwo() {
document.getElementById("main").innerHTML='<object type="text/html" data="credittwo.html" width="100%" height="98.5%"></object>';
}
function rent() {
document.getElementById("main").innerHTML='<object type="text/html" data="rent.html" width="100%" height="98.5%"></object>';
}
function power() {
document.getElementById("main").innerHTML='<object type="text/html" data="power.html" width="100%" height="98.5%"></object>';
}
function internet() {
document.getElementById("main").innerHTML='<object type="text/html" data="internet.html" width="100%" height="98.5%"></object>';
}
function mobile() {
document.getElementById("main").innerHTML='<object type="text/html" data="mobile.html" width="100%" height="98.5%"></object>';
}
function insurance() {
document.getElementById("main").innerHTML='<object type="text/html" data="insurance.html" width="100%" height="98.5%"></object>';
}
function car() {
document.getElementById("main").innerHTML='<object type="text/html" data="car.html" width="100%" height="98.5%"></object>';
}
function flat() {
document.getElementById("main").innerHTML='<object type="text/html" data="flat.html" width="100%" height="98.5%"></object>';
}
function info() {
document.getElementById("main").innerHTML='<object type="text/html" data="info.html" width="100%" height="98.5%"></object>';
}
function calendar() {
document.getElementById("main").innerHTML='<object type="text/html" data="calendar.html" width="100%" height="98.5%"></object>';
}
function notes() {
document.getElementById("main").innerHTML='<object type="text/html" data="notes.html" width="100%" height="98.5%"></object>';
}
function loans() {
document.getElementById("main").innerHTML='<object type="text/html" data="loans.html" width="100%" height="98.5%"></object>';
}
function other() {
document.getElementById("main").innerHTML='<object type="text/html" data="other.html" width="100%" height="98.5%"></object>';
}
function logOut() {
document.getElementById("main").innerHTML='<object type="text/html" data="logout.html" width="100%" height="98.5%"></object>';
}
// function homePage() {
// var x = document.getElementById("homePage");
// var y = document.getElementsByClassName("all");
// var i;
// for (i = 0; i < y.length; i++) {
// y[i].style.display = "none";
// }
// x.style.display = document.getElementById("homePage");
// }
</script>
</body>
</html>