2 <div class="row-fluid">
3 <div class="box col-md-12">
4 <div class="panel panel-default">
5 <div class="panel-heading" data-original-title>
6 <span class="icon-user"></span> Members
8 <div class="panel-body">
9 <table class="table table-striped table-bordered">
20 {foreach from=$userlist item=element}
22 <td>{$element.id}</td>
23 <td class="center"><a href="index.php?page=show_user&id={$element.id}">{$element.username}</a></td>
24 <td class="center">{$element.email}</td>
25 {if $element.permission eq 1}<td class="center"><span class="label label-success">User</span></td>{/if}
26 {if $element.permission eq 2}<td class="center"><span class="label label-warning">Moderator</span></td>{/if}
27 {if $element.permission eq 3}<td class="center"><span class="label label-important">Admin</span></td>{/if}
29 <div class="btn-group" style="display: inline-block;">
30 <a class="btn btn-primary" href="index.php?page=show_user&id={$element.id}"><span class=" icon-eye-open icon-white"></span> Show User</a>
32 <div class="btn-group" style="display: inline-block;">
33 <a class="btn btn-info" href="index.php?page=settings&id={$element.id}"><span class=" icon-pencil icon-white"></span> Edit User</a>
35 {if isset($isAdmin) and $isAdmin eq 'TRUE' and $element.id neq 1}
36 <div class="btn-group" style="display: inline-block;">
37 <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span class=" icon-star icon-white"></span> Change Role<span class="caret"></span></button>
38 <ul class="dropdown-menu">
39 <li class="divider"></li>
40 {if $element.permission eq 1}
41 <li><a href="index.php?page=change_permission&user_id={$element.id}&value=2">Make Moderator</a></li>
42 <li><a href="index.php?page=change_permission&user_id={$element.id}&value=3">Make Admin</a></li>
43 {else if $element.permission eq 2 }
44 <li><a href="index.php?page=change_permission&user_id={$element.id}&value=1">Demote to User</a></li>
45 <li><a href="index.php?page=change_permission&user_id={$element.id}&value=3">Make Admin</a></li>
46 {else if $element.permission eq 3 }
47 <li><a href="index.php?page=change_permission&user_id={$element.id}&value=1">Demote to User</a></li>
48 <li><a href="index.php?page=change_permission&user_id={$element.id}&value=2">Demote to Moderator</a></li>
50 <li class="divider"></li>
62 <div style="width: 300px; margin:0px auto;">
63 <ul class="pagination">
64 <li><a href="index.php?page=userlist&pagenum=1">«</a></li>
65 {foreach from=$links item=link}
66 <li {if $link == $currentPage}class="active"{/if}><a href="index.php?page=userlist&pagenum={$link}">{$link}</a></li>
68 <li><a href="index.php?page=userlist&pagenum={$lastPage}">»</a></li>