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.

72 lines
3.6 KiB

  1. <?php require_once('./templates/admin/overall_header.tpl.php'); ?>
  2. <div id="content">
  3. <br />
  4. <div class="forum_table">
  5. <div class="row">
  6. <div class="hc1">Users list</div>
  7. <div class="hc2" style="width: 180px">&nbsp;</div>
  8. <div class="hc3" style="width: 180px">&nbsp;</div>
  9. <div class="hc3" style="width: 100px">&nbsp;</div>
  10. <div class="hc3" style="width: 70px">&nbsp;</div>
  11. <div class="hc4" style="width: 70px">&nbsp;</div>
  12. </div>
  13. <div class="row">
  14. <div class="tc1 tab_desc">Username</div>
  15. <div class="tc2 tab_desc" style="width: 180px">Joined</div>
  16. <div class="tc3 tab_desc" style="width: 180px">Last visit</div>
  17. <div class="tc3 tab_desc" style="width: 100px">Posts</div>
  18. <div class="tc3 tab_desc" style="width: 70px"></div>
  19. <div class="tc4 tab_desc" style="width: 70px"></div>
  20. </div>
  21. <?php
  22. for ($i=0; $i<count($this->TPL['users_list']); $i++)
  23. {
  24. echo '<div class="row">'."\n";
  25. echo "\t\t\t".'<div class="tc1 tc3">
  26. <a href="index.php?mode=viewprofile&amp;id='.$this->TPL['users_list'][$i]['user_id'].'">
  27. '.$this->colorRank($this->TPL['users_list'][$i]['nick'], $this->TPL['users_list'][$i]['rank']).'
  28. </a>
  29. </div>'."\n";
  30. echo "\t\t\t".'<div class="tc3">'.$this->TPL['users_list'][$i]['regdate'].'</div>'."\n";
  31. echo "\t\t\t".'<div class="tc3">'.(($this->TPL['users_list'][$i]['lastvisit']!= null) ? $this->TPL['users_list'][$i]['lastvisit'] : 'Never').'</div>'."\n";
  32. echo "\t\t\t".'<div class="tc3" style="width: 100px">'.$this->TPL['users_list'][$i]['post_count'].'</div>'."\n";
  33. echo "\t\t\t".'<div class="tc3" style="width: 70px; margin: 0 auto; text-align: center">
  34. <a href="index.php?mode=admin&submode=eduser&amp;id='.$this->TPL['users_list'][$i]['user_id'].'" class="btn_small">Edit</a></div> '."\n";
  35. echo "\t\t\t".'<div class="tc4" style="width: 70px; margin: 0 auto; text-align: center">
  36. <a href="index.php?mode=admin&submode=deluser&amp;id='.$this->TPL['users_list'][$i]['user_id'].'" class="btn_small">Delete</a></div> '."\n";
  37. echo "\t\t".'</div>'."\n";
  38. }
  39. ?>
  40. </div>
  41. <br>
  42. <div class="forum_table">
  43. <div class="row">
  44. <div class="hc1 hc4 hcpost">Options</div>
  45. </div>
  46. <div class="row">
  47. <div class="tc1 tc4">
  48. <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
  49. Sort users by:
  50. <select name="sort_type">
  51. <option value="regdate" <?php echo $this->TPL['regdate_selected']; ?>>Registration date</option>
  52. <option value="lastvisit" <?php echo $this->TPL['lastvisit_selected']; ?>>Lastvisit</option>
  53. <option value="nick" <?php echo $this->TPL['username_selected']; ?>>Username</option>
  54. <option value="post_count" <?php echo $this->TPL['posts_selected']; ?>>Posts count</option>
  55. </select>
  56. &nbsp;&nbsp;&nbsp;
  57. <input type="checkbox" name="sort_desc" value="Delete avatar" <?php echo $this->TPL['desc_checked']; ?> />Descending
  58. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="submit" value="Sort">
  59. </form>
  60. </div>
  61. </div>
  62. <div class="row">
  63. <div class="tc1 tc4">Select only users with rank:
  64. <a href="index.php?mode=admin&amp;submode=users&amp;rank=admin"><?php echo $this->getRankLevel(RANK_ADMIN); ?></a> &bull;
  65. <a href="index.php?mode=admin&amp;submode=users&amp;rank=mod"><?php echo $this->getRankLevel(RANK_MOD); ?></a> &bull;
  66. <a href="index.php?mode=admin&amp;submode=users&amp;rank=user"><?php echo $this->getRankLevel(RANK_USER); ?></a></div>
  67. </div>
  68. </div>
  69. </div>
  70. <?php require_once('./templates/overall_footer.tpl.php'); ?>