📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
b2be-ticaretscripti.demodesign.com.tr
/
boss_old
/
pages
📝
tumbloglar.php
← Geri Dön
<?php if (isset($_GET['temizle'])) { $id = temizle($_GET['temizle']); $bakresim = $ozy->query("select * from haberler where id='$id'")->fetch(PDO::FETCH_ASSOC); $sayfasil = $ozy->prepare("delete from haberler where id='$id'"); $sayfasil->execute(array($id)); if ($sayfasil) { if($bakresim['resim']=='resimyok.jpg'){ } else { $silresim="../resimler/haberler/".$bakresim['resim'].""; $sil =@unlink("$silresim"); } echo '<script type="text/javascript">$(document).ready(function(){toastr["success"]("Başarıyla veri silindi.", "Başarılı");});</script>'; } } ?> <div class="wrapper"> <div class="container-fluid"> <!-- Page-Title --> <div class="page-title-box"> <div class="row align-items-center"> <div class="col-sm-6"> <h4 class="page-title">Tüm Bloglar</h4> </div> <div class="col-sm-6"> <ol class="breadcrumb float-right"> <li class="breadcrumb-item"><a href="index.html">Anasayfa</a></li> <li class="breadcrumb-item active">Bloglar</li> </ol> </div> </div> <!-- end row --> </div> <div class="row"> <div class="col-12"> <div class="card m-b-30"> <div class="card-body"> <p class="sub-title" style="text-align:right;"> <a href="blog-ekle" style="width: 100%;" class="btn btn-success waves-effect waves-lightt"> Blog Ekle </a> </p> <table id="datatable" data-order='[[ 0, "desc" ]]' class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;"> <thead> <tr> <th>Blog Sırası</th> <th>Blog Adı</th> <th>Blog Resmi</th> <th>Blog Linki</th> <th>Durumu</th> <th>Hit</th> <th>Tarih</th> <th>İşlem</th> </tr> </thead> <tbody> <?php $pr = $ozy->query("select * from haberler ORDER BY id DESC")->fetchAll(PDO::FETCH_ASSOC); foreach ($pr as $tr) {?> <tr> <td><?php echo $tr['sira']?></td> <td><?php echo $tr['adi']?></td> <td><a class="image-popup-no-margins" href="../resimler/haberler/<?php echo $tr['resim']?>"> <img height="60px" width="60px" src="../resimler/haberler/<?php echo $tr['resim']?>"></a></td> <td><a target="_blank" href="../blog/<?php echo $tr['seo']?>">Sayfaya Git</a></td> <td> <?php if($tr['durum']=='1'){?> <span style="font-size: 13px;" class="badge badge-success">Aktif</span> <?php } else { ?> <span style="font-size: 13px;" class="badge badge-pill badge-danger">Pasif</span> <?php } ?> </td> <td><?php echo $tr['hit']?></td> <td><?php echo $tr['tarih']?></td> <td> <a href="tum-bloglar?temizle=<?php echo $tr['id']; ?>" onclick="return confirm('Silmek istediğinize emin misiniz ?')" class="btn btn-sm btn-danger" data-toggle="tooltip" data-original-title="Sil"><i class="ti-trash" aria-hidden="true"></i></a> <a href="blog/duzenle/<?php echo $tr['id']?>" class="btn btn-sm btn-success" data-toggle="tooltip" data-original-title="Düzenle"><i class="fa fa-edit" aria-hidden="true"></i></a> </td> </tr> <?php }?> </tbody> </table> </div> </div> </div> <!-- end col --> </div> <!-- end row --> </div> <!-- end container-fluid --> </div> <!-- end wrapper -->
💾 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