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.

64 lines
2.8 KiB

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