A new, object-oriented, better vesion of μForum
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.3 KiB

  1. <?php require_once('./templates/admin/overall_header.tpl.php'); ?>
  2. <div id="content">
  3. <a href="index.php?mode=admin&amp;submode=addban" class="btn">Add ban</a>
  4. <br />
  5. <div class="forum_table">
  6. <div class="row">
  7. <div class="hc1" style="width: 150px">Banlist</div>
  8. <div class="hc2">&nbsp;</div>
  9. <div class="hc4" style="width: 70px">&nbsp;</div>
  10. </div>
  11. <div class="row">
  12. <div class="tc1 tab_desc" style="width: 150px">Username</div>
  13. <div class="tc2 tab_desc">Reason</div>
  14. <div class="tc4 tab_desc" style="width: 70px"></div>
  15. </div>
  16. <?php
  17. for ($i=0; $i<count($this->TPL['bans_list']); $i++)
  18. {
  19. echo '<div class="row">'."\n";
  20. echo "\t\t\t".'<div class="tc1 tc2" style="width: 150px">'.$this->TPL['bans_list'][$i]['nick'].'</div>'."\n";
  21. echo "\t\t\t".'<div class="tc2" style="font-style:italic">'.$this->TPL['bans_list'][$i]['reason'].'</div>'."\n";
  22. echo "\t\t\t".'<div class="tc4" style="width: 70px">
  23. <a href="index.php?mode=admin&amp;submode=delban&amp;id='.$this->TPL['bans_list'][$i]['ban_id'].'" class="btn_small">Delete</a>
  24. </div>';
  25. echo "\t\t".'</div>'."\n";
  26. }
  27. if (count($this->TPL['bans_list']) == 0)
  28. {
  29. echo '<div class="rcol">Banlist is empty.</div>';
  30. }
  31. ?>
  32. </div>
  33. <br>
  34. </div>
  35. <?php require_once('./templates/overall_footer.tpl.php'); ?>