📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
berbersripti.demodesign.com.tr
📝
sayfa.php
← Geri Dön
<?php $page = 'kurumsal'; include "includes/header.php"; ?> <?php $refsor2=$db->prepare("SELECT * FROM reference where id=:id"); $refsor2->execute(array('id' => $_GET['id'])); $refcek2=$refsor2->fetch(PDO::FETCH_ASSOC); ?> <!-- page title start --> <section class="page_title-area page_title-overly pt-180 pb-120" data-background="assets/img/bg/berbar_page_title-bg.jpg"> <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="page_title text-center"> <h1 class="pt_title"><?php echo $refcek2['title']; ?></h1> <ul class="breadcrumb_nav ul_li_center"> <li><a href="<?=$site?>">Anasayfa</a></li> <li><?php echo $refcek2['title']; ?></li> </ul> </div> </div> </div> </div> </section> <!-- page title end --> <!-- blog start --> <section class="blog_area pt-120 pb-80"> <div class="container"> <div class="row"> <div class="col-lg-8"> <div class="blog_wrapper mb-40"> <div class="blog_post-content"> <figure class="mb-40"> <img style="width: 100%;" src="<?php echo $site; ?>/panel/uploads/reference_v/555x343/<?php echo $refcek2['img_url']; ?>" alt="<?php echo $refcek2['title']; ?>"> </figure> <h3 class="post_sub-title"><?php echo $refcek2['title']; ?></h3> <?php echo $refcek2['description']; ?> </div> </div> </div> <div class="col-lg-4"> <div class="blog__sidebar mb-40"> <div class="widget"> <h2 class="title">Kurumsal Menü</h2> <ul> <?php $sayfada = 20; // sayfada gösterilecek içerik miktarını belirtiyoruz. $sorgu=$db->prepare("select * from reference"); $sorgu->execute(); $toplam_icerik=$sorgu->rowCount(); $toplam_sayfa = ceil($toplam_icerik / $sayfada); // eğer sayfa girilmemişse 1 varsayalım. $sayfa = isset($_GET['sayfa']) ? (int) $_GET['sayfa'] : 1; // eğer 1'den küçük bir sayfa sayısı girildiyse 1 yapalım. if($sayfa < 1) $sayfa = 1; // toplam sayfa sayımızdan fazla yazılırsa en son sayfayı varsayalım. if($sayfa > $toplam_sayfa) $sayfa = $toplam_sayfa; $limit = ($sayfa - 1) * $sayfada; $refsor=$db->prepare("select * from reference order by rank ASC limit $limit,$sayfada"); $refsor->execute(); while ($refcek=$refsor->fetch(PDO::FETCH_ASSOC)) { if ($refcek['isActive']==1){ ?> <li class="cat-item"><a style="<?php if ($refcek['id']==$_GET['id']){echo 'color: #221f18; border-color: #221f18;';}?>" href="sayfa/<?=seo($refcek['title'])."-".$refcek['id']?>"><?php echo $refcek['title']; ?></a></li> <?php }} ?> </ul> </div> </div> </div> </div> </div> </section> <!-- blog end --> <?php include "includes/footer.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