-
Notifications
You must be signed in to change notification settings - Fork 0
/
Admin-Lab1-add_prof.php
57 lines (52 loc) · 1.89 KB
/
Admin-Lab1-add_prof.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin</title>
<link rel="stylesheet" href="./css/main.css">
</head>
<body>
<?php
session_start();
if($_SESSION["type"]!=3)
{
$_SESSION['error'] = "[RIGHTS] У вас недостаточно прав для просмотра этой страницы!";
header('Location: '. 'http://localhost:8888/Admin-error.php');
exit();
}
?>
<?php
include "Admin-menu.php";
?>
<header class="header">
<div class="header__wrapper">
<h1 class="header__title" style="color: #000; border-bottom: 1px solid #000000;">
ADD PROFESSION
</h1>
</div>
</header>
<main class="section">
<div class="container">
<ul class="content-list">
<div class="form-left-decoration"></div>
<div class="form-right-decoration"></div>
<div class="circle"></div>
<div class="form-inner">
<h3>Добавить профессию</h3>
<br>
<form action="http://localhost:8888/backend/insert_prof.php" id="add" method=post>
<input type="text" name="name" placeholder="Название" style="background-color: white;"><br>
<br>
<input placeholder="Описание" type="textarea" style="background-color: white;" name="description"><br>
<br>
<a href="javascript:;" onclick="document.getElementById('add').submit();" class="btn">Добавить</a>
</form>
</div>
</ul>
</div>
</main>
<script src="./js/menu.js"></script>
</body>
</html>