-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathheader.php
More file actions
102 lines (102 loc) · 3.25 KB
/
header.php
File metadata and controls
102 lines (102 loc) · 3.25 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?= $pageTitle ?? 'Attendance System' ?></title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', 'Segoe UI', sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
line-height: 1.6;
}
.navbar {
background: rgba(255,255,255,0.95);
backdrop-filter: blur(10px);
padding: 15px 0;
box-shadow: 0 2px 20px rgba(0,0,0,0.1);
position: sticky;
top: 0;
z-index: 1000;
}
.nav-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px;
}
.logo {
font-size: 1.5rem;
font-weight: 700;
color: #2d3748;
text-decoration: none;
}
.nav-links {
display: flex;
gap: 30px;
list-style: none;
}
.nav-links a {
color: #4a5568;
text-decoration: none;
font-weight: 500;
transition: color 0.3s ease;
display: flex;
align-items: center;
gap: 8px;
}
.nav-links a:hover {
color: #667eea;
}
.nav-links a.active {
color: #667eea;
font-weight: 600;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
@media (max-width: 768px) {
.nav-links {
gap: 15px;
flex-wrap: wrap;
}
.nav-links a {
font-size: 0.9rem;
}
}
</style>
</head>
<body>
<nav class="navbar">
<div class="nav-container">
<a href="dashboard.php" class="logo">
<i class="fas fa-graduation-cap"></i> AttendanceHub
</a>
<ul class="nav-links">
<li><a href="dashboard.php" class="<?= basename($_SERVER['PHP_SELF']) == 'dashboard.php' ? 'active' : '' ?>">
<i class="fas fa-chart-line"></i> Dashboard
</a></li>
<li><a href="add_student.php" class="<?= basename($_SERVER['PHP_SELF']) == 'add_student.php' ? 'active' : '' ?>">
<i class="fas fa-user-plus"></i> Add Student
</a></li>
<li><a href="export_pdf.php" target="_blank">
<i class="fas fa-file-pdf"></i> Export PDF
</a></li>
<li><a href="send_email.php" target="_blank">
<i class="fas fa-envelope"></i> Send Report
</a></li>
</ul>
</div>
</nav>