-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.php
More file actions
963 lines (857 loc) · 28.6 KB
/
contact.php
File metadata and controls
963 lines (857 loc) · 28.6 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
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
<?php
session_start();
error_reporting(0);
include('../includes/dbconnection.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us | Student Management System</title>
<!-- Bootstrap 5 -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
<!-- Custom CSS -->
<style>
:root {
--primary-color: #2c3e50;
--secondary-color: #3498db;
--accent-color: #e74c3c;
--light-color: #ecf0f1;
--dark-color: #2c3e50;
--success-color: #2ecc71;
}
body {
font-family: 'Roboto', sans-serif;
color: #333;
line-height: 1.6;
background-color: #f8f9fa;
}
h1,
h2,
h3,
h4,
h5 {
font-family: 'Poppins', sans-serif;
font-weight: 600;
}
.page-header {
background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
color: white;
padding: 60px 0 40px;
margin-bottom: 50px;
}
.page-title {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 10px;
}
.breadcrumb {
background-color: transparent;
padding: 0;
margin-bottom: 0;
}
.breadcrumb-item a {
color: rgba(255, 255, 255, 0.8);
text-decoration: none;
}
.breadcrumb-item.active {
color: white;
}
.breadcrumb-item+.breadcrumb-item::before {
color: rgba(255, 255, 255, 0.8);
}
.contact-section {
padding: 60px 0;
}
.section-title {
color: var(--primary-color);
margin-bottom: 40px;
padding-bottom: 15px;
position: relative;
text-align: center;
}
.section-title:after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 60px;
height: 3px;
background-color: var(--secondary-color);
}
.contact-info-card {
background-color: white;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
padding: 40px 30px;
height: 100%;
transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 1px solid rgba(0, 0, 0, 0.05);
}
.contact-info-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}
.contact-icon {
width: 70px;
height: 70px;
background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 25px;
}
.contact-icon i {
font-size: 1.8rem;
color: white;
}
.contact-title {
color: var(--primary-color);
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 15px;
text-align: center;
}
.contact-details {
text-align: center;
color: #555;
font-size: 1.05rem;
line-height: 1.6;
}
.contact-form-container {
background-color: white;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
padding: 40px;
margin-top: 40px;
}
.form-title {
color: var(--primary-color);
margin-bottom: 30px;
font-weight: 600;
}
.form-control,
.form-select {
border: 1px solid #ddd;
border-radius: 8px;
padding: 12px 15px;
margin-bottom: 20px;
transition: all 0.3s ease;
}
.form-control:focus,
.form-select:focus {
border-color: var(--secondary-color);
box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.15);
}
.btn-submit {
background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
color: white;
border: none;
padding: 12px 35px;
border-radius: 8px;
font-weight: 500;
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
justify-content: center;
}
.btn-submit:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
color: white;
}
.map-container {
margin-top: 60px;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.contact-divider {
border-top: 2px solid #eee;
margin: 40px 0;
}
.contact-description {
text-align: center;
color: #666;
font-size: 1.1rem;
margin-bottom: 40px;
max-width: 700px;
margin-left: auto;
margin-right: auto;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.page-title {
font-size: 2rem;
}
.contact-info-card {
margin-bottom: 30px;
padding: 30px 20px;
}
.contact-form-container {
padding: 30px 20px;
}
}
/* Additional styles for header/footer */
.navbar {
padding: 15px 0;
transition: all 0.3s ease;
background-color: rgba(255, 255, 255, 0.95) !important;
backdrop-filter: blur(10px);
}
.navbar.scrolled {
padding: 10px 0;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.navbar-brand {
transition: all 0.3s ease;
}
.navbar-brand:hover {
transform: scale(1.05);
}
.logo-icon {
background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
width: 45px;
height: 45px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
}
.logo-icon i {
color: white !important;
}
.nav-link {
font-weight: 500;
color: #2c3e50 !important;
padding: 8px 15px !important;
border-radius: 8px;
transition: all 0.3s ease;
position: relative;
}
.nav-link:hover {
color: #3498db !important;
background-color: rgba(52, 152, 219, 0.1);
transform: translateY(-2px);
}
.nav-link.active {
color: #3498db !important;
font-weight: 600;
}
.active-indicator {
position: absolute;
bottom: -5px;
left: 50%;
transform: translateX(-50%);
width: 20px;
height: 3px;
background: linear-gradient(90deg, #3498db, #2c3e50);
border-radius: 2px;
}
.dropdown-menu {
border: none;
border-radius: 12px;
min-width: 250px;
padding: 10px 0;
}
.dropdown-item {
padding: 12px 20px;
border-radius: 8px;
margin: 2px 10px;
transition: all 0.3s ease;
}
.dropdown-item:hover {
background-color: rgba(52, 152, 219, 0.1);
transform: translateX(5px);
}
.user-profile {
padding: 8px 15px;
background-color: rgba(52, 152, 219, 0.1);
border-radius: 10px;
border: 1px solid rgba(52, 152, 219, 0.2);
}
.user-info {
line-height: 1.2;
}
.user-name {
color: #2c3e50;
}
.user-role {
font-size: 0.7rem;
padding: 3px 8px;
}
/* Footer styles */
.footer-section {
background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%) !important;
}
.footer-section h5 {
color: #fff;
font-weight: 600;
margin-bottom: 20px;
position: relative;
padding-bottom: 10px;
}
.footer-section h5::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 50px;
height: 2px;
background-color: #3498db;
}
.footer-section a {
transition: all 0.3s ease;
color: #ecf0f1;
}
.footer-section a:hover {
color: #3498db;
padding-left: 5px;
}
.social-icons a {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
}
.social-icons a:hover {
background-color: #3498db;
transform: translateY(-3px);
}
.contact-info i {
color: #3498db;
font-size: 1.2rem;
}
.back-to-top {
position: fixed;
bottom: 30px;
right: 30px;
width: 50px;
height: 50px;
border-radius: 50%;
display: none;
z-index: 1000;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
}
.back-to-top:hover {
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
</style>
</head>
<body>
<!-- Modern Header -->
<nav class="navbar navbar-expand-lg navbar-light bg-white shadow-sm fixed-top">
<div class="container">
<!-- Brand/Logo -->
<a class="navbar-brand d-flex align-items-center" href="index.php">
<div class="logo-icon me-2">
<i class="fas fa-graduation-cap fa-2x text-primary"></i>
</div>
<div class="logo-text">
<span class="fw-bold text-primary fs-4">Student</span>
<span class="fw-bold text-dark fs-4">MS</span>
</div>
</a>
<!-- Mobile Toggle Button -->
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Navigation Menu -->
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto align-items-center">
<!-- Home -->
<li class="nav-item mx-2">
<a class="nav-link position-relative" href="index.php">
<i class="fas fa-home me-1"></i>Home
</a>
</li>
<!-- About -->
<li class="nav-item mx-2">
<a class="nav-link position-relative" href="about.php">
<i class="fas fa-info-circle me-1"></i>About
</a>
</li>
<!-- Notices -->
<li class="nav-item mx-2">
<a class="nav-link position-relative" href="all-notices.php">
<i class="fas fa-bullhorn me-1"></i>Notices
</a>
</li>
<!-- Contact -->
<li class="nav-item mx-2">
<a class="nav-link position-relative active" href="contact.php">
<i class="fas fa-envelope me-1"></i>Contact
<span class="active-indicator"></span>
</a>
</li>
<!-- Login Dropdown -->
<li class="nav-item dropdown mx-2">
<a class="nav-link dropdown-toggle d-flex align-items-center" href="#" id="loginDropdown"
role="button" data-bs-toggle="dropdown" aria-expanded="false">
<i class="fas fa-sign-in-alt me-1"></i>Login
</a>
<ul class="dropdown-menu dropdown-menu-end shadow" aria-labelledby="loginDropdown">
<li>
<a class="dropdown-item d-flex align-items-center" href="admin/login.php">
<i class="fas fa-user-shield text-primary me-2"></i>
<div>
<div class="fw-bold">Admin Login</div>
<small class="text-muted">System administrators</small>
</div>
</a>
</li>
<li>
<hr class="dropdown-divider">
</li>
<li>
<a class="dropdown-item d-flex align-items-center" href="user/login.php">
<i class="fas fa-user-graduate text-success me-2"></i>
<div>
<div class="fw-bold">Student Login</div>
<small class="text-muted">Registered students</small>
</div>
</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<!-- Spacer to prevent content from being hidden under fixed navbar -->
<div style="height: 80px;"></div>
<!-- Page Header -->
<div class="page-header">
<div class="container">
<h1 class="page-title">Contact Us</h1>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item active" aria-current="page">Contact</li>
</ol>
</nav>
</div>
</div>
<!-- Contact Section -->
<section class="contact-section">
<div class="container">
<h2 class="section-title">Get In Touch</h2>
<p class="contact-description">
Have questions or need assistance? We're here to help! Reach out to us through any of the following methods
and we'll get back to you as soon as possible.
</p>
<?php
$sql = "SELECT * FROM tblpage WHERE PageType='contactus'";
$query = $dbh->prepare($sql);
$query->execute();
$results = $query->fetchAll(PDO::FETCH_OBJ);
if ($query->rowCount() > 0) {
foreach ($results as $row) {
?>
<div class="row">
<!-- Address Card -->
<div class="col-lg-4 col-md-6 mb-4">
<div class="contact-info-card">
<div class="contact-icon">
<i class="fas fa-map-marker-alt"></i>
</div>
<h3 class="contact-title">Our Address</h3>
<div class="contact-details">
<p><?php echo htmlentities($row->PageDescription ?? '890, Sector 62, Gyan Sarovar, GAIL Noida(Delhi/NCR)'); ?></p>
</div>
</div>
</div>
<!-- Phone Card -->
<div class="col-lg-4 col-md-6 mb-4">
<div class="contact-info-card">
<div class="contact-icon">
<i class="fas fa-phone"></i>
</div>
<h3 class="contact-title">Phone Number</h3>
<div class="contact-details">
<p><?php echo htmlentities($row->MobileNumber ?? '+6396 1983 9317'); ?></p>
<p class="small text-muted mt-2">Available: Mon-Fri, 9AM-6PM</p>
</div>
</div>
</div>
<!-- Email Card -->
<div class="col-lg-4 col-md-6 mb-4">
<div class="contact-info-card">
<div class="contact-icon">
<i class="fas fa-envelope"></i>
</div>
<h3 class="contact-title">Email Address</h3>
<div class="contact-details">
<p><?php echo htmlentities($row->Email ?? 'bansimplified567@gmail.com'); ?></p>
<p class="small text-muted mt-2">We respond within 24 hours</p>
</div>
</div>
</div>
</div>
<?php
}
} else {
?>
<!-- Default contact info if not in database -->
<div class="row">
<div class="col-lg-4 col-md-6 mb-4">
<div class="contact-info-card">
<div class="contact-icon">
<i class="fas fa-map-marker-alt"></i>
</div>
<h3 class="contact-title">Our Address</h3>
<div class="contact-details">
<p>890, Sector 62, Gyan Sarovar, GAIL Noida(Delhi/NCR)</p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 mb-4">
<div class="contact-info-card">
<div class="contact-icon">
<i class="fas fa-phone"></i>
</div>
<h3 class="contact-title">Phone Number</h3>
<div class="contact-details">
<p>+6396 1983 9317</p>
<p class="small text-muted mt-2">Available: Mon-Fri, 9AM-6PM</p>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6 mb-4">
<div class="contact-info-card">
<div class="contact-icon">
<i class="fas fa-envelope"></i>
</div>
<h3 class="contact-title">Email Address</h3>
<div class="contact-details">
<p>bansimplified567@gmail.com</p>
<p class="small text-muted mt-2">We respond within 24 hours</p>
</div>
</div>
</div>
</div>
<?php } ?>
<!-- Contact Form -->
<div class="contact-form-container">
<h3 class="form-title">Send us a Message</h3>
<form id="contactForm">
<div class="row">
<div class="col-md-6">
<div class="mb-3">
<label for="name" class="form-label">Full Name *</label>
<input type="text" class="form-control" id="name" name="name" required>
</div>
</div>
<div class="col-md-6">
<div class="mb-3">
<label for="email" class="form-label">Email Address *</label>
<input type="email" class="form-control" id="email" name="email" required>
</div>
</div>
</div>
<div class="mb-3">
<label for="subject" class="form-label">Subject *</label>
<input type="text" class="form-control" id="subject" name="subject" required>
</div>
<div class="mb-3">
<label for="message" class="form-label">Message *</label>
<textarea class="form-control" id="message" name="message" rows="5" required></textarea>
</div>
<div class="d-flex justify-content-between align-items-center">
<button type="submit" class="btn-submit">
<i class="fas fa-paper-plane me-2"></i>Send Message
</button>
<small class="text-muted">* Required fields</small>
</div>
</form>
</div>
<!-- Map (Placeholder) -->
<div class="map-container">
<div style="background-color: #e9ecef; height: 300px; display: flex; align-items: center; justify-content: center;">
<div class="text-center">
<i class="fas fa-map-marked-alt fa-3x text-muted mb-3"></i>
<h4 class="text-muted">Location Map</h4>
<p class="text-muted small">Interactive map would be displayed here</p>
</div>
</div>
</div>
</div>
</section>
<!-- Modern Footer -->
<footer class="footer-section bg-dark text-white pt-5 pb-4">
<div class="container">
<div class="row">
<!-- Quick Links -->
<div class="col-lg-3 col-md-6 mb-4 mb-md-0">
<h5 class="text-uppercase mb-4">
<i class="fas fa-graduation-cap me-2"></i>Student Management
</h5>
<p class="text-light">A comprehensive platform for managing student information, academic records, and institutional communication.</p>
<div class="social-icons mt-4">
<a href="#" class="text-white me-3" title="Facebook">
<i class="fab fa-facebook-f fa-lg"></i>
</a>
<a href="#" class="text-white me-3" title="Twitter">
<i class="fab fa-twitter fa-lg"></i>
</a>
<a href="#" class="text-white me-3" title="Instagram">
<i class="fab fa-instagram fa-lg"></i>
</a>
<a href="#" class="text-white" title="LinkedIn">
<i class="fab fa-linkedin-in fa-lg"></i>
</a>
</div>
</div>
<!-- Quick Navigation -->
<div class="col-lg-3 col-md-6 mb-4 mb-md-0">
<h5 class="text-uppercase mb-4">Quick Links</h5>
<ul class="list-unstyled">
<li class="mb-2">
<a href="index.php" class="text-light text-decoration-none">
<i class="fas fa-home me-2"></i>Home
</a>
</li>
<li class="mb-2">
<a href="about.php" class="text-light text-decoration-none">
<i class="fas fa-info-circle me-2"></i>About Us
</a>
</li>
<li class="mb-2">
<a href="all-notices.php" class="text-light text-decoration-none">
<i class="fas fa-bullhorn me-2"></i>Public Notices
</a>
</li>
<li class="mb-2">
<a href="contact.php" class="text-light text-decoration-none">
<i class="fas fa-envelope me-2"></i>Contact
</a>
</li>
</ul>
</div>
<!-- Access Links -->
<div class="col-lg-3 col-md-6 mb-4 mb-md-0">
<h5 class="text-uppercase mb-4">Access</h5>
<ul class="list-unstyled">
<li class="mb-2">
<a href="admin/login.php" class="text-light text-decoration-none">
<i class="fas fa-user-shield me-2"></i>Admin Login
</a>
</li>
<li class="mb-2">
<a href="user/login.php" class="text-light text-decoration-none">
<i class="fas fa-user-graduate me-2"></i>Student Login
</a>
</li>
<li class="mb-2">
<a href="privacy-policy.php" class="text-light text-decoration-none">
<i class="fas fa-shield-alt me-2"></i>Privacy Policy
</a>
</li>
<li class="mb-2">
<a href="terms.php" class="text-light text-decoration-none">
<i class="fas fa-file-contract me-2"></i>Terms of Use
</a>
</li>
</ul>
</div>
<!-- Contact Information -->
<div class="col-lg-3 col-md-6 mb-4 mb-md-0">
<h5 class="text-uppercase mb-4">Contact Us</h5>
<div class="contact-info">
<?php
if ($query->rowCount() > 0) {
foreach ($results as $row) {
?>
<div class="mb-3">
<div class="d-flex">
<i class="fas fa-map-marker-alt me-3 mt-1"></i>
<div>
<h6 class="mb-1">Address</h6>
<p class="text-light mb-0 small">
<?php echo htmlentities($row->PageDescription ?? '890, Sector 62, Gyan Sarovar, GAIL Noida(Delhi/NCR)'); ?>
</p>
</div>
</div>
</div>
<div class="mb-3">
<div class="d-flex">
<i class="fas fa-phone me-3 mt-1"></i>
<div>
<h6 class="mb-1">Phone</h6>
<p class="text-light mb-0 small">
<?php echo htmlentities($row->MobileNumber ?? '+6396 1983 9317'); ?>
</p>
</div>
</div>
</div>
<div class="mb-3">
<div class="d-flex">
<i class="fas fa-envelope me-3 mt-1"></i>
<div>
<h6 class="mb-1">Email</h6>
<p class="text-light mb-0 small">
<?php echo htmlentities($row->Email ?? 'bansimplified567@gmail.com'); ?>
</p>
</div>
</div>
</div>
<?php
}
} else {
?>
<!-- Default contact info if not in database -->
<div class="mb-3">
<div class="d-flex">
<i class="fas fa-map-marker-alt me-3 mt-1"></i>
<div>
<h6 class="mb-1">Address</h6>
<p class="text-light mb-0 small">
890, Sector 62, Gyan Sarovar, GAIL Noida(Delhi/NCR)
</p>
</div>
</div>
</div>
<div class="mb-3">
<div class="d-flex">
<i class="fas fa-phone me-3 mt-1"></i>
<div>
<h6 class="mb-1">Phone</h6>
<p class="text-light mb-0 small">
+6396 1983 9317
</p>
</div>
</div>
</div>
<div class="mb-3">
<div class="d-flex">
<i class="fas fa-envelope me-3 mt-1"></i>
<div>
<h6 class="mb-1">Email</h6>
<p class="text-light mb-0 small">
bansimplified567@gmail.com
</p>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
<!-- Divider -->
<hr class="bg-light my-4">
<!-- Copyright -->
<div class="row align-items-center">
<div class="col-md-6 text-center text-md-start">
<p class="mb-0">
© <?php echo date('Y'); ?> Student Management System. All rights reserved.
</p>
</div>
<div class="col-md-6 text-center text-md-end">
<p class="mb-0">
<a href="privacy-policy.php" class="text-light text-decoration-none me-3">Privacy Policy</a>
<a href="terms.php" class="text-light text-decoration-none me-3">Terms of Service</a>
<a href="sitemap.php" class="text-light text-decoration-none">Sitemap</a>
</p>
</div>
</div>
</div>
<!-- Back to Top Button -->
<button onclick="scrollToTop()" id="backToTop" class="btn btn-primary back-to-top" title="Go to top">
<i class="fas fa-chevron-up"></i>
</button>
</footer>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
<!-- Custom JS -->
<script>
// Navbar scroll effect
window.addEventListener('scroll', function() {
const navbar = document.querySelector('.navbar');
if (window.scrollY > 50) {
navbar.classList.add('scrolled');
} else {
navbar.classList.remove('scrolled');
}
});
// Back to Top Button Functionality
const backToTopButton = document.getElementById('backToTop');
window.addEventListener('scroll', function() {
if (window.pageYOffset > 300) {
backToTopButton.style.display = 'block';
} else {
backToTopButton.style.display = 'none';
}
});
function scrollToTop() {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
}
// Initialize tooltips for social icons
document.addEventListener('DOMContentLoaded', function() {
const socialIcons = document.querySelectorAll('.social-icons a');
socialIcons.forEach(icon => {
icon.setAttribute('data-bs-toggle', 'tooltip');
icon.setAttribute('data-bs-placement', 'top');
});
// Initialize Bootstrap tooltips
const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
const tooltipList = tooltipTriggerList.map(function(tooltipTriggerEl) {
return new bootstrap.Tooltip(tooltipTriggerEl);
});
// Close mobile menu when clicking a link
const navLinks = document.querySelectorAll('.nav-link');
const navbarCollapse = document.querySelector('.navbar-collapse');
navLinks.forEach(link => {
link.addEventListener('click', function() {
if (window.innerWidth < 992) {
const bsCollapse = new bootstrap.Collapse(navbarCollapse);
bsCollapse.hide();
}
});
});
// Add animation to dropdown items
const dropdownItems = document.querySelectorAll('.dropdown-item');
dropdownItems.forEach((item, index) => {
item.style.animationDelay = `${index * 0.1}s`;
});
// Contact form submission
const contactForm = document.getElementById('contactForm');
if (contactForm) {
contactForm.addEventListener('submit', function(e) {
e.preventDefault();
// Get form data
const formData = new FormData(contactForm);
const name = formData.get('name');
const email = formData.get('email');
const subject = formData.get('subject');
const message = formData.get('message');
// Simple validation
if (name && email && subject && message) {
// Show success message (in a real app, you would send this to a server)
alert('Thank you for your message! We will get back to you soon.');
contactForm.reset();
} else {
alert('Please fill in all required fields.');
}
});
}
});
</script>
</body>
</html>