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}}">
18 <div class="panel panel-default">
19 <div class="panel-heading"><h3 class="panel-title">{{$h_pending}}</h3></div>
22 <table id="pending" class="table table-hover">
26 {{foreach $th_pending as $th}}<th>{{$th}}</th>{{/foreach}}
31 {{foreach $pending as $u}}
33 <td><input type="checkbox" class="pending_ckbx" id="id_pending_{{$u.hash}}" name="pending[]" value="{{$u.hash}}" /></td>
34 <td>{{$u.created}}</td>
38 <a href="{{$baseurl}}/regmod/allow/{{$u.hash}}" title="{{$approve}}"><i class="fa fa-thumbs-up" aria-hidden="true"></i></a>
39 <a href="{{$baseurl}}/regmod/deny/{{$u.hash}}" title="{{$deny}}"><i class="fa fa-thumbs-down" aria-hidden="true"></i></a>
44 <th>{{$pendingnotetext}}</th>
45 <td colspan="4">{{$u.note}}</td>
50 <div class="panel-footer">
52 <div class="col-xs-3">
53 <div class="btn-group" role="group">
54 <button type="button" class="btn btn-default selectall" data-select-all="pending_ckbx"><i class="fa fa-check-square-o" aria-hidden="true"></i></button>
55 <button type="button" class="btn btn-default selectnone" data-select-none="pending_ckbx"><i class="fa fa-square-o" aria-hidden="true"></i></button>
58 <div class="col-xs-9 text-right">
59 <button type="submit" name="page_users_deny" class="btn btn-primary"><i class="fa fa-thumbs-down" aria-hidden="true"></i> {{$deny}}</button>
60 <button type="submit" name="page_users_approve" class="btn btn-warinig"><i class="fa fa-thumbs-up" aria-hidden="true"></i> {{$approve}}</button>
65 <div class="panel-body text-center text-muted">{{$no_pending}}</div>
76 <div class="panel panel-default">
77 <div class="panel-heading"><h3 class="panel-title">{{$h_users}}</h3></div>
80 <table id="users" class="table table-hover">
85 {{foreach $th_users as $k=>$th}}
86 {{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])) }}
87 <th class="th-{{$k}}">
88 <a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th.1}}">
89 {{if $order_users == $th.1}}
90 {{if $order_direction_users == "+"}}
106 {{foreach $users as $u}}
107 <tr id="user-{{$u.uid}}">
109 {{if $u.is_deletable}}
110 <input type="checkbox" class="users_ckbx" id="id_user_{{$u.uid}}" name="user[]" value="{{$u.uid}}"/>
115 <td><img class="avatar-nano" src="{{$u.micro}}" title="{{$u.nickname}}"></td>
116 <td><a href="{{$u.url}}" title="{{$u.nickname}}"> {{$u.name}}</a></td>
117 <td>{{$u.email}}</td>
118 {{if $order_users == $th_users.2.1}}
119 <td>{{$u.register_date}}</td>
122 {{if $order_users == $th_users.3.1}}
123 <td>{{$u.login_date}}</td>
126 {{if $order_users == $th_users.4.1}}
127 <td>{{$u.lastitem_date}}</td>
130 {{if !in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1]) }}
134 {{if $u.page_flags_raw==0}}fa-user{{/if}} {{* PAGE_NORMAL *}}
135 {{if $u.page_flags_raw==1}}fa-bullhorn{{/if}} {{* PAGE_SOAPBOX *}}
136 {{if $u.page_flags_raw==2}}fa-users{{/if}} {{* PAGE_COMMUNITY *}}
137 {{if $u.page_flags_raw==3}}fa-heart{{/if}} {{* PAGE_FREELOVE *}}
138 {{if $u.page_flags_raw==4}}fa-rss{{/if}} {{* PAGE_BLOG *}}
139 {{if $u.page_flags_raw==5}}fa-user-secret{{/if}} {{* PAGE_PRVGROUP *}}
140 " title="{{$u.page_flags}}"></i>
141 {{if $u.page_flags_raw==0 && $u.account_type_raw > 0}}
143 {{if $u.account_type_raw==1}}fa-sitemap{{/if}} {{* ACCOUNT_TYPE_ORGANISATION *}}
144 {{if $u.account_type_raw==2}}fa-newspaper-o{{/if}} {{* ACCOUNT_TYPE_NEWS *}}
145 {{if $u.account_type_raw==3}}fa-comments{{/if}} {{* ACCOUNT_TYPE_COMMUNITY *}}
146 " title="{{$u.account_type}}"></i>
148 {{if $u.is_admin}}<i class="fa fa-user-md text-primary" title="{{$siteadmin}}"></i>{{/if}}
149 {{if $u.account_expired}}<i class="fa fa-clock-o text-warning" title="{{$accountexpired}}"></i>{{/if}}
152 <td class="text-right">
153 <button type="button" class="btn-link" onclick="return details({{$u.uid}})"><span class="caret"></span></button>
156 <tr id="user-{{$u.uid}}-detail" class="hidden details">
159 {{if $order_users != $th_users.2.1}}
160 <p><a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.2.1}}">
161 ↕ {{$th_users.2.0}}</a> : {{$u.register_date}}</p>
164 {{if $order_users != $th_users.3.1}}
165 <p><a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.3.1}}">
166 ↕ {{$th_users.3.0}}</a> : {{$u.login_date}}</p>
169 {{if $order_users != $th_users.4.1}}
170 <p><a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.4.1}}">
171 ↕ {{$th_users.4.0}}</a> : {{$u.lastitem_date}}</p>
174 {{if in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1]) }}
175 <p><a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.5.1}}">
176 ↕ {{$th_users.5.0}}</a> : {{$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}}</p>
180 <td class="text-right">
181 {{if $u.is_deletable}}
182 <a href="{{$baseurl}}/admin/users/block/{{$u.uid}}?t={{$form_security_token}}" title="{{if $u.blocked}}{{$unblock}}{{else}}{{$block}}{{/if}}">
184 <i class="fa fa-ban" aria-hidden="true"></i>
186 <i class="fa fa-circle-o" aria-hidden="true"></i>
189 <a href="{{$baseurl}}/admin/users/delete/{{$u.uid}}?t={{$form_security_token}}" title="{{$delete}}" onclick="return confirm_delete('{{$confirm_delete}}','{{$u.name}}')"><i class="fa fa-trash" aria-hidden="true"></i></a>
198 <div class="panel-footer">
200 <div class="col-xs-3">
201 <div class="btn-group" role="group">
202 <button type="button" class="btn btn-default selectall" data-select-all="users_ckbx"><i class="fa fa-check-square-o" aria-hidden="true"></i></button>
203 <button type="button" class="btn btn-default selectnone" data-select-none="users_ckbx"><i class="fa fa-square-o" aria-hidden="true"></i></button>
206 <div class="col-xs-9 text-right">
207 <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>
208 <button type="submit" name="page_users_delete" class="btn btn-danger" onclick="return confirm_delete('{{$confirm_delete_multi}}')"><i class="fa fa-trash" aria-hidden="true"></i> {{$delete}}</button>
213 <div class="panel-body text-center bg-danger">NO USERS?!?</div>
228 * DELETED Users table
233 <div class="panel panel-default">
234 <div class="panel-heading"><h3 class="panel-title">{{$h_deleted}}</h3></div>
235 <table id="deleted" class="table table-hover">
239 {{foreach $th_deleted as $k=>$th}}
240 {{if in_array($k,[0,1,5])}}
247 {{foreach $deleted as $u}}
249 <td><img class="avatar-nano" src="{{$u.micro}}" title="{{$u.nickname}}"></td>
250 <td><a href="{{$u.url}}" title="{{$u.nickname}}" >{{$u.name}}</a></td>
251 <td>{{$u.email}}</td>
252 <td>{{$u.deleted}}</td>
269 <form action="{{$baseurl}}/admin/users" method="post">
270 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
272 <div class="panel panel-default">
273 <div class="panel-heading"><h3 class="panel-title">{{$h_newuser}}</h3></div>
274 <div class="panel-body">
275 {{include file="field_input.tpl" field=$newusername}}
276 {{include file="field_input.tpl" field=$newusernickname}}
277 {{include file="field_input.tpl" field=$newuseremail}}
279 <div class="panel-footer text-right">
280 <button type="submit" class="btn btn-primary">{{$submit}}</button>