📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
makalesatisscripti.demodesign.com.tr
/
adminp
📝
cekimler.php
← Geri Dön
<?php include ('config.php'); include ('system/inc/sitedata.php'); if (!isset($_SESSION['login'])){ echo " <meta http-equiv='refresh' content='1;URL=index.php'> "; exit(); } ?> <!DOCTYPE html> <html class="loading" lang="en" data-textdirection="ltr"> <!-- BEGIN: Head--> <?php include ('system/inc/header.php'); ?> <!-- BEGIN: Content--> <div class="app-content content"> <div class="content-overlay"></div> <div class="content-wrapper"> <div class="content-header row"> </div> <div class="content-body"> <!-- Dashboard Ecommerce Starts --> <section id="dashboard-ecommerce"> </div> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-body"> <center> <h4 class="text-danger"> ÇEKİMLER</h4> <div class="row"> <div class="col-md-12"> <div class="table-responsive"> <table class="table table-hover"> <thead class="text-warning"> <th>Kullanıcı</th> <th>Banka</th> <th>Iban</th> <th>Tutar</th> <th>Tarih</th> <th>Durum</th> <th>İşlem</th> </thead> <tbody> <?php $query_r = mysqli_query($connect, "SELECT * FROM cekim"); if (mysqli_affected_rows($connect)){ $i = 1; while ($fetch_r = mysqli_fetch_array($query_r)){ if($fetch_r['durum'] == 0){ $durumYaz = '<span class="badge badge-primary ">BEKLEMEDE</span>'; } if($fetch_r['durum'] == 1){ $durumYaz = '<span class="badge badge-success ">ONAYLI</span>'; } if($fetch_r['durum'] == 2){ $durumYaz = '<span class="badge badge-danger ">İPTAL EDİLDİ</span>'; } ?> <tr class="active"> <td><?php echo $fetch_r['username']; ?></td> <td><?php echo $fetch_r['banka']; ?></td> <td><?php echo $fetch_r['iban']; ?></td> <td><?php echo $fetch_r['tutar']; ?></td> <td><?php echo $fetch_r['date']; ?></td> <td><?php echo $durumYaz; ?></td> <td> <span id="<?php echo $fetch_r['id']; ?>" class="badge badge-success animalcekimonay"><i class="far fa-thumbs-up"></i></span> <span id="<?php echo $fetch_r['id']; ?>" class="badge badge-danger animalcekimiptal"><i class="fas fa-ban"></i></span> </td> </tr> <?php $i++;} }else{ ?> <tr class="active"> <th scope="row">0</th> <td>No</td> <td>Referrals</td> <td>Yet</td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </center> </div> </div> </div> </div> </section> <!-- Dashboard Ecommerce ends --> </div> </div> </div> <!-- END: Content--> <?php include ('system/inc/footer.php'); ?> <script> $('.animalcekimonay').click(function(){ id = $(this).attr('id'); swal({ title: "Onaylıyor musun?", text: "Onayladığın takdirde bu çekimi onaylayacaksınız!", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: "Hayır", cancelButtonText: "Evet", closeOnConfirm: true, closeOnCancel: false }, function(isConfirm){ if (!isConfirm) { $.ajax({ type:'POST', data:'id='+id, url:'system/ajax/cekimonay.php', success:function(reply) { if (reply == 0) { swal("Tebrikler!", "Çekim Talebi Onaylandı", "success"); setTimeout(function(){ location.href = "cekimler.php"; },1000); } if (reply == 1) { swal("Başarısız!", "Üzgünüz sistemsel bir sorun meydana geldi.", "error"); } } }) } }); }) </script> <script> $('.animalcekimiptal').click(function(){ id = $(this).attr('id'); swal({ title: "Onaylıyor musun?", text: "Onayladığın takdirde bu çekimi iptal edeceksiniz!", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: "Hayır", cancelButtonText: "Evet", closeOnConfirm: true, closeOnCancel: false }, function(isConfirm){ if (!isConfirm) { $.ajax({ type:'POST', data:'id='+id, url:'system/ajax/cekimiptal.php', success:function(reply) { if (reply == 0) { swal("Tebrikler!", "Çekim Talebi İptal Edildi ve Bakiyesi Eklendi", "success"); setTimeout(function(){ location.href = "cekimler.php"; },1000); } if (reply == 1) { swal("Başarısız!", "Üzgünüz sistemsel bir sorun meydana geldi.", "error"); } } }) } }); }) </script> </body> <!-- END: Body--> </html>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula