-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8dc196e
commit b9a7ace
Showing
1 changed file
with
140 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Employee Management - HRIS</title> | ||
<script src="https://cdn.tailwindcss.com"></script> | ||
<style> | ||
body { | ||
font-family: 'Courier', monospace; | ||
} | ||
/* Retro Button Style */ | ||
.retro-btn { | ||
background-color: #222222; | ||
color: #fff; | ||
font-weight: bold; | ||
padding: 12px 24px; | ||
border-radius: 50px; | ||
border: 2px solid #fff; | ||
text-transform: uppercase; | ||
transition: background-color 0.3s ease, border 0.3s ease; | ||
} | ||
|
||
.retro-btn:hover { | ||
background-color: #fff; | ||
color: #222222; | ||
border: 2px solid #222222; | ||
} | ||
|
||
.card { | ||
background-color: #2d2d2d; | ||
border-radius: 8px; | ||
padding: 20px; | ||
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); | ||
} | ||
</style> | ||
</head> | ||
<body class="bg-gray-900 text-white"> | ||
|
||
<!-- Dashboard Container --> | ||
<div class="flex min-h-screen"> | ||
|
||
<!-- Sidebar --> | ||
<div class="w-64 bg-gray-800 p-6"> | ||
<h2 class="text-2xl font-bold mb-8">HRIS Dashboard</h2> | ||
<nav> | ||
<ul> | ||
<li><a href="dashboard.html" class="block py-2 px-4 mb-4 text-lg hover:bg-gray-700 rounded-lg">Dashboard</a></li> | ||
<li><a href="employees.html" class="block py-2 px-4 mb-4 text-lg hover:bg-gray-700 rounded-lg">Employee Management</a></li> | ||
<li><a href="attendance.html" class="block py-2 px-4 mb-4 text-lg hover:bg-gray-700 rounded-lg">Attendance Tracking</a></li> | ||
<li><a href="payroll.html" class="block py-2 px-4 mb-4 text-lg hover:bg-gray-700 rounded-lg">Payroll Management</a></li> | ||
<li><a href="settings.html" class="block py-2 px-4 mb-4 text-lg hover:bg-gray-700 rounded-lg">Settings</a></li> | ||
<li><a href="logout.html" class="block py-2 px-4 mb-4 text-lg hover:bg-gray-700 rounded-lg">Logout</a></li> | ||
</ul> | ||
</nav> | ||
</div> | ||
|
||
<!-- Main Content --> | ||
<div class="flex-1 p-8"> | ||
|
||
<!-- Employee Management Header --> | ||
<div class="flex justify-between mb-8"> | ||
<h1 class="text-4xl font-bold">Employee Management</h1> | ||
<button onclick="window.location.href='add-employee.html';" class="retro-btn w-auto px-6 py-3"> | ||
Add Employee | ||
</button> | ||
</div> | ||
|
||
<!-- Search and Filter Section --> | ||
<div class="mb-6"> | ||
<input type="text" class="w-full p-3 bg-gray-700 border border-gray-600 rounded-lg" placeholder="Search employees..." id="search" oninput="filterEmployees()"> | ||
</div> | ||
|
||
<!-- Employee List Table --> | ||
<div class="overflow-x-auto"> | ||
<table class="min-w-full table-auto"> | ||
<thead> | ||
<tr> | ||
<th class="py-3 px-6 text-left">Name</th> | ||
<th class="py-3 px-6 text-left">Position</th> | ||
<th class="py-3 px-6 text-left">Email</th> | ||
<th class="py-3 px-6 text-left">Actions</th> | ||
</tr> | ||
</thead> | ||
<tbody id="employeeTable"> | ||
<tr> | ||
<td class="py-3 px-6">John Doe</td> | ||
<td class="py-3 px-6">Software Engineer</td> | ||
<td class="py-3 px-6">[email protected]</td> | ||
<td class="py-3 px-6"> | ||
<a href="edit-employee.html" class="retro-btn w-auto px-6 py-3">Edit</a> | ||
<button onclick="deleteEmployee()" class="retro-btn w-auto px-6 py-3 ml-2">Delete</button> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td class="py-3 px-6">Jane Smith</td> | ||
<td class="py-3 px-6">Project Manager</td> | ||
<td class="py-3 px-6">[email protected]</td> | ||
<td class="py-3 px-6"> | ||
<a href="edit-employee.html" class="retro-btn w-auto px-6 py-3">Edit</a> | ||
<button onclick="deleteEmployee()" class="retro-btn w-auto px-6 py-3 ml-2">Delete</button> | ||
</td> | ||
</tr> | ||
<!-- Add more employee rows as needed --> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
<script> | ||
// Simple function to filter employees based on search input | ||
function filterEmployees() { | ||
const searchTerm = document.getElementById("search").value.toLowerCase(); | ||
const rows = document.getElementById("employeeTable").getElementsByTagName("tr"); | ||
|
||
for (let row of rows) { | ||
const name = row.cells[0].textContent.toLowerCase(); | ||
const position = row.cells[1].textContent.toLowerCase(); | ||
const email = row.cells[2].textContent.toLowerCase(); | ||
|
||
if (name.includes(searchTerm) || position.includes(searchTerm) || email.includes(searchTerm)) { | ||
row.style.display = ""; | ||
} else { | ||
row.style.display = "none"; | ||
} | ||
} | ||
} | ||
|
||
// Simple function to delete an employee (for demo purposes) | ||
function deleteEmployee() { | ||
if (confirm("Are you sure you want to delete this employee?")) { | ||
// Code to delete employee goes here (e.g., remove row or make an API call) | ||
alert("Employee deleted."); | ||
} | ||
} | ||
</script> | ||
</body> | ||
</html> |