-
Notifications
You must be signed in to change notification settings - Fork 0
/
rejestracja.php
253 lines (209 loc) · 12 KB
/
rejestracja.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
<?php
session_start();
if (isset($_SESSION["zalogowany"])) {
header('Location: index.php');
}
?>
<!DOCTYPE html>
<html lang="pl" xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Sklep zoologiczny">
<meta name="keywords" content="kot, pies, akcesoria, karma">
<meta name="author" content="M Czechura">
<meta http-equiv="X-Ua-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="https://kit.fontawesome.com/c1748c61e8.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="style.css">
<link rel="shortcut icon" href="ikona.ico" />
<title>Sklep zoologiczny</title>
</head>
<body>
<nav class="navbar navbar-expand-lg">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<img src="img/menu.png" width="24" height="24" alt="Menu">
</button>
<a class="navbar-brand" href="index.php"><i class="fas fa-paw">Pawiański</i></a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<li class="dropdown">
<ul class="dropdown-menu">
<li><a href="koty.php">Koty</a></li>
<li><a href="psy.php">Psy</a></li>
<li><a href="chomiki.php">Małe zwierzęta</a></li>
<li><a href="akwarium.php">Akwarystyka</a></li>
<li><a href="ptaki.php">Ptaki</a></li>
</ul>
</li>
<li><a href="koty.php">Koty</a></li>
<li><a href="psy.php">Psy</a></li>
<li><a href="chomiki.php">Małe zwierzęta</a></li>
<li><a href="akwarium.php">Akwarystyka</a></li>
<li><a href="ptaki.php">Ptaki</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<?php if (isset($_SESSION["zalogowany"])) {
echo '<li><a href="logout.php">Wyloguj</a></li>';
} else {
echo '<li><a href="rejestracja.php">Rejestracja</a></li>
<li><a href="logowanie.php"><span class="glyphicon glyphicon-log-in"></span>Zaloguj</a> </li>';
}
?>
<li><a href="koszyk.php"><i class="fas fa-shopping-cart"></i>Koszyk</a></li>
</ul>
</div>
</div>
</nav>
<header class="masthead text-white text-center" id="startrej">
<div class="container bg-grey">
<h1 class="text-uppercase">Rejestracja</h1> <br/><br/>
</div>
</header>
<main>
<section id="rejestracja">
<div class="container bg-grey" >
<form class="form-horizontal" method="post" action="rejestracjaPOST.php">
<fieldset>
<div class="form-group">
<label class="col-md-4 control-label" for="nazwisko">Nazwisko*</label>
<div class="col-md-4">
<input id="nazwisko" name="nazwisko" type="text" class="form-control input-md" pattern="[A-Za-zżźćńółęąśŻŹĆĄŚĘŁÓŃ]{2,}" required>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="imie">Imię*</label>
<div class="col-md-4">
<input id="imie" name="imie" type="text" class="form-control input-md" pattern="[A-Za-zżźćńółęąśŻŹĆĄŚĘŁÓŃ]{2,}" required>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="numertel">Numer telefonu*</label>
<div class="col-md-4">
<input id="numertel" name="numertel" type="text" placeholder="np. 123456789" class="form-control input-md" pattern="^[1-9]{1}[0-9]{8}$" required>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="email">E-mail*</label>
<div class="col-md-4">
<input id="email" name="email" type="email" placeholder="np. [email protected]" class="form-control input-md" required>
</div>
</div>
<?php
if (isset($_SESSION['bladmaila'])) echo $_SESSION['bladmaila'];
unset($_SESSION['bladmaila']);
?>
<div class="form-group">
<label class="col-md-4 control-label" for="password">Hasło*</label>
<div class="col-md-4">
<input id="password" name="password" type="password" placeholder="min. 6 znaków" class="form-control input-md" pattern=".{6,}" required>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="password2">Powtórz hasło*</label>
<div class="col-md-4">
<input id="password2" name="password2" type="password" class="form-control input-md" pattern=".{6,}" required>
</div>
</div>
<?php
if (isset($_SESSION['bladhasla'])) echo $_SESSION['bladhasla'];
unset($_SESSION['bladhasla']);
?>
<div class="form-group">
<label class="col-md-4 control-label" for="ulica">Ulica*</label>
<div class="col-md-4">
<input id="ulica" name="ulica" type="text" class="form-control input-md" pattern="[A-Za-zżźćńółęąśŻŹĆĄŚĘŁÓŃ]{2,}" required>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="nr_domu">Nr domu*</label>
<div class="col-md-4">
<input id="nr_domu" name="nr_domu" type="text" class="form-control input-md" pattern="^[1-9]{1,}$" required>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="nr_lokalu">Nr lokalu</label>
<div class="col-md-4">
<input id="nr_lokalu" name="nr_lokalu" type="text" class="form-control input-md" pattern="^[1-9]{1,}$">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="miejscowosc">Miejscowość*</label>
<div class="col-md-4">
<input id="miejscowosc" name="miejscowosc" type="text" class="form-control input-md" pattern="[A-Za-zżźćńółęąśŻŹĆĄŚĘŁÓŃ]{2,}" required>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="kod_pocztowy">Kod pocztowy*</label>
<div class="col-md-4">
<input id="kod_pocztowy" name="kod_pocztowy" type="text" placeholder="12-345" class="form-control input-md" pattern="^[0-9]{2}-[0-9]{3}$" required>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="checkboxes"></label>
<div class="col-md-4">
<div class="checkbox">
<label for="checkboxes-0">
<input type="checkbox" name="checkboxes" id="checkboxes-0" value="1" required>
* Oświadczam, że znam i akceptuję postanowienia Regulaminu
</label>
</div>
<div class="checkbox">
<label for="checkboxes-0">
<input type="checkbox" name="checkboxes" id="checkboxes-0" value="1" required>
* Wyrażam zgodę na przetwarzanie moich danych osobowych
</label>
</div>
<p class="text-danger">* Pole obowiązkowe</p>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label" for="rej"></label>
<div class="col-md-4">
<button id="rej" name="rej" class="btn btn-success">Rejestracja</button>
</div>
</div>
<?php
if (isset($_SESSION['bladtworzenia'])) echo $_SESSION['bladtworzenia'];
unset($_SESSION['bladtworzenia']);
?>
</fieldset>
</form>
</div>
</section>
<div class="container" style="padding: 15px">
</div>
<div class="container-fluid bg-grey" id="Kontakt">
<h4 class="text-center">KONTAKT</h4>
<div class="row">
<div class="text-center">
<p><span class="glyphicon glyphicon-map-marker"></span> ul. Wesoła 5<br />90-007 Łódź</p>
<p><span class="glyphicon glyphicon-phone"></span> +48 234 234 123</p>
<p><span class="glyphicon glyphicon-envelope"></span> [email protected]</p>
<p><a href="https://www.facebook.com/"><i class="fab fa-facebook-square"></i></a>
<a href="https://www.instagram.com/?hl=pl"><i class="fab fa-instagram"></i></a></p>
</div>
</div>
</div>
</main>
<footer class="panel-footer text-center">
<p>Sklep zoologiczny Pawiański©</p>
</footer>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/js_galeria/lightbox-plus-jquery.min.js"></script>
<script>
lightbox.option({
'alwaysShowNavOnTouchDevices': true
})
</script>
</body>
</html>