-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch_employee.html
More file actions
36 lines (33 loc) · 1.18 KB
/
search_employee.html
File metadata and controls
36 lines (33 loc) · 1.18 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Search Employee</title>
<!-- Use Bootstrap for styling -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
</head>
<body>
<!-- Create a banner -->
<div class="jumbotron">
<h1 class="display-4">Employee Management System</h1>
<p class="lead">Search for an Employee</p>
</div>
<!-- Use a container to center the form -->
<div class="container">
<form method="post">
<div class="form-group">
<label for="search_query">Search (ID, Name, Email, or Department):</label>
<input type="text" class="form-control" id="search_query" name="search_query" required>
</div>
<button type="submit" class="btn btn-primary">Search</button>
</form>
{% if employee %}
<hr>
<h2>Employee Details</h2>
<p><strong>ID:</strong> {{ employee[0] }}</p>
<p><strong>Name:</strong> {{ employee[1] }}</p>
<p><strong>Email:</strong> {{ employee[2] }}</p>
<p><strong>Department:</strong> {{ employee[3] }}</p>
{% endif %}
</div>
</body>
</html>