1 <script type="text/javascript" src="view/theme/frio/js/mod_admin.js"></script>
2 <link rel="stylesheet" href="view/theme/frio/css/mod_admin.css" type="text/css" media="screen"/>
4 <div id="admin-users" class="adminpage generic-page-wrapper">
5 <div class="panel panel-default">
6 <div class="panel-body"><h1>{{$title}} - {{$page}}</h1></div>
9 <form action="{{$baseurl}}/admin/users" method="post">
10 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
20 <div class="panel panel-default">
21 <div class="panel-heading"><h3 class="panel-title">{{$h_pending}}</h3></div>
24 <table id="pending" class="table table-hover">
27 {{foreach $th_pending as $th}}<th>{{$th}}</th>{{/foreach}}
29 <a href="#" onclick="return selectall('pending_ckbx');"><i class="fa fa-check-square-o" aria-hidden="true"></i></a>
30 <a href="#" onclick="return selectnone('pending_ckbx');"><i class="fa fa-square-o" aria-hidden="true"></i></a>
36 {{foreach $pending as $u}}
38 <td>{{$u.created}}</td>
41 <td ><input type="checkbox" class="pending_ckbx" id="id_pending_{{$u.hash}}" name="pending[]" value="{{$u.hash}}" /></td>
43 <a href="{{$baseurl}}/regmod/allow/{{$u.hash}}" title="{{$approve}}"><i class="fa fa-thumbs-up" aria-hidden="true"></i></a>
44 <a href="{{$baseurl}}/regmod/deny/{{$u.hash}}" title="{{$deny}}"><i class="fa fa-thumbs-down" aria-hidden="true"></i></a>
48 <th>{{$pendingnotetext}}</th>
49 <td colspan="4">{{$u.note}}</td>
54 <div class="panel-footer text-right">
55 <button type="submit" name="page_users_deny" class="btn btn-primary"><i class="fa fa-thumbs-down" aria-hidden="true"></i> {{$deny}}</button>
56 <button type="submit" name="page_users_approve" class="btn btn-warinig"><i class="fa fa-thumbs-up" aria-hidden="true"></i> {{$approve}}</button>
59 <div class="panel-body text-center text-muted">{{$no_pending}}</div>
70 <div class="panel panel-default">
71 <div class="panel-heading"><h3 class="panel-title">{{$h_users}}</h3></div>
74 <table id="users" class="table table-hover">
78 <a href="#" onclick="return selectall('users_ckbx');"><i class="fa fa-check-square-o" aria-hidden="true"></i></a>
79 <a href="#" onclick="return selectnone('users_ckbx');"><i class="fa fa-square-o" aria-hidden="true"></i></a>
82 {{foreach $th_users as $k=>$th}}
83 {{if $k < 2 || $order_users == $th.1 || ($k==5 && !in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1])) }}
85 <a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th.1}}">
86 {{if $order_users == $th.1}}
87 {{if $order_direction_users == "+"}}
103 {{foreach $users as $u}}
104 <tr id="user-{{$u.uid}}">
106 {{if $u.is_deletable}}
107 <input type="checkbox" class="users_ckbx" id="id_user_{{$u.uid}}" name="user[]" value="{{$u.uid}}"/>
112 <td><img class="icon" src="{{$u.micro}}" title="{{$u.nickname}}"></td>
113 <td><a href="{{$u.url}}" title="{{$u.nickname}}"> {{$u.name}}</a></td>
114 <td>{{$u.email}}</td>
115 {{if $order_users == $th_users.2.1}}
116 <td>{{$u.register_date}}</td>
119 {{if $order_users == $th_users.3.1}}
120 <td>{{$u.login_date}}</td>
123 {{if $order_users == $th_users.4.1}}
124 <td>{{$u.lastitem_date}}</td>
127 {{if !in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1]) }}
128 <td>{{$u.page_flags}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.account_expired}}({{$accountexpired}}){{/if}}</td>
130 <td class="text-right">
131 <a href="#" onclick="return details({{$u.uid}})"><span class="caret"></span></i>
134 <tr id="user-{{$u.uid}}-detail" class="hidden details">
137 {{if $order_users != $th_users.2.1}}
138 <p><a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.2.1}}">
139 ↕ {{$th_users.2.0}}</a> : {{$u.register_date}}</p>
142 {{if $order_users != $th_users.3.1}}
143 <p><a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.3.1}}">
144 ↕ {{$th_users.3.0}}</a> : {{$u.login_date}}</p>
147 {{if $order_users != $th_users.4.1}}
148 <p><a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.4.1}}">
149 ↕ {{$th_users.4.0}}</a> : {{$u.lastitem_date}}</p>
152 {{if in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1]) }}
153 <p><a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.5.1}}">
154 ↕ {{$th_users.5.0}}</a> : {{$u.page_flags}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.account_expired}}({{$accountexpired}}){{/if}}</p>
158 <td class="text-right">
159 {{if $u.is_deletable}}
160 <a href="{{$baseurl}}/admin/users/block/{{$u.uid}}?t={{$form_security_token}}" title="{{if $u.blocked}}{{$unblock}}{{else}}{{$block}}{{/if}}">
162 <i class="fa fa-ban" aria-hidden="true"></i>
164 <i class="fa fa-circle-o" aria-hidden="true"></i>
167 <a href="{{$baseurl}}/admin/users/delete/{{$u.uid}}?t={{$form_security_token}}" title="{{$delete}}" onclick="return confirm_delete('{{$u.name}}')"><i class="fa fa-trash" aria-hidden="true"></i></a>
176 <div class="panel-footer text-right">
177 <button type="submit" name="page_users_block" class="btn btn-warning"> <i class="fa fa-ban" aria-hidden="true"></i> {{$block}} / <i class="fa fa-circle-o" aria-hidden="true"></i> {{$unblock}}</button>
178 <button type="submit" name="page_users_delete" class="btn btn-danger" onclick="return confirm_delete_multi()"><i class="fa fa-trash" aria-hidden="true"></i> {{$delete}}</button>
181 <div class="panel-body text-center bg-danger">NO USERS?!?</div>
196 * DELETED Users table
201 <div class="panel panel-default">
202 <div class="panel-heading"><h3 class="panel-title">{{$h_deleted}}</h3></div>
203 <table id="deleted" class="table table-hover">
207 {{foreach $th_deleted as $k=>$th}}
208 {{if in_array($k,[0,1,5])}}
215 {{foreach $deleted as $u}}
217 <td><img src="{{$u.micro}}" title="{{$u.nickname}}"></td>
218 <td><a href="{{$u.url}}" title="{{$u.nickname}}" >{{$u.name}}</a></td>
219 <td>{{$u.email}}</td>
220 <td>{{$u.deleted}}</td>
237 <form action="{{$baseurl}}/admin/users" method="post">
238 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
240 <div class="panel panel-default">
241 <div class="panel-heading"><h3 class="panel-title">{{$h_newuser}}</h3></div>
242 <div class="panel-body">
243 {{include file="field_input.tpl" field=$newusername}}
244 {{include file="field_input.tpl" field=$newusernickname}}
245 {{include file="field_input.tpl" field=$newuseremail}}
247 <div class="panel-footer text-right">
248 <button type="submit" class="btn btn-primary">{{$submit}}</button>