-
Notifications
You must be signed in to change notification settings - Fork 0
/
myattendance.html
78 lines (77 loc) · 2.23 KB
/
myattendance.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
<!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>My Attendance</title>
<style>
body, html {
margin: 0;
padding: 0;
height: 100%;
font-family: Arial, sans-serif;
background-color: #e6e6e6;
}
.header {
background-color: #003366;
color: white;
text-align: center;
padding: 1rem;
}
.content {
padding: 1rem;
}
.attendance-info {
background-color: #0055b3;
color: white;
padding: 1rem;
border-radius: 10px;
margin-bottom: 1rem;
}
.action-buttons {
text-align: center;
margin-top: 1rem;
}
.button {
background-color: #004080;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
display: inline-block;
}
.button:hover {
background-color: #003366;
}
.hide {
display: none;
}
</style>
</head>
<body>
<div class="header">
<h1>My Attendance</h1>
</div>
<div class="content">
<div class='attendance-info'>
<h2>Cybersecurity</h2>
<p>Date: <?php echo date("Y-m-d"); ?></p> <!-- TODAY'S DATE FOR DEMO -->
<p>Attendance Status: -</p>
<div class='action-buttons'>
<button id='checkInBtn' class='button' onclick='showCheckOut()'>Check In</button>
<button id='checkOutBtn' class='button hide' onclick='alert("Checked Out")'>Check Out</button>
</div>
</div>
</div>
<script>
function showCheckOut() {
document.getElementById('checkInBtn').style.display = 'none'; // Hide Check In button
document.getElementById('checkOutBtn').style.display = 'inline-block'; // Show Check Out button
window.open('qrcode.html', '_blank');
}
</script>
</body>
</html>