]> git.mxchange.org Git - friendica.git/blob - view/templates/admin_users.tpl
Merge pull request #703 from fabrixxm/master
[friendica.git] / view / templates / admin_users.tpl
1 {{*
2  *      AUTOMATICALLY GENERATED TEMPLATE
3  *      DO NOT EDIT THIS FILE, CHANGES WILL BE OVERWRITTEN
4  *
5  *}}
6 <script>
7         function confirm_delete(uname){
8                 return confirm( "{{$confirm_delete}}".format(uname));
9         }
10         function confirm_delete_multi(){
11                 return confirm("{{$confirm_delete_multi}}");
12         }
13         function selectall(cls){
14                 $("."+cls).attr('checked','checked');
15                 return false;
16         }
17 </script>
18 <div id='adminpage'>
19         <h1>{{$title}} - {{$page}}</h1>
20         
21         <form action="{{$baseurl}}/admin/users" method="post">
22         <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
23                 
24                 <h3>{{$h_pending}}</h3>
25                 {{if $pending}}
26                         <table id='pending'>
27                                 <thead>
28                                 <tr>
29                                         {{foreach $th_pending as $th}}<th>{{$th}}</th>{{/foreach}}
30                                         <th></th>
31                                         <th></th>
32                                 </tr>
33                                 </thead>
34                                 <tbody>
35                         {{foreach $pending as $u}}
36                                 <tr>
37                                         <td class="created">{{$u.created}}</td>
38                                         <td class="name">{{$u.name}}</td>
39                                         <td class="email">{{$u.email}}</td>
40                                         <td class="checkbox"><input type="checkbox" class="pending_ckbx" id="id_pending_{{$u.hash}}" name="pending[]" value="{{$u.hash}}" /></td>
41                                         <td class="tools">
42                                                 <a href="{{$baseurl}}/regmod/allow/{{$u.hash}}" title='{{$approve}}'><span class='icon like'></span></a>
43                                                 <a href="{{$baseurl}}/regmod/deny/{{$u.hash}}" title='{{$deny}}'><span class='icon dislike'></span></a>
44                                         </td>
45                                 </tr>
46                         {{/foreach}}
47                                 </tbody>
48                         </table>
49                         <div class='selectall'><a href='#' onclick="return selectall('pending_ckbx');">{{$select_all}}</a></div>
50                         <div class="submit"><input type="submit" name="page_users_deny" value="{{$deny}}"/> <input type="submit" name="page_users_approve" value="{{$approve}}" /></div>                        
51                 {{else}}
52                         <p>{{$no_pending}}</p>
53                 {{/if}}
54         
55         
56                 
57         
58                 <h3>{{$h_users}}</h3>
59                 {{if $users}}
60                         <table id='users'>
61                                 <thead>
62                                 <tr>
63                                         <th></th>
64                                         {{foreach $th_users as $th}}<th>{{$th}}</th>{{/foreach}}
65                                         <th></th>
66                                         <th></th>
67                                 </tr>
68                                 </thead>
69                                 <tbody>
70                                 {{foreach $users as $u}}
71                                         <tr>
72                                                 <td><img src="{{$u.micro}}" alt="{{$u.nickname}}" title="{{$u.nickname}}"></td>
73                                                 <td class='name'><a href="{{$u.url}}" title="{{$u.nickname}}" >{{$u.name}}</a></td>
74                                                 <td class='email'>{{$u.email}}</td>
75                                                 <td class='register_date'>{{$u.register_date}}</td>
76                                                 <td class='login_date'>{{$u.login_date}}</td>
77                                                 <td class='lastitem_date'>{{$u.lastitem_date}}</td>
78                                                 <td class='login_date'>{{$u.page_flags}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.account_expired}}({{$accountexpired}}){{/if}}</td>
79                                                 <td class="checkbox"> 
80                                     {{if $u.is_admin}}
81                                         &nbsp;
82                                     {{else}}
83                                         <input type="checkbox" class="users_ckbx" id="id_user_{{$u.uid}}" name="user[]" value="{{$u.uid}}"/></td>
84                                     {{/if}}
85                                                 <td class="tools">
86                                     {{if $u.is_admin}}
87                                         &nbsp;
88                                     {{else}}
89                                         <a href="{{$baseurl}}/admin/users/block/{{$u.uid}}?t={{$form_security_token}}" title='{{if $u.blocked}}{{$unblock}}{{else}}{{$block}}{{/if}}'><span class='icon block {{if $u.blocked==0}}dim{{/if}}'></span></a>
90                                         <a href="{{$baseurl}}/admin/users/delete/{{$u.uid}}?t={{$form_security_token}}" title='{{$delete}}' onclick="return confirm_delete('{{$u.name}}')"><span class='icon drop'></span></a>
91                                     {{/if}}
92                                                 </td>
93                                         </tr>
94                                 {{/foreach}}
95                                 </tbody>
96                         </table>
97                         <div class='selectall'><a href='#' onclick="return selectall('users_ckbx');">{{$select_all}}</a></div>
98                         <div class="submit"><input type="submit" name="page_users_block" value="{{$block}}/{{$unblock}}" /> <input type="submit" name="page_users_delete" value="{{$delete}}" onclick="return confirm_delete_multi()" /></div>                                          
99                 {{else}}
100                         NO USERS?!?
101                 {{/if}}
102         </form>
103 </div>