|
|
- <?php require_once('./templates/admin/overall_header.tpl.php'); ?>
- <div id="content">
- <br />
- <div class="forum_table">
- <div class="row">
- <div class="hc1">Users list</div>
- <div class="hc2" style="width: 180px"> </div>
- <div class="hc3" style="width: 180px"> </div>
- <div class="hc3" style="width: 100px"> </div>
- <div class="hc3" style="width: 70px"> </div>
- <div class="hc4" style="width: 70px"> </div>
- </div>
- <div class="row">
- <div class="tc1 tab_desc">Username</div>
- <div class="tc2 tab_desc" style="width: 180px">Joined</div>
- <div class="tc3 tab_desc" style="width: 180px">Last visit</div>
- <div class="tc3 tab_desc" style="width: 100px">Posts</div>
- <div class="tc3 tab_desc" style="width: 70px"></div>
- <div class="tc4 tab_desc" style="width: 70px"></div>
- </div>
- <?php
- for ($i=0; $i<count($this->TPL['users_list']); $i++)
- {
- echo '<div class="row">'."\n";
- echo "\t\t\t".'<div class="tc1 tc3">
- <a href="index.php?mode=viewprofile&id='.$this->TPL['users_list'][$i]['user_id'].'">
- '.$this->colorRank($this->TPL['users_list'][$i]['nick'], $this->TPL['users_list'][$i]['rank']).'
- </a>
- </div>'."\n";
- echo "\t\t\t".'<div class="tc3">'.$this->TPL['users_list'][$i]['regdate'].'</div>'."\n";
- echo "\t\t\t".'<div class="tc3">'.(($this->TPL['users_list'][$i]['lastvisit']!= null) ? $this->TPL['users_list'][$i]['lastvisit'] : 'Never').'</div>'."\n";
- echo "\t\t\t".'<div class="tc3" style="width: 100px">'.$this->TPL['users_list'][$i]['post_count'].'</div>'."\n";
- echo "\t\t\t".'<div class="tc3" style="width: 70px; margin: 0 auto; text-align: center">
- <a href="index.php?mode=admin&submode=eduser&id='.$this->TPL['users_list'][$i]['user_id'].'" class="btn_small">Edit</a></div> '."\n";
- echo "\t\t\t".'<div class="tc4" style="width: 70px; margin: 0 auto; text-align: center">
- <a href="index.php?mode=admin&submode=deluser&id='.$this->TPL['users_list'][$i]['user_id'].'" class="btn_small">Delete</a></div> '."\n";
- echo "\t\t".'</div>'."\n";
- }
- ?>
-
-
- </div>
- <br>
- <div class="forum_table">
- <div class="row">
- <div class="hc1 hc4 hcpost">Options</div>
- </div>
- <div class="row">
- <div class="tc1 tc4">
- <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
- Sort users by:
- <select name="sort_type">
- <option value="regdate" <?php echo $this->TPL['regdate_selected']; ?>>Registration date</option>
- <option value="lastvisit" <?php echo $this->TPL['lastvisit_selected']; ?>>Lastvisit</option>
- <option value="nick" <?php echo $this->TPL['username_selected']; ?>>Username</option>
- <option value="post_count" <?php echo $this->TPL['posts_selected']; ?>>Posts count</option>
- </select>
-
- <input type="checkbox" name="sort_desc" value="Delete avatar" <?php echo $this->TPL['desc_checked']; ?> />Descending
- <input type="submit" value="Sort">
- </form>
- </div>
- </div>
- <div class="row">
- <div class="tc1 tc4">Select only users with rank:
- <a href="index.php?mode=admin&submode=users&rank=admin"><?php echo $this->getRankLevel(RANK_ADMIN); ?></a> •
- <a href="index.php?mode=admin&submode=users&rank=mod"><?php echo $this->getRankLevel(RANK_MOD); ?></a> •
- <a href="index.php?mode=admin&submode=users&rank=user"><?php echo $this->getRankLevel(RANK_USER); ?></a></div>
- </div>
- </div>
- </div>
-
- <?php require_once('./templates/overall_footer.tpl.php'); ?>
|