]> git.mxchange.org Git - friendica.git/blob - view/templates/admin_users.tpl
Merge remote-tracking branch 'upstream/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                 <h3>{{$h_users}}</h3>
56                 {{if $users}}
57                         <table id='users'>
58                                 <thead>
59                                 <tr>
60                                         <th></th>
61                                         {{foreach $th_users as $th}}<th>{{$th}}</th>{{/foreach}}
62                                         <th></th>
63                                         <th></th>
64                                 </tr>
65                                 </thead>
66                                 <tbody>
67                                 {{foreach $users as $u}}
68                                         <tr>
69                                                 <td><img class='icon' src="{{$u.micro}}" alt="{{$u.nickname}}" title="{{$u.nickname}}"></td>
70                                                 <td class='name'><a href="{{$u.url}}" title="{{$u.nickname}}" >{{$u.name}}</a></td>
71                                                 <td class='email'>{{$u.email}}</td>
72                                                 <td class='register_date'>{{$u.register_date}}</td>
73                                                 <td class='login_date'>{{$u.login_date}}</td>
74                                                 <td class='lastitem_date'>{{$u.lastitem_date}}</td>
75                                                 <td class='login_date'>{{$u.page_flags}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.account_expired}}({{$accountexpired}}){{/if}}</td>
76                                                 <td class="checkbox"> 
77                                     {{if $u.is_admin}}
78                                         &nbsp;
79                                     {{else}}
80                                         <input type="checkbox" class="users_ckbx" id="id_user_{{$u.uid}}" name="user[]" value="{{$u.uid}}"/></td>
81                                     {{/if}}
82                                                 <td class="tools">
83                                     {{if $u.is_admin}}
84                                         &nbsp;
85                                     {{else}}
86                                         <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>
87                                         <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>
88                                     {{/if}}
89                                                 </td>
90                                         </tr>
91                                 {{/foreach}}
92                                 </tbody>
93                         </table>
94                         <div class='selectall'><a href='#' onclick="return selectall('users_ckbx');">{{$select_all}}</a></div>
95                         <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>                                          
96                 {{else}}
97                         NO USERS?!?
98                 {{/if}}
99         </form>
100         {{if $deleted}}
101                 <h3>{{$h_deleted}}</h3>
102                         <table id='deleted'>
103                                 <thead>
104                                 <tr>
105                                         <th></th>
106                                         {{foreach $th_deleted as $th}}<th>{{$th}}</th>{{/foreach}}
107                                 </tr>
108                                 </thead>
109                                 <tbody>
110                                 {{foreach $deleted as $u}}
111                                         <tr>
112                                                 <td><img class='icon' src="{{$u.micro}}" alt="{{$u.nickname}}" title="{{$u.nickname}}"></td>
113                                                 <td class='name'><a href="{{$u.url}}" title="{{$u.nickname}}" >{{$u.name}}</a></td>
114                                                 <td class='email'>{{$u.email}}</td>
115                                                 <td class='register_date'>{{$u.register_date}}</td>
116                                                 <td class='login_date'>{{$u.login_date}}</td>
117                                                 <td class='lastitem_date'>{{$u.lastitem_date}}</td>
118                                                 <td class='login_date'>{{$u.deleted}}</td>
119                                         </tr>
120                                 {{/foreach}}
121                                 </tbody>
122                         </table>
123                 {{/if}}
124   <h3>{{$h_newuser}}</h3> 
125   <form action="{{$baseurl}}/admin/users" method="post"> 
126   <input type='hidden' name='form_security_token' value='{{$form_security_token}}'> 
127   <table id='users'> 
128       <tbody> 
129         <tr> 
130         <td>{{include file="field_input.tpl" field=$newusername}}</td> 
131     </tr> 
132         <tr> 
133         <td>{{include file="field_input.tpl" field=$newusernickname}}</td> 
134     </tr> 
135         <tr> 
136         <td>{{include file="field_input.tpl" field=$newuseremail}}</td> 
137     </tr> 
138       </tbody> 
139   </table> 
140   <div class="submit"><input type="submit" name="add_new_user_submit" value="{{$submit}}" /></div>             
141   </form>
142 </div>