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 <h1>{{$title}} - {{$page}}</h1>
7 <form action="{{$baseurl}}/admin/users" method="post">
8 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
10 {{* We organize the settings in collapsable panel-groups *}}
11 <div class="panel-group panel-group-settings" id="admin-settings" role="tablist" aria-multiselectable="true">
21 <div class="section-subtitle-wrapper" role="tab" id="admin-settings-pending">
23 <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-pending-collapse" aria-expanded="{{if count($pending) > 0}}true{{else}}false{{/if}}" aria-controls="admin-settings-pending-collapse">
24 {{$h_pending}} ({{count($pending)}})
29 <div id="admin-settings-pending-collapse" class="panel-collapse collapse {{if count($pending) > 0}}in{{/if}}" role="tabpanel" aria-labelledby="admin-settings-pending">
31 <table id="pending" class="table table-hover">
35 {{foreach $th_pending as $th}}<th>{{$th}}</th>{{/foreach}}
40 {{foreach $pending as $u}}
43 <div class="checkbox">
44 <input type="checkbox" class="pending_ckbx" id="id_pending_{{$u.hash}}" name="pending[]" value="{{$u.hash}}" />
45 <label for="id_pending_{{$u.hash}}"></label>
48 <td>{{$u.created}}</td>
52 <a href="{{$baseurl}}/regmod/allow/{{$u.hash}}" class="admin-settings-action-link" title="{{$approve}}"><i class="fa fa-check" aria-hidden="true"></i></a>
53 <a href="{{$baseurl}}/regmod/deny/{{$u.hash}}" class="admin-settings-action-link" title="{{$deny}}"><i class="fa fa-trash-o" aria-hidden="true"></i></a>
59 <th>{{$pendingnotetext}}</th>
60 <td colspan="4">{{$u.note}}</td>
66 <div class="panel-footer">
68 <div class="col-xs-3 admin-settings-footer-elements">
69 <div class="checkbox">
70 <input type="checkbox" id="admin-settings-pending-select" class="selecttoggle" data-select-class="pending_ckbx"/>
71 <label for="admin-settings-pending-select"></label>
74 <div class="col-xs-9 admin-settings-footer-elements text-right">
75 <button type="submit" name="page_users_deny" value="1" class="btn btn-primary">
76 <i class="fa fa-trash-o" aria-hidden="true"></i> {{$deny}}
78 <button type="submit" name="page_users_approve" value="1" class="btn btn-warinig">
79 <i class="fa fa-check" aria-hidden="true"></i> {{$approve}}
85 <div class="panel-body text-center text-muted">{{$no_pending}}</div>
98 <div class="section-subtitle-wrapper" role="tab" id="admin-settings-user">
100 <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-user-collapse" aria-expanded="false" aria-controls="admin-settings-user-collapse">
101 {{$h_users}} ({{count($users)}})
106 <div id="admin-settings-user-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-user">
109 <div class="panel-body">
110 <table id="users" class="table table-hover">
115 {{foreach $th_users as $k=>$th}}
116 {{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])) }}
117 <th class="th-{{$k}}">
118 <button type="button" data-order-url="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th.1}}" class="btn-link table-order">
119 {{if $order_users == $th.1}}
120 {{if $order_direction_users == "+"}}
137 {{foreach $users as $u}}
138 <tr id="user-{{$u.uid}}" class="{{if $u.blocked != 0}}blocked{{/if}}">
140 {{if $u.is_deletable}}
141 <div class="checkbox">
142 <input type="checkbox" class="users_ckbx" id="id_user_{{$u.uid}}" name="user[]" value="{{$u.uid}}"/>
143 <label for="id_user_{{$u.uid}}"></label>
149 <td><img class="avatar-nano" src="{{$u.micro}}" title="{{$u.nickname}}"></td>
150 <td><a href="{{$u.url}}" title="{{$u.nickname}}"> {{$u.name}}</a></td>
151 <td>{{$u.email}}</td>
152 {{if $order_users == $th_users.2.1}}
153 <td>{{$u.register_date}}</td>
156 {{if $order_users == $th_users.3.1}}
157 <td>{{$u.login_date}}</td>
160 {{if $order_users == $th_users.4.1}}
161 <td>{{$u.lastitem_date}}</td>
164 {{if !in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1]) }}
167 {{if $u.page_flags_raw==0}}fa-user{{/if}} {{* PAGE_NORMAL *}}
168 {{if $u.page_flags_raw==1}}fa-bullhorn{{/if}} {{* PAGE_SOAPBOX *}}
169 {{if $u.page_flags_raw==2}}fa-users{{/if}} {{* PAGE_COMMUNITY *}}
170 {{if $u.page_flags_raw==3}}fa-heart{{/if}} {{* PAGE_FREELOVE *}}
171 {{if $u.page_flags_raw==4}}fa-rss{{/if}} {{* PAGE_BLOG *}}
172 {{if $u.page_flags_raw==5}}fa-user-secret{{/if}} {{* PAGE_PRVGROUP *}}
173 " title="{{$u.page_flags}}">
175 {{if $u.page_flags_raw==0 && $u.account_type_raw > 0}}
177 {{if $u.account_type_raw==1}}fa-sitemap{{/if}} {{* ACCOUNT_TYPE_ORGANISATION *}}
178 {{if $u.account_type_raw==2}}fa-newspaper-o{{/if}} {{* ACCOUNT_TYPE_NEWS *}}
179 {{if $u.account_type_raw==3}}fa-comments{{/if}} {{* ACCOUNT_TYPE_COMMUNITY *}}
180 " title="{{$u.account_type}}">
183 {{if $u.is_admin}}<i class="fa fa-user-md text-primary" title="{{$siteadmin}}"></i>{{/if}}
184 {{if $u.account_expired}}<i class="fa fa-clock-o text-warning" title="{{$accountexpired}}"></i>{{/if}}
188 <td class="text-right">
189 <button type="button" class="btn-link admin-settings-action-link" onclick="return details({{$u.uid}})"><span class="caret"></span></button>
192 <tr id="user-{{$u.uid}}-detail" class=" details hidden {{if $u.blocked != 0}}blocked{{/if}}">
195 {{if $order_users != $th_users.2.1}}
197 <button type="button" data-order-url="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.2.1}}" class="btn-link table-order">
198 ↕ {{$th_users.2.0}}</button> : {{$u.register_date}}
202 {{if $order_users != $th_users.3.1}}
204 <button type="button" data-order-url="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.3.1}}" class="btn-link table-order">
205 ↕ {{$th_users.3.0}}</button> : {{$u.login_date}}
209 {{if $order_users != $th_users.4.1}}
211 <button type="button" data-order-url="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.4.1}}" class="btn-link table-order">
212 ↕ {{$th_users.4.0}}</button> : {{$u.lastitem_date}}
216 {{if in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1]) }}
218 <button type="button" data-order-url="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.5.1}}" class="btn-link table-order">
219 ↕ {{$th_users.5.0}}</button> : {{$u.page_flags}}{{if $u.page_flags_raw==0 && $u.account_type_raw > 0}}, {{$u.account_type}}{{/if}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.account_expired}}({{$accountexpired}}){{/if}}
224 <td class="text-right">
225 {{if $u.is_deletable}}
227 <a href="{{$baseurl}}/admin/users/unblock/{{$u.uid}}?t={{$form_security_token}}" class="admin-settings-action-link" title="{{$unblock}}">
228 <i class="fa fa-circle-o" aria-hidden="true"></i>
231 <a href="{{$baseurl}}/admin/users/block/{{$u.uid}}?t={{$form_security_token}}" class="admin-settings-action-link" title="{{$block}}">
232 <i class="fa fa-ban" aria-hidden="true"></i>
235 <a href="{{$baseurl}}/admin/users/delete/{{$u.uid}}?t={{$form_security_token}}" class="admin-settings-action-link" title="{{$delete}}" onclick="return confirm_delete('{{$confirm_delete}}','{{$u.name}}')">
236 <i class="fa fa-trash" aria-hidden="true"></i>
248 <div class="panel-body text-center bg-danger">NO USERS?!?</div>
250 <div class="panel-footer">
253 <div class="col-xs-3 admin-settings-footer-elements">
254 <div class="checkbox">
255 <input type="checkbox" id="admin-settings-users-select" class="selecttoggle" data-select-class="users_ckbx"/>
256 <label for="admin-settings-users-select"></label>
259 <div class="col-xs-9 admin-settings-footer-elements text-right">
260 <button type="submit" name="page_users_block" value="1" class="btn btn-warning">
261 <i class="fa fa-ban" aria-hidden="true"></i> {{$block}}
263 <button type="submit" name="page_users_unblock" value="1" class="btn btn-default">
264 <i class="fa fa-circle-o" aria-hidden="true"></i> {{$unblock}}
266 <button type="submit" name="page_users_delete" value="1" class="btn btn-danger" onclick="return confirm_delete('{{$confirm_delete_multi}}')">
267 <i class="fa fa-trash" aria-hidden="true"></i> {{$delete}}
280 * DELETED Users table
286 <div class="section-subtitle-wrapper" role="tab" id="admin-settings-deleted">
288 <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-deleted-collapse" aria-expanded="false" aria-controls="admin-settings-deleted-collapse">
289 {{$h_deleted}} ({{count($deleted)}})
294 <div id="admin-settings-deleted-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-deleted">
295 <table id="deleted" class="table table-hover">
299 {{foreach $th_deleted as $k=>$th}}
300 {{if in_array($k,[0,1,5])}}
307 {{foreach $deleted as $u}}
309 <td><img class="avatar-nano" src="{{$u.micro}}" title="{{$u.nickname}}"></td>
310 <td><a href="{{$u.url}}" title="{{$u.nickname}}" >{{$u.name}}</a></td>
311 <td>{{$u.email}}</td>
312 <td>{{$u.deleted}}</td>
331 <div class="section-subtitle-wrapper" role="tab" id="admin-settings-new-user">
333 <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-new-user-collapse" aria-expanded="false" aria-controls="admin-settings-new-user-collapse">
339 <div id="admin-settings-new-user-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-new-user">
340 <div class="panel-body">
341 {{include file="field_input.tpl" field=$newusername}}
342 {{include file="field_input.tpl" field=$newusernickname}}
343 {{include file="field_input.tpl" field=$newuseremail}}
345 <div class="panel-footer text-right">
346 <button type="submit" class="btn btn-primary">{{$submit}}</button>