icerik.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?php IMPORT::view('header'); ?>
  2. <div class="row-fluid">
  3. <?php
  4. $btn = ' <a href="'.baseUrl().'uye/icerik/yeni"><button>YENİ İÇERİK</button> </a>';
  5. echo box('Yazılarım',$btn); if ($icerik) {?>
  6. <table class="table table-bordered table-condensed">
  7. <thead>
  8. <tr>
  9. <th>İcerik Adı</th>
  10. <th>Kategorisi</th>
  11. <th>Durumu</th>
  12. <th width="80">İşlemler</th>
  13. </tr>
  14. </thead>
  15. <tbody>
  16. <?php
  17. foreach ($icerik as $key ) { ?>
  18. <tr>
  19. <td><?php echo $key->baslik ?></td>
  20. <td><?php echo kategoriName($key->kategori_id); ?></td>
  21. <td><?php echo $key->onay == '0'? 'ONAY BEKLİYOR':'YAYINLANDI' ?></td>
  22. <td class="islemler" style="text-align: center;">
  23. <a href="<?php echo baseUrl(); ?>uye/icerik/duzenle/<?php echo $key->id; ?>"><i class="icon-pencil"></i></a>
  24. <a href="<?php echo baseUrl(); ?>uye/icerik/sil/<?php echo $key->id; ?>" onclick="return window.confirm('Bu kaydı silmek istediğinize eminmisiniz?');"><i class="icon-remove"></i></a>
  25. </td>
  26. </tr>
  27. <?php } ?>
  28. </tbody>
  29. </table>
  30. <?php }else{ ?>
  31. <h2 style="text-align: center;">Herhangi bir yazınız bulunmamaktadır.<br>Hemen sağ yukardaki butona tıklayarak içerik ekleyebilirsiniz.</h2>
  32. <?php }
  33. echo boxEnd();
  34. Import::view('footer');
  35. ?>