-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
487 lines (433 loc) · 19.9 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>NTCG | Kellits New Testament Church of God</title>
<!--TELLS PHONES NOT TO LIE ABOUT THEIR WIDTH-->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="shortcut icon" type="image/png" href="images/favicon.png" sizes="16x16"/>
<!--GOOGLE FONT-->
<link href='https://fonts.googleapis.com/css?family=Signika:300,600' rel='stylesheet' type='text/css'>
<!--LOAD THE LATEST VERSION OF JQUERY-->
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="hideMenu.js"></script>
<!------ STYLE SHEETS ------>
<!--Reset-->
<link rel="stylesheet" href="css/reset.css" />
<!--Desktop-default-->
<link rel="stylesheet" href="css/desktop.css" />
<!--Dehance-tablet-->
<link rel="stylesheet" href="css/tablet.css" />
<!--Dehance-phone-->
<link rel="stylesheet" href="css/phone.css" />
<!------ JavaScript ------>
<script src="js/something.js"></script>
<!--THIS MAKES IE WORK WITH HTML5 AND MEDIA QUERIES-->
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script scr"https://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<header>
<div class="header-container"> <!--add image width and height in the future-->
<a href="#"><img src="images/Logo_02.png" alt="Logo"/></a>
<nav class="nav">
<ul class="nav-links" id="Topnav">
<li><a href="#" class="active">Home</a></li>
<li><a href="#">Contact Us</a></li>
<li><a href="#Events">Events</a></li>
<li><a href="#Aboutus">About Us</a></li>
<li><a href="#Pastors">Pastors</a></li>
<li><a href="#">Families</a></li>
<li class="icon">
<a href="javascript:void(0);" style="font-size:15px;" onclick="myFunction()">☰</a></li>
<div style="clear:both"></div>
</ul><!--ul end-->
</nav><!--nav end-->
</div><!--header-container end-->
</header><!--header end-->
</div><!--Container end-->
<div style="clear:both;"></div>
<!--
<div class="Header-main">
<img id="church" src="church1.jpg" />
</div>
-->
<section class="banner">
<article class="banner-container"> <!--this image should be a background-->
<!--<img src="images/Church_view.jpg" alt="Banner" width="1141px"/> -->
<div class="overlay"></div>
<div class="banner-text">
<h1>Annual Church Events</h1>
<h3>5-7 2016</h3>
<p>Come and witness the blessings of God and have fun in his presence
With christ in the vessel you can smile at the storm!!
</p>
<button class="button">Get More Info</button>
</div>
</article>
</section>
<section id="Aboutus" class="who"> <!-- Reminder: Give resonable name for this tag-->
<article class="whoami-container">
<div class="whoami">
<img src="images/cross.png" alt="Cross" width="80" height="100"/>
<h4>Who we are?</h4>
<p>We are a chosen generation
called forth to show his excilence.
</p>
</div>
<div class="whoami">
<img src="images/church.png" alt="Church" width="80" height="100"/>
<h4>Beliefs</h4>
<p>That there is only one true God who’s
name is Jesus christ
</p>
</div>
<div class="whoami">
<img src="images/hands.png" alt="Prayer" width="80" height="100"/>
<h4>What we stand for</h4>
<p>We stand for God and all his purity
we take on his yoke and become christ like
</p>
</div>
<div class="clear"></div>
</article>
</section>
<section id="Pastors" class="meet-our-pastors">
<article class="meet-our-pastor-container">
<h3>Meet Our Pastors</h3>
<p>We welcome you to the New testament Church of God. Here you can find information on all our passtors
both currently acting and predicesors of the church. You can also read up and the history and background of the church.</p>
<div class="pastors">
<img src="images/pastor.png" alt="Pastor">
<h4>Deja Murphy</h4>
<p>joined 2001</p>
</div>
<div class="pastors">
<img src="images/pastor.png" alt="Pastor">
<h4>Emil Robertson</h4>
<p>joined 2007</p>
</div>
<div class="pastors">
<img src="images/pastor.png" alt="Pastor">
<h4>Devani McCarthy</h4>
<p>joined 2013</p>
</div>
<button class="button">Get More Info</button>
</article>
</section>
<section id="Events" class="events">
<article class="events-container">
<h3>Upcoming Events</h3>
<div class="Nav-Buttons">
<button type="button" id="left">Left</button>
<button type="button" id="right">Right</button>
</div>
<div class="event">
<img src="images/crucifix.jpg" alt="Event">
<p>Loreum Ipsome ,What is a
can and all these things</p>
<button class="smaller-button">Get More Info</button>
</div>
<div class="event">
<img src="images/bible.jpg" alt="Event">
<p>Loreum Ipsome ,What is a
can and all these things</p>
<button class="smaller-button">Get More Info</button>
</div>
<div class="event">
<img src="images/churchHall.jpg" alt="Event">
<p>Loreum Ipsome ,What is a
can and all these things</p>
<button class="smaller-button">Get More Info</button>
</div>
</article>
</section>
<!--*********************************Sermon Section************************** **********************-->
<section id="Sermons" class="church-sermons">
<article class="sermon-container">
<h1 id="heading">Sermons</h1>
<div class="sermon-container-left">
<h1 id="upcoming-sermon">Upcoming Sermons</h1>
<!--<br>-->
<!--**************************Sermon 1************************** -->
<hr class="left-hr" />
<div class="inform">
<h5 class="welcome">Welcome back to the foot of the cross</h5>
<p class="paragrapgh">
Lorem ipsum dolor sit, consectetur adipiscing.<br>
Curabitur convallis in sem finibus consequat.
</p>
<div class="date-left">
<!--This Javascript is used to add the date of the sermons to the webite
This prevents manually typing it ourselves and can be easily changed.-->
<p id="demo" class="sermon-date-left"></p>
<!--The site is currently static, Sermon date information will be pulled from a database using PHP-->
<script>
var d = new Date();
document.getElementById("demo").innerHTML = d.toDateString();
</script>
</div>
<div class="name-of-pastors-left">
<p class="sermon-pastor">Pastor: Bradley Pryce</p>
</div>
</div>
<hr class="left-hr" />
<!--**************************Next Sermon************************** -->
<div class="inform">
<h5 class="welcome">Welcome back to the foot of the cross</h5>
<p>
Lorem ipsum dolor sit, consectetur adipiscing.<br>
Curabitur convallis in sem finibus consequat.
</p>
<br>
<div class="date-left">
<!--This Javascript is used to add the date of the sermons to the webite
This prevents manually typing it ourselves and can be easily changed.-->
<p id="demo2" class="sermon-date-left"></p>
<!--The site is currently static, Sermon date information will be pulled from a database using PHP-->
<script>
var d = new Date();
document.getElementById("demo2").innerHTML = d.toDateString();
</script>
</div>
<div class="name-of-pastors-left">
<p class="sermon-pastor">Pastor: Bradley Pryce</p>
</div>
</div>
<hr class="left-hr" />
<button type="button" class="sermon-button">See all sermons</button>
</div>
<!--*******************Latest Sermon Section****************-->
<div class="sermon-container-right">
<h1 id="latest-sermon">Latest Sermons</h1>
<!--**************************Latest Sermon 1************************** -->
<hr class="right-hr" />
<div class="posts">
<h5 id="welcome">Welcome back to the foot of the cross</h5>
<br>
<div class="date">
<!--This Javascript is used to add the date of the sermons to the webite
This prevents manually typing it ourselves and can be easily changed.-->
<p id="demo3" class="sermon-date"></p>
<!--The site is currently static, Sermon date information will be pulled from a database using PHP-->
<script>
var d = new Date();
document.getElementById("demo3").innerHTML = d.toDateString();
</script>
</div>
<div class="name-of-pastors">
<p class="sermon-pastor">Pastor: Bradley Pryce</p>
</div>
<div class="media-buttons">
<button class="audio-button" type="button">Audio Record</button>
<button class="video-button" type="button">Video Recording</button>
</div>
</div>
<hr class="right-hr" />
<!--**************************Latest Sermon 2************************** -->
<div class="posts">
<h5 id="welcome">Welcome back to the foot of the cross</h5>
<div class="date">
<!--This Javascript is used to add the date of the sermons to the webite
This prevents manually typing it ourselves and can be easily changed.-->
<p id="demo4" class="sermon-date"></p>
<!--The site is currently static, Sermon date information will be pulled from a database using PHP-->
<script>
var d = new Date();
document.getElementById("demo4").innerHTML = d.toDateString();
</script>
</div>
<div class="name-of-pastors">
<p class="sermon-pastor">Pastor: Bradley Pryce</p>
</div>
<div class="media-buttons">
<button class="audio-button" type="button">Audio Record</button>
<button class="video-button" type="button">Video Recording</button>
</div>
</div>
<hr class="right-hr" />
<div class="all-sermon-button"><button class="all-sermons" type="button">See all latest sermons</button></div>
</div>
</article>
</section>
<!--*******************************************About US Section**********************************************-->
<section class="about-us-section">
<article class="about-us-container">
<h1 id="about-us-section">About US</h1>
<p id="about-information">
<!--Why do you have break tags here?? By-howard-->
Lorem ipsum dolor sit, consectetur adipiscing<!--<br> By-Howard-->
Curabitur convallis in sem finibus consequat.<!--<br> By-Howard-->
Lorem ipsum dolor sit, consectetur adipiscing.
Curabitur convallis in sem finibus consequat.
</p>
<div class="video-container">
<iframe width="80%" height="500" src="https://www.youtube.com/embed/uElT6l-k0XI" frameborder="0" allowfullscreen></iframe>
</div>
<div class="advertising-container">
<div class="stars">
<img id="img2" src="images/icon-star.png" alt="star" width="90" height="90"/>
<script>rotateAnimation("img2",30);</script>
<h4>Our Stars</h4>
<p>That there is only one true God who’s
name is Jesus christ</p>
</div>
<div class="stars">
<img src="images/icon-cross.png" alt="cross" width="100" height="90"/>
<h4>At the Cross</h4>
<p>That there is only one true God who’s
name is Jesus christ
</p>
</div>
<div class="stars">
<img id="img1" src="images/teamwork.png" alt="Team work" width="90" height="90"/>
<script>rotateAnimation("img1",30);</script>
<h4>Team work</h4>
<p>That there is only one true God who’s
name is Jesus christ
</p>
</div>
</div>
</article>
</section>
<!--FORM SECTION | Contact us-->
<section class="contact-us"> <!--I will code this section -Howard -->
<article class="contact-us-container">
<h4>Contact Us</h4>
<p>
Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet
ut et voluptates repudiandae sint et molestiae non recusandae.
</p>
<span class="address">86 A Gordon Town Road, kingston</span> <span class="telephone">(876) 966-8900</span> <span class="contact-email">contact@newtestamentchurch.com</span>
<div>
<?php
function test_input($data)
{
//strip whitespace from begining and end of string
$data = trim($data);
//removes backslasses
$data = stripcslashes($data);
//converts some predefined characters to HTML entitites
$data = htmlspecialchars($data);
return $data;
}
//check for header injection
function has_header_injection($str)
{
return preg_match("/[\r\n]/", $str);
}
//Define variables
$name = $email = $subject = $msg = "";
//if form request method is post
if($_SERVER["REQUEST_METHOD"] == "POST")
{
//collect form data
$name = test_input($_POST['name']);
$email = test_input($_POST['email']);
$subject = test_input($_POST['subject'])
$msg = test_input($_POST['message']);
if(has_header_injection($name) || has_header_injection($email))
{
die(); //kill the script
}
//due to Javascript front-end validation this block should not run
if(!$name || !$email || !$subject || !$msg)
{
echo '<h4>All fields are required!</h4>';
exit;
}
//Recipent of message
$to = "geovaniluigid@gmail.com"; //"contact@newtestamentchurch.com";
//subject of message
//$subject = "$name sent you a message via your contact form. \r\n";
$msgSubject = "$name sent you a message.\r\n";
//Message format
$message = "Name: $name\r\n";
$message .= "Email: $email\r\n";
$message .= "Subject: $subject\r\n";
$message .= "Message: \r\n$msg";
wordwrap($message,72);
//setting mail header into a varibale
$headers = "MIME-Version 1.0\r\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n";
$headers .= "From: $name <$email> \r\n;";
$headers .= "X-Priority:1\r\n";
$headers .= "X-MSMAIL-Prior00ity: High\r\n\r\n";
//send the email
mail($to,$msgSubject,$message,$headers);
?>
<!--show success message after email has been sent-->
<h5>Thank you for contacting Kellits New Testament Church of God!</h5>
<p>Please allow 24 hours for a response.</p>
<p><a href="index.php">«Go To Home Page</a></p>
<?php
}
else
{
?>
<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method="POST">
<div class="form-col">
<div>
<input id="name" type="text" name="name" placeholder="Your Name... | John Doe" required/>
</div>
<div>
<input id="email" type="email" name="email" placeholder="Email ... | example@email.com" required/>
</div>
<div><!--May need to change this to subject -Howard-->
<input id="subject" type="text" name="subject" placeholder="Subject ..." required/>
</div>
</div>
<div class="form-col">
<div>
<textarea id="message" name="message" cols="50" rows="9" placeholder="Your Message ..." required></textarea>
</div>
<div>
<input type="submit" value="Send Message"/>
</div>
</div>
</form> <!--FORM END-->
<?php }?>
</div><!--FORM CONTAINER DIV END-->
</article>
</section>
<section><!--FOOTER SECTION-->
<footer class="footer">
<div class="footer-contents">
<div class="footer-social-icons">
<!--Images tooltips for users unfamiliar with modern trends-->
<span><a href="#" id="facebook"><img src="images/facebook.png" alt="Facebook" title="Facebook"></a></span>
<span><a href="#" id="twitter"><img src="images/twitter.png" alt="Twitter" title="Twitter"></a></span>
<span><a href="#" id="instagram"><img src="images/instagram.png" alt="Instagram" title="Instagram"></a></span>
<span><a href="#" id="pinterest"><img src="images/pinterest.png" alt="Pinterest" title="Pinterest"></a></span>
</div>
<div class="footer-links">
<p><a href="#" class="home">Home</a></p>
<p><a href="#" class="about-us">About Us</a></p>
<p><a href="#" class="sermons">Sermons</a></p>
<p><a href="#" class="events">Events</a></p>
</div>
</div>
<div class="copy-right">
<small>
Copyright © 2016 NTCG, All Rights Reserved | Kellits New Testament Church of god
</small><!--SRC-->
</div>
</footer>
</section><!--FOOTER SECTION END-->
<script>
function myFunction() {
var x = document.getElementById("Topnav");
if (x.className === "nav-links") {
x.className += " responsive";
} else {
x.className = "nav-links";
}
}
</script>
</body>
</html>