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/proje_listele.php
<?php echo !defined("GUVENLIK") ? die("Erisim Engellendi!.") : null;?> <?php if(g('islem')=="sil") { $id = g('id'); $resim_bul=Sonuc(Sorgu("SELECT * FROM projeler WHERE id='$id'")); $resim_sil1 = unlink("../uploads/projeler/large/".$resim_bul->resim); $resim_sil2 = unlink("../uploads/projeler/medium".$resim_bul->resim); $resim_sil3 = unlink("../uploads/projeler/thumb".$resim_bul->resim); $urun_sil_sorgu = Sorgu("DELETE FROM projeler 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-file"></i> Proje Listesi</small> </h1> <ol class="breadcrumb"> <li><a href="anasayfa.html"><i class="fa fa-home"></i> Anasayfa</a></li> <li class="active">Proje 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="proje-ekle.html" class="btn bg-navy margin"><i class="fa fa-plus"></i> Proje 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>Proje Adı</th> <th>Kategori</th> <th>Proje Resmi</th> <th style="width:100px;">Durumu</th> <th style="width:100px;">İşlem</th> </tr> </thead> <tbody> <?php $ProjeSorgu = Sorgu("SELECT * FROM projeler ORDER BY id DESC"); while($ProjeSonuc = Sonuc($ProjeSorgu)){?> <?php $Sorgu = Sorgu("SELECT * FROM proje_kategori WHERE id = '{$ProjeSonuc->kategori}'"); while($Sonuc = Sonuc($Sorgu)){?> <tr> <td><?php echo $ProjeSonuc->id; ?></td> <td><?php echo $ProjeSonuc->adi; ?></td> <td><?php echo $Sonuc->kategori_adi; ?></td> <td> <?php if($ProjeSonuc->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/projeler/large/<?php echo $ProjeSonuc->resim; ?>" target="_blank"><i class="fa fa-eye"></i> Resmi Gör</a> <?php } ?> </td> <td> <?php if($ProjeSonuc->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 $ProjeSonuc->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=proje-ekle&islem=duzenle&id=<?php echo $ProjeSonuc->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>