-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanage_employee.html
200 lines (158 loc) · 7.05 KB
/
manage_employee.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
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html>
<html>
<head>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" />
<link rel="stylesheet" href="imtiredofthis.css">
</head>
<body>
<div class="top">
<a href="#" class="notification">
<span>Inbox</span>
<span class="badge">3</span>
</a>
<div class="dropdown-admin">
<button onclick="myFunction()" class="dropbtn-admin">Hi, Admin</button>
<div id="myDropdownAdmin" class="dropdown-content-admin">
<a href="#home">Account</a>
<a href="#about">Setting</a>
<a href="#contact">Logout</a>
</div>
</div>
</div>
<div class="sidenav">
<div class="sidebar-header" style="height: 50px;margin-top: 30px">
<i class="fa fa-users text-success me-4"></i>
<span>ELMS</span>
</div>
<a href="index.html">Dashboard</a>
<button class="dropdown-btn">Department
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-container">
<a href="#">Add Department</a>
<a href="#">Manage Department</a>
</div>
<button class="dropdown-btn">Employee
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-container">
<a href="add_employee.html">Add Employee</a>
<a href="manage_employee.html">Manage employee</a>
</div>
<button class="dropdown-btn">Leaves Type
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-container">
<a href="#">Add Leaves Types</a>
<a href="#">Manage Leaves Types</a>
</div>
<button class="dropdown-btn">Leave Management
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-container">
<a href="#">All Leaves</a>
<a href="#">Pending Leaves</a>
<a href="#">Approve Leaves</a>
<a href="#">Not Approve Leaves</a>
</div>
<button class="dropdown-btn">Users
<i class="fa fa-caret-down"></i>
</button>
<div class="dropdown-container">
<a href="#">Add User</a>
<a href="#">Manage User</a>
</div>
</div>
<div class="main" for="manage_employee">
<div class="employeedata">
<h3>Manage Employee</h3>
<div class="card-body">
<table>
<tr class="tr-header">
<td>Emp ID</td>
<td>Full name</td>
<td>Department</td>
<td>Status</td>
<td>Action</td>
</tr>
<tr class="manage-employee">
<td>123456</td>
<td>Melanie Blake</td>
<td>IT</td>
<td><i class="material-icons" style="font-size:48px;color:rgb(21, 230, 21);">toggle_on</i></td>
<td><i class="material-icons" style="font-size:17px;color:rgb(100, 100, 100);">edit</i>
<i class="material-icons" style="font-size:17px;color:rgb(255, 0, 0);">delete_sweep</i>
</td>
</tr>
<tr class="manage-employee">
<td>167263</td>
<td>Carter Warren</td>
<td>HR</td>
<td> <i class="material-icons" style="font-size:48px;color:rgb(144, 144, 144);">toggle_off</i>
</td>
<td> <i class="material-icons" style="font-size:17px;color:rgb(100, 100, 100);">edit</i>
<i class="material-icons" style="font-size:17px;color:rgb(255, 0, 0);">delete_sweep</i>
</td>
</tr>
<tr class="manage-employee">
<td>150499</td>
<td>Lee Rachel</td>
<td>Engineer</td>
<td> <i class="material-icons" style="font-size:48px;color:rgb(21, 230, 21);">toggle_on</i></td>
<td> <i class="material-icons" style="font-size:17px;color:rgb(100, 100, 100);">edit</i>
<i class="material-icons" style="font-size:17px;color:rgb(255, 0, 0);">delete_sweep</i>
</td>
</tr>
<tr class="manage-employee">
<td>821256</td>
<td>Nevaeh Keller</td>
<td>Admin</td>
<td> <i class="material-icons" style="font-size:48px;color:rgb(21, 230, 21);">toggle_on</i></td>
<td> <i class="material-icons" style="font-size:17px;color:rgb(100, 100, 100);">edit</i>
<i class="material-icons" style="font-size:17px;color:rgb(255, 0, 0);">delete_sweep</i>
</td>
</tr>
</table>
</div>
</div>
</div>
<script>
/* Loop through all dropdown buttons to toggle between hiding and showing its dropdown content - This allows the user to have multiple dropdowns without any conflict */
var dropdown = document.getElementsByClassName("dropdown-btn");
var i;
for (i = 0; i < dropdown.length; i++) {
dropdown[i].addEventListener("click", function () {
this.classList.toggle("active");
var dropdownContent = this.nextElementSibling;
if (dropdownContent.style.display === "block") {
dropdownContent.style.display = "none";
} else {
dropdownContent.style.display = "block";
}
});
}
/* When the user clicks on the button,
toggle between hiding and showing the dropdown content */
function myFunction() {
document.getElementById("myDropdownAdmin").classList.toggle("show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function (event) {
if (!event.target.matches('.dropbtn-admin')) {
var dropdowns = document.getElementsByClassName("dropdown-content-admin");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
</script>
</body>
</html>