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-md-6">
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-md-6">
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])) }}
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="icon" 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]) }}
131 <td>{{$u.page_flags}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.account_expired}}({{$accountexpired}}){{/if}}</td>
133 <td class="text-right">
134 <a href="#" onclick="return details({{$u.uid}})"><span class="caret"></span></i>
137 <tr id="user-{{$u.uid}}-detail" class="hidden details">
140 {{if $order_users != $th_users.2.1}}
141 <p><a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.2.1}}">
142 ↕ {{$th_users.2.0}}</a> : {{$u.register_date}}</p>
145 {{if $order_users != $th_users.3.1}}
146 <p><a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.3.1}}">
147 ↕ {{$th_users.3.0}}</a> : {{$u.login_date}}</p>
150 {{if $order_users != $th_users.4.1}}
151 <p><a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.4.1}}">
152 ↕ {{$th_users.4.0}}</a> : {{$u.lastitem_date}}</p>
155 {{if in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1]) }}
156 <p><a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.5.1}}">
157 ↕ {{$th_users.5.0}}</a> : {{$u.page_flags}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.account_expired}}({{$accountexpired}}){{/if}}</p>
161 <td class="text-right">
162 {{if $u.is_deletable}}
163 <a href="{{$baseurl}}/admin/users/block/{{$u.uid}}?t={{$form_security_token}}" title="{{if $u.blocked}}{{$unblock}}{{else}}{{$block}}{{/if}}">
165 <i class="fa fa-ban" aria-hidden="true"></i>
167 <i class="fa fa-circle-o" aria-hidden="true"></i>
170 <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>
179 <div class="panel-footer">
181 <div class="col-md-6">
182 <div class="btn-group" role="group">
183 <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>
184 <button type="button" class="btn btn-default selectnone" data-select-none="users_ckbx"><i class="fa fa-square-o" aria-hidden="true"></i></button>
187 <div class="col-md-6 text-right">
188 <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>
189 <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>
194 <div class="panel-body text-center bg-danger">NO USERS?!?</div>
209 * DELETED Users table
214 <div class="panel panel-default">
215 <div class="panel-heading"><h3 class="panel-title">{{$h_deleted}}</h3></div>
216 <table id="deleted" class="table table-hover">
220 {{foreach $th_deleted as $k=>$th}}
221 {{if in_array($k,[0,1,5])}}
228 {{foreach $deleted as $u}}
230 <td><img class="icon" src="{{$u.micro}}" title="{{$u.nickname}}"></td>
231 <td><a href="{{$u.url}}" title="{{$u.nickname}}" >{{$u.name}}</a></td>
232 <td>{{$u.email}}</td>
233 <td>{{$u.deleted}}</td>
250 <form action="{{$baseurl}}/admin/users" method="post">
251 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
253 <div class="panel panel-default">
254 <div class="panel-heading"><h3 class="panel-title">{{$h_newuser}}</h3></div>
255 <div class="panel-body">
256 {{include file="field_input.tpl" field=$newusername}}
257 {{include file="field_input.tpl" field=$newusernickname}}
258 {{include file="field_input.tpl" field=$newuseremail}}
260 <div class="panel-footer text-right">
261 <button type="submit" class="btn btn-primary">{{$submit}}</button>