-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
501 lines (491 loc) · 17.4 KB
/
index.php
File metadata and controls
501 lines (491 loc) · 17.4 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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
<?php
session_start();
$message = $_SESSION['message'] ?? null;
$error = $_SESSION['error'] ?? null;
// Clear session messages after reading
unset($_SESSION['message']);
unset($_SESSION['error']);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>All in One - Professional Tutoring Center</title>
<!-- Bootstrap CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome Icons -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" rel="stylesheet">
<style>
:root {
--gold: #D4AF37;
--dark-gold: #B8860B;
--black: #000000;
}
/* Global Styles */
body {
font-family: 'Arial', sans-serif;
background-color: #fff;
color: #fff;
}
/* Navbar */
.navbar {
background-color: var(--black) !important;
padding: 1rem;
}
.navbar-brand {
display: flex;
align-items: center;
gap: 10px;
color: var(--gold) !important;
font-weight: bold;
font-size: 1.5rem;
}
.navbar-logo {
width: 40px;
height: 40px;
object-fit: contain;
}
.nav-link {
color: var(--gold) !important;
margin: 0 1rem;
transition: color 0.3s;
}
.nav-link:hover {
color: var(--dark-gold) !important;
}
.navbar-toggler {
border-color: var(--gold);
}
.navbar-toggler-icon {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(212, 175, 55, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* Hero Section */
.hero {
background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('4.jpg');
background-size: cover;
background-position: center;
height: 80vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: white;
}
.hero h1 {
font-size: 3.5rem;
color: var(--gold);
}
.hero p {
font-size: 1.25rem;
}
/* Section Titles */
.section-title {
color: var(--gold);
text-align: center;
margin: 3rem 0;
}
/* About Section */
.about-section {
background-color: #f8f9fa;
color: #000;
padding: 4rem 0;
}
/* Branch Cards */
.branch-card {
border: 2px solid var(--gold);
padding: 2rem;
margin: 1rem 0;
border-radius: 10px;
transition: transform 0.3s;
background-color: #fff;
color: #000;
}
.branch-card:hover {
transform: translateY(-5px);
}
/* Contact Form (Request a Call Back) */
.contact-form {
background-color: #f8f9fa;
padding: 2rem;
border-radius: 10px;
border: 2px solid var(--gold);
color: #000;
}
.contact-form .form-control {
background-color: #fff;
color: #000;
}
.btn-custom {
background-color: var(--gold);
color: var(--black);
border: none;
padding: 0.75rem 2rem;
transition: background-color 0.3s;
}
.btn-custom:hover {
background-color: var(--dark-gold);
color: white;
}
/* Gallery Items */
.gallery-item {
margin-bottom: 1.5rem;
overflow: hidden;
border-radius: 10px;
}
.gallery-item img {
transition: transform 0.3s;
}
.gallery-item:hover img {
transform: scale(1.1);
}
/* Footer */
footer {
background-color: var(--black);
color: var(--gold);
padding: 2rem 0;
margin-top: 3rem;
}
.social-icons a {
color: var(--gold);
margin: 0 1rem;
font-size: 1.5rem;
transition: color 0.3s;
}
.social-icons a:hover {
color: var(--dark-gold);
}
/* Admission Modal Styles */
.modal-content {
background-color: var(--black);
color: var(--gold);
border: 2px solid var(--gold);
}
.modal-header .modal-title {
color: var(--gold);
}
.btn-admission {
background-color: var(--gold);
color: var(--black);
border: none;
padding: 0.75rem 2rem;
transition: background-color 0.3s;
}
.btn-admission:hover {
background-color: var(--dark-gold);
color: white;
}
.form-control,
.form-select {
background-color: var(--black);
color: var(--gold);
border: 1px solid var(--gold);
}
.form-control::placeholder {
color: var(--gold);
opacity: 0.8;
}
</style>
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark fixed-top">
<div class="container">
<a class="navbar-brand" href="#">
<img src="logo.jpg" alt="Logo" class="navbar-logo">
All in One
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item"><a class="nav-link" href="#home">Home</a></li>
<li class="nav-item"><a class="nav-link" href="#about">About Us</a></li>
<li class="nav-item"><a class="nav-link" href="#branches">Branches</a></li>
<li class="nav-item"><a class="nav-link" href="#gallery">Gallery</a></li>
<li class="nav-item"><a class="nav-link" href="#contact">Request a Call Back</a></li>
</ul>
</div>
</div>
</nav>
<!-- Display Success/Error Messages -->
<div class="container mt-5 pt-5">
<?php if ($message): ?>
<div class="alert alert-success" role="alert">
<?= htmlspecialchars($message) ?>
</div>
<?php endif; ?>
<?php if ($error): ?>
<div class="alert alert-danger" role="alert">
<?= htmlspecialchars($error) ?>
</div>
<?php endif; ?>
</div>
<!-- Hero Section -->
<section id="home" class="hero">
<div class="container">
<h1>Welcome to All in One</h1>
<p class="lead">Empowering minds through excellence in education</p>
<!-- Admission Button triggers modal -->
<button class="btn btn-admission mt-3" data-bs-toggle="modal" data-bs-target="#admissionModal">
Admission Open 2025
</button>
</div>
</section>
<!-- About Section -->
<section id="about" class="about-section">
<div class="container">
<h2 class="section-title">About Us</h2>
<div class="row">
<div class="col-md-6">
<img src="5.jpg" alt="About Us" class="img-fluid rounded">
</div>
<div class="col-md-6">
<h3 class="mb-4">Your Path to Academic Excellence</h3>
<p>All in One is a premier tutoring center committed to providing exceptional educational support to students across India. With experienced faculty and comprehensive study programs, we ensure every student reaches their full potential.</p>
<p>Our personalized approach and proven teaching methodologies have helped thousands of students achieve academic success.</p>
<ul class="list-unstyled">
<li><i class="fas fa-check-circle text-warning"></i> Experienced Faculty</li>
<li><i class="fas fa-check-circle text-warning"></i> Personalized Attention</li>
<li><i class="fas fa-check-circle text-warning"></i> Comprehensive Study Material</li>
<li><i class="fas fa-check-circle text-warning"></i> Regular Assessment Tests</li>
</ul>
</div>
</div>
</div>
</section>
<!-- Branches Section -->
<section id="branches" class="py-5">
<div class="container">
<h2 class="section-title">Our Branches</h2>
<div class="row">
<div class="col-md-4">
<div class="branch-card text-center">
<i class="fas fa-building fa-3x text-warning mb-3"></i>
<h4>Delhi Center</h4>
<p>123 Connaught Place, New Delhi</p>
<p>Phone: +91 98765 43210</p>
</div>
</div>
<div class="col-md-4">
<div class="branch-card text-center">
<i class="fas fa-building fa-3x text-warning mb-3"></i>
<h4>Mumbai Center</h4>
<p>456 Bandra West, Mumbai</p>
<p>Phone: +91 98765 43211</p>
</div>
</div>
<div class="col-md-4">
<div class="branch-card text-center">
<i class="fas fa-building fa-3x text-warning mb-3"></i>
<h4>Bangalore Center</h4>
<p>789 Indiranagar, Bangalore</p>
<p>Phone: +91 98765 43212</p>
</div>
</div>
</div>
</div>
</section>
<!-- Gallery Section -->
<section id="gallery" class="py-5">
<div class="container">
<h2 class="section-title">Image Gallery</h2>
<div class="row">
<div class="col-md-4">
<div class="gallery-item">
<img src="7.jpg" alt="Gallery 1" class="img-fluid">
</div>
</div>
<div class="col-md-4">
<div class="gallery-item">
<img src="4.jpg" alt="Gallery 2" class="img-fluid">
</div>
</div>
<div class="col-md-4">
<div class="gallery-item">
<img src="5.jpg" alt="Gallery 3" class="img-fluid">
</div>
</div>
<div class="col-md-4">
<div class="gallery-item">
<img src="3.jpg" alt="Gallery 4" class="img-fluid">
</div>
</div>
<div class="col-md-4">
<div class="gallery-item">
<img src="2.jpg" alt="Gallery 5" class="img-fluid">
</div>
</div>
<div class="col-md-4">
<div class="gallery-item">
<img src="1.jpg" alt="Gallery 6" class="img-fluid">
</div>
</div>
</div>
</div>
</section>
<!-- Request a Call Back Section -->
<section id="contact" class="py-5">
<div class="container">
<h2 class="section-title">Request a Call Back</h2>
<div class="row justify-content-center">
<div class="col-md-8">
<!-- The form sends data to submit_call_request.php -->
<form class="contact-form" action="submit_call_request.php" method="POST">
<div class="mb-3">
<input type="text" name="name" class="form-control" placeholder="Your Name" required>
</div>
<div class="mb-3">
<input type="tel" name="phone" class="form-control" placeholder="Your Phone Number" required>
</div>
<button type="submit" class="btn btn-custom w-100">Submit Request</button>
</form>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer>
<div class="container">
<div class="row">
<div class="col-md-4">
<h5>All in One</h5>
<p>Empowering minds through excellence in education</p>
</div>
<div class="col-md-4">
<h5>Quick Links</h5>
<ul class="list-unstyled">
<li><a href="#about" class="text-gold">About Us</a></li>
<li><a href="#branches" class="text-gold">Branches</a></li>
<li><a href="#gallery" class="text-gold">Gallery</a></li>
<li><a href="#contact" class="text-gold">Contact</a></li>
</ul>
</div>
<div class="col-md-4 text-center">
<h5>Connect With Us</h5>
<div class="social-icons">
<a href="https://www.facebook.com/share/1JZmem4JEK/"><i class="fab fa-facebook"></i></a>
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fab fa-linkedin"></i></a>
</div>
</div>
</div>
<div class="text-center mt-4">
<p>© 2025 All in One. All rights reserved.</p>
</div>
</div>
</footer>
<!-- Admission Modal (Integrated Admission Form) -->
<div class="modal fade" id="admissionModal" tabindex="-1" aria-labelledby="admissionModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="admissionModalLabel">Admission Form 2025</h5>
<button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<!-- Admission form sends data to submit_admission.php -->
<form id="admissionForm" action="submit_admission.php" method="POST" enctype="multipart/form-data">
<div class="modal-body">
<div class="row g-3">
<div class="col-md-6">
<label class="form-label">Student Name</label>
<input type="text" name="name" class="form-control" placeholder="Enter your name" required>
</div>
<div class="col-md-6">
<label class="form-label">Father's Name</label>
<input type="text" name="father" class="form-control" placeholder="Enter father's name" required>
</div>
<div class="col-md-6">
<label class="form-label">Mother's Name</label>
<input type="text" name="mother" class="form-control" placeholder="Enter mother's name" required>
</div>
<div class="col-md-6">
<label class="form-label">Date of Birth</label>
<input type="date" name="dob" class="form-control" required>
</div>
<div class="col-12">
<label class="form-label">Address</label>
<textarea name="address" class="form-control" rows="3" placeholder="Enter your address" required></textarea>
</div>
<div class="col-md-6">
<label class="form-label">Phone Number</label>
<input type="tel" name="phone" class="form-control" placeholder="+91XXXXXXXXXX" required>
</div>
<div class="col-md-6">
<div class="form-check mt-4">
<input class="form-check-input" type="checkbox" id="sameWhatsApp" name="same_whatsapp">
<label class="form-check-label" for="sameWhatsApp">
Use phone number for WhatsApp
</label>
</div>
<div id="whatsappField" class="mt-2">
<label class="form-label">WhatsApp Number</label>
<input type="tel" name="whatsapp" class="form-control" placeholder="+91XXXXXXXXXX">
</div>
</div>
<div class="col-md-6">
<label class="form-label">Class</label>
<select name="class" class="form-select" required>
<option value="">Select Class</option>
<option value="1">Class 1</option>
<option value="2">Class 2</option>
<option value="3">Class 3</option>
<option value="4">Class 4</option>
<option value="5">Class 5</option>
<option value="6">Class 6</option>
<option value="7">Class 7</option>
<option value="8">Class 8</option>
<option value="9">Class 9</option>
<option value="10">Class 10</option>
<option value="11">Class 11</option>
<option value="12">Class 12</option>
</select>
</div>
<div class="col-md-6">
<label class="form-label">School Name</label>
<input type="text" name="school" class="form-control" placeholder="Enter your school name" required>
</div>
<div class="col-12">
<label class="form-label">Upload Picture (PNG, JPG - max 5MB)</label>
<input type="file" name="picture" class="form-control" accept="image/png, image/jpeg">
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="submit" class="btn btn-admission">Submit Application</button>
</div>
</form>
</div>
</div>
</div>
<!-- Bootstrap Bundle JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/js/bootstrap.bundle.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Toggle WhatsApp field visibility based on checkbox
const whatsappCheckbox = document.getElementById('sameWhatsApp');
const whatsappField = document.getElementById('whatsappField');
whatsappCheckbox.addEventListener('change', function() {
whatsappField.style.display = this.checked ? 'none' : 'block';
if (this.checked) {
document.querySelector('[name="whatsapp"]').value = '';
}
});
// Validate file size (max 5MB) for picture upload
document.getElementById('admissionForm').addEventListener('submit', function(e) {
const fileInput = document.querySelector('[name="picture"]');
if (fileInput && fileInput.files.length > 0) {
const file = fileInput.files[0];
if (file.size > 5 * 1024 * 1024) { // 5MB
alert("The picture size exceeds 5 MB. Please choose a smaller file.");
e.preventDefault();
}
}
});
});
</script>
</body>
</html>