70 lines
3.3 KiB
HTML
Executable File
70 lines
3.3 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
|
|
<? include('blocks/d.head.html'); ?>
|
|
|
|
<body>
|
|
|
|
<? include('blocks/d.nav.html'); ?>
|
|
|
|
<section id="member_list">
|
|
<h1>Liste des membres.</h1>
|
|
<p class="subtitle">Membres <?=$first?> à <?=$last?> sur les <?=$users->number?> inscrits</p>
|
|
|
|
<table>
|
|
<tr class="first">
|
|
<th>
|
|
<a href="<?=$config['rel_root_folder']?>user/member_list/<?=$page+1?>?orderby=name&order=<?=$order=='ASC'?'DESC':'ASC'?>">Nom d'utilisateur</a>
|
|
<?=$orderby=='name'?$order=='ASC'?'<i class="fas fa-caret-down" aria-hidden="true"></i>':'<i class="fas fa-caret-up" aria-hidden="true"></i>':''?>
|
|
</th>
|
|
<th>
|
|
<a href="<?=$config['rel_root_folder']?>user/member_list/<?=$page+1?>?orderby=rank&order=<?=$order=='ASC'?'DESC':'ASC'?>">Rôle</a>
|
|
<?=$orderby=='rank'?$order=='ASC'?'<i class="fas fa-caret-down" aria-hidden="true"></i>':'<i class="fas fa-caret-up" aria-hidden="true"></i>':''?>
|
|
</th>
|
|
<th>
|
|
<a href="<?=$config['rel_root_folder']?>user/member_list/<?=$page+1?>?orderby=register_date&order=<?=$order=='ASC'?'DESC':'ASC'?>">Inscription</a>
|
|
<?=$orderby=='register_date'?$order=='ASC'?'<i class="fas fa-caret-down" aria-hidden="true"></i>':'<i class="fas fa-caret-up" aria-hidden="true"></i>':''?>
|
|
</th>
|
|
<th>
|
|
<a href="<?=$config['rel_root_folder']?>user/member_list/<?=$page+1?>?orderby=visit_date&order=<?=$order=='ASC'?'DESC':'ASC'?>">Dernière visite</a>
|
|
<?=$orderby=='visit_date'?$order=='ASC'?'<i class="fas fa-caret-down" aria-hidden="true"></i>':'<i class="fas fa-caret-up" aria-hidden="true"></i>':''?>
|
|
</th>
|
|
<th>
|
|
<a href="<?=$config['rel_root_folder']?>user/member_list/<?=$page+1?>?orderby=website&order=<?=$order=='ASC'?'DESC':'ASC'?>">Site internet</a>
|
|
<?=$orderby=='website'?$order=='ASC'?'<i class="fas fa-caret-down" aria-hidden="true"></i>':'<i class="fas fa-caret-up" aria-hidden="true"></i>':''?>
|
|
</th>
|
|
</tr>
|
|
<? foreach ($users->objs as $row) { ?>
|
|
<tr>
|
|
<td>
|
|
<? if ($row->is_avatar_present=='t') { ?>
|
|
<img alt="Avatar" class="icon avatar" src="<?=$config['rel_root_folder']?>medias/avatars/<?=$row->id?>_s.jpg">
|
|
<? } else { ?>
|
|
<i class="icon fas fa-user-secret"></i>
|
|
<? } ?>
|
|
<a class="username" href="<?=$config['rel_root_folder']?>user/p/<?=$row->id?>"><?=$row->name?></a>
|
|
</td>
|
|
<td><?=$row->get_rank()?></td>
|
|
<td><? echo strftime('%e %B %G',strtotime($row->register_date)) ?></td>
|
|
<td><? echo strftime('%e %B %G',strtotime($row->visit_date)) ?></td>
|
|
<td>
|
|
<? if ($row->website != "") { ?>
|
|
<a target="_blank" href="<?=$row->website?>">Site internet <span class="external-link"><i class="fas fa-external-link-alt"></i></span></a>
|
|
<? } ?>
|
|
</td>
|
|
</tr>
|
|
<? } ?>
|
|
</table>
|
|
|
|
<div class="pagebuttons">
|
|
<? if ($page != 0) { ?><a class="previous" href="<?=$config['rel_root_folder']?>user/member_list/<?=$page?>?orderby=<?=$orderby?>&order=<?=$order?>"><i class="fas fa-chevron-left fa-fw"></i></a><? }
|
|
if (($page+1)*$rows_per_pages < $users->number) { ?><a class="next" href="<?=$config['rel_root_folder']?>user/member_list/<?=$page+2?>?orderby=<?=$orderby?>&order=<?=$order?>"><i class="fas fa-chevron-right fa-fw"></i></a><? } ?>
|
|
</div>
|
|
|
|
|
|
</section>
|
|
|
|
<? include('blocks/d.footer.html'); ?>
|
|
|
|
</body>
|
|
</html> |