-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
834 lines (762 loc) · 34.3 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
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
<?php
session_start();
if(!isset($_SESSION["login"])){
?>
<meta http-equiv="refresh" content="0;URL=giris.php">
<?php
} else
{
?>
<!-- Giriş KONTROL -->
<?php include("header.php") ?>
<?php include("kontrol/veritabani.php") ?>
<!-- PAGE CONTENT -->
<script>
document.getElementById("anasayfa").className = "active";
</script>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Anasayfa
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Anasayfa</a></li>
</ol>
</section>
<?php if($_SESSION["yetki"]=="1"){ ?>
<!-- Main content -->
<section class="content">
<!-- Small boxes (Stat box) -->
<div class="row">
<div class="col-lg-4 col-xs-6">
<!-- small box -->
<div class="small-box bg-red">
<div class="inner">
<h3><?=$toplamdepodakilersay=$connection->query("select * from faturalar where durum='2'")->rowCount();?><sup style="font-size: 20px"></sup></h3>
<p>Depodakilere Ait Toplam Kayıt Sayısı</p>
</div>
<div class="icon">
<i class="ion ion-ios-home"></i>
</div>
</div>
</div>
<div class="col-lg-4 col-xs-6">
<!-- small box -->
<div class="small-box bg-blue">
<div class="inner">
<h3><?=$toplamalinmamissay=$connection->query("select * from faturalar where durum=0")->rowCount();?><sup style="font-size: 20px"></sup></h3>
<p>Toplam Alınmamış Kayıtların Sayısı</p>
</div>
<div class="icon">
<i class="ion ion-ios-cart"></i>
</div>
</div>
</div>
<div class="col-lg-4 col-xs-6">
<!-- small box -->
<div class="small-box bg-blue">
<div class="inner">
<h3><?=$toplamodemebekleyensay=$connection->query("select * from faturalar where durum=0 OR durum=2 ")->rowCount();?><sup style="font-size: 20px"></sup></h3>
<p>Toplam Ödeme Bekleyen Kayıtların Sayısı</p>
</div>
<div class="icon">
<i class="ion ion-bag"></i>
</div>
</div>
</div>
<div class="col-lg-4 col-xs-6">
<!-- small box -->
<div class="small-box bg-green">
<div class="inner">
<h3><?=$toplamalinmissay=$connection->query("select * from faturalar where durum=1")->rowCount();?><sup style="font-size: 20px"></sup></h3>
<p>Toplam Alınmış Kayıtların Sayısı</p>
</div>
<div class="icon">
<i class="ion ion-ios-cart"></i>
</div>
</div>
</div>
<div class="col-lg-4 col-xs-6">
<!-- small box -->
<div class="small-box bg-yellow">
<div class="inner">
<h3><?=$personelsay=$connection->query("select * from personel")->rowCount();?></h3>
<p>Toplam Personel Sayısı</p>
</div>
<div class="icon">
<i class="ion ion-person-add"></i>
</div>
</div>
</div>
<!-- ./col -->
</div>
<!-- /.row -->
<div class="row">
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="info-box bg-red">
<span class="info-box-icon"><i class="ion ion-ios-home"></i></span>
<div class="info-box-content">
<span class="info-box-text">Depodakilere Ait Kayıtların Toplamı</span>
<span class="info-box-number">
<?php
$toplamfaturacek=$connection->query("select SUM(ucret) AS toplamdepoda from faturalar where durum=2")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamfaturacek as $toplamfatura)
{
$toplamfatura['toplamdepoda'];
}
?>
<?=number_format($toplamfatura['toplamdepoda'],2);?> TL
</span>
<?php
$ayliktoplamfaturacek=$connection->query("select SUM(ucret) AS toplambuaydepoda from faturalar where durum=2 AND olusturulmaTarihi BETWEEN '".date("Y")."/".date("m")."/01' AND DATE_SUB(DATE_ADD('".date("Y")."/".date("m")."/01', INTERVAL 1 MONTH), INTERVAL 1 DAY) ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($ayliktoplamfaturacek as $buayliktoplamfatura)
{
$buayliktoplamfatura['toplambuaydepoda'];
}
$oncekiayliktoplamfaturacek=$connection->query("select SUM(ucret) AS toplamgecenaydepoda from faturalar where durum=2 AND olusturulmaTarihi BETWEEN DATE_SUB('".date("Y")."/".date("m")."/01', INTERVAL 1 MONTH) AND DATE_SUB('".date("Y")."/".date("m")."/01', INTERVAL 1 DAY) ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($oncekiayliktoplamfaturacek as $gecenayliktoplamfatura)
{
$gecenayliktoplamfatura['toplamgecenaydepoda'];
}
$gunluktoplamfaturacek=$connection->query("select SUM(ucret) AS toplambugundepoda from faturalar where durum=2 AND olusturulmaTarihi='".date("Y-m-d")."' ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($gunluktoplamfaturacek as $bugunluktoplamfatura)
{
$bugunluktoplamfatura['toplambugundepoda'];
}
?>
<?php if($buayliktoplamfatura['toplambuaydepoda']==0)
{
$performans1=0;
}
else
{
$performans1=number_format((($buayliktoplamfatura['toplambuaydepoda']-$gecenayliktoplamfatura['toplamgecenaydepoda'])*100/$buayliktoplamfatura['toplambuaydepoda']),2);
}
?>
<div class="progress">
<div class="progress-bar" style="width:100%"></div>
</div>
<span class="progress-description">Bu gün toplamı: <?=number_format($bugunluktoplamfatura['toplambugundepoda'],2);?> TL</span>
<span class="progress-description">Bu ay toplamı: <?=number_format($buayliktoplamfatura['toplambuaydepoda'],2);?> TL</span>
<span class="progress-description">Geçen ay toplamı: <?=number_format($gecenayliktoplamfatura['toplamgecenaydepoda'],2);?> TL</span>
<span class="progress-description">Geçen aya göre %<?=$performans1;?></span>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="info-box bg-blue">
<span class="info-box-icon"><i class="ion ion-bag"></i></span>
<div class="info-box-content">
<span class="info-box-text">Alınmamış Kayıtların Toplamı</span>
<span class="info-box-number">
<?php
$toplamfaturacek3=$connection->query("select SUM(ucret) AS toplamacik from faturalar where durum=0")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamfaturacek3 as $toplamfatura3)
{
$toplamfatura3['toplamacik'];
}
?>
<?=number_format($toplamfatura3['toplamacik'],2);?> TL
</span>
<?php
$ayliktoplamfaturacek3=$connection->query("select SUM(ucret) AS toplambuayacik from faturalar where durum=0 AND olusturulmaTarihi BETWEEN '".date("Y")."/".date("m")."/01' AND DATE_SUB(DATE_ADD('".date("Y")."/".date("m")."/01', INTERVAL 1 MONTH),INTERVAL 1 DAY) ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($ayliktoplamfaturacek3 as $buayliktoplamfatura3)
{
$buayliktoplamfatura3['toplambuayacik'];
}
$oncekiayliktoplamfaturacek3=$connection->query("select SUM(ucret) AS toplamgecenayacik from faturalar where durum=0 AND olusturulmaTarihi BETWEEN DATE_SUB('".date("Y")."/".date("m")."/01', INTERVAL 1 MONTH) AND DATE_SUB('".date("Y")."/".date("m")."/01', INTERVAL 1 DAY) ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($oncekiayliktoplamfaturacek3 as $gecenayliktoplamfatura3)
{
$gecenayliktoplamfatura3['toplamgecenayacik'];
}
$gunluktoplamfaturacek3=$connection->query("select SUM(ucret) AS toplambugunacik from faturalar where durum=0 AND olusturulmaTarihi='".date("Y-m-d")."' ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($gunluktoplamfaturacek3 as $bugunluktoplamfatura3)
{
$bugunluktoplamfatura3['toplambugunacik'];
}
?>
<?php if($buayliktoplamfatura3['toplambuayacik']==0)
{
$performans3=0;
}
else
{
$performans3=number_format((($buayliktoplamfatura3['toplambuayacik']-$gecenayliktoplamfatura3['toplamgecenayacik'])*100/$buayliktoplamfatura3['toplambuayacik']),2);
}
?>
<div class="progress">
<div class="progress-bar" style="width:100%"></div>
</div>
<span class="progress-description">Bu gün toplamı: <?=number_format($bugunluktoplamfatura3['toplambugunacik'],2);?> TL</span>
<span class="progress-description">Bu ay toplamı: <?=number_format($buayliktoplamfatura3['toplambuayacik'],2);?> TL</span>
<span class="progress-description">Geçen ay toplamı: <?=number_format($gecenayliktoplamfatura3['toplamgecenayacik'],2);?> TL</span>
<span class="progress-description">Geçen aya göre %<?=$performans3;?></span>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="info-box bg-blue">
<span class="info-box-icon"><i class="ion ion-bag"></i></span>
<div class="info-box-content">
<span class="info-box-text">Ödeme Bekleyen Kayıtların Toplamı</span>
<span class="info-box-number">
<?=number_format(($toplamfatura3['toplamacik']+$toplamfatura['toplamdepoda']),2);?> TL
</span>
<?php if(($buayliktoplamfatura['toplambuaydepoda']+$buayliktoplamfatura3['toplambuayacik'])==0)
{
$performans5=0;
}
else
{
$performans5=number_format(((($buayliktoplamfatura['toplambuaydepoda']+$buayliktoplamfatura3['toplambuayacik'])-($gecenayliktoplamfatura['toplamgecenaydepoda']+$gecenayliktoplamfatura3['toplamgecenayacik']))*100/($buayliktoplamfatura['toplambuaydepoda']+$buayliktoplamfatura3['toplambuayacik'])),2);
}
?>
<div class="progress">
<div class="progress-bar" style="width:100%"></div>
</div>
<span class="progress-description">Bu gün toplamı: <?=number_format(($bugunluktoplamfatura['toplambugundepoda']+$bugunluktoplamfatura3['toplambugunacik']),2);?> TL</span>
<span class="progress-description">Bu ay toplamı: <?=number_format(($buayliktoplamfatura['toplambuaydepoda']+$buayliktoplamfatura3['toplambuayacik']),2);?> TL</span>
<span class="progress-description">Geçen ay toplamı: <?=number_format(($gecenayliktoplamfatura['toplamgecenaydepoda']+$gecenayliktoplamfatura3['toplamgecenayacik']),2);?> TL</span>
<span class="progress-description">Geçen aya göre %<?=$performans5;?></span>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="info-box bg-green">
<span class="info-box-icon"><i class="ion ion-ios-cart"></i></span>
<div class="info-box-content">
<span class="info-box-text">Alınmış Kayıtların Toplamı</span>
<span class="info-box-number">
<?php
$toplamfaturacek2=$connection->query("select SUM(ucret) AS toplamkapanmis from faturalar where durum=1")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamfaturacek2 as $toplamfatura2)
{
$toplamfatura2['toplamkapanmis'];
}
?>
<?=number_format($toplamfatura2['toplamkapanmis'],2);?> TL
</span>
<?php
$ayliktoplamfaturacek2=$connection->query("select SUM(ucret) AS toplambuaykapanmis from faturalar where durum=1 AND olusturulmaTarihi BETWEEN '".date("Y")."/".date("m")."/01' AND DATE_SUB(DATE_ADD('".date("Y")."/".date("m")."/01', INTERVAL 1 MONTH), INTERVAL 1 DAY)")->fetchAll(PDO::FETCH_ASSOC);
foreach ($ayliktoplamfaturacek2 as $buayliktoplamfatura2)
{
$buayliktoplamfatura2['toplambuaykapanmis'];
}
$oncekiayliktoplamfaturacek2=$connection->query("select SUM(ucret) AS toplamgecenaykapanmis from faturalar where durum=1 AND olusturulmaTarihi BETWEEN DATE_SUB('".date("Y")."/".date("m")."/01', INTERVAL 1 MONTH) AND DATE_SUB('".date("Y")."/".date("m")."/01', INTERVAL 1 DAY) ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($oncekiayliktoplamfaturacek2 as $gecenayliktoplamfatura2)
{
$gecenayliktoplamfatura2['toplamgecenaykapanmis'];
}
$gunluktoplamfaturacek2=$connection->query("select SUM(ucret) AS toplambugunkapanmis from faturalar where durum=1 AND olusturulmaTarihi='".date("Y-m-d")."' ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($gunluktoplamfaturacek2 as $bugunluktoplamfatura2)
{
$bugunluktoplamfatura2['toplambugunkapanmis'];
}
?>
<?php if($buayliktoplamfatura2['toplambuaykapanmis']==0)
{
$performans2=0;
}
else
{
$performans2=number_format((($buayliktoplamfatura2['toplambuaykapanmis']-$gecenayliktoplamfatura2['toplamgecenaykapanmis'])*100/$buayliktoplamfatura2['toplambuaykapanmis']),2);
}
?>
<div class="progress">
<div class="progress-bar" style="width:100%"></div>
</div>
<span class="progress-description">Bu gün toplamı: <?=number_format($bugunluktoplamfatura2['toplambugunkapanmis'],2);?> TL</span>
<span class="progress-description">Bu ay toplamı: <?=number_format($buayliktoplamfatura2['toplambuaykapanmis'],2);?> TL</span>
<span class="progress-description">Geçen ay toplamı: <?=number_format($gecenayliktoplamfatura2['toplamgecenaykapanmis'],2);?> TL</span>
<span class="progress-description">Geçen aya göre %<?=$performans2;?></span>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="info-box bg-yellow">
<span class="info-box-icon"><i class="fa fa-try"></i></span>
<div class="info-box-content">
<span class="info-box-text">Bu Yıl İşlenen Kayıtların Toplamı</span>
<span class="info-box-number">
<?php
$toplamfaturacek4=$connection->query("select SUM(ucret) AS toplamislenen from faturalar")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamfaturacek4 as $toplamfatura4)
{
$toplamfatura4['toplamislenen'];
}
?>
<?=number_format($toplamfatura4['toplamislenen'],2);?> TL
</span>
<?php
$yilliktoplamfaturacek4=$connection->query("select SUM(ucret) AS toplambuyilacik from faturalar where durum=0 AND olusturulmaTarihi BETWEEN '".date("Y")."/01/01' AND DATE_ADD('".date("Y")."/01/01', INTERVAL 1 YEAR) ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($yilliktoplamfaturacek4 as $buyilliktoplamfatura4)
{
$buyilliktoplamfatura4['toplambuyilacik'];
}
$oncekiyilliktoplamfaturacek4=$connection->query("select SUM(ucret) AS toplamgecenyilacik from faturalar where durum=0 AND olusturulmaTarihi BETWEEN DATE_SUB('".date("Y")."/01/01', INTERVAL 1 YEAR) AND '".date("Y")."/01/01' ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($oncekiyilliktoplamfaturacek4 as $gecenyilliktoplamfatura4)
{
$gecenyilliktoplamfatura4['toplamgecenyilacik'];
}
$yilliktoplamfaturacek5=$connection->query("select SUM(ucret) AS toplambuyilkapanmis from faturalar where durum=1 AND olusturulmaTarihi BETWEEN '".date("Y")."/01/01' AND DATE_ADD('".date("Y")."/01/01', INTERVAL 1 YEAR) ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($yilliktoplamfaturacek5 as $buyilliktoplamfatura5)
{
$buyilliktoplamfatura5['toplambuyilkapanmis'];
}
$oncekiyilliktoplamfaturacek5=$connection->query("select SUM(ucret) AS toplamgecenyilkapanmis from faturalar where durum=1 AND olusturulmaTarihi BETWEEN DATE_SUB('".date("Y")."/01/01', INTERVAL 1 YEAR) AND '".date("Y")."/01/01' ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($oncekiyilliktoplamfaturacek5 as $gecenyilliktoplamfatura5)
{
$gecenyilliktoplamfatura5['toplamgecenyilkapanmis'];
}
$yilliktoplamfaturacek6=$connection->query("select SUM(ucret) AS toplambuyildepoda from faturalar where durum=2 AND olusturulmaTarihi BETWEEN '".date("Y")."/01/01' AND DATE_ADD('".date("Y")."/01/01', INTERVAL 1 YEAR) ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($yilliktoplamfaturacek6 as $buyilliktoplamfatura6)
{
$buyilliktoplamfatura6['toplambuyildepoda'];
}
$oncekiyilliktoplamfaturacek6=$connection->query("select SUM(ucret) AS toplamgecenyildepoda from faturalar where durum=2 AND olusturulmaTarihi BETWEEN DATE_SUB('".date("Y")."/01/01', INTERVAL 1 YEAR) AND '".date("Y")."/01/01' ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($oncekiyilliktoplamfaturacek6 as $gecenyilliktoplamfatura6)
{
$gecenyilliktoplamfatura6['toplamgecenyildepoda'];
}
?>
<div class="progress">
<div class="progress-bar" style="width:100%"></div>
</div>
<span class="progress-description">Alınmadı; Bu yıl:<?=number_format($buyilliktoplamfatura4['toplambuyilacik'],2);?> | Geçen Yıl: <?=number_format($gecenyilliktoplamfatura4['toplamgecenyilacik'],2);?></span>
<span class="progress-description">Alındı; Bu yıl:<?=number_format($buyilliktoplamfatura5['toplambuyilkapanmis'],2);?> | Geçen Yıl: <?=number_format($gecenyilliktoplamfatura5['toplamgecenyilkapanmis'],2);?></span>
<span class="progress-description">Depoda; Bu yıl:<?=number_format($buyilliktoplamfatura6['toplambuyildepoda'],2);?> | Geçen Yıl: <?=number_format($gecenyilliktoplamfatura6['toplamgecenyildepoda'],2);?></span>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
</div>
</div>
<h2>
Kasa Defteri CI
</h2>
<!-- Small boxes (Stat box) -->
<div class="row">
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-green">
<div class="inner">
<h3>
<?php
$toplamkasacekci=$connection->query("select SUM(ucret) AS toplambugunkasadefterici from kasa_defteri where gelirgider='gelir' AND gelis='CI' AND olusturulmaTarihi='".date("Y-m-d")."'")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamkasacekci as $toplamkasaci)
{
$toplamkasaci['toplambugunkasadefterici'];
}
?>
<?=number_format($toplamkasaci['toplambugunkasadefterici'],2);?> TL
<sup style="font-size: 20px"></sup></h3>
<p>Kasa Defterindeki Günlük Alınan CI</p>
</div>
<div class="icon">
<i class="ion ion-ios-cart"></i>
</div>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-blue">
<div class="inner">
<h3>
<?php
$toplamkasacekci2=$connection->query("select SUM(ucret) AS toplambuaykasadefterici from kasa_defteri where gelirgider='gelir' AND gelis='CI' AND olusturulmaTarihi BETWEEN '".date("Y")."/".date("m")."/01' AND DATE_SUB(DATE_ADD('".date("Y")."/".date("m")."/01', INTERVAL 1 MONTH), INTERVAL 1 DAY) ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamkasacekci2 as $toplamkasaci2)
{
$toplamkasaci2['toplambuaykasadefterici'];
}
?>
<?=number_format($toplamkasaci2['toplambuaykasadefterici'],2);?> TL
<sup style="font-size: 20px"></sup></h3>
<p>Kasa Defterinde Bu Ay Alınan CI</p>
</div>
<div class="icon">
<i class="fa fa-book"></i>
</div>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-yellow">
<div class="inner">
<h3>
<?php
$toplamkasacekci3=$connection->query("select SUM(ucret) AS toplambuyilkasadefterici from kasa_defteri where gelirgider='gelir' AND gelis='CI' AND olusturulmaTarihi BETWEEN '".date("Y")."/01/01' AND DATE_SUB(DATE_ADD('".date("Y")."/01/01', INTERVAL 1 YEAR), INTERVAL 1 DAY) ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamkasacekci3 as $toplamkasaci3)
{
$toplamkasaci3['toplambuyilkasadefterici'];
}
?>
<?=number_format($toplamkasaci3['toplambuyilkasadefterici'],2);?> TL
<sup style="font-size: 20px"></sup></h3>
<p>Kasa Defterinde Bu Yıl Alınan CI</p>
</div>
<div class="icon">
<i class="fa fa-try"></i>
</div>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-red">
<div class="inner">
<h3>
<?php
$toplamkasacekci4=$connection->query("select SUM(ucret) AS toplamkasadefterici from kasa_defteri where gelirgider='gelir' AND gelis='CI'")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamkasacekci4 as $toplamkasaci4)
{
$toplamkasaci4['toplamkasadefterici'];
}
?>
<?=number_format($toplamkasaci4['toplamkasadefterici'],2);?> TL
<sup style="font-size: 20px"></sup></h3>
<p>Kasa Defterinde Toplam Alınan CI</p>
</div>
<div class="icon">
<i class="fa fa-try"></i>
</div>
</div>
</div>
<!-- ./col -->
</div>
<div class="row">
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-green">
<div class="inner">
<h3>
<?php
$toplamkasacekverilenci=$connection->query("select SUM(ucret) AS toplambugunkasadefteriverilenci from kasa_defteri where gelirgider='gider' AND gelis='CI' AND olusturulmaTarihi='".date("Y-m-d")."'")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamkasacekverilenci as $toplamkasaverilenci)
{
$toplamkasaverilenci['toplambugunkasadefteriverilenci'];
}
?>
<?=number_format($toplamkasaverilenci['toplambugunkasadefteriverilenci'],2);?> TL
<sup style="font-size: 20px"></sup></h3>
<p>Kasa Defterindeki Günlük Verilen CI</p>
</div>
<div class="icon">
<i class="ion ion-ios-cart"></i>
</div>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-blue">
<div class="inner">
<h3>
<?php
$toplamkasacekverilenci2=$connection->query("select SUM(ucret) AS toplambuaykasadefteriverilenci from kasa_defteri where gelirgider='gider' AND olusturulmaTarihi BETWEEN '".date("Y")."/".date("m")."/01' AND DATE_SUB(DATE_ADD('".date("Y")."/".date("m")."/01', INTERVAL 1 MONTH), INTERVAL 1 DAY) ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamkasacekverilenci2 as $toplamkasaverilenci2)
{
$toplamkasaverilenci2['toplambuaykasadefteriverilenci'];
}
?>
<?=number_format($toplamkasaverilenci2['toplambuaykasadefteriverilenci'],2);?> TL
<sup style="font-size: 20px"></sup></h3>
<p>Kasa Defterinde Bu Ay Verilen CI</p>
</div>
<div class="icon">
<i class="fa fa-book"></i>
</div>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-yellow">
<div class="inner">
<h3>
<?php
$toplamkasacekverilenci3=$connection->query("select SUM(ucret) AS toplambuyilkasadefteriverilenci from kasa_defteri where gelirgider='gider' AND olusturulmaTarihi BETWEEN '".date("Y")."/01/01' AND DATE_SUB(DATE_ADD('".date("Y")."/01/01', INTERVAL 1 YEAR), INTERVAL 1 DAY) ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamkasacekverilenci3 as $toplamkasaverilenci3)
{
$toplamkasaverilenci3['toplambuyilkasadefteriverilenci'];
}
?>
<?=number_format($toplamkasaverilenci3['toplambuyilkasadefteriverilenci'],2);?> TL
<sup style="font-size: 20px"></sup></h3>
<p>Kasa Defterinde Bu Yıl Verilen CI </p>
</div>
<div class="icon">
<i class="fa fa-try"></i>
</div>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-red">
<div class="inner">
<h3>
<?php
$toplamkasacekverilenci4=$connection->query("select SUM(ucret) AS toplamkasadefteriverilenci from kasa_defteri where gelirgider='gider' AND gelis='CI' ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamkasacekverilenci4 as $toplamkasaverilenci4)
{
$toplamkasaverilenci4['toplamkasadefteriverilenci'];
}
?>
<?=number_format($toplamkasaverilenci4['toplamkasadefteriverilenci'],2);?> TL
<sup style="font-size: 20px"></sup></h3>
<p>Kasa Defterinde Toplam Verilen CI </p>
</div>
<div class="icon">
<i class="fa fa-try"></i>
</div>
</div>
</div>
<!-- ./col -->
</div>
<h2>
Kasa Defteri PS
</h2>
<!-- Small boxes (Stat box) -->
<div class="row">
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-green">
<div class="inner">
<h3>
<?php
$toplamkasacekps=$connection->query("select SUM(ucret) AS toplambugunkasadefterips from kasa_defteri where gelirgider='gelir' AND gelis='PS' AND olusturulmaTarihi='".date("Y-m-d")."'")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamkasacekps as $toplamkasaps)
{
$toplamkasaps['toplambugunkasadefterips'];
}
?>
<?=number_format($toplamkasaps['toplambugunkasadefterips'],2);?> TL
<sup style="font-size: 20px"></sup></h3>
<p>Kasa Defterindeki Günlük Alınan PS</p>
</div>
<div class="icon">
<i class="ion ion-ios-cart"></i>
</div>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-blue">
<div class="inner">
<h3>
<?php
$toplamkasacekps2=$connection->query("select SUM(ucret) AS toplambuaykasadefterips from kasa_defteri where gelirgider='gelir' AND gelis='PS' AND olusturulmaTarihi BETWEEN '".date("Y")."/".date("m")."/01' AND DATE_SUB(DATE_ADD('".date("Y")."/".date("m")."/01', INTERVAL 1 MONTH), INTERVAL 1 DAY) ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamkasacekps2 as $toplamkasaps2)
{
$toplamkasaps2['toplambuaykasadefterips'];
}
?>
<?=number_format($toplamkasaps2['toplambuaykasadefterips'],2);?> TL
<sup style="font-size: 20px"></sup></h3>
<p>Kasa Defterinde Bu Ay Alınan PS</p>
</div>
<div class="icon">
<i class="fa fa-book"></i>
</div>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-yellow">
<div class="inner">
<h3>
<?php
$toplamkasacekps3=$connection->query("select SUM(ucret) AS toplambuyilkasadefterips from kasa_defteri where gelirgider='gelir' AND gelis='PS' AND olusturulmaTarihi BETWEEN '".date("Y")."/01/01' AND DATE_SUB(DATE_ADD('".date("Y")."/01/01', INTERVAL 1 YEAR), INTERVAL 1 DAY) ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamkasacekps3 as $toplamkasaps3)
{
$toplamkasaps3['toplambuyilkasadefterips'];
}
?>
<?=number_format($toplamkasaps3['toplambuyilkasadefterips'],2);?> TL
<sup style="font-size: 20px"></sup></h3>
<p>Kasa Defterinde Bu Yıl Alınan PS</p>
</div>
<div class="icon">
<i class="fa fa-try"></i>
</div>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-red">
<div class="inner">
<h3>
<?php
$toplamkasacekps4=$connection->query("select SUM(ucret) AS toplambuyilkasadefterips from kasa_defteri where gelirgider='gelir' AND gelis='PS' ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamkasacekps4 as $toplamkasaps4)
{
$toplamkasaps4['toplambuyilkasadefterips'];
}
?>
<?=number_format($toplamkasaps4['toplambuyilkasadefterips'],2);?> TL
<sup style="font-size: 20px"></sup></h3>
<p>Kasa Defterinde Toplam Alınan PS</p>
</div>
<div class="icon">
<i class="fa fa-try"></i>
</div>
</div>
</div>
<!-- ./col -->
</div>
<div class="row">
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-green">
<div class="inner">
<h3>
<?php
$toplamkasacekverilenps=$connection->query("select SUM(ucret) AS toplambugunkasadefteriverilenps from kasa_defteri where gelirgider='gider' AND gelis='PS' AND olusturulmaTarihi='".date("Y-m-d")."'")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamkasacekverilenps as $toplamkasaverilenps)
{
$toplamkasaverilenps['toplambugunkasadefteriverilenps'];
}
?>
<?=number_format($toplamkasaverilenps['toplambugunkasadefteriverilenps'],2);?> TL
<sup style="font-size: 20px"></sup></h3>
<p>Kasa Defterindeki Günlük Verilen PS</p>
</div>
<div class="icon">
<i class="ion ion-ios-cart"></i>
</div>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-blue">
<div class="inner">
<h3>
<?php
$toplamkasacekverilenps2=$connection->query("select SUM(ucret) AS toplambuaykasadefteriverilenps from kasa_defteri where gelirgider='gider' AND gelis='PS' AND olusturulmaTarihi BETWEEN '".date("Y")."/".date("m")."/01' AND DATE_SUB(DATE_ADD('".date("Y")."/".date("m")."/01', INTERVAL 1 MONTH), INTERVAL 1 DAY) ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamkasacekverilenps2 as $toplamkasaverilenps2)
{
$toplamkasaverilenps2['toplambuaykasadefteriverilenps'];
}
?>
<?=number_format($toplamkasaverilenps2['toplambuaykasadefteriverilenps'],2);?> TL
<sup style="font-size: 20px"></sup></h3>
<p>Kasa Defterinde Bu Ay Verilen PS</p>
</div>
<div class="icon">
<i class="fa fa-book"></i>
</div>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-yellow">
<div class="inner">
<h3>
<?php
$toplamkasacekverilenps3=$connection->query("select SUM(ucret) AS toplambuyilkasadefteriverilenps from kasa_defteri where gelirgider='gider' AND gelis='PS' AND olusturulmaTarihi BETWEEN '".date("Y")."/01/01' AND DATE_SUB(DATE_ADD('".date("Y")."/01/01', INTERVAL 1 YEAR), INTERVAL 1 DAY) ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamkasacekverilenps3 as $toplamkasaverilenps3)
{
$toplamkasaverilenps3['toplambuyilkasadefteriverilenps'];
}
?>
<?=number_format($toplamkasaverilenps3['toplambuyilkasadefteriverilenps'],2);?> TL
<sup style="font-size: 20px"></sup></h3>
<p>Kasa Defterinde Bu Yıl Verilen PS</p>
</div>
<div class="icon">
<i class="fa fa-try"></i>
</div>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<!-- small box -->
<div class="small-box bg-red">
<div class="inner">
<h3>
<?php
$toplamkasacekverilenps4=$connection->query("select SUM(ucret) AS toplamkasadefteriverilenps from kasa_defteri where gelirgider='gelir' AND gelis='PS' ")->fetchAll(PDO::FETCH_ASSOC);
foreach ($toplamkasacekverilenps4 as $toplamkasaverilenps4)
{
$toplamkasaverilenps4['toplamkasadefteriverilenps'];
}
?>
<?=number_format($toplamkasaverilenps4['toplamkasadefteriverilenps'],2);?> TL
<sup style="font-size: 20px"></sup></h3>
<p>Kasa Defterinde Toplam Verilen PS</p>
</div>
<div class="icon">
<i class="fa fa-try"></i>
</div>
</div>
</div>
<!-- ./col -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
<!-- /.content-wrapper -->
</div>
<?php } ?>
<!-- jQuery 2.2.3 -->
<script src="plugins/jQuery/jquery-2.2.3.min.js"></script>
<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
$.widget.bridge('uibutton', $.ui.button);
</script>
<!-- Bootstrap 3.3.6 -->
<script src="bootstrap/js/bootstrap.min.js"></script>
<!-- Morris.js charts -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
<script src="plugins/morris/morris.min.js"></script>
<!-- DataTables -->
<script src="plugins/datatables/jquery.dataTables.min.js"></script>
<script src="plugins/datatables/dataTables.bootstrap.min.js"></script>
<!-- Sparkline -->
<script src="plugins/sparkline/jquery.sparkline.min.js"></script>
<!-- jvectormap -->
<script src="plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<!-- jQuery Knob Chart -->
<script src="plugins/knob/jquery.knob.js"></script>
<!-- daterangepicker -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.11.2/moment.min.js"></script>
<script src="plugins/daterangepicker/daterangepicker.js"></script>
<!-- datepicker -->
<script src="plugins/datepicker/bootstrap-datepicker.js"></script>
<!-- Bootstrap WYSIHTML5 -->
<script src="plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<!-- SlimScroll -->
<script src="plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="plugins/fastclick/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/app.min.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="dist/js/pages/dashboard.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="dist/js/demo.js"></script>
<!-- page script -->
<script>
$(function () {
$("#example1").DataTable();
$('#example2').DataTable({
"paging": true,
"lengthChange": false,
"searching": false,
"ordering": true,
"info": true,
"autoWidth": false
});
});
</script>
<!-- PAGE CONTENT END -->
<?php include("footer.php") ?>
<!-- Giriş KONTROL -->
<?php } ?>