-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
567 lines (472 loc) · 22.5 KB
/
index.php
File metadata and controls
567 lines (472 loc) · 22.5 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
<?php
require "connectdb.php"
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Church Meet</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="asset/fonts/icomoon/style.css">
<link rel="stylesheet" href="asset/css/bootstrap.min.css">
<link rel="stylesheet" href="asset/css/magnific-popup.css">
<link rel="stylesheet" href="asset/css/jquery-ui.css">
<link rel="stylesheet" href="asset/css/owl.carousel.min.css">
<link rel="stylesheet" href="asset/css/owl.theme.default.min.css">
<link rel="stylesheet" href="asset/css/bootstrap-datepicker.css">
<link rel="stylesheet" href="asset/fonts/flaticon/font/flaticon.css">
<link rel="stylesheet" href="asset/css/aos.css">
<link rel="stylesheet" href="asset/css/style.css">
<style type="text/css">
img {
width: 782px;
height: 423px
padding: 5px;
border: 1px solid blue;
display: inline-block;
}
.row_alignment
{
display: inline-block;
font-size: 17px;
padding: 20px;
}
table, th, td {
border: 1px solid black;
height: auto;
width:222px;
overflow:hidden;
}
</style>
<!-- for testimonial alignment-->
</head>
<body data-spy="scroll" data-target=".site-navbar-target" data-offset="300">
<div class="site-wrap" id="home-section">
<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 js-sticky-header site-navbar-target" role="banner">
<div class="container">
<div class="row align-items-center position-relative">
<div class="site-logo">
<a href="index.html" class="text-black"> <span class="text-primary">ChurchMeet</a>
</div>
<nav class="site-navigation text-center ml-auto" role="navigation">
<ul class="site-menu main-menu js-clone-nav ml-auto d-none d-lg-block">
<li><a href="#home-section" class="nav-link">Home</a></li>
<li><a href="#about-section" class="nav-link">About us</a></li>
<li><a href="#discover-section" class="nav-link">Search Meetings</a></li>
<li><a href="#donate-section" class="nav-link">Add New Meetings</a></li>
<li><a href="#Projects-section" class="nav-link">Projects</a></li>
<li><a href="#contact-section" class="nav-link">Contact</a></li>
</ul>
</nav>
<div class="toggle-button d-inline-block d-lg-none"><a href="#" class="site-menu-toggle py-5 js-menu-toggle text-black"><span class="icon-menu h3"></span></a></div>
</div>
</div>
</header>
<div class="owl-carousel slide-one-item">
<!--<a href="#"><img src="asset/images/hero_1.jpg" alt="Image" class="img-fluid"></a>-->
<a href="#"><img src="asset/images/gnanamUncle.jpg" alt="Image" class="img-fluid"></a>
<a href="#"><img src="asset/images/gnanamUncle2.jpg" alt="Image" class="img-fluid"></a>
<a href="#"><img src="asset/images/joUncleFamily.jpeg" alt="Image" class="img-fluid"></a>
<!--
<a href="#"><img src="asset/images/hero_5.jpg" alt="Image" class="img-fluid"></a>
<a href="#"><img src="asset/images/hero_6.jpg" alt="Image" class="img-fluid"></a>
<a href="#"><img src="asset/images/hero_7.jpg" alt="Image" class="img-fluid"></a>
<a href="#"><img src="asset/images/hero_8.jpg" alt="Image" class="img-fluid"></a>
<a href="#"><img src="asset/images/hero_9.jpg" alt="Image" class="img-fluid"></a>
<a href="#"><img src="asset/images/hero_10.jpg" alt="Image" class="img-fluid"></a>
-->
</div>
<div class="d-block d-md-flex intro-engage">
<div class="">
<h2>RIGHTS TO CHILDREN'S EDUCATION</h2>
<p>A project that is directed toward children living through the loss of their parents and/or from an economically deprived background.</p>
</div>
<div>
<h2>NATIONALISM</h2>
<p>As firm believers that, a true nationalist is one who holds one's country's best interests at heart and one who contributes in one's little ways every other day, our project on nationalism is inclined in regard that, we work on spreading across the message of true essence of nationalism - among the young and the vulnerable age groups especially</p>
</div>
<div>
<h2>HUMAN DEVELOPMENT</h2>
<p>Denying the generalized notion about economics alone holding power to change a nation's fate, Human Development places an emphasis on personal development of individuals through constructive changes on their personal front, towards finding the freedom of voice for an equity in one's rights.</p>
</div>
</div>
<div class="site-section bg-image overlay counter" style="background-image: url('asset/images/lef.jpg'%}');" id="about-section">
<div class="container">
<div class="row mb-5">
<div class="col-lg-6 mb-4">
<figure class="asset/block-img-video-1" data-aos="fade">
<a href="asset/https://vimeo.com/45830194" class="popup-vimeo">
<span class="icon"><span class="icon-play"></span></span>
<img src="asset/images/lef.jpg" alt="Image" class="img-fluid">
</a>
</figure>
</div>
<div class="col-lg-5 ml-auto align-self-lg-center">
<h2 class="text-black mb-4 text-uppercase">Our Vision & Mission</h2>
<p class="text-black">We have pledged to align our programmes and extend our services consciously on our long term journey from a gradual development towards its sustainability on our social front.</p>
<p class="text-black">To promote the ideology of effective ways in terms of providence for Human Development, Child Education, Women Development, and Nationalism.</p>
<p class="text-black">We firmly believe that, raising awareness plays the key catalyst in refining social scenarios not by its motive per se, but by its ability to give birth to new ideology about the types of modalities that can be taken to in their resolving. </p>
</div>
</div>
<div class="row">
<div class="col-md-6 mb-4 col-lg-0 col-lg-3">
<div class="block-counter-1">
<span class="number"><span data-number="150000">0</span></span>
<span class="caption text-black">Students out reach</span>
</div>
</div>
<div class="col-md-6 mb-4 col-lg-0 col-lg-3">
<div class="block-counter-1">
<span class="number"><span data-number="3200">0</span></span>
<span class="caption text-black">Number of Volunteers</span>
</div>
</div>
</div>
</div>
</div>
<div class="site-section bg-light counter" id="discover-section">
<div class="container">
<h2 class="text-black text-uppercase text-center">Search Meetings</h2>
<select class="form-control" id="districts_search" onchange="myFunction()">
<?php
$site_qry = "SELECT * FROM meet_districts_telangana";
$site_res = $conn->query($site_qry);
while($site_row = $site_res->fetch_assoc()){ ?>
<option value="<?php echo $site_row['name']?>"><?php echo $site_row['name']?></option>
<?php }
?>
</select>
<br>
<span id="table"></span>
<br>
<div class="site-section" id="team-section">
<div class="container">
<div class="row mb-5 justify-content-center">
<div class="col-md-10 text-center">
<div id="carousel" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators"></ol>
<!-- The slideshow -->
<div class="carousel-inner"></div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#carousel" data-slide="prev">
<span class="carousel-control-prev-icon"></span>
</a>
<a class="carousel-control-next" href="#carousel" data-slide="next">
<span class="carousel-control-next-icon"></span>
</a>
</div>
</div>
</div>
</div>
</div>
<span id ="show_image"></div>
<div class="row_alignment" id="show_name"></div>
<div class="row_alignment" id="show_email"></div>
<div class="row_alignment" id="show_mobile"></div>
<div class="row_alignment" id="show_title"></div>
<div class="row_alignment" id="show_message"></div>
</div>
</div>
<!-- Add New message section starts-->
<div class="site-section bg-light" id="donate-section">
<div class="container">
<div class="row">
<div class="col-12 text-center mb-5">
<h2 class="text-black text-uppercase"></h2>
</div>
</div>
<div class="row justify-content-center">
<div class="col-lg-6 mb-5">
<h2 class="text-black text-uppercase text-center">Add Meetings</h2>
<form method="post" enctype="multipart/form-data">
<div class="form-group row">
<div class="col-md-6 mb-4 mb-lg-0">
<input type="text" class="form-control" placeholder="Name" id ="name" name="name" required="required">
</div>
<div class="col-md-6">
<input type="number" class="form-control" placeholder="Mobile" id ="mobile" name ="mobile" required="required">
</div>
</div>
<div class="form-group row">
<div class="col-md-12">
<input type="email" class="form-control" placeholder="Email" id ="email" name = "email" required="required">
</div>
</div>
<div class="form-group row">
<div class="col-md-12">
<input type="text" class="form-control" placeholder="Title" id ="title" name = "title" required="required">
</div>
</div>
<div class="form-group row">
<div class="col-md-12">
<textarea required="required" class="form-control" placeholder="Write your message." id= "message" name="message" cols="30" rows="10"></textarea>
</div>
</div>
<select class="form-control" id="districts" name="districts" required="required">
<?php
$site_qry = "SELECT * FROM meet_districts_telangana";
$site_res = $conn->query($site_qry);
while($site_row = $site_res->fetch_assoc()){ ?>
<option value="<?php echo $site_row['name']?>"><?php echo $site_row['name']?></option>
<?php }
?>
</select>
<input type="file" name="image" id="image" />
<div class="form-group row">
<div class="col-md-6 ml-auto">
<input type="submit" class="btn btn-block btn-primary text-white py-3 px-5" name="submit1" value="submit">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<?php
if(isset($_POST["submit1"]))
{
$file = addslashes(@file_get_contents($_FILES["image"]["tmp_name"]));
$name = $_POST['name'];
$mobile = $_POST['mobile'];
$email = $_POST['email'];
$title = $_POST['title'];
$message = $_POST['message'];
$districts = $_POST['districts'];
$sql = "INSERT INTO meetings_info (name, mobile, email, title, message, districts,image)
VALUES ('$name', '$mobile', '$email', '$title', '$message', '$districts','$file');";
if ($conn->query($sql) === TRUE) {
//echo "New records created successfully";
} else {
//echo "Error: " . $sql . "<br>" . $conn->error;
}
}
?>
<!-- Sponsors section ends-->
<div class="site-section bg-light" id="contact-section">
<div class="container">
<div class="row">
<div class="col-12 text-center mb-5">
<h2 class="text-black section-title text-uppercase">Contact Us</h2>
</div>
</div>
<div class="row justify-content-center">
<div class="col-lg-6 mb-5">
<form method="post">
<div class="form-group row">
<div class="col-md-6 mb-4 mb-lg-0">
<input type="text" class="form-control" placeholder="First name" id = "fname" name="fname" required="required">
</div>
<div class="col-md-6">
<input type="text" class="form-control" placeholder="Last name" id ="lname" name ="lname" required="required">
</div>
</div>
<div class="form-group row">
<div class="col-md-12">
<input type="text" class="form-control" placeholder="Email address" id ="email" name = "myemail" required="required">
</div>
</div>
<div class="form-group row">
<div class="col-md-12">
<textarea required="required" class="form-control" placeholder="Write your message." id= "message" name="mymessage" cols="30" rows="10"></textarea>
</div>
</div>
<div class="form-group row">
<div class="col-md-6 ml-auto">
<input type="submit" class="btn btn-block btn-primary text-white py-3 px-5" name="contact_submit" value="Send Message">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<?php
if(isset($_POST['contact_submit']))
{
$fname = $_POST['fname'];
$lname = $_POST['lname'];
$myemail = $_POST['myemail'];
$mymessage = $_POST['mymessage'];
$sql1 = "INSERT INTO contact_records (fname,lname,myemail,mymessage) values('$fname','$lname','$myemail','$mymessage');";
if($conn->query($sql1) === TRUE){
}else{
//echo 'Error' .$sql1. "<br>" .$conn->error;
}
}
?>
<footer class="site-footer">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="row">
<div class="col-md-8">
<h2 class="footer-heading mb-4">Office Address: </h2>
<p>H.No: 6-3-348/6, Dwarakapuri Colony,Panjagutta,Hyderabad,Telangana-500087 </p>
<h2 class="footer-heading mb-4">Reg Address: </h2>
<p>Plot No 152, H.No:12/100,Tirumalanagar Colony,Jillelaguda,RR Dist,Telangana-500097 </p>
</div>
<div class="col-md-4 ml-auto">
<h2 class="footer-heading mb-4">Features</h2>
<ul class="list-unstyled">
<li><a href="#">About us</a></li>
<li><a href="#">Testimonials</a></li>
<li><a href="#">Terms of Service</a></li>
<li><a href="#">Privacy</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="col-md-4 ml-auto">
<div class="mb-5">
<div class="mb-5">
<h2 class="footer-heading mb-4"></h2>
<p></p>
</div>
<h2 class="footer-heading mb-4">Subscribe to Newsletter</h2>
<form action="/emailSubscribe/" method="post" name="myform1" novalidate>
<div class="input-group mb-3">
<input type="text" class="form-control" id ="email" name ="email"placeholder="Enter Email" aria-label="Enter Email" aria-describedby="button-addon2">
<div class="input-group-append">
<input type="submit" class="btn btn-block btn-primary text-white py-3 px-5" value="Subscribe">
</div>
</div>
</form>
</div>
<h2 class="footer-heading mb-4">Follow Us</h2>
<a href="#about-section" class="smoothscroll pl-0 pr-3"><span class="icon-facebook"></span></a>
<a href="#" class="pl-3 pr-3"><span class="icon-twitter"></span></a>
<a href="#" class="pl-3 pr-3"><span class="icon-instagram"></span></a>
<a href="#" class="pl-3 pr-3"><span class="icon-linkedin"></span></a>
</div>
<div class="row pt-5 mt-5 text-center">
<div class="col-md-12">
<div class="border-top pt-5">
<p>
Developed by StemHub Technologies Pvt.Ltd<br>
<h7>Contact Us: </h7>
<a href="#">info@stemhub.tech</a><br>
<h7> Visit Us: </h7>
<a href="#"> www.stemhub.tech</a>
</p>
</div>
</div>
</div>
</div>
</footer>
<script src="asset/js/jquery-3.3.1.min.js"></script>
<script src="asset/js/jquery-ui.js"></script>
<script src="asset/js/popper.min.js"></script>
<script src="asset/js/bootstrap.min.js"></script>
<script src="asset/js/owl.carousel.min.js"></script>
<script src="asset/js/jquery.magnific-popup.min.js"></script>
<script src="asset/js/jquery.sticky.js"></script>
<script src="asset/js/jquery.waypoints.min.js"></script>
<script src="asset/js/jquery.animateNumber.min.js"></script>
<script src="asset/js/aos.js"></script>
<script src="asset/js/main.js"></script>
<script src="asset/jquery-2.2.3.min.js"></script>
</body>
<script type="text/javascript">
function myFunction(){
document.getElementById("show_name").innerHTML = "";
document.getElementById("show_mobile").innerHTML = "";
document.getElementById("show_email").innerHTML = "";
document.getElementById("show_title").innerHTML = "";
document.getElementById("show_message").innerHTML = "";
document.getElementById("show_image").innerHTML = "";
var selected_district = document.getElementById("districts_search").value;
$.ajax({
url:"posted_data.php",
type:"GET",
data: {type:"search",selected_district:selected_district},
success:function(data){
var data = JSON.parse(data);
var empty_val = data['records'][0].value;
if(empty_val == "0"){
$('#table').html("");
}
else{
$('#table').html("");
var records = data['records'];
fff(records);
for(var i=0;i<records.length;i++){
image = (records[i].image);
var img = document.createElement('img');
img.src = 'data:image/jpeg;base64,' + (image);
//.append($("<td><p>").html(img).appendTo($ul));
//$('#show_image').append($("<p>").html(img).appendTo($ul));
}
}
}
});
}
function fff(records){
var $ul = $("#table");
$('#table').html("");
$('.carousel-inner').empty();
$('.carousel-indicators').empty();
for(let j=0;j<records.length;j++)
{
$("<tr>").appendTo($ul)
.append($("<td class='row_alignment'>").text('Name:'+records[j].name).appendTo($ul))// Create HTML <li> element, set its text content with currently iterated item and append it to the <ul>.
.append($("<td class='row_alignment'>"+"</br>").text('PH:'+records[j].mobile).appendTo($ul))
.append($("<td class='row_alignment'>").text('Email:'+records[j].email).appendTo($ul))
.append($("<td class='row_alignment'>").text('Title:'+records[j].title).appendTo($ul))
.append($("<td class='row_alignment'>").text('Message:'+records[j].message).appendTo($ul));
image = (records[j].image);
$('<div class="carousel-item"><img src="data:image/jpeg; base64,'+(image)+'" width="50%"></div>').appendTo('.carousel-inner');
$('<li data-target="#carousel" data-slide-to="'+j+'"></li>').appendTo('.carousel-indicators')
}
$('.carousel-item').first().addClass('active');
$('.carousel-indicators > li').first().addClass('active');
//$('#carousel').carousel();
}
</script>
<!-- <script>
for(let j = 0; j < 5; j++) {
$('<div class="carousel-item"><img src="https://loremflickr.com/320/240" width="50%"> </div>').appendTo('.carousel-inner');
$('<li data-target="#carousel" data-slide-to="'+j+'"></li>').appendTo('.carousel-indicators')
}
$('.carousel-item').first().addClass('active');
$('.carousel-indicators > li').first().addClass('active');
$('#carousel').carousel();
</script>
-->
<!-- for testimonial alignment-->
<script>
$(document).ready(function() {
console.log( "ready!" );
});
$('#insert').click(function(){
var image_name = $('#image').val();
if(image_name == '')
{
alert("Please Select Image");
return false;
}
else
{
var extension = $('#image').val().split('.').pop().toLowerCase();
if(jQuery.inArray(extension, ['gif','png','jpg','jpeg']) == -1)
{
alert('Invalid Image File');
$('#image').val('');
return false;
}
}
});
</script>
<script>
</script>
</html>