Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
zeplinbanyo
/
public_html
/
panel
/
sayfalar
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/zeplinbanyo/public_html/panel/sayfalar/haber_listele.php
<?php echo !defined("GUVENLIK") ? die("Erisim Engellendi!.") : null;?> <?php if(g('islem')=="sil") { $id = g('id'); $resim_bul=Sonuc(Sorgu("SELECT * FROM haberler WHERE id='$id'")); $resim_sil=unlink("../uploads/haberler/large/".$resim_bul->resim); $resim_sil2=unlink("../uploads/haberler/thumb/".$resim_bul->resim); $haber_sil_sorgu = Sorgu("DELETE FROM haberler WHERE id='$id'"); $bilgi = ' <div class="alert alert-success"> Başarı ile Silinmiştir ! </div>' ; } ?> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> <small><i class="fa fa-bullhorn"></i> Haber Listesi</small> </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-home"></i> Anasayfa</a></li> <li class="active">Haber Listesi</li> </ol> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-xs-12"> <div class="box"> <div class="box-header" style="padding:0;"> <a href="haber-ekle.html" class="btn bg-navy margin"><i class="fa fa-plus"></i> Haber Ekle</a> </div><!-- /.box-header --> <div class="box-body"> <table id="example1" class="table table-bordered table-hover"> <thead> <tr> <th>Sıra</th> <th>Haber Adı</th> <th>Haber Resmi</th> <th style="width:100px;">Durumu</th> <th style="width:100px;">İşlem</th> </tr> </thead> <tbody> <?php $HaberSorgu = Sorgu("SELECT * FROM haberler ORDER BY id DESC"); while($HaberSonuc = Sonuc($HaberSorgu)){?> <tr> <td><?php echo $HaberSonuc->id; ?></td> <td><?php echo $HaberSonuc->adi; ?></td> <td> <?php if($HaberSonuc->resim == ""){?> <span class="btn btn-danger btn-xs"><i class="fa fa-picture-o"></i> Resim Yok</span> <?php }else{?> <a class="btn btn-success btn-xs" href="../uploads/haberler/large/<?php echo $HaberSonuc->resim; ?>" target="_blank"><i class="fa fa-eye"></i> Resmi Gör</a> <?php } ?> </td> <td> <?php if($HaberSonuc->durum=='1'){?> <span class="label label-success">Aktif</span> <?php } else { ?> <span class="label label-danger">Pasif</span> <?php } ?> </td> <td> <a href="?islem=sil&id=<?php echo $HaberSonuc->id;?>" title="Sil" class="btn btn-danger btn-xs" onclick="return confirm('Silmek istediğinize emin misiniz ?')" id="remove-all"> Sil </a> <a href="?sayfa=haber-ekle&islem=duzenle&id=<?php echo $HaberSonuc->id;?>" class="btn btn-info btn-xs" title="Düzenle" id="add-sticky"> Düzenle </a> </td> </tr> <?php } ?> </tbody> </table> </div><!-- /.box-body --> </div><!-- /.box --> </div><!-- /.col --> </div><!-- /.row --> </section><!-- /.content --> </div> <!-- jQuery 2.1.3 --> <script src="plugins/jQuery/jQuery-2.1.3.min.js"></script> <!-- Bootstrap 3.3.2 JS --> <script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script> <!-- DATA TABES SCRIPT --> <script src="plugins/datatables/jquery.dataTables.js" type="text/javascript"></script> <script src="plugins/datatables/dataTables.bootstrap.js" type="text/javascript"></script> <!-- SlimScroll --> <script src="plugins/slimScroll/jquery.slimscroll.min.js" type="text/javascript"></script> <!-- FastClick --> <script src='plugins/fastclick/fastclick.min.js'></script> <!-- AdminLTE App --> <script src="dist/js/app.min.js" type="text/javascript"></script> <!-- AdminLTE for demo purposes --> <script src="dist/js/demo.js" type="text/javascript"></script> <!-- page script --> <script type="text/javascript"> $(function () { $("#example1").dataTable(); $('#example2').dataTable({ "bPaginate": true, "bLengthChange": false, "bFilter": false, "bSort": true, "bInfo": true, "bAutoWidth": false }); }); </script>