3 function confirm_delete(uname){
4 return confirm( "{{$confirm_delete}}".format(uname));
6 function confirm_delete_multi(){
7 return confirm("{{$confirm_delete_multi}}");
9 function selectall(cls){
10 $("."+cls).prop("checked", true);
13 function unselectall(cls){
14 $("."+cls).prop("checked", false);
17 function details(uid) {
18 $("#user-"+uid+"-detail").toggleClass("hidden");
25 { border-top: 0!important; }
28 <div class="panel panel-default">
29 <div class="panel-body"><h1>{{$title}} - {{$page}}</h1></div>
32 <form action="{{$baseurl}}/admin/users" method="post">
33 <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
43 <div class="panel panel-default">
44 <div class="panel-heading"><h3 class="panel-title">{{$h_pending}}</h3></div>
47 <table id='pending' class="table table-hover">
50 {{foreach $th_pending as $th}}<th>{{$th}}</th>{{/foreach}}
52 <a href='#' onclick="return selectall('pending_ckbx');"><i class="fa fa-check-square-o" aria-hidden="true"></i></a>
53 <a href='#' onclick="return unselectall('pending_ckbx');"><i class="fa fa-square-o" aria-hidden="true"></i></a>
59 {{foreach $pending as $u}}
61 <td>{{$u.created}}</td>
64 <td ><input type="checkbox" class="pending_ckbx" id="id_pending_{{$u.hash}}" name="pending[]" value="{{$u.hash}}" /></td>
66 <a href="{{$baseurl}}/regmod/allow/{{$u.hash}}" title='{{$approve}}'><i class="fa fa-thumbs-up" aria-hidden="true"></i></a>
67 <a href="{{$baseurl}}/regmod/deny/{{$u.hash}}" title='{{$deny}}'><i class="fa fa-thumbs-down" aria-hidden="true"></i></a>
71 <th>{{$pendingnotetext}}</th>
72 <td colspan="4">{{$u.note}}</td>
77 <div class="panel-footer text-right">
78 <button type="submit" name="page_users_deny" class="btn btn-primary"><i class="fa fa-thumbs-down" aria-hidden="true"></i> {{$deny}}</button>
79 <button type="submit" name="page_users_approve" class="btn btn-warinig"><i class="fa fa-thumbs-up" aria-hidden="true"></i> {{$approve}}</button>
82 <div class="panel-body text-center text-muted">{{$no_pending}}</div>
93 <div class="panel panel-default">
94 <div class="panel-heading"><h3 class="panel-title">{{$h_users}}</h3></div>
97 <table id='users' class="table table-hover">
101 {{foreach $th_users as $k=>$th}}
102 {{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])) }}
104 <a href="{{$baseurl}}/admin/users/?o={{if $order_direction_users == "+"}}-{{/if}}{{$th.1}}">
105 {{if $order_users == $th.1}}
106 {{if $order_direction_users == "+"}}
119 <a href='#' onclick="return selectall('users_ckbx');"><i class="fa fa-check-square-o" aria-hidden="true"></i></a>
120 <a href='#' onclick="return unselectall('users_ckbx');"><i class="fa fa-square-o" aria-hidden="true"></i></a>
126 {{foreach $users as $u}}
127 <tr id="user-{{$u.uid}}">
128 <td><img class='icon' src="{{$u.micro}}" title="{{$u.nickname}}"></td>
129 <td><a href="{{$u.url}}" title="{{$u.nickname}}"> {{$u.name}}</a></td>
130 <td>{{$u.email}}</td>
131 {{if $order_users == $th_users.2.1}}
132 <td class='register_date'>{{$u.register_date}}</td>
135 {{if $order_users == $th_users.3.1}}
136 <td class='login_date'>{{$u.login_date}}</td>
139 {{if $order_users == $th_users.4.1}}
140 <td class='lastitem_date'>{{$u.lastitem_date}}</td>
143 {{if !in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1]) }}
144 <td>{{$u.page_flags}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.account_expired}}({{$accountexpired}}){{/if}}</td>
147 {{if $u.is_deletable}}
148 <input type="checkbox" class="users_ckbx" id="id_user_{{$u.uid}}" name="user[]" value="{{$u.uid}}"/></td>
152 <td class="text-right">
153 <a href="#" onclick="return details({{$u.uid}})"><i class="fa fa-bars" aria-hidden="true"></i>
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.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('{{$u.name}}')"><i class="fa fa-trash" aria-hidden="true"></i></a>
198 <div class="panel-footer text-right">
199 <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>
200 <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>
203 <div class="panel-body text-center bg-danger">NO USERS?!?</div>
218 * DELETED Users table
223 <div class="panel panel-default">
224 <div class="panel-heading"><h3 class="panel-title">{{$h_deleted}}</h3></div>
225 <table id='deleted' class="table table-hover">
229 {{foreach $th_deleted as $k=>$th}}
230 {{if in_array($k,[0,1,5])}}
237 {{foreach $deleted as $u}}
239 <td><img src="{{$u.micro}}" title="{{$u.nickname}}"></td>
240 <td><a href="{{$u.url}}" title="{{$u.nickname}}" >{{$u.name}}</a></td>
241 <td>{{$u.email}}</td>
242 <td>{{$u.deleted}}</td>
259 <form action="{{$baseurl}}/admin/users" method="post">
260 <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
262 <div class="panel panel-default">
263 <div class="panel-heading"><h3 class="panel-title">{{$h_newuser}}</h3></div>
264 <div class="panel-body">
265 {{include file="field_input.tpl" field=$newusername}}
266 {{include file="field_input.tpl" field=$newusernickname}}
267 {{include file="field_input.tpl" field=$newuseremail}}
269 <div class="panel-footer text-right">
270 <button type="submit" class="btn btn-primary">{{$submit}}</button>