📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
gorevyapscriptiv2.demodesign.com.tr
/
adminpnl
📝
tumsayfalar.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=login.php'> "; exit(); } ?> <!DOCTYPE html> <html lang="en"> <?php include ('system/inc/header.php'); ?> <!-- ============================================================== --> <!-- Start Page Content here --> <!-- ============================================================== --> <div class="content-page"> <div class="content"> <!-- Start Content--> <div class="container-fluid"> <!-- start page title --> <div class="row"> <div class="col-12"> <div class="page-title-box d-flex align-items-center justify-content-between"> <h4 class="page-title"><?=$site_name;?></h4> <div class="page-title-right"> <ol class="breadcrumb m-0"> <li class="breadcrumb-item"><a href="javascript: void(0);"><?=$username;?></a></li> <li class="breadcrumb-item active">Hoşgeldiniz</li> </ol> </div> </div> </div> </div> <!-- end page title --> <div class="row"> <div class="col-xl-12"> <div class="card-box"> <h4 class="header-title mt-0 mb-3">Tüm Sayfalar </h4> <div class="table-responsive"> <table class="table table-hover mb-0"> <thead> <tr> <th>Sayfa Adı</th> <th>İçerik</th> <th>İşlem</th> </tr> </thead> <tbody> <?php $query_r = mysqli_query($connect, "SELECT * FROM sayfalar ORDER BY id DESC"); if (mysqli_affected_rows($connect)){ $i = 1; while ($fetch_r = mysqli_fetch_array($query_r)){ $icerik = $fetch_r['sayfaicerik']; $limit = substr($icerik,0,30); ?> <tr class="active"> <td><?php echo $fetch_r['sayfaadi']; ?></td> <td><?=$limit;?>...</td> <td><span id="<?php echo $fetch_r['id']; ?>" class="badge badge-pill badge-danger animalbuysil"><i class="fas fa-trash-alt"></i> </span></td> </tr> <?php $i++;} }else{ ?> <tr class="active"> <th scope="row">0</th> <td>Kayıt</td> <td>Yok</td> </tr> <?php } ?> </tbody> </table> </div> </div> </div><!-- end col --> </div> <!-- end row --> </div> <!-- container-fluid --> </div> <!-- content --> <?php include ('system/inc/footer.php'); ?> <script> $('.animalbuysil').click(function(){ id = $(this).attr('id'); swal({ title: "Onaylıyor musun?", text: "Onayladığın takdirde bu sayfayı tamamen 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/sayfasil.php', success:function(reply) { if (reply == 0) { swal("Tebrikler!", "Sayfa bilgileri tamamen kaldırıldı", "success"); setTimeout(function(){ location.href = "tumsayfalar.php"; },1000); } if (reply == 1) { swal("Başarısız!", "Üzgünüz sistemsel bir sorun meydana geldi.", "error"); } } }) } }); }) </script> </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