-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauth.html
executable file
·64 lines (60 loc) · 3.11 KB
/
auth.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<title>Авторизация</title>
</head>
<body>
<?php if (isset($failed_verify)) : ?>
<div class="alert alert-danger" role="alert">
Ошибка в верификации пароля/пользователя!
</div>
<?php elseif (isset($not_staff)) : ?>
<div class="alert alert-info" role="alert">
Доступно только для сотрудников!
</div>
<?php elseif (isset($not_authorized)) : ?>
<div class="alert alert-danger" role="alert">
Требуется авторизация для просмотра ответов!
</div>
<?php endif; ?>
<div class="container">
<div class="row">
<div class="offset-md-4 col-sm-6">
<form method="post" action="auth.php" name="authorization">
<div class="form-group row">
<label for="email" class="col-sm-2 col-form-label">Email</label>
<input type="email" name="email">
<span class="error">*
<?php if (isset($emailErr)) {
echo $emailErr; }
?></span>
</div>
<div class="form-group row">
<label for="password" class="col-sm-2 col-form-label">Пароль</label>
<input type="password" id="password" name="password" required>
<span class="error">*
<?php if (isset($passwordErr)) {
echo $passwordErr; }
?></span>
</div>
<div class="form-group">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="staff" name="staff" value="1">
<label class="custom-control-label" for="staff">Вы сотрудник?</label>
</div>
</div>
<br />
<a class="btn btn-primary" href="registration.html">Регистрация</a>
<input class="btn btn-success" type="submit" value="Авторизироваться">
</form>
</div>
</div>
</div>
<hr/>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>