-
Notifications
You must be signed in to change notification settings - Fork 0
/
auth_form.php
60 lines (46 loc) · 1.81 KB
/
auth_form.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
<?php
session_start();
?>
<!DOCTYPE html >
<html lang="ru, en">
<head>
<meta charset=utf-8>
<link rel="stylesheet" href="css/index.css">
<!-- <link rel="stylesheet" href="css/auth_form.css"> -->
<title>Авторизация</title>
</head>
<body>
<?php require "blocks/sidenav.php" ?>
<?php // TODO: развести папки стили ?>
<div class="auth_main">
<h3>Войти в аккаунт</h3>
<form class="container" action="vendor/auth.php" method="post">
<label for="login" style="margin-left: 10px"><b>Login</b></label>
<input type="text" placeholder="Введите login" name="login" required>
<label for="psw" style="margin-left: 10px"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="psw" required>
<?php // TODO: нормальный стиль для кнопки! ?>
<button type="submit" style="auth_button">Войти как пользователь</button>
<p class="msg">
<?php
echo($_SESSION['message']);
unset($_SESSION['message']);
?>
</p>
<p>
Ещё нет аккаунта? <a href="reg_form.php" style = "text-decoration: none;">Зарегистрируйтесь</a>
</p>
</form>
<hr>
<h3>Вход для менеджеров</h3>
<form class="container" action="vendor/auth_manager.php" method="post">
<label for="login"><b>Login</b></label>
<input type="text" placeholder="Введите login" name="login" required>
<label for="psw"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="psw" required>
<button type="submit">Войти как менеджер</button>
</form>
</div>
</div>
</body>
</html>