index.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php Import::view('header'); ?>
  2. <a href="<?php echo baseUrl('uye/bitpazari/yeni') ?>"><button class="btn btn-primary">ÜRÜN EKLE</button></a> <br><br>
  3. <div class="panel panel-primary">
  4. <div class="panel-heading">İLANLARIM</div>
  5. <div class="panel-body">
  6. <table class="table table-bordered">
  7. <thead>
  8. <tr>
  9. <th width="150">RESİM</th>
  10. <th width="350">BAŞLIK</th>
  11. <th width="50">DURUM</th>
  12. <th>YÖNETİCİ NOTU</th>
  13. <th width="150">İŞLEM</th>
  14. </tr>
  15. </thead>
  16. <tbody>
  17. <?php foreach ($list as $key): ?>
  18. <tr>
  19. <td> <img src="<?php echo vitrinresim($key->id); ?> " alt="" width="150" height="113"></td>
  20. <td><?php echo $key->baslik; ?></td>
  21. <td><?php echo $key->durum == '0'?'PASİF':'AKTİF'; ?></td>
  22. <td><?php echo $key->uyari; ?></td>
  23. <td><a href="<?php echo baseUrl('uye/bitpazari/duzenle/'.$key->id) ?>"><button class="btn btn-primary">Düzenle</button></a>
  24. <a href="<?php echo baseUrl('uye/bitpazari/sil/'.$key->id) ?>" onclick="return window.confirm('Bu kaydı silmek istediğinize eminmisiniz?');"><button class="btn btn-primary">SİL</button></a></td>
  25. </tr>
  26. <?php endforeach ?>
  27. </tbody>
  28. </table>
  29. </div>
  30. </div>
  31. <?php Import::view('footer'); ?>