-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscrub.php
More file actions
252 lines (200 loc) · 8.64 KB
/
Copy pathscrub.php
File metadata and controls
252 lines (200 loc) · 8.64 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
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
<?php
session_start();
$user = $_SESSION['user'] ?? null;
if (!$user) {
echo "<script>
window.onload = function() {
document.getElementById('welcomePopup').style.display = 'flex';
document.getElementById('pageContent').classList.add('blurred');
};
</script>";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>School Management System</title>
<link rel="stylesheet" href="index.css">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
</head>
<body>
<!-- POPUP WELCOME MESSAGE -->
<div class="popup" id="welcomePopup">
<div class="popup-box">
<h2>👋 Welcome to Gimpa MSG System</h2>
<p>Next is Login to proceed and access your dashboard.</p>
<button onclick="openLogin()">Continue</button>
</div>
</div>
<!-- LOGIN POPUP -->
<div class="login-popup" id="loginPopup">
<div class="login-box">
<h2>🔐 Login</h2>
<input type="text" placeholder="Enter Username">
<input type="password" placeholder="Enter Password">
<button id="loginBtn">Login</button>
</div>
</div>
<!-- ALL PAGE CONTENT (BLURS UNTIL LOGIN COMPLETE) -->
<div id="pageContent">
<!-- Sidebar -->
<aside class="sidebar slide-left">
<div class="sidebar-header">
<h2>Tertiary MSG System</h2>
</div>
<ul class="sidebar-menu">
<!-- USER PROFILE BOX -->
<div class="user-profile">
<img src="profile.jpg" alt="User" class="profile-img">
<h3 class="profile-name">
<?= $user ? htmlspecialchars($user['full_name']) : ""; ?>
</h3>
<p class="profile-role">
<?= strtoupper(htmlspecialchars($user['role'])); ?>
</p>
</div>
<li><a href="#"><span>🏠</span> Dashboard</a></li>
<li><a href="create_user.php"><span>🏠</span> Admin</a></li>
<li><a href="#"><span>📚</span> Books Download</a></li>
<li><a href="#"><span>📄</span> PDF Library</a></li>
<li><a href="#"><span>🗓️</span> Calendar</a></li>
<li><a href="#"><span>📰</span> Newsletter</a></li>
<li><a href="#"><span>📝</span> Assignments</a></li>
<li><a href="#"><span>📢</span> Notice Board</a></li>
<li><a href="#"><span>💬</span> Messages</a></li>
<li><a href="#"><span>👨🎓</span> Student Portal</a></li>
<li><a href="#"><span>👨🏫</span> Staff Portal</a></li>
<li><a href="#"><span>🏫</span> Departments</a></li>
<li><a href="#"><span>📊</span> Results</a></li>
<li><a href="#"><span>📅</span> Timetable</a></li>
<li><a href="login.html"><span>🔐</span> Login</a></li>
</ul>
</aside>
<!-- Main Content -->
<main class="content fade-in">
<!-- Top Welcome Bar -->
<div class="top-bar slide-down">
<span>👋 Welcome,
<strong><?= htmlspecialchars($user['full_name']); ?></strong>
</span>
<span class="admin-badge">
<?= strtoupper(htmlspecialchars($user['role'])); ?>
</span>
<span id="clock"></span>
<button class="logout-btn" onclick="logoutUser()">Logout</button>
</div>
<!-- Header -->
<header class="header">
<h1>GIMPA SOT School Management System</h1>
</header>
<!-- Hero Section -->
<section class="hero slide-up">
<div class="hero-text">
<h2>Smart, Modern & Efficient School Management System</h2>
<p>Manage students, staff, results, assignments, academic records, and digital resources in one centralized platform.</p>
<a href="login.html" class="cta-btn">Login to Continue</a>
</div>
</section>
<section class="stats-section slide-up">
<div class="stats-grid">
<div class="stat-card">
<i class="fa-solid fa-users icon"></i>
<h3>Total Students</h3>
<span class="counter" data-target="1200">0</span>
</div>
<div class="stat-card">
<i class="fa-solid fa-chalkboard-user icon"></i>
<h3>Teachers</h3>
<span class="counter" data-target="85">0</span>
</div>
<div class="stat-card">
<i class="fa-solid fa-user-tie icon"></i>
<h3>Administrators</h3>
<span class="counter" data-target="12">0</span>
</div>
<div class="stat-card">
<i class="fa-solid fa-user-slash icon"></i>
<h3>Dismissed Students</h3>
<span class="counter" data-target="30">0</span>
</div>
<div class="stat-card">
<i class="fa-solid fa-user-plus icon"></i>
<h3>New Admissions</h3>
<span class="counter" data-target="220">0</span>
</div>
</div>
</section>
<!-- Features Section -->
<section class="features">
<h2>Main Features</h2>
<div class="features-grid slide-up">
<div class="feature-card slide-up">
<h3>📘 Digital Library</h3>
<p>Download books and course materials instantly.</p>
</div>
<div class="feature-card slide-up">
<h3>📑 PDF Repository</h3>
<p>Access all student and academic documents.</p>
</div>
<div class="feature-card slide-up">
<h3>📝 Assignments</h3>
<p>View, submit, and track assignment progress.</p>
</div>
<div class="feature-card slide-up">
<h3>🗓 Academic Calendar</h3>
<p>Stay updated with important school events.</p>
</div>
<div class="feature-card slide-up">
<h3>📬 Messaging System</h3>
<p>Communicate with staff & students.</p>
</div>
<div class="feature-card slide-up">
<h3>📢 Notice Board</h3>
<p>Receive important updates and announcements.</p>
</div>
</div>
</section>
<!-- PAYMENT SECTION -->
<section class="payment-section slide-up">
<h2>Payment Methods</h2>
<div class="payment-grid">
<div class="payment-card">
<h3>💳 Card Payment</h3>
<p>Pay using Visa, Mastercard, or Mobile Money cards securely.</p>
<button class="pay-btn">Proceed</button>
</div>
<div class="payment-card">
<h3>📱 Mobile Money</h3>
<p>MTN, Vodafone, AirtelTigo mobile payments supported.</p>
<button class="pay-btn">Proceed</button>
</div>
<div class="payment-card">
<h3>🏦 Bank Transfer</h3>
<p>Use direct bank deposit or transfer for fee payments.</p>
<button class="pay-btn">View Details</button>
</div>
</div>
</section>
<section class="chart-section slide-up">
<h2 class="chart-title">School Record Overview</h2>
<div class="chart-card">
<canvas id="schoolChart"></canvas>
</div>
</section>
<!-- Footer -->
<footer>
<p>© 2025 Tertiary School Management System. All rights reserved.</p>
</footer>
</main>
</div> <!-- END pageContent -->
<!-- WHATSAPP FLOAT CHAT -->
<a href="https://wa.me/233555508020" class="whatsapp-float" target="_blank">💬</a>
<script>
window.userLoggedIn = <?= json_encode(isset($_SESSION['user'])); ?>;
</script>
<script src="index.js"></script>
</body>
</html>