-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
105 lines (101 loc) · 3.67 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
<?php
require 'backend/db.php';
session_start();
?>
<!--
index.php
StockExperience
Edited by BinarySoftware on 07/03/2019.
Copyright ©2019 BinarySoftware/Maciej Mikołajek. All rights reserved.
Purpose: Start page, providing users with possibility to login and register
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Zaloguj</title>
<?php include 'css/css.html'; ?>
</head>
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if (isset($_POST['login'])) {
require 'backend/login.php';
} elseif (isset($_POST['register'])) {
require 'backend/register.php';
}
}
?>
<body>
<div class="form">
<table width=100%>
<tr>
<td width=110px><img src="icon.png"/ style="width:100px;height:100px;"></td>
<td><h1>StockExperience Poland</h1></td>
</tr>
</table>
<h2 style="margin:10px 0">Witamy pasjonatów ekonomii!</h2>
<h3 style="margin:10px 0">StockExperience to program edukacyjny, uczący inwestowania w papiery wartościowe. Jest też pierwszą aplikacją obsługującą indeksy GPW. Zapraszam do gry!</h3>
</div>
<div class="form">
<ul class="tab-group">
<li class="tab"><a href="#signup">Zarejestruj</a></li>
<li class="tab active"><a href="#login">Zaloguj</a></li>
</ul>
<div class="tab-content">
<div id="login">
<form action="index.php" method="post" autocomplete="off">
<div class="field-wrap">
<label>
Email:<span class="req">*</span>
</label>
<input type="email" required autocomplete="off" name="email"/>
</div>
<div class="field-wrap">
<label>
Hasło:<span class="req">*</span>
</label>
<input type="password" required autocomplete="off" name="password"/>
</div>
<p class="forgot"><a href="forgot.php">Zapomniałeś hasła?</a></p>
<button class="button button-block" name="login" />Zaloguj</button>
</form>
</div>
<div id="signup">
<form action="index.php" method="post" autocomplete="off">
<div class="top-row">
<div class="field-wrap">
<label>
Imię<span class="req">*</span>
</label>
<input type="text" required autocomplete="off" name='firstname' />
</div>
<div class="field-wrap">
<label>
Nazwisko<span class="req">*</span>
</label>
<input type="text"required autocomplete="off" name='lastname' />
</div>
</div>
<div class="field-wrap">
<label>
Email<span class="req">*</span>
</label>
<input type="email"required autocomplete="off" name='email' />
</div>
<div class="field-wrap">
<label>
Hasło<span class="req">*</span>
</label>
<input type="password"required autocomplete="off" name='password'/>
</div>
<p>Klikając "Zarejestruj" zgadzasz się na przetwarzanie Twoich danych osobowych oraz akceptujesz <a href="terms.php">regulamin</a></p>
<button type="submit" class="button button-block" name="register" />Zarejestruj</button>
</form>
</div>
</div>
</div>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src="js/index.js"></script>
<h5 style="color:rgba(19, 35, 47, 0.9)">StockExperience <a href="https://github.com/BinarySoftware" style="color:rgba(19, 35, 47, 0.9)">Ⓒ2018 BinarySoftware</a> Wszelkie prawa zastrzeżone.</h5>
</body>
</html>