📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
gorevyapscripti.demodesign.com.tr
/
adminp
📝
gorevler.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="header-navbar-shadow"></div> <div class="content-wrapper container-xxl p-0"> <div class="content-header row"> </div> <div class="content-body"> <!-- Dashboard Ecommerce Starts --> <section id="dashboard-ecommerce"> <div class="card"> <div class="card-body"> <h4 class="text-danger"> ADMİN GÖREVLERİ </h4> <div class="row"> <div class="col-md-12"> <div class="table-responsive"> <table class="table table-hover"> <thead class="text-warning"> <th>Başlık</th> <th>Açıklama</th> <th>Link</th> <th>Kazanç</th> <th>Kontenjan</th> <th>Ekleyen</th> <th>Gider</th> <th>Cinsiyet</th> <th>Şehir</th> <th>İşlem</th> </thead> <tbody> <?php $query_r = mysqli_query($connect, "SELECT * FROM gorevler ORDER BY id DESC"); if (mysqli_affected_rows($connect)){ $i = 1; while ($fetch_r = mysqli_fetch_array($query_r)){ //EKLEYEN if($fetch_r['ekleyenuye'] == "99999999"){ $ekleyenYaz = '<span class="badge badge-danger">ADMİN</span>'; }else{ $users = $fetch_r['ekleyenuye']; $queryGu = mysqli_query($connect, "SELECT * FROM data_users WHERE id = '$users'"); $fetchGu = mysqli_fetch_array($queryGu); $emailU = $fetchGu['email']; $ekleyenYaz = '<span class="badge badge-danger">'.$emailU.'</span>'; } ?> <tr class="active"> <td><?php echo $fetch_r['gorevbaslik']; ?></td> <td><span data-toggle="modal" data-target="#myModal<?php echo $fetch_r['id']; ?>" class="badge badge-success">Gör</span></td> <td><a href="<?php echo $fetch_r['gorevegit']; ?>" target="_blank">GİT</a></td> <td><?php echo $fetch_r['gorevkazanc']; ?>TL</td> <td><?php echo $fetch_r['gorevlimit']; ?>/<?php echo $fetch_r['gorevyapan']; ?></td> <td><?php echo $ekleyenYaz; ?></td> <td><?php echo $fetch_r['gider']; ?>TL</td> <td><?php echo $fetch_r['gorevcinsiyet']; ?></td> <td><?php echo $fetch_r['gorevsehir']; ?></td> <td> <span id="<?php echo $fetch_r['id']; ?>" class="badge badge-danger animalcekimiptal"><i class="fas fa-ban"></i></span> <a href="gorev-detay.php?id=<?php echo $fetch_r['id']; ?>" class="badge badge-success animalcekimonay">Dznl</a> </td> </tr> <div id="myModal<?php echo $fetch_r['id']; ?>" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Açıklama</h4> </div> <div class="modal-body"> <?php echo $fetch_r['gorevaciklama']; ?> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Kapat</button> </div> </div> </div> </div> <?php $i++;} }else{ ?> <tr class="active"> <th scope="row">0</th> <td>No</td> <td>Görev</td> <td>Yet</td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> </div> </section> <!-- Dashboard Ecommerce ends --> </div> </div> </div> <?php include ('system/inc/footer.php'); ?> <script> $('.animalcekimiptal').click(function(){ id = $(this).attr('id'); swal({ title: "Onaylıyor musun?", text: "Onayladığın takdirde bu görevi sileceksiniz!", 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/gorevsil.php', success:function(reply) { if (reply == 0) { swal("Tebrikler!", "Görev Başarıyla Silindi", "success"); setTimeout(function(){ location.href = "gorevler.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