70 lines
3.3 KiB
HTML
70 lines
3.3 KiB
HTML
|
<!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="fa fa-caret-down" aria-hidden="true"></i>':'<i class="fa fa-caret-up" aria-hidden="true"></i>':''?>
|
||
|
</th>
|
||
|
<th>
|
||
|
<a href="<?=$config['rel_root_folder']?>user/member_list/<?=$page+1?>?orderby=role&order=<?=$order=='ASC'?'DESC':'ASC'?>">Rôle</a>
|
||
|
<?=$orderby=='role'?$order=='ASC'?'<i class="fa fa-caret-down" aria-hidden="true"></i>':'<i class="fa fa-caret-up" aria-hidden="true"></i>':''?>
|
||
|
</th>
|
||
|
<th>
|
||
|
<a href="<?=$config['rel_root_folder']?>user/member_list/<?=$page+1?>?orderby=registered&order=<?=$order=='ASC'?'DESC':'ASC'?>">Inscription</a>
|
||
|
<?=$orderby=='registered'?$order=='ASC'?'<i class="fa fa-caret-down" aria-hidden="true"></i>':'<i class="fa fa-caret-up" aria-hidden="true"></i>':''?>
|
||
|
</th>
|
||
|
<th>
|
||
|
<a href="<?=$config['rel_root_folder']?>user/member_list/<?=$page+1?>?orderby=lastlogin&order=<?=$order=='ASC'?'DESC':'ASC'?>">Dernière visite</a>
|
||
|
<?=$orderby=='lastlogin'?$order=='ASC'?'<i class="fa fa-caret-down" aria-hidden="true"></i>':'<i class="fa 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="fa fa-caret-down" aria-hidden="true"></i>':'<i class="fa fa-caret-up" aria-hidden="true"></i>':''?>
|
||
|
</th>
|
||
|
</tr>
|
||
|
<? foreach ($user_list as $row) { ?>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<? if ($row->avatar=='t') { ?>
|
||
|
<img alt="Avatar" class="icon avatar" src="<?=$config['rel_root_folder']?>medias/avatars/<?=$row->id?>_s.jpg">
|
||
|
<? } else { ?>
|
||
|
<i class="icon fa fa-user-secret"></i>
|
||
|
<? } ?>
|
||
|
<a class="username" href="<?=$config['rel_root_folder']?>user/p/<?=$row->id?>"><?=$row->name?></a>
|
||
|
</td>
|
||
|
<td><?=$row->role()?></td>
|
||
|
<td><? echo strftime('%e %B %G',strtotime($row->registered)) ?></td>
|
||
|
<td><? echo strftime('%e %B %G',strtotime($row->lastlogin)) ?></td>
|
||
|
<td>
|
||
|
<? if ($row->website != "") { ?>
|
||
|
<a target="_blank" href="<?=$row->website?>">Site internet <span class="external-link"><i class="fa fa-external-link"></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="fa 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="fa fa-chevron-right fa-fw"></i></a><? } ?>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</section>
|
||
|
|
||
|
<? include('blocks/d.footer.html'); ?>
|
||
|
|
||
|
</body>
|
||
|
</html>
|