index.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php IMPORT::view('header'); ?>
  2. <div id="content-header"></div>
  3. <div class="container-fluid">
  4. <div class="row-fluid">
  5. <div class="widget-box">
  6. <div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
  7. <h5>Settings</h5>
  8. <div class="pull-right" style="margin:5px;">
  9. <a href="<?php echo baseUrl(); ?>admin/setting/new"><button>New Settings</button> </a>
  10. </div>
  11. </div>
  12. <div class="widget-content nopadding">
  13. <table class="display" id="dataTable" class="data-table" cellspacing="0" width="100%">
  14. <thead>
  15. <tr>
  16. <th><?php echo ml::select('key'); ?></th>
  17. <th><?php echo ml::select('value'); ?></th>
  18. <th width="110"><?php echo ml::select('operations'); ?></th>
  19. </tr>
  20. </thead>
  21. <tbody>
  22. <?php foreach ($setting as $key ) { ?>
  23. <tr>
  24. <td><?php echo $key->title ?></td>
  25. <td><?php echo $key->value; ?></td>
  26. <td class="islemler" style="text-align: center;">
  27. <a href="<?php echo baseUrl(); ?>admin/setting/edit/<?php echo $key->id; ?>"><button class="btn btn-success"><?php echo ml::select('edit') ?></button></a>
  28. <a href="<?php echo baseUrl(); ?>admin/setting/delete/<?php echo $key->id; ?>" onclick="return window.confirm('Bu kaydı silmek istediğinize eminmisiniz?');"><button class="btn btn-danger"><?php echo ml::select('delete') ?></button></a>
  29. </td>
  30. </tr>
  31. <?php } ?>
  32. </tbody>
  33. </table>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. <?php Import::view('footer'); ?>