forked from hngi/team-horme-net-worth-web-app
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
372 lines (340 loc) · 17.3 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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
<?php
session_start();
if(isset($_SESSION["calcuser"])){
header("Location: calc.php");
}
include("process/contact_process.php");
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Net-Worth Calculator</title>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="main.css" />
<link rel="stylesheet" href="contact.css" />
<link rel="stylesheet" href="style.css" />
<!--Styling for the cookie modal-->
<style>
.cookies-popup{
margin: 20px;
background: rgb(9, 80, 58);
}
.modal-header{
background: rgb(137, 247, 212);
}
.modal-footer{
background: rgb(137, 247, 212);
}
.btn-primary{
background: #b3196e;
display: flex;
margin: 0px 180px 0px;
}
/*Nav and contact us Settings*/
.contact{
position: static;
font-size: 15px;
}
.Nav_hover:hover{
background-color: rgba(0,0,0,0.5);
text-decoration: none;
}
.Nav_pad{
padding: 10px;
}
</style>
</head>
<body>
<!-- Sign-in page -->
<nav
class="navbar navbar-light"
style="background-color: rgb(38, 155, 120)"
>
<span>
<img
src="https://res.cloudinary.com/izik4004/image/upload/v1569624977/Group_2_1.png"
alt="logo"
style="width: 110px; height: 40px"
id="logo-img"
/>
</span>
<a href="Faq.html" class="text-light font-weight-bold Nav_hover Nav_pad">FAQ</a>
<a href="Help.html" class="text-light font-weight-bold Nav_hover Nav_pad">Help</a>
<a href="subscribe.php" class="text-light font-weight-bold align-left Nav_hover Nav_pad">Subscribe</a>
<div class="contact-modal-open-btn contact text-light font-weight-bold Nav_hover"> Contact Us </div>
</nav>
<div class="container-fluid">
<div style="color: green;"> </div>
<div
class="row pt-2 float-sm-left"
style="min-height: 100vh;"
id="page"
>
<div class="col col-md-6 align-self-center text-center">
<h3
class="h1 font-weight-bolder"
style="color: rgb(38, 155, 120); text-shadow: -1px 1px 2px black;"
>
Knowing your Net-Worth is important
</h3>
<p>
Your net worth isn't about your income your income
doesn't even factor into your net worth. Instead net
worth includes savings, investments and debts.<br />
Think about it this way: If you make $30,000 per
year,but you have investments portfolio worth $3.5
million, you're going to be more concerned about your
total net worth because the $30,000 salary you make is a
very small part of your financial situation.
</p>
<h3 class="h1 text-dark font-weight-bolder">
You're a step away from knowing how to calculate your
Net-Worth
</h3>
<a href="#page1">
<h3
class="h3 font-weight-bolder"
style="color: rgb(38, 155, 120)"
>
Sign up with us for free
</h3></a
>
</div>
<div
class="row pt-3 pb-1 align-self-center m-auto bor col-md-5 mb-5"
style="min-height: 50vh;background-color: rgb(14, 34, 56);box-shadow: -10px 5px 10px gray;"
>
<div
class=" align-self-center text-center pb- col-md-12"
id="page1"
>
<div class="row">
<a
href="#"
class=" p-2 text-light col-6 bg"
id="signUpLink"
>Sign up</a
>
<a
href="#"
class="bg-secondary p-2 text-light col-6"
id="signInLink"
>Sign in</a
>
</div>
<form action="/process/signup_process.php" id="signUp" method="post">
<h5 class="text-light h5 mt-4">Sign up for free</h5>
<div class = "alert-msg"></div>
<div class="row">
<div class="col">
<div class="row">
<div class="form-inline col-md-6">
<input
type="text"
name="firstname"
id="firstName"
placeholder="First name"
class="p-2 form-control form-control-lg color col-sm-12 col-md-12 mt-3"
style="background-color: transparent; color: white;"
required
/>
</div>
<div class="form-inline col-md-6 mt-3">
<input
type="text"
name="lastname"
id="secondName"
placeholder="Last name"
class="p-2 form-control form-control-lg color ml-md-auto mt-md-0 col-sm-12 col-md-12 "
style="background-color: transparent; color: white;"
required
/>
</div>
</div>
<div class="form-group m-1 mt-3">
<input
type="email"
name="email"
id="email"
placeholder="Email"
class="p-2 form-control form-control-lg color"
style="background-color: transparent; color: white;"
pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,3}$"
required
/>
</div>
<div class="form-group m-1 mt-3">
<input
type="password"
name="password"
id="password1"
placeholder="Password"
class="p-2 form-control form-control-lg color"
style="background-color: transparent; color: white;"
minlength = "6"
required
/>
</div>
<div class="form-group m-1 mt-3">
<input
type="password"
name="confirmpassword"
id="password1"
placeholder="Confirm password"
class="p-2 form-control form-control-lg color"
style="background-color: transparent; color: white;"
required
/>
</div>
<div class="form-group pt-3">
<input
type="submit"
name="sign_up"
id=""
value="Sign up"
style="background-color: rgb(38, 155, 120)"
class="p-2 btn text-light font-weight-bold col-12 mb-2"
/>
<input type="checkbox" name="check" /><span id="terms" style="color:green; font-size: : 8px;" required> I read and agree to your terms and conditions</span>
</div>
<h6 style="color: white; margin-top: 15px;"> TERMS AND CONDITIONS</h6>
<p style="color:white; margin:0; padding:0">By using our net-worth app you automatically give us the permission to make use of the sign up data you inputed for further research.</p>
</div>
</div>
</form>
<form
action="/process/login_process.php"
id="signIn"
style="display: none;"
class=""
style="width: 100%"
method="post"
>
<h5 class="text-light h5 mt-3">Welcome Back!</h5>
<div class = "alert-msg"></div>
<div class="row">
<div class="col">
<div class="form-group">
<input
type="text"
name="loginemail"
id="Username"
placeholder="Email"
class=" form-control form-control-lg color mt-3 col-sm-12"
style="background-color: transparent; color: white;"
/>
</div>
<div class="form-group mt-3">
<input
type="password"
name="loginpassword"
id="password1"
placeholder="Password"
class="p-2 form-control form-control-lg color col-sm-12"
style="background-color: transparent; color: white;"
/>
</div>
<div class="form-group pt-3">
<input
type="submit"
name="loginapp"
id="submit"
value="Sign in"
style="background-color: rgb(38, 155, 120)"
class="p-2 btn text-light font-weight-bold col-12 mb-2"
/>
<a href="reset.php" class="text-light"
><p>Forgot password?</p></a
>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<?php //include("footer.php"); ?>
<div id="contact-form-frame" class="contact-button hide-button">
<div class="container">
<form name="contact-form"action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']);?>" method="post" id="contact-form" >
<h3>Contact Us.</h3>
<span id="close-btn">×</span>
<fieldset>
<input type="text" id="name" name="name" required minlength="4" placeholder="Your Name">
</fieldset>
<fieldset>
<input type="email" id="email" name="email" required placeholder="Your Email Here...">
</fieldset>
<fieldset>
<input type="text" id="title" name="title" required autofocus placeholder="Title">
</fieldset>
<fieldset>
<textarea id="message" minlength="20" name="message" required placeholder="Type your message here..."></textarea>
</fieldset>
<fieldset>
<button name="submitted" id="contact-submit">Submit</button>
</fieldset>
</form>
</div>
</div>
<!-- change -->
<!-- <div style="margin: 10px 0 0 80px; height: 60px; padding:3px;" class="contact-modal-open-btn">
<h2>Contact Us.</h2>
</div> -->
<!--Beginning of cookie notification modal-->
<!--
<div class="cookies-popup">
Modal HTML
<div id="myModal" class="modal fade" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<img
src="https://res.cloudinary.com/izik4004/image/upload/v1569624977/Group_2_1.png"
alt="logo"
style="width: 110px; height: 40px"
id="logo-img"
/>
<h5 class="modal-title">Cookie Notice</h5>
</div>
<div class="modal-body">
<p>The Networth calculator webiste employs cookies to improve your user experience.
For more information please read our <a href="cookies.html" class="cookies">cookie policy</a>. <br>
By clicking the "I ACCEPT" button, you will be providing your consent to our use of cookies.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">I Accept</button>
</div>
</div>
</div>
</div>
</div>
-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="./ajax.js"></script>
<script src="js/app.js"></script>
<script src="js/contact.js"></script>
<!--Javascript for the cookie modal notification set to remain static onclick outside-->
<script>
$(document).ready(function(){
$("#myModal").modal({
backdrop: 'static',
keyboard: false });
});
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
</body>
</html>