📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
gorevyapscripti.demodesign.com.tr
/
adminp
📝
indexmesaj.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"> İNDEX MESAJLARI </h4> <div class="row"> <div class="col-md-12"> <table class="table table-hover"> <thead class="text-warning"> <th>Ad Soyad</th> <th>Email</th> <th>Konu</th> <th>Mesaj</th> <th>Tarih</th> <th>İşlem</th> </thead> <tbody> <?php $query_r = mysqli_query($connect, "SELECT * FROM mesajlar"); if (mysqli_affected_rows($connect)){ $i = 1; while ($fetch_r = mysqli_fetch_array($query_r)){ ?> <tr class="active"> <td><?php echo $fetch_r['adsoyad']; ?></td> <td><?php echo $fetch_r['email']; ?></td> <td><?php echo $fetch_r['konu']; ?></td> <td><span data-toggle="modal" data-target="#myModal<?php echo $fetch_r['id']; ?>" class="badge badge-primary">GÖR</span></td> <td><?php echo $fetch_r['date']; ?></td> <td> <span id="<?php echo $fetch_r['id']; ?>" class="badge badge-danger animalcekimiptal"><i class="fas fa-ban"></i></span> </td> </tr> <div class="modal" id="myModal<?php echo $fetch_r['id']; ?>"> <div class="modal-dialog"> <div class="modal-content"> <!-- Modal Header --> <div class="modal-header"> <h4 class="modal-title">İçerik</h4> <button type="button" class="close" data-dismiss="modal">×</button> </div> <!-- Modal body --> <div class="modal-body"> <?php echo $fetch_r['mesaj']; ?> </div> <!-- Modal footer --> <div class="modal-footer"> <button type="button" class="btn btn-danger" data-dismiss="modal">Kapat</button> </div> </div> </div> </div> <?php $i++;} }else{ ?> <tr class="active"> <th scope="row">0</th> <td>No</td> <td>Duyuru</td> <td>Yet</td> </tr> <?php } ?> </tbody> </table> </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 mesajı 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/msjsil.php', success:function(reply) { if (reply == 0) { swal("Tebrikler!", "Mesaj Başarıyla Silindi", "success"); setTimeout(function(){ location.href = "indexmesaj.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