2013-06-27 18:18:36 +00:00
|
|
|
{block name=content}
|
2014-09-03 01:08:57 +00:00
|
|
|
<div class="row-fluid">
|
2014-09-03 10:22:14 +00:00
|
|
|
<div class="box col-md-12">
|
2014-09-09 02:02:15 +00:00
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading" data-original-title>
|
|
|
|
<span class="icon-user"></span> Members
|
2013-07-03 03:57:50 +00:00
|
|
|
</div>
|
2014-09-09 02:02:15 +00:00
|
|
|
<div class="panel-body">
|
2013-08-05 19:12:58 +00:00
|
|
|
<table class="table table-striped table-bordered">
|
2013-07-03 03:57:50 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Id</th>
|
|
|
|
<th>Username</th>
|
|
|
|
<th>Email</th>
|
|
|
|
<th>Permission</th>
|
|
|
|
<th>Action</th>
|
|
|
|
</tr>
|
2014-09-03 01:08:57 +00:00
|
|
|
</thead>
|
2013-07-03 03:57:50 +00:00
|
|
|
<tbody>
|
|
|
|
{foreach from=$userlist item=element}
|
|
|
|
<tr>
|
|
|
|
<td>{$element.id}</td>
|
2013-07-08 15:14:03 +00:00
|
|
|
<td class="center"><a href="index.php?page=show_user&id={$element.id}">{$element.username}</a></td>
|
2013-07-03 03:57:50 +00:00
|
|
|
<td class="center">{$element.email}</td>
|
|
|
|
{if $element.permission eq 1}<td class="center"><span class="label label-success">User</span></td>{/if}
|
2013-07-18 22:12:29 +00:00
|
|
|
{if $element.permission eq 2}<td class="center"><span class="label label-warning">Moderator</span></td>{/if}
|
|
|
|
{if $element.permission eq 3}<td class="center"><span class="label label-important">Admin</span></td>{/if}
|
2013-07-03 03:57:50 +00:00
|
|
|
<td class="center">
|
2013-07-19 14:30:58 +00:00
|
|
|
<div class="btn-group" style="display: inline-block;">
|
2014-09-09 02:02:15 +00:00
|
|
|
<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>
|
2013-07-19 14:30:58 +00:00
|
|
|
</div>
|
|
|
|
<div class="btn-group" style="display: inline-block;">
|
2014-09-09 02:02:15 +00:00
|
|
|
<a class="btn btn-info" href="index.php?page=settings&id={$element.id}"><span class=" icon-pencil icon-white"></span> Edit User</a>
|
2013-07-19 14:30:58 +00:00
|
|
|
</div>
|
|
|
|
{if isset($isAdmin) and $isAdmin eq 'TRUE' and $element.id neq 1}
|
|
|
|
<div class="btn-group" style="display: inline-block;">
|
2014-09-09 02:02:15 +00:00
|
|
|
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown"><span class=" icon-star icon-white"></span> Change Role<span class="caret"></span></button>
|
2013-07-19 14:30:58 +00:00
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li class="divider"></li>
|
|
|
|
{if $element.permission eq 1}
|
|
|
|
<li><a href="index.php?page=change_permission&user_id={$element.id}&value=2">Make Moderator</a></li>
|
|
|
|
<li><a href="index.php?page=change_permission&user_id={$element.id}&value=3">Make Admin</a></li>
|
|
|
|
{else if $element.permission eq 2 }
|
|
|
|
<li><a href="index.php?page=change_permission&user_id={$element.id}&value=1">Demote to User</a></li>
|
|
|
|
<li><a href="index.php?page=change_permission&user_id={$element.id}&value=3">Make Admin</a></li>
|
|
|
|
{else if $element.permission eq 3 }
|
|
|
|
<li><a href="index.php?page=change_permission&user_id={$element.id}&value=1">Demote to User</a></li>
|
|
|
|
<li><a href="index.php?page=change_permission&user_id={$element.id}&value=2">Demote to Moderator</a></li>
|
|
|
|
{/if}
|
|
|
|
<li class="divider"></li>
|
|
|
|
</ul>
|
2014-09-03 01:08:57 +00:00
|
|
|
|
2013-07-19 14:30:58 +00:00
|
|
|
</div>
|
|
|
|
{/if}
|
2013-07-03 03:57:50 +00:00
|
|
|
</td>
|
2014-09-03 01:08:57 +00:00
|
|
|
|
2013-07-03 03:57:50 +00:00
|
|
|
</tr>
|
|
|
|
{/foreach}
|
2014-09-03 01:08:57 +00:00
|
|
|
|
2013-07-03 03:57:50 +00:00
|
|
|
</tbody>
|
2013-08-05 19:12:58 +00:00
|
|
|
</table>
|
|
|
|
<div style="width: 300px; margin:0px auto;">
|
|
|
|
<ul class="pagination">
|
|
|
|
<li><a href="index.php?page=userlist&pagenum=1">«</a></li>
|
|
|
|
{foreach from=$links item=link}
|
|
|
|
<li {if $link == $currentPage}class="active"{/if}><a href="index.php?page=userlist&pagenum={$link}">{$link}</a></li>
|
|
|
|
{/foreach}
|
|
|
|
<li><a href="index.php?page=userlist&pagenum={$lastPage}">»</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2013-07-03 03:57:50 +00:00
|
|
|
</div>
|
2014-09-03 10:22:14 +00:00
|
|
|
</div>
|
2013-07-03 03:57:50 +00:00
|
|
|
</div><!--/span-->
|
2014-09-03 01:08:57 +00:00
|
|
|
|
2013-07-03 03:57:50 +00:00
|
|
|
</div><!--/row-->
|
2013-06-27 18:18:36 +00:00
|
|
|
{/block}
|
|
|
|
|