| 
								
							 | 
							
								<? require_once('./templates/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="hc4" style="width: 100px"> </div>
							 | 
						
						
						
							| 
								
							 | 
							
											</div>
							 | 
						
						
						
							| 
								
							 | 
							
											<div class="row">
							 | 
						
						
						
							| 
								
							 | 
							
												<div class="tc1 tab_desc">Username</div>
							 | 
						
						
						
							| 
								
							 | 
							
												<div class="tc3 tab_desc" style="width: 180px">Joined</div>
							 | 
						
						
						
							| 
								
							 | 
							
												<div class="tc3 tab_desc" style="width: 180px">Last visit</div>
							 | 
						
						
						
							| 
								
							 | 
							
												<div class="tc4 tab_desc" style="width: 100px">Posts</div>
							 | 
						
						
						
							| 
								
							 | 
							
											</div>
							 | 
						
						
						
							| 
								
							 | 
							
									<? 
							 | 
						
						
						
							| 
								
							 | 
							
									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="tc4" style="width: 100px">'.$this->TPL['users_list'][$i]['post_count'].'</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="<?= $_SERVER['REQUEST_URI']; ?>" method="post">
							 | 
						
						
						
							| 
								
							 | 
							
												Sort users by: 
							 | 
						
						
						
							| 
								
							 | 
							
												<select name="sort_type">
							 | 
						
						
						
							| 
								
							 | 
							
													<option value="regdate" <?= $this->TPL['regdate_selected']; ?>>Registration date</option>
							 | 
						
						
						
							| 
								
							 | 
							
													<option value="lastvisit" <?= $this->TPL['lastvisit_selected']; ?>>Lastvisit</option>
							 | 
						
						
						
							| 
								
							 | 
							
													<option value="nick" <?= $this->TPL['username_selected']; ?>>Username</option>
							 | 
						
						
						
							| 
								
							 | 
							
													<option value="post_count" <?= $this->TPL['posts_selected']; ?>>Posts count</option>
							 | 
						
						
						
							| 
								
							 | 
							
												</select>
							 | 
						
						
						
							| 
								
							 | 
							
												   
							 | 
						
						
						
							| 
								
							 | 
							
												<input type="checkbox" name="sort_desc" value="Delete avatar" <?= $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=userlist&rank=admin"><?= $this->getRankLevel(RANK_ADMIN); ?></a> • 
							 | 
						
						
						
							| 
								
							 | 
							
													<a href="index.php?mode=userlist&rank=mod"><?= $this->getRankLevel(RANK_MOD); ?></a> • 
							 | 
						
						
						
							| 
								
							 | 
							
													<a href="index.php?mode=userlist&rank=user"><?= $this->getRankLevel(RANK_USER); ?></a></div>
							 | 
						
						
						
							| 
								
							 | 
							
											</div>
							 | 
						
						
						
							| 
								
							 | 
							
										</div>
							 | 
						
						
						
							| 
								
							 | 
							
									</div>
							 | 
						
						
						
							| 
								
							 | 
							
									
							 | 
						
						
						
							| 
								
							 | 
							
								<? require_once('./templates/overall_footer.tpl.php'); ?>
							 |