-
Notifications
You must be signed in to change notification settings - Fork 0
/
staff.php
100 lines (86 loc) · 3.47 KB
/
staff.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
<?php
include 'admin/db.php';
session_start();
if (isset($_SESSION['type'])) {
if($_SESSION['type'] != 3){
header("Location: index.php");
}
}else{
header("Location: index.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Đăng nhập</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js">
<link rel="stylesheet" type="text/css" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<!--===============================================================================================-->
</head>
<body>
<div class="wrapper center">
<div class="logo">
<img src="images/logo1.jpg" alt="">
</div>
<div id="success" class="text-center mt-4 name">
Welcome staff successfully logged in!
</div>
<div class="text-center mt-4 name">
Mời bạn chọn chức năng cần dùng!
</div>
<a href="quanlykhachhang.php"><button class="btn mt-3">Quản lý nhân viên</button></a>
<a href=""><button class="btn mt-3">Quản lý nhập hàng</button></a>
<a href=""><button class="btn mt-3">Quản lý xuất hàng</button></a>
<a href="logout.php"><button class="btn mt-3">Đăng xuất</button></a>
</div>
</body>
</html><?php
include 'admin/db.php';
session_start();
if (isset($_SESSION['type'])) {
if($_SESSION['type'] != 3){
header("Location: index.php");
}
}else{
header("Location: index.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Đăng nhập</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js">
<link rel="stylesheet" type="text/css" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<!--===============================================================================================-->
</head>
<body>
<div class="wrapper center">
<div class="logo">
<img src="images/logo1.jpg" alt="">
</div>
<div class="text-center mt-4 name">
Chào mừng staff đăng nhập thành công!
<br>
Mời bạn chọn chức năng cần dùng!
</div>
<a href="quanlykhachhang.php"><button class="btn mt-3">Quản lý nhân viên</button></a>
<a href=""><button class="btn mt-3">Quản lý nhập hàng</button></a>
<a href=""><button class="btn mt-3">Quản lý xuất hàng</button></a>
<a href="logout.php"><button class="btn mt-3">Đăng xuất</button></a>
</div>
</body>
</html>