📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
esnafbul.demodesign.com.tr
/
panel
/
listele
📝
mesajlar.php
← Geri Dön
<?php echo !defined("GUVENLIK") ? die("Vaoww! Bu ne cesaret?") : null;?> <title>Gelen Kutusu | <?=$ayar['site_baslik']?></title> <?php $mesajjkutusuu = $db ->prepare("select * from mesaj order by id desc"); $mesajjkutusuu ->execute(); ?> <form action="post/toplu-sil/mesajlari-sil.php" method="post" style="width: 100%"> <div class="content"> <div class="col-span-12 mt-6"> <div class="intro-y block sm:flex items-center h-10"> <h2 class="text-lg font-medium truncate mr-5"> İletişim Mesajları </h2> <?php if ($mesajjkutusuu->rowCount() > 0) {?> <div class="flex items-center sm:ml-auto mt-3 sm:mt-0"> <button class="btn btn-secondary shadow-md mr-2"> <i data-lucide="trash" class="hidden sm:block w-4 h-4 mr-2"></i> Seçilenleri Sil </button> </div> <?php }?> </div> <div class="intro-y overflow-auto lg:overflow-visible mt-8 sm:mt-0"> <?php if ($mesajjkutusuu->rowCount() > 0) {?> <table class="table table-report table-bordered table-hover sm:mt-2"> <thead class="table-dark"> <tr> <th class="text-center whitespace-nowrap">#</th> <th class="text-center whitespace-nowrap">DURUM</th> <th class="text-center whitespace-nowrap">İSİM</th> <th class="text-center whitespace-nowrap">E-POSTA</th> <th class="text-center whitespace-nowrap">TELEFON</th> <th class="text-center whitespace-nowrap">GÖNDERİLME TARİHİ</th> <th class="text-center whitespace-nowrap">#</th> </tr> </thead> <tbody> <?php foreach ($mesajjkutusuu as $mesaj) {?> <tr class="intro-x"> <td> <div class="form-checkbox"> <input type="checkbox" name='sil[]' id="checkSec-<?=$mesaj['id']?>" value="<?=$mesaj['id']?>" class="individual"> <label for="checkSec-<?=$mesaj['id']?>"></label> </div> </td> <td class="text-center"> <?php if ($mesaj['durum'] == 1) {?> <span class="badge badge-success" style="font-weight: 700; font-size:12px;"><i class="fa fa-circle-o-notch fa-spin fa-1x fa-fw"></i>OKUNMAMIŞ</span> <?php } else {?> <span class="badge badge-secondary" style="font-weight: 400; font-size:12px;"><i class="fa fa-check"></i> OKUNDU</span> <?php }?> </td> <td class="text-center"> <a class="font-medium whitespace-nowrap"><?=$mesaj['isim']?></a> </td> <td class="text-center"> <a class="font-medium whitespace-nowrap"><?=$mesaj['eposta']?></a> </td> <td class="text-center"> <a class="font-medium whitespace-nowrap"><?=$mesaj['telno']?></a> </td> <td class="text-center"> <a class="font-medium whitespace-nowrap"><?php echo date_tr('j F Y, H:i, l ', ''.$mesaj['tarih'].''); ?></a> </td> <td class="table-report__action w-56"> <div class="flex justify-center items-center"> <a href="pages.php?sayfa=mesaj&mesaj_id=<?=$mesaj['id']?>" class="flex items-center mr-3"> <i data-lucide="eye" class="w-4 h-4 mr-1"></i> MESAJI OKU </a> <a onclick="deletebutton('<?=$mesaj['id']?>')" class="flex items-center text-danger" style="cursor: pointer;"> <i data-lucide="trash-2" class="w-4 h-4 mr-1"></i> Sil </a> </div> </td> </tr> <?php }?> </tbody> </table> <?php } else {?> <div class="alert alert-info" style="font-weight: 400;"> Henüz Mesaj Gelmemiş! </div> <?php }?> </div> </div> </div> </form> <script type="text/javascript"> function deletebutton(mesajid){ swal({ title: "Silmek İstediğinize Emin Misiniz?", text: "Seçtiğiniz içerik kalıcı olarak silinecektir", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: "Sil", cancelButtonText: "İptal", closeOnConfirm: false, closeOnCancel: false }, function(isConfirm){ if (isConfirm) { window.location.href = "post/sil/mesaj-sil.php?mesaj=success&id="+mesajid; } else { swal("İptal Edildi", "Seçtiğiniz içerik silinmemiştir", "error"); } }); } </script> <?php if( $_GET['status']=='success'){ ?> <body onload="sweetAlert('İşlem Başarılı', 'İşleminiz başarıyla gerçekleşmiştir', 'success');"> </body> <meta http-equiv="refresh" content="1; URL=pages.php?sayfa=mesajlar"> <?php }?> <?php if($_GET['status']=='warning'){ ?> <body onload="sweetAlert('Başarısız!', 'İşlem sırasında hata oluştu', 'warning');"> </body> <meta http-equiv="refresh" content="1; URL=pages.php?sayfa=mesajlar"> <?php }?> <?php if($_GET['status']=='nocheck'){ ?> <body onload="sweetAlert('Sorun Var!', 'Hiç seçim yapılmamış!', 'warning');"> </body> <meta http-equiv="refresh" content="1; URL=pages.php?sayfa=mesajlar"> <?php }?>
💾 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