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