]> git.mxchange.org Git - friendica.git/blob - view/theme/frio/templates/moderation/users/active.tpl
New area "moderation"
[friendica.git] / view / theme / frio / templates / moderation / users / active.tpl
1 <script type="text/javascript" src="view/theme/frio/js/mod_admin.js?v={{$smarty.const.FRIENDICA_VERSION}}"></script>
2 <link rel="stylesheet" href="view/theme/frio/css/mod_admin.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen"/>
3
4 <div id="admin-users" class="adminpage generic-page-wrapper">
5         <h1>{{$title}} - {{$page}} ({{$count}})</h1>
6         <p>
7                 <a href="{{$base_url}}/admin/users/create" class="btn btn-primary"><i class="fa fa-user-plus"></i> {{$h_newuser}}</a>
8         </p>
9         <form action="{{$baseurl}}/{{$query_string}}" method="post">
10                 <input type="hidden" name="form_security_token" value="{{$form_security_token}}">
11                 <table id="users" class="table table-hover">
12                         <thead>
13                                 <tr>
14                                         <th>
15                                                 <div class="checkbox">
16                                                         <input type="checkbox" id="admin-settings-users-select" class="selecttoggle" data-select-class="users_ckbx"/>
17                                                         <label for="admin-settings-users-select"></label>
18                                                 </div>
19                                         </th>
20                                         <th></th>
21                                         {{foreach $th_users as $k=>$th}}
22                                                 {{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])) }}
23                                                 <th class="th-{{$k}}">
24                                                         <a href="{{$baseurl}}/admin/users/active?o={{if $order_direction_users == "+"}}-{{/if}}{{$th.1}}" class="table-order">
25                                                                 {{if $order_users == $th.1}}
26                                                                         {{if $order_direction_users == "+"}}
27                                                                         &#8595;
28                                                                         {{else}}
29                                                                         &#8593;
30                                                                         {{/if}}
31                                                                 {{else}}
32                                                                 &#8597;
33                                                                 {{/if}}
34                                                                 {{$th.0}}
35                                                         </a>
36                                                 </th>
37                                                 {{/if}}
38                                         {{/foreach}}
39                                         <th></th>
40                                 </tr>
41                         </thead>
42                         <tbody>
43                         {{foreach $users as $u}}
44                                 <tr id="user-{{$u.uid}}" class="{{if $u.blocked != 0}}blocked{{/if}}">
45                                         <td>
46                                                 {{if $u.is_deletable}}
47                                                 <div class="checkbox">
48                                                         <input type="checkbox" class="users_ckbx" id="id_user_{{$u.uid}}" name="user[]" value="{{$u.uid}}"/>
49                                                         <label for="id_user_{{$u.uid}}"></label>
50                                                 </div>
51                                                 {{else}}
52                                                 &nbsp;
53                                                 {{/if}}
54                                         </td>
55                                         <td><img class="avatar-nano" src="{{$u.micro}}" title="{{$u.nickname}}"></td>
56                                         <td><a href="{{$u.url}}" title="{{$u.nickname}}"> {{$u.name}}</a></td>
57                                         <td>{{$u.email}}</td>
58                                 {{if $order_users == $th_users.2.1}}
59                                         <td>{{$u.register_date}}</td>
60                                 {{/if}}
61
62                                 {{if $order_users == $th_users.3.1}}
63                                         <td>{{$u.login_date}}</td>
64                                 {{/if}}
65
66                                 {{if $order_users == $th_users.4.1}}
67                                         <td>{{$u.lastitem_date}}</td>
68                                 {{/if}}
69
70                                 {{if !in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1]) }}
71                                         <td>
72                                                 <i class="fa
73                                                         {{if $u.page_flags_raw==0}}fa-user{{/if}}               {{* PAGE_NORMAL *}}
74                                                         {{if $u.page_flags_raw==1}}fa-bullhorn{{/if}}           {{* PAGE_SOAPBOX *}}
75                                                         {{if $u.page_flags_raw==2}}fa-users{{/if}}              {{* PAGE_COMMUNITY *}}
76                                                         {{if $u.page_flags_raw==3}}fa-heart{{/if}}              {{* PAGE_FREELOVE *}}
77                                                         {{if $u.page_flags_raw==4}}fa-rss{{/if}}                {{* PAGE_BLOG *}}
78                                                         {{if $u.page_flags_raw==5}}fa-user-secret{{/if}}        {{* PAGE_PRVGROUP *}}
79                                                         " title="{{$u.page_flags}}">
80                                                 </i>
81                                                 {{if $u.page_flags_raw==0 && $u.account_type_raw > 0}}
82                                                 <i class="fa
83                                                         {{if $u.account_type_raw==1}}fa-sitemap{{/if}}          {{* ACCOUNT_TYPE_ORGANISATION *}}
84                                                         {{if $u.account_type_raw==2}}fa-newspaper-o{{/if}}      {{* ACCOUNT_TYPE_NEWS *}}
85                                                         {{if $u.account_type_raw==3}}fa-comments{{/if}}         {{* ACCOUNT_TYPE_COMMUNITY *}}
86                                                         " title="{{$u.account_type}}">
87                                                 </i>
88                                                 {{/if}}
89                                                 {{if $u.is_admin}}<i class="fa fa-user-secret text-primary" title="{{$siteadmin}}"></i>{{/if}}
90                                                 {{if $u.account_expired}}<i class="fa fa-clock-o text-warning" title="{{$accountexpired}}"></i>{{/if}}
91                                         </td>
92                                 {{/if}}
93
94                                         <td class="text-right">
95                                                 <button type="button" class="btn-link admin-settings-action-link" onclick="return details({{$u.uid}})"><span class="caret"></span></button>
96                                         </td>
97                                 </tr>
98                                 <tr id="user-{{$u.uid}}-detail" class=" details hidden {{if $u.blocked != 0}}blocked{{/if}}">
99                                         <td>&nbsp;</td>
100                                         <td colspan="4">
101                                         {{if $order_users != $th_users.2.1}}
102                                                 <p>
103                                                         <a href="{{$baseurl}}/admin/users/active?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.2.1}}" class="btn-link table-order">
104                                                         &#8597; {{$th_users.2.0}}</a> : {{$u.register_date}}
105                                                 </p>
106                                         {{/if}}
107
108                                         {{if $order_users != $th_users.3.1}}
109                                                 <p>
110                                                         <a href="{{$baseurl}}/admin/users/active?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.3.1}}" class="btn-link table-order">
111                                                                 &#8597; {{$th_users.3.0}}</a> : {{$u.login_date}}
112                                                 </p>
113                                         {{/if}}
114
115                                         {{if $order_users != $th_users.4.1}}
116                                                 <p>
117                                                         <a href="{{$baseurl}}/admin/users/active?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.4.1}}" class="btn-link table-order">
118                                                                 &#8597; {{$th_users.4.0}}</a> : {{$u.lastitem_date}}
119                                                 </p>
120                                         {{/if}}
121
122                                         {{if in_array($order_users,[$th_users.2.1, $th_users.3.1, $th_users.4.1]) }}
123                                                 <p>
124                                                         <a href="{{$baseurl}}/admin/users/active?o={{if $order_direction_users == "+"}}-{{/if}}{{$th_users.5.1}}" class="btn-link table-order">
125                                                                 &#8597; {{$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}}
126                                                 </p>
127                                         {{/if}}
128
129                                         </td>
130                                         <td class="text-right">
131                                 {{if $u.is_deletable}}
132                                                 <a href="{{$baseurl}}/admin/users/active/block/{{$u.uid}}?t={{$form_security_token}}" class="admin-settings-action-link" title="{{$block}}">
133                                                         <i class="fa fa-ban" aria-hidden="true"></i>
134                                                 </a>
135                                                 <a href="{{$baseurl}}/admin/users/active/delete/{{$u.uid}}?t={{$form_security_token}}" class="admin-settings-action-link" title="{{$delete}}" onclick="return confirm_delete('{{$confirm_delete}}','{{$u.name}}')">
136                                                         <i class="fa fa-trash" aria-hidden="true"></i>
137                                                 </a>
138                                 {{else}}
139                                                 &nbsp;
140                                 {{/if}}
141                                         </td>
142                                 </tr>
143                         {{/foreach}}
144                         </tbody>
145                 </table>
146                 <div class="panel-footer">
147                         <button type="submit" name="page_users_block" value="1" class="btn btn-warning">
148                                 <i class="fa fa-ban" aria-hidden="true"></i> {{$block}}
149                         </button>
150                         <button type="submit" name="page_users_delete" value="1" class="btn btn-danger" onclick="return confirm_delete('{{$confirm_delete_multi}}')">
151                                 <i class="fa fa-trash" aria-hidden="true"></i> {{$delete}}
152                         </button>
153                 </div>
154                 {{$pager nofilter}}
155         </form>
156 </div>