-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
179 lines (160 loc) · 9.26 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>PHP-REST-API</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<link rel="shortcut icon" href="assets/images/icons/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" href="assets/css/styles.css">
</head>
<body>
<div class="limiter">
<div class="container-login100">
<div style="text-align: center;">
<h3>
<object type="image/svg+xml" data="assets/images/icons/stars-left.svg" class="icon"></object>
Start Page
<object type="image/svg+xml" data="assets/images/icons/stars-right.svg" class="icon"></object>
</h3>
<div style="text-align: center;">
<!-- Modal Login Window -->
<a href="#win1" class="link" style="padding-right: 15px;">Login</a>
<a href="#x" class="overlay" id="win1" tabindex="-1"></a>
<div class="popup" style="width: 360px; top: 180px; padding: 0; margin-right: 0; border-radius: 10px;">
<div class="wrap-login100" style="width: 342px; padding-left: 40px;">
<div class="login">
<div class="modal-window">
<form action="" id="ajaxForm1" method="POST">
<h2 style="padding: 55px 0 60px 0;">
Member Login
</h2>
<div class="blockinput" style="margin-bottom: 16px;">
<label>
<input id="email" name="email" type="email"
data-validate="Valid email is required: [email protected]"
placeholder="Email" autocomplete="off"
maxlength="255"/>
</label>
</div>
<div class="blockinput">
<label>
<input id="password" name="password" type="password"
data-validate="Password is required"
placeholder="Password" autocomplete="off"
minlength="6" maxlength="255"
onkeyup="letter_spacing(this);"/>
</label>
</div>
<div class="error-label" id="error-label"> </div>
<button id="login" type="button" class="button-signup" style="margin-top: 35px;">
Login
</button>
<p style="padding-top: 10px; font-size: 16px;">
Don't have an account?
<a href="#win2" style="color: #292929;">
Sign Up
</a>
</p>
</form>
<a href="#x" class="close" style=" left: 370px;" title="Close"></a>
</div>
</div>
</div>
</div>
<!-- Modal Registration Window -->
<a style="padding-left: 15px;" href="#win2" class="link">Sign up</a>
<a href="#x" class="overlay" id="win2" tabindex="-1"></a>
<div class="popup" style=" width: 360px; top: 120px; padding: 0; margin-right: 0; border-radius: 10px;"
tabindex="-1">
<div class="wrap-login100" style="width: 342px; height: 495px; padding-left: 40px;">
<div class="login">
<div class="modal-window">
<form action="" id="ajaxForm2" method="POST">
<h2 style="padding-bottom: 45px; padding-top: 45px; text-align: center; font-size: 30px;">
Registration form
</h2>
<div class="blockinput">
<label>
<input id="firstName" name="firstName" type="text"
placeholder="First Name*" autocomplete="off"
minlength="1" maxlength="255">
</label>
</div>
<div class="blockinput">
<label>
<input id="lastName" name="lastName" type="text"
placeholder="Last Name*" autocomplete="off"
minlength="1" maxlength="255">
</label>
</div>
<div class="blockinput">
<label>
<input id="email_2" name="email_2" type="email"
placeholder="Email*" autocomplete="off"
minlength="1" maxlength="255">
</label>
</div>
<div class="blockinput" style="margin: 0;">
<label>
<input id="password_2" name="password_2" type="password"
placeholder="Password*" autocomplete="off"
minlength="6" maxlength="255"
onkeyup="letter_spacing(this);">
</label>
</div>
<div class="blockinput" style="display: flex;">
<label for="optionList"
style="padding: 10px 30px 0 7px; line-height: 1.5; box-shadow: none;">
Select Role
</label>
<select class="select" name="optionList" id="optionList"
autocomplete="off" style="width: 190px;">
<option>admin</option>
<option>user</option>
</select>
</div>
<div id="error-label_2" class="error-label"> </div>
<button id="signup" type="button" class="button-signup" style="margin-top: 35px;">
Create Account
</button>
<p style="padding-top: 5px; font-size: 16px;">
Do you have an account?
<a href="#win1" style="color: #292929;">
Login
</a>
</p>
</form>
<a href="#x" class="close" style="left: 370px;" title="Close"></a>
</div>
</div>
</div>
</div>
<table class="slideExpandUp" style="width: 950px; margin-top: 60px; margin-bottom: 15px;">
<thead>
<tr>
<th scope="col">First Name</th>
<th scope="col">Last Name</th>
<th scope="col">Email</th>
<th scope="col">Role</th>
</tr>
</thead>
<tbody id="table-users" class="table-body">
</tbody>
</table>
</div>
<div id="footer">
<div>
<a href="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/SValentyn/PHP-REST-API">
<img id="github-ico" src="assets/images/icons/GitHub-Mark-32px.ico"
title="View project code on GitHub" alt="View code on GitHub"/>
</a>
</div>
</div>
</div>
</div>
</div>
</body>
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="assets/js/ajax.js"></script>
<script src="assets/js/index.js"></script>
</html>