-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
683 lines (594 loc) · 30.6 KB
/
index.php
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>LAcademy</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://fonts.googleapis.com/css?family=Muli:300,400,700,900" rel="stylesheet">
<link rel="stylesheet" href="fonts/icomoon/style.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/jquery-ui.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<link rel="stylesheet" href="css/jquery.fancybox.min.css">
<link rel="stylesheet" href="css/bootstrap-datepicker.css">
<link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">
<link rel="stylesheet" href="css/aos.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body data-spy="scroll" data-target=".site-navbar-target" data-offset="300">
<div class="site-wrap">
<div class="site-mobile-menu site-navbar-target">
<div class="site-mobile-menu-header">
<div class="site-mobile-menu-close mt-3">
<span class="icon-close2 js-menu-toggle"></span>
</div>
</div>
<div class="site-mobile-menu-body"></div>
</div>
<header class="site-navbar py-4 js-sticky-header site-navbar-target" role="banner">
<div class="container-fluid">
<div class="d-flex align-items-center">
<div class="site-logo mr-auto w-25"><a href="index.php">LAcademy</a></div>
<div class="mx-auto text-center">
<nav class="site-navigation position-relative text-right" role="navigation">
<ul class="site-menu main-menu js-clone-nav mx-auto d-none d-lg-block m-0 p-0">
<li><a href="#home-section" class="nav-link">Home</a></li>
<li><a href="#courses-section" class="nav-link">Courses</a></li>
<li><a href="#programs-section" class="nav-link">Programs</a></li>
<li><a href="#teachers-section" class="nav-link">Teachers</a></li>
</ul>
</nav>
</div>
<div class="ml-auto w-25">
<nav class="site-navigation position-relative text-right" role="navigation">
<ul class="site-menu main-menu site-menu-dark js-clone-nav mr-auto d-none d-lg-block m-0 p-0">
<li class="cta"><a href="#contact-section" class="nav-link"><span>Contact Us</span></a></li>
</ul>
</nav>
<a href="#" class="d-inline-block d-lg-none site-menu-toggle js-menu-toggle text-black float-right"><span class="icon-menu h3"></span></a>
</div>
</div>
</div>
</header>
<div class="intro-section" id="home-section">
<div class="slide-1" style="background-image: url('images/hero_1.jpg');" data-stellar-background-ratio="0.5">
<div class="container">
<div class="row align-items-center">
<div class="col-12">
<div class="sign">
<!--sign-->
<div class="container <?php echo (isset($_GET['errorp']) || isset($_GET['signup']))? 'right-panel-active':''; ?>" id="container">
<div class="form-container sign-up-container">
<form action="includes/signup1.inc.php" method="post" id="signup_form">
<h1 class="title">Sign Up</h1>
<br>
<?php
if (isset($_GET['errorp'])){
if ($_GET['errorp']=="emptyfields"){
echo '<div style="color:red;">Fill in all fields !</div>';
}else if ($_GET['errorp']=="invalidmailuid"){
echo '<div style="color:red;">Invalid username and e-mail !</div>';
}else if ($_GET['errorp']=="invaliduid"){
echo '<div style="color:red;">Invalid username !</div>';
}else if ($_GET['errorp']=="invalidmail"){
echo '<div style="color:red;">Invalid e-mail !</div>';
}else if ($_GET['errorp']=="passwordcheck"){
echo '<div style="color:red;">Passwords don\'t match!</div>';
}else if ($_GET['errorp']=="usertaken"){
echo '<div style="color:red;">Username is already taken!</div>';
}
}elseif (isset($_GET['signup']) ) {
if ($_GET['signup']=="success")
echo '<div style="color:green;">Signup Successful ! Feel free to login !</div>';
}
?>
<div id="error_signup_name"></div>
<input type="text" id="name_signup" name="uid" placeholder="Name" value="<?php if (isset($_GET['errorp'])){
if ($_GET['errorp']=='invalidmail' || $_GET['errorp']=='passwordcheck' || $_GET['errorp']=='emptyfields'){
echo isset($_GET['uid']) ? $_GET['uid']:'';
}else {
echo '';
}
} ?>" />
<div id="error_signup_email"></div>
<input type="email" id="mail_signup" name="mail" placeholder="E-mail"
value="<?php if (isset($_GET['errorp'])){
if ($_GET['errorp']=='invaliduid' || $_GET['errorp']=='passwordcheck' || $_GET['errorp']=='emptyfields' || $_GET['errorp']=='usertaken'){
echo isset($_GET['mail']) ? $_GET['mail']:'';
}else {
echo '';
}
} ?>" />
<div id="error_signup_pwd1"></div>
<input type="password" id="pwd1_signup" name="pwd" placeholder="Password" />
<div id="error_signup_pwd2"></div>
<input type="password" id="pwd2_signup" name="pwd-repeat" placeholder="Repeat Password" />
<button>Sign Up</button>
</form>
</div>
<div class="form-container sign-in-container">
<form action="includes/login.inc.php" method="post" id="signin_form">
<h1 class="title">Sign in</h1>
<br>
<?php
if (isset($_GET['error'])){
if ($_GET['error']=="emptyfields"){
echo '<div style="color:red;">Fill in all fields !</div>';
}else if ($_GET['error']=="wrongpwd"){
echo '<div style="color:red;">Wrong password!</div>';
}else if ($_GET['error']=="nomatch"){
echo '<div style="color:red;">There\'s no match for your email !</div>';
}elseif (isset($_GET['login']) ) {
if ($_GET['signup']=="success")
echo '<div style="color:green;">Sign in Successful !</div>';
}
}?>
<div id="error_signin_mail"></div>
<input type="email" id="mailsignin" placeholder="Email" name="mailuid" placeholder="Username/E-mail"
value="<?php if (isset($_GET['error'])){
if ($_GET['error']=="wrongpwd" || $_GET['error']=="emptyfields"){
echo isset($_GET['mail'])?$_GET['mail']:'';
}else {
echo '';
}
} ?>" />
<div id="error_signin_pwd"></div>
<input type="password" id="pwdsignin" name="pwd" placeholder="Password" />
<a href="mail_input.php">Forgot your password?</a>
<button>Sign In</button>
</form>
</div>
<div class="overlay-container">
<div class="overlay">
<div id="overlay-left" class="overlay-panel overlay-left">
<h1>Welcome Back!</h1>
<p>To keep connected with us please login with your personal info</p>
<button class="ghost" id="signIn">Sign In</button>
</div>
<div class="overlay-panel overlay-right">
<h1>Hello, Learner!</h1>
<p>Enter your personal details and start journey with us</p>
<button class="ghost" id="signUp">Sign Up</button>
</div>
</div>
</div>
</div>
</div>
<!--end-->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="site-section courses-title" id="courses-section">
<div class="container">
<div class="row mb-5 justify-content-center">
<div class="col-lg-7 text-center" data-aos="fade-up" data-aos-delay="">
<h2 class="section-title">Courses</h2>
</div>
</div>
</div>
</div>
<div class="site-section courses-entry-wrap" data-aos="fade-up" data-aos-delay="100">
<div class="container">
<div class="row">
<div class="owl-carousel col-12 nonloop-block-14">
<div class="course bg-white h-100 align-self-stretch">
<figure class="m-0">
<img src="images/img1.jpg" alt="Image" class="img-fluid">
</figure>
<div class="course-inner-text py-4 px-4">
<span class="course-price">$0</span>
<div class="meta"><span class="icon-clock-o"></span>4 Lessons / 3 week</div>
<h3><a href="#">English</a></h3>
<p>Learn English in order to pass IELTS exam. </p>
</div>
<div class="d-flex border-top stats">
<div class="py-3 px-4"><span class="icon-users"></span> 2,193 students</div>
<div class="py-3 px-4 w-25 ml-auto border-left"><span class="icon-chat"></span> 2</div>
</div>
</div>
<div class="course bg-white h-100 align-self-stretch">
<figure class="m-0">
<img src="images/img2.jpg" alt="Image" class="img-fluid">
</figure>
<div class="course-inner-text py-4 px-4">
<span class="course-price">$0</span>
<div class="meta"><span class="icon-clock-o"></span>20 Lessons / 4 week</div>
<h3><a href="#">Introduction to Chemical Engineering</a></h3>
<p>Discover the world of chemical engineering </p>
</div>
<div class="d-flex border-top stats">
<div class="py-3 px-4"><span class="icon-users"></span> 2,100 students</div>
<div class="py-3 px-4 w-25 ml-auto border-left"><span class="icon-chat"></span> 9</div>
</div>
</div>
<div class="course bg-white h-100 align-self-stretch">
<figure class="m-0">
<img src="images/img4.jpg" alt="Image" class="img-fluid">
</figure>
<div class="course-inner-text py-4 px-4">
<span class="course-price">$0</span>
<div class="meta"><span class="icon-clock-o"></span>4 Lessons / 12 week</div>
<h3><a href="#">Arabic</a></h3>
<p>Learn the basics of the arabic language . </p>
</div>
<div class="d-flex border-top stats">
<div class="py-3 px-4"><span class="icon-users"></span> 3,193 students</div>
<div class="py-3 px-4 w-25 ml-auto border-left"><span class="icon-chat"></span> 2</div>
</div>
</div>
<div class="course bg-white h-100 align-self-stretch">
<figure class="m-0">
<img src="images/img_4.jpg" alt="Image" class="img-fluid">
</figure>
<div class="course-inner-text py-4 px-4">
<span class="course-price">$0</span>
<div class="meta"><span class="icon-clock-o"></span>3 Lessons / 9 week</div>
<h3><a href="#">C++</a></h3>
<p>Learn the most famous programming language. </p>
</div>
<div class="d-flex border-top stats">
<div class="py-3 px-4"><span class="icon-users"></span> 1,123 students</div>
<div class="py-3 px-4 w-25 ml-auto border-left"><span class="icon-chat"></span> 8</div>
</div>
</div>
<div class="course bg-white h-100 align-self-stretch">
<figure class="m-0">
<img src="images/img_5.jpg" alt="Image" class="img-fluid">
</figure>
<div class="course-inner-text py-4 px-4">
<span class="course-price">$0</span>
<div class="meta"><span class="icon-clock-o"></span>2 Lessons / 5 week</div>
<h3><a href="#">JAVA</a></h3>
<p>java is a must learn versatile language. </p>
</div>
<div class="d-flex border-top stats">
<div class="py-3 px-4"><span class="icon-users"></span> 1,523 students</div>
<div class="py-3 px-4 w-25 ml-auto border-left"><span class="icon-chat"></span> 6</div>
</div>
</div>
<div class="course bg-white h-100 align-self-stretch">
<figure class="m-0">
<img src="images/img_6.jpg" alt="Image" class="img-fluid">
</figure>
<div class="course-inner-text py-4 px-4">
<span class="course-price">$0</span>
<div class="meta"><span class="icon-clock-o"></span>5 Lessons / 7 week</div>
<h3><a href="#">Python</a></h3>
<p>Begin your journey in the world of AI. </p>
</div>
<div class="d-flex border-top stats">
<div class="py-3 px-4"><span class="icon-users"></span> 2,453 students</div>
<div class="py-3 px-4 w-25 ml-auto border-left"><span class="icon-chat"></span> 5</div>
</div>
</div>
</div>
</div>
<div class="row justify-content-center">
<div class="col-7 text-center">
<button class="customPrevBtn btn btn-primary m-1">Prev</button>
<button class="customNextBtn btn btn-primary m-1">Next</button>
</div>
</div>
</div>
</div>
<div class="site-section" id="programs-section">
<div class="container">
<div class="row mb-5 justify-content-center">
<div class="col-lg-7 text-center" data-aos="fade-up" data-aos-delay="">
<h2 class="section-title">Our Programs</h2>
<p>We aim to make studying SIMPLE, EASY and ACCESSIBLE to EVERYONE thus we collected the BEST COURSES in the world in one place.</p>
</div>
</div>
<div class="row mb-5 align-items-center">
<div class="col-lg-7 mb-5" data-aos="fade-up" data-aos-delay="100">
<img src="images/undraw_youtube_tutorial.svg" alt="Image" class="img-fluid">
</div>
<div class="col-lg-4 ml-auto" data-aos="fade-up" data-aos-delay="200">
<h2 class="text-black mb-4">We Are Excellent In Education</h2>
<p class="mb-4">Education is an art and we are the artists.</p>
<div class="d-flex align-items-center custom-icon-wrap mb-3">
<span class="custom-icon-inner mr-3"><span class="icon icon-graduation-cap"></span></span>
<div><h3 class="m-0">2,931 Yearly Graduates</h3></div>
</div>
<div class="d-flex align-items-center custom-icon-wrap">
<span class="custom-icon-inner mr-3"><span class="icon icon-university"></span></span>
<div><h3 class="m-0">50 Universities Worldwide</h3></div>
</div>
</div>
</div>
<div class="row mb-5 align-items-center">
<div class="col-lg-7 mb-5 order-1 order-lg-2" data-aos="fade-up" data-aos-delay="100">
<img src="images/undraw_teaching.svg" alt="Image" class="img-fluid">
</div>
<div class="col-lg-4 mr-auto order-2 order-lg-1" data-aos="fade-up" data-aos-delay="200">
<h2 class="text-black mb-4">Strive for Excellent</h2>
<p class="mb-4">our goal is your success.</p>
<div class="d-flex align-items-center custom-icon-wrap mb-3">
<span class="custom-icon-inner mr-3"><span class="icon icon-graduation-cap"></span></span>
<div><h3 class="m-0">2,931 Yearly Graduates</h3></div>
</div>
<div class="d-flex align-items-center custom-icon-wrap">
<span class="custom-icon-inner mr-3"><span class="icon icon-university"></span></span>
<div><h3 class="m-0">50 Universities Worldwide</h3></div>
</div>
</div>
</div>
<div class="row mb-5 align-items-center">
<div class="col-lg-7 mb-5" data-aos="fade-up" data-aos-delay="100">
<img src="images/undraw_teacher.svg" alt="Image" class="img-fluid">
</div>
<div class="col-lg-4 ml-auto" data-aos="fade-up" data-aos-delay="200">
<h2 class="text-black mb-4">Education is life</h2>
<p class="mb-4">Beginning of a never ending journey of learning.</p>
<div class="d-flex align-items-center custom-icon-wrap mb-3">
<span class="custom-icon-inner mr-3"><span class="icon icon-graduation-cap"></span></span>
<div><h3 class="m-0">2,931 Yearly Graduates</h3></div>
</div>
<div class="d-flex align-items-center custom-icon-wrap">
<span class="custom-icon-inner mr-3"><span class="icon icon-university"></span></span>
<div><h3 class="m-0">50 Universities Worldwide</h3></div>
</div>
</div>
</div>
</div>
</div>
<div class="site-section" id="teachers-section">
<div class="container">
<div class="row mb-5 justify-content-center">
<div class="col-lg-7 mb-5 text-center" data-aos="fade-up" data-aos-delay="">
<h2 class="section-title">Our Teachers</h2>
<p class="mb-5">The best we promise the best we are !</p>
</div>
</div>
<div class="row">
<div class="col-md-6 col-lg-4 mb-4" data-aos="fade-up" data-aos-delay="100">
<div class="teacher text-center">
<img src="images/person_1.jpg" alt="Image" class="img-fluid w-50 rounded-circle mx-auto mb-4">
<div class="py-2">
<h3 class="text-black">Aouini Oussama</h3>
<p class="position">WEB Teacher</p>
<p>Made over 100 websites with years of experience, taught over 500 students.</p>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4 mb-4" data-aos="fade-up" data-aos-delay="200">
<div class="teacher text-center">
<img src="images/person_2.jpg" alt="Image" class="img-fluid w-50 rounded-circle mx-auto mb-4">
<div class="py-2">
<h3 class="text-black">Abidi Nidhal</h3>
<p class="position">AI Teacher</p>
<p>Over 20 years of experience Worked at NASA and done so many projects .</p>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4 mb-4" data-aos="fade-up" data-aos-delay="300">
<div class="teacher text-center">
<img src="images/person_3.jpg" alt="Image" class="img-fluid w-50 rounded-circle mx-auto mb-4">
<div class="py-2">
<h3 class="text-black">Zemmali Mohamed</h3>
<p class="position">IOT Teacher</p>
<p>Leading expert in the domain of IOT, taught many students over the years.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="site-section bg-image overlay" style="background-image: url('images/hero_1.jpg');">
<div class="container">
<div class="row justify-content-center align-items-center">
<div class="col-md-8 text-center testimony">
<img src="images/person_4.jpg" alt="Image" class="img-fluid w-25 mb-4 rounded-circle">
<h3 class="mb-4">Najem Märzouky</h3>
<blockquote>
<p>“ I was struggling with my studies but it all changed when I learned about LAcademy, I'm now a senior software engineer making a 6 figure salary per year.This website is a real game changer. ”</p>
</blockquote>
</div>
</div>
</div>
</div>
<div class="site-section pb-0">
<div class="future-blobs">
<div class="blob_2">
<img src="images/blob_2.svg" alt="Image">
</div>
<div class="blob_1">
<img src="images/blob_1.svg" alt="Image">
</div>
</div>
<div class="container">
<div class="row mb-5 justify-content-center" data-aos="fade-up" data-aos-delay="">
<div class="col-lg-7 text-center">
<h2 class="section-title">Why Choose Us</h2>
</div>
</div>
<div class="row">
<div class="col-lg-4 ml-auto align-self-start" data-aos="fade-up" data-aos-delay="100">
<div class="p-4 rounded bg-white why-choose-us-box">
<div class="d-flex align-items-center custom-icon-wrap custom-icon-light mb-3">
<div class="mr-3"><span class="custom-icon-inner"><span class="icon icon-graduation-cap"></span></span></div>
<div><h3 class="m-0">2,931 Yearly Graduates</h3></div>
</div>
<div class="d-flex align-items-center custom-icon-wrap custom-icon-light mb-3">
<div class="mr-3"><span class="custom-icon-inner"><span class="icon icon-university"></span></span></div>
<div><h3 class="m-0">50 Universities Worldwide</h3></div>
</div>
<div class="d-flex align-items-center custom-icon-wrap custom-icon-light mb-3">
<div class="mr-3"><span class="custom-icon-inner"><span class="icon icon-graduation-cap"></span></span></div>
<div><h3 class="m-0">Top Professionals in The World</h3></div>
</div>
<div class="d-flex align-items-center custom-icon-wrap custom-icon-light mb-3">
<div class="mr-3"><span class="custom-icon-inner"><span class="icon icon-university"></span></span></div>
<div><h3 class="m-0">Expand Your Knowledge</h3></div>
</div>
<div class="d-flex align-items-center custom-icon-wrap custom-icon-light mb-3">
<div class="mr-3"><span class="custom-icon-inner"><span class="icon icon-graduation-cap"></span></span></div>
<div><h3 class="m-0">Best Online Teaching Assistant Courses</h3></div>
</div>
<div class="d-flex align-items-center custom-icon-wrap custom-icon-light">
<div class="mr-3"><span class="custom-icon-inner"><span class="icon icon-university"></span></span></div>
<div><h3 class="m-0">Best Teachers</h3></div>
</div>
</div>
</div>
<div class="col-lg-7 align-self-end" data-aos="fade-left" data-aos-delay="200">
<img src="images/person_transparent.png" alt="Image" class="img-fluid">
</div>
</div>
</div>
</div>
<div class="site-section bg-light" id="contact-section">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-7">
<h2 class="section-title mb-3">Message Us</h2>
<p class="mb-5">We are more than happy to receive your suggestions.</p>
<!-- Beginning of the php for the contact form -->
<?php
// Message Vars
$msg = '';
$msgClass = '';
// Check For Submit
if(filter_has_var(INPUT_POST, 'submit')){
// Get Form Data
$name = htmlspecialchars($_POST['name']);
$email = htmlspecialchars($_POST['email']);
$message = htmlspecialchars($_POST['message']);
$subject = htmlspecialchars($_POST['subject']);
// Check Required Fields
if(!empty($email) && !empty($name) && !empty($message) && !empty($subject)){
// Passed
// Check Email
if(filter_var($email, FILTER_VALIDATE_EMAIL) === false){
// Failed
$msg = 'Please use a valid email';
$msgClass = 'alert-danger';
} else {
// Passed
$toEmail = '[email protected]';
$body = $subject.'<h4>Name</h4><p>'.$name.'</p>
<h4>Email</h4><p>'.$email.'</p>
<h4>Message</h4><p>'.$message.'</p>';
// Email Headers
$headers = "MIME-Version: 1.0" ."\r\n";
$headers .="Content-Type:text/html;charset=UTF-8" . "\r\n";
// Additional Headers
$headers .= "From: " .$name. "<".$email.">". "\r\n";
if(mail($toEmail, $subject, $body, $headers)){
// Email Sent
$msg = 'Your email has been sent';
$msgClass = 'alert-success';
} else {
// Failed
$msg = 'Your email was not sent';
$msgClass = 'alert-danger';
}
}
} else {
// Failed
$msg = 'Please fill in all fields';
$msgClass = 'alert-danger';
}
}
?>
<?php if($msg != ''): ?>
<div class="alert <?php echo $msgClass; ?>"><?php echo $msg; ?></div>
<?php endif; ?>
<!-- End of the php for the contact form -->
<form method="post" action="index.php#contact-section" data-aos="fade" id="contact_form">
<div class="form-group row">
<div class="col-md-12">
<div id="error_contact_fullname"></div>
<input type="text" name="name" id="contact_fullname" class="form-control" placeholder="Full name" value="<?php echo isset($_POST['name']) ? $name : ''; ?>">
</div>
</div>
<div class="form-group row">
<div class="col-md-12">
<div id="error_contact_subject"></div>
<input type="text" id="contact_subject" name="subject" class="form-control" placeholder="Subject" >
</div>
</div>
<div class="form-group row">
<div class="col-md-12">
<div id="error_contact_email"></div>
<input type="email" id="contact_email" name="email" class="form-control" placeholder="Email" value="<?php echo isset($_POST['email']) ? $email : ''; ?>">
</div>
</div>
<div class="form-group row">
<div class="col-md-12">
<div id="error_contact_message"></div>
<textarea class="form-control" id="contact_message" name="message" cols="30" rows="10" placeholder="Write your message here."><?php echo isset($_POST['message']) ? $message : ''; ?></textarea>
</div>
</div>
<div class="form-group row">
<div class="col-md-6">
<input type="submit" name="submit" class="btn btn-primary py-3 px-5 btn-block btn-pill" value="Send Message">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<footer class="footer-section bg-white">
<div class="container">
<div class="row">
<div class="col-md-4">
<h3>About LAcademy</h3>
<p>An E-Learning platform rich of resources, We make learning easy and simple for Everyone.</p>
</div>
<div class="col-md-3 ml-auto">
<h3>Links</h3>
<ul class="list-unstyled footer-links">
<li><a href="#home-section" class="nav-link">Home</a></li>
<li><a href="#courses-section" class="nav-link">Courses</a></li>
<li><a href="#programs-section" class="nav-link">Programs</a></li>
<li><a href="#teachers-section" class="nav-link">Teachers</a></li>
</ul>
</div>
<div class="col-md-4">
<h3>Subscribe</h3>
<p>Keep yourself up to date and receive all kind of news about LAcademy.</p>
<form action="https://mailchi.mp/064deb47eeaa/lacdemy" target="_blank" class="footer-subscribe">
<div class="d-flex mb-5">
<input type="submit" class="btn btn-primary rounded-0" value="Subscribe">
</div>
</form>
</div>
</div>
<div class="row pt-5 mt-5 text-center">
<div class="col-md-12">
<div class="border-top pt-5">
<p>
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
Copyright ©<script>document.write(new Date().getFullYear());</script> All rights reserved
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
</p>
</div>
</div>
</div>
</div>
</footer>
</div> <!-- .site-wrap -->
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/jquery-migrate-3.0.1.min.js"></script>
<script src="js/jquery-ui.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.stellar.min.js"></script>
<script src="js/jquery.countdown.min.js"></script>
<script src="js/bootstrap-datepicker.min.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/aos.js"></script>
<script src="js/jquery.fancybox.min.js"></script>
<script src="js/jquery.sticky.js"></script>
<script src="js/main.js"></script>
</body>
</html>