-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.php
executable file
·611 lines (547 loc) · 29.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
<?php
require('connection.php');
require('functions.php');
date_default_timezone_set("Asia/Kolkata");
// $date=date('Y-m-d');
$date=date('Y-m-d h:i:s');
$last_month_first_day = date("Y-n-j", strtotime("first day of previous month"));
include('header.php');
?>
<main role="main">
<header id="header-area">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="fund-heading text-center">
<h1>STM</h1>
<!-- <h2>Charity/Nonprofit</h2> -->
<div class="typed_wrap">
<h2> <span class="typed"></span></h2>
</div>
</div>
</div>
</div>
</div>
</header>
<!-- target block -->
<div class="overlapping_urgent_cause wow fadeInUp animated" style="visibility: visible; animation-name: fadeInUp;">
<div class="container">
<div class="urgent_cause_block alt">
<div class="row">
<div class="col-lg-4">
<div class="urgent_cause_heading">
<div class="power_highlight_tag">This Month Donations</div>
<h3>Every Contribution Counts</h3>
</div>
</div>
<div class="col-lg-8">
<div class="power_progress_content">
<div class="power_progress_inner">
<div class="power_progress_bar_back">
<?php
$raised=get_total_price_by_month($con,$date);
$rpercent=($raised/10000)*100;
?>
<div class="power_progress_bar" style="max-width: <?php echo $rpercent ?>%;"
back-ground colour:"blue"><span
class="power_progress_value"><?php echo $rpercent ?>%</span></div>
</div>
<div class="power_progress_amount"><span><b>Exepected:</b> Rs.10000</span>
<span><b>Raised:</b> Rs.<?php echo $raised; ?></span>
</div>
</div>
<div class="power_button_group">
<a href="donate" class="power_button effect_1">
<span class="button_value">Donate Now</span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- welcome -->
<br>
<br>
<!--
<div class="wel" style="color:skyblue; text-align: center">
<h5>WELCOME TO SERVICE MANKIND</h5>
<div style="color: black; text-align: center">
<h3>We Believe that we can save <br> more lifes with you...</h3>
</div>
</div> -->
<!-- boxes -->
<div class="section">
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-6">
<div class="power_iconbox type_2 wow fadeInLeft"
style="visibility: visible; animation-name: fadeInLeft;">
<div class="power_iconbox_icon">
<i class="fas fa-dove primary-img"></i>
</div>
<div class="power_iconbox_content">
<h5>MISSION</h5>
<p>To empower and serve the underprivileged communities by providing them with
education, healthcare, and basic necessities, while encouraging volunteerism and
creating awareness on social issues.
</p>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="power_iconbox type_2 wow fadeInRight"
style="visibility: visible; animation-name: fadeInRight;">
<div class="power_iconbox_icon">
<div class="primary-img">
<i class="far fa-heart"></i>
</div>
</div>
<div class="power_iconbox_content">
<h5>VISION</h5>
<p>To create a just and equitable society where everyone has access to basic needs and
opportunities for growth and development, and where volunteerism and social
responsibility are integral parts of the community.</p>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="power_iconbox type_2 wow fadeInDown"
style="visibility: visible; animation-name: fadeInDown;">
<div class="power_iconbox_icon">
<div class="primary-img">
<i class="fas fa-hands-helping"></i>
</div>
</div>
<div class="power_iconbox_content">
<h5>PERMANENT DONOR</h5>
<p>Become a permanent donor and make a lasting impact on the lives of those in need.
Join us in our mission to create a better world, one act of kindness at a time.
</p>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="power_iconbox type_2 wow fadeInUp"
style="visibility: visible; animation-name: fadeInUp;">
<div class="power_iconbox_icon">
<div class="primary-img">
<i class="fas fa-child"></i>
</div>
</div>
<div class="power_iconbox_content">
<h5>BECOME VOLUNTEER</h5>
<p>Join our team of enthusiastic and passionate volunteers. Whether you have a few hours
a week or a few hours a month, your time and
skills can help us create a better world for everyone.</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- boxes_end -->
<div id="aboutus"></div>
<div class="container marketing">
<hr class="featurette-divider">
<div class="section-head col-sm-12">
<h4><span>About</span> Us</h4>
<p>Welcome to STM, where we strive to make a positive impact in the world through our volunteer work.
Our dedicated team of volunteers come from all walks of life and are committed to serving those in
need. Whether it's providing food and shelter to the homeless, conducting medical camps, or raising
funds for critical medical cases, we believe that even small acts of kindness can make a big
difference. Join us in our mission to spread love, compassion, and hope to those who need it the
most.</p>
</div>
<hr class="featurette-divider">
<div id="themes" class="themescls">
<div class="feat bg-gray pt-5 pb-5">
<div class="container">
<div class="row">
<div class="section-head col-sm-12">
<h4><span>Our</span> Themes</h4>
<p>Join us in making a difference through our diverse themes"</p>
</div>
<div class="col-lg-4 col-sm-6">
<div class="item"> <span class="icon feature_box_col_one"><img class="themeicon"
src="images/icons/rupee.png" width="50" height="50"></img></span>
<h6>A Rupee A Day</h6>
<p>Change the world with just a rupee a day! Your small contribution
can go a long way in providing food, shelter, and education to those who need it
most.</p>
</div>
</div>
<div class="col-lg-4 col-sm-6">
<div class="item"> <span class="icon feature_box_col_two"><img class="themeicon"
src="images/icons/research.png" width="50" height="50"></span>
<h6>Drives, Research & Survey</h6>
<p>Be a part of our team in conducting research, surveys, and drives to make a
positive impact in the society</p>
</div>
</div>
<div class="col-lg-4 col-sm-6">
<div class="item"> <span class="icon feature_box_col_three"><img class="themeicon"
src="images/icons/blood.png" width="50" height="50"></span>
<h6>Blood Donations</h6>
<p>Be a hero, save a life. Join us in our mission to donate blood and help those in
need. Your one pint of blood can save up to three lives.</p>
</div>
</div>
<div class="col-lg-4 col-sm-6">
<div class="item"> <span class="icon feature_box_col_four"><img class="themeicon"
src="images/icons/gift.png" width="50" height="50"></span>
<h6>Event Celebrations</h6>
<p>Celebrate your special occasions with the less fortunate. Make their day as
special as yours.</p>
</div>
</div>
<div class="col-lg-4 col-sm-6">
<div class="item"> <span class="icon feature_box_col_five"><img class="themeicon"
src="images/icons/animal.png" width="50" height="50"></span>
<h6>Animal Care</h6>
<p>Be a hero for the voiceless. Join us in our mission to provide care and love for
our furry friends.</p>
</div>
</div>
<!-- <div class="col-lg-4 col-sm-6">
<div class="item"> <span class="icon feature_box_col_six"><i
class="fa fa-camera"></i></span>
<h6>Retina Ready</h6>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula
eget dolor Aenean massa.</p>
</div>
</div> -->
</div>
</div>
</div>
</div>
<!-- sponsers & partners -->
<hr class="featurette-divider">
<div id="themes" class="themescls">
<div class="feat bg-gray pt-5 pb-5">
<div class="container">
<div class="row" style="justify-content: center;">
<div class="section-head col-sm-12">
<h4><span>Our</span> Sponsers & Patners</h4>
<p>Empowering Change Through Generosity and Support</p>
</div>
<div class="col-lg-4 col-sm-6">
<a href="https://weber.cottonseeds.org">
<img class="themeicon" src="images/sponsers/weber_technologies.png" width="350"
alt="Weber Technologies"></img>
</a>
</div>
<div class="col-lg-4 col-sm-6">
<a href="https://aims.ac.in/">
<img class="themeicon"
src="https://aims.ac.in/wp-content/uploads/2023/04/logo-1024x319.png" width="260"
alt="Weber Technologies"></img>
</a>
</div>
</div>
</div>
</div>
</div>
<hr class="featurette-divider">
<!-- /AYdonate .... -->
<!--donation centre-->
<section>
<div>
<!-- <h1>Dashboard</h1> -->
<div class="themes">DASHBOARD</div>
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="d-md-flex align-items-center">
<div>
<h4 class="card-title">Donation Summary</h4>
<h5 class="card-subtitle">Overview of Latest Month</h5>
</div>
<!-- <div class="ml-auto d-flex no-block align-items-center">
<ul class="list-inline font-12 dl mr-3 mb-0">
<li class="list-inline-item text-info">
<i class="fa fa-circle"></i> Stm
</li>
<li class="list-inline-item text-primary">
<i class="fa fa-circle"></i> You
</li>
</ul>
<div class="dl">
<select class="custom-select">
<option value="0" selected="">Monthly</option>
<option value="1">Daily</option>
<option value="2">Weekly</option>
<option value="3">Yearly</option>
</select>
</div>
</div> -->
</div>
<div class="row">
<!-- column -->
<div class="col-lg-4">
<h1 class="mb-0 mt-4">Rs. <?php echo get_total_price_by_month($con,$date);?>
</h1>
<h6 class="font-light text-muted">
Current Month Donations
</h6>
<h3 class="mt-4 mb-0">Rs.
<?php echo get_total_price_by_date($con, $date); ?></h3>
<h6 class="font-light text-muted">This Day</h6>
<a class="btn btn-info mt-3 p-15 pl-4 pr-4 mb-3" href="donate">
Donate</a>
</div>
<!-- column -->
<div class="col-lg-8">
<div class="campaign ct-charts">
<div class="chartist-tooltip"></div>
<svg class="dashgra" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 741 450">
<defs>
</defs>
<line fill="none" stroke="#4AC900" stroke-width="4"
stroke-miterlimit="10" x1="77" y1="11" x2="10" y2="11" />
<line fill="none" stroke="#4AC900" stroke-width="4"
stroke-miterlimit="10" x1="171" y1="11" x2="77" y2="11" />
<line fill="none" stroke="#4AC900" stroke-width="4"
stroke-miterlimit="10" x1="238" y1="11" x2="171" y2="11" />
<line fill="none" stroke="#4AC900" stroke-width="4"
stroke-miterlimit="10" x1="292" y1="11" x2="238" y2="11" />
<line fill="none" stroke="#4AC900" stroke-width="4"
stroke-miterlimit="10" x1="367" y1="11" x2="292" y2="11" />
<line fill="none" stroke="#4AC900" stroke-width="4"
stroke-miterlimit="10" x1="466" y1="11" x2="367" y2="11" />
<line fill="none" stroke="#4AC900" stroke-width="4"
stroke-miterlimit="10" x1="512" y1="11" x2="466" y2="11" />
<line fill="none" stroke="#4AC900" stroke-width="4"
stroke-miterlimit="10" x1="588" y1="11" x2="511" y2="11" />
<line fill="none" stroke="#4AC900" stroke-width="4"
stroke-miterlimit="10" x1="645" y1="11" x2="588" y2="11" />
<line fill="none" stroke="#4AC900" stroke-width="4"
stroke-miterlimit="10" x1="731" y1="11" x2="645" y2="11" />
<g>
<circle fill="#FF8300" cx="10.5" cy="10.5" r="10.5" />
<circle fill="#FF8300" cx="77.5" cy="10.5" r="10.5" />
<circle fill="#FF8300" cx="171.5" cy="10.5" r="10.5" />
<circle fill="#FF8300" cx="238.5" cy="10.5" r="10.5" />
<circle fill="#FF8300" cx="292.5" cy="10.5" r="10.5" />
<circle fill="#FF8300" cx="367.5" cy="10.5" r="10.5" />
<circle fill="#FF8300" cx="466.5" cy="10.5" r="10.5" />
<circle fill="#FF8300" cx="510.5" cy="10.5" r="10.5" />
<circle fill="#FF8300" cx="588.5" cy="10.5" r="10.5" />
<circle fill="#FF8300" cx="645.5" cy="10.5" r="10.5" />
<circle fill="#FF8300" cx="730.5" cy="10.5" r="10.5" />
</g>
<path id="graph-measurement" fill="none" stroke="#741E00"
stroke-linecap="round" stroke-linejoin="round"
stroke-miterlimit="10"
d="
M731,127H10 M10,127v-18 M113,127v-9.1 M731,109v18 M216,127v-9.1 M319,127v-9.1 M422,127v-9.1 M525,127v-9.1 M628,127v-9.1" />
</svg>
</div>
</div>
<!-- column -->
</div>
</div>
<!-- ============================================================== -->
<!-- Info Box -->
<!-- ============================================================== -->
<div class="card-body border-top">
<div class="row mb-0">
<!-- col -->
<div class="col-lg-3 col-md-6">
<div class="d-flex align-items-center">
<div class="mr-3 dashion">
<span class="text-orange display-5"><i
class="fas fa-calendar-alt"></i></span>
</div>
<div class='dahionc'>
<?php
// $lmraised=0;
// $res=mysqli_query($con,"SELECT `donations`.`amount` from `donations` where `donations`.`payment_status`='1' and month(`added_on`)=month('$date')-1 and year(`added_on`)='$year' and day(`added_on`)='$day'");
// while($row=mysqli_fetch_assoc($res)){
// $lmraised=$lmraised+$row['amount'];
// }
?>
<span>Last Month</span>
<h3 class="font-medium mb-0">Rs.
<?php echo get_total_price_by_month($con,$last_month_first_day);?>
</h3>
</div>
</div>
</div>
<!-- col -->
<!-- col -->
<div class="col-lg-3 col-md-6">
<div class="d-flex align-items-center">
<div class="mr-3 dashion">
<span class="text-cyan display-5"><i
class="fas fa-calendar-check"></i></span>
</div>
<div class='dahionc'>
<span>This Year</span>
<h3 class="font-medium mb-0">
Rs.<?php echo get_total_price_by_year($con, $date); ?></h3>
</div>
</div>
</div>
<!-- col -->
<!-- col -->
<div class="col-lg-3 col-md-6">
<div class="d-flex align-items-center">
<div class="mr-3 dashion">
<span class="text-info display-5"><i class="fas fa-award"></i></span>
</div>
<div class='dahionc'>
<span>Permanent Donors</span>
<h3 class="font-medium mb-0">104</h3>
</div>
</div>
</div>
<!-- col -->
<!-- col -->
<div class="col-lg-3 col-md-6">
<div class="d-flex align-items-center">
<div class="mr-3 dashion">
<span class="text-primary display-5"><i
class="fas fa-rupee-sign"></i></span>
</div>
<div class='dahionc'>
<span>Total</span>
<h3 class="font-medium mb-0">
Rs.<?php echo get_total_donations($con, $date); ?></h3>
</div>
</div>
</div>
<!-- col -->
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!--join with us-->
<!--social acc-->
<div class="social-index">
<h1>Let us be social !!</h1>
<div class="social-btns">
<a class="sofab btn facebook" href="https://facebook.com/stmorg.in"><i
class="sofa fab fa-facebook-f"></i></a>
<a class="sofab btn twitter" href="https:/twitter.com/STM_ORG"><i class="sofa fab fa-twitter"></i></a>
<a class="sofab btn google" href="https://www.instagram.com/servicetomankindorg/"><i
class="sofa fab fa-instagram"></i></a>
<a class="sofab btn dribbble"
href="https://www.youtube.com/channel/UCbdtIhRfuRYZbAQvM76lBOQ?view_as=subscriber"><i
class="sofa fab fa-youtube"></i></a>
</div>
</div>
<!--Contact-->
<!-- <div class="contact-index">
<h1>Wanna contact us</h1>
<h2><a class="con-btn h-surprise" href="contact.html">Click Here.</a></h2>
<text class="h-surprise">helo!!</text>
</div> -->
<!-- <hr class="featurette-divider"> -->
</div><!-- /.container -->
<!-- ******************** Footer Starts Here ******************* -->
<?php include('footer.php') ?>
</main>
<!-- <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous">
</script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous">
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.0/TweenMax.min.js"></script> -->
<script src='js/boostrap-4.5.js'></script>
<script src='js/popper.js'></script>
<script src='js/tweenmax.js'></script>
<script src="main-js/main.js"></script>
<script>
var container = document.getElementById('container');
var graphMeasurement = document.getElementById('graph-measurement');
var allCircles = document.getElementsByTagName('circle');
var allLines = document.getElementsByTagName('line');
// console.log(topSVGNode)
var destArray = [0, 52, 28, 170, 105, 93, 44, 122, 179, 170, 220];
TweenMax.set(allCircles, {
attr: {
fill: '#954CE9',
r: 5
},
transformOrigin: '50% 50%',
scale: 0
})
TweenMax.set([allLines], {
attr: {
stroke: '#18B5DD'
},
drawSVG: '100% 100%',
strokeWidth: 2
})
TweenMax.set([graphMeasurement], {
attr: {
stroke: '#18B5DD'
},
drawSVG: '100% 100%',
strokeWidth: 1
})
TweenMax.set([allCircles, allLines], {
y: '+=300'
})
TweenMax.set(graphMeasurement, {
y: '+=280',
alpha: 0.3
})
TweenMax.to(graphMeasurement, 3, {
drawSVG: '0% 100%',
delay: 1,
ease: Power2.easeInOut
})
TweenMax.set('svg', {
alpha: 1
})
for (var i = 0; i < allCircles.length; i++) {
TweenMax.to(allCircles[i], 2, {
attr: {
cy: '-=' + destArray[i]
},
onUpdate: moveLines,
onUpdateParams: [i],
delay: i / 5,
ease: Power4.easeInOut
})
if (allLines[i]) {
TweenMax.to(allLines[i], 1, {
drawSVG: '400',
delay: i / 5,
ease: Power4.easeInOut
})
}
TweenMax.to(allCircles[i], 1, {
scale: 1,
delay: i / 5,
ease: Power4.easeInOut
})
}
function moveLines(i) {
if (allLines[i]) {
TweenMax.set(allLines[i], {
attr: {
x2: allCircles[i].getAttribute('cx'),
y2: allCircles[i].getAttribute('cy')
}
})
TweenMax.set(allLines[i], {
attr: {
x1: allCircles[i + 1].getAttribute('cx'),
y1: allCircles[i + 1].getAttribute('cy')
}
})
}
}
</script>
</body>
</html>