]> git.mxchange.org Git - friendica.git/blob - view/theme/quattro/templates/admin_users.tpl
Add user language in settings, use that field as language for UI
[friendica.git] / view / theme / quattro / templates / admin_users.tpl
1
2 <script>
3         function confirm_delete(uname){
4                 return confirm( "{{$confirm_delete}}".format(uname));
5         }
6         function confirm_delete_multi(){
7                 return confirm("{{$confirm_delete_multi}}");
8         }
9         function selectall(cls){
10                 $("."+cls).attr('checked','checked');
11                 return false;
12         }
13 </script>
14 <div id='adminpage'>
15         <h1>{{$title}} - {{$page}}</h1>
16         
17         <form action="{{$baseurl}}/admin/users" method="post">
18         <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
19                 
20                 <h3>{{$h_pending}}</h3>
21                 {{if $pending}}
22                         <table id='pending'>
23                                 <thead>
24                                 <tr>
25                                         {{foreach $th_pending as $th}}<th>{{$th}}</th>{{/foreach}}
26                                         <th></th>
27                                         <th></th>
28                                 </tr>
29                                 </thead>
30                                 <tbody>
31                         {{foreach $pending as $u}}
32                                 <tr>
33                                         <td class="created">{{$u.created}}</td>
34                                         <td class="name">{{$u.name}}</td>
35                                         <td class="email">{{$u.email}}</td>
36                                         <td class="checkbox"><input type="checkbox" class="pending_ckbx" id="id_pending_{{$u.hash}}" name="pending[]" value="{{$u.hash}}" /></td>
37                                         <td class="tools">
38                                                 <a href="{{$baseurl}}/regmod/allow/{{$u.hash}}" title='{{$approve}}'><span class='icon like'></span></a>
39                                                 <a href="{{$baseurl}}/regmod/deny/{{$u.hash}}" title='{{$deny}}'><span class='icon dislike'></span></a>
40                                         </td>
41                                 </tr>
42                         {{/foreach}}
43                                 </tbody>
44                         </table>
45                         <div class='selectall'><a href='#' onclick="return selectall('pending_ckbx');">{{$select_all}}</a></div>
46                         <div class="submit"><input type="submit" name="page_users_deny" value="{{$deny}}"/> <input type="submit" name="page_users_approve" value="{{$approve}}" /></div>                        
47                 {{else}}
48                         <p>{{$no_pending}}</p>
49                 {{/if}}
50         
51                 <h3>{{$h_users}}</h3>
52                 {{if $users}}
53                         <table id='users'>
54                                 <thead>
55                                 <tr>
56                                         <th></th>
57                                         {{foreach $th_users as $th}}<th>{{$th}}</th>{{/foreach}}
58                                         <th></th>
59                                         <th></th>
60                                 </tr>
61                                 </thead>
62                                 <tbody>
63                                 {{foreach $users as $u}}
64                                         <tr>
65                                                 <td><img class='icon' src="{{$u.micro}}" alt="{{$u.nickname}}" title="{{$u.nickname}}"></td>
66                                                 <td class='name'><a href="{{$u.url}}" title="{{$u.nickname}}" >{{$u.name}}</a></td>
67                                                 <td class='email'>{{$u.email}}</td>
68                                                 <td class='register_date'>{{$u.register_date}}</td>
69                                                 <td class='login_date'>{{$u.login_date}}</td>
70                                                 <td class='lastitem_date'>{{$u.lastitem_date}}</td>
71                                                 <td class='login_date'>{{$u.page_flags}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.account_expired}}({{$accountexpired}}){{/if}}</td>
72                                                 <td class="checkbox"> 
73                                                 {{if $u.is_deletable}}
74                                                         <input type="checkbox" class="users_ckbx" id="id_user_{{$u.uid}}" name="user[]" value="{{$u.uid}}"/></td>
75                                                 {{else}}
76                                                         &nbsp;
77                                                 {{/if}}
78                                                 <td class="tools">
79                                                 {{if $u.is_deletable}}
80                                                         <a href="{{$baseurl}}/admin/users/block/{{$u.uid}}?t={{$form_security_token}}" title='{{if $u.blocked}}{{$unblock}}{{else}}{{$block}}{{/if}}'><span class='icon {{if $u.blocked==0}}unlock{{else}}lock{{/if}}'></span></a>
81                                                         <a href="{{$baseurl}}/admin/users/delete/{{$u.uid}}?t={{$form_security_token}}" title='{{$delete}}' onclick="return confirm_delete('{{$u.name}}')"><span class='icon delete'></span></a>
82                                                 {{else}}
83                                                         &nbsp;
84                                                 {{/if}}
85                                                 </td>
86                                         </tr>
87                                 {{/foreach}}
88                                 </tbody>
89                         </table>
90                         <div class='selectall'><a href='#' onclick="return selectall('users_ckbx');">{{$select_all}}</a></div>
91                         <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>                                          
92                 {{else}}
93                         NO USERS?!?
94                 {{/if}}
95         </form>
96         {{if $deleted}}
97                 <h3>{{$h_deleted}}</h3>
98                         <table id='deleted'>
99                                 <thead>
100                                 <tr>
101                                         <th></th>
102                                         {{foreach $th_deleted as $th}}<th>{{$th}}</th>{{/foreach}}
103                                 </tr>
104                                 </thead>
105                                 <tbody>
106                                 {{foreach $deleted as $u}}
107                                         <tr>
108                                                 <td><img class='icon' src="{{$u.micro}}" alt="{{$u.nickname}}" title="{{$u.nickname}}"></td>
109                                                 <td class='name'><a href="{{$u.url}}" title="{{$u.nickname}}" >{{$u.name}}</a></td>
110                                                 <td class='email'>{{$u.email}}</td>
111                                                 <td class='register_date'>{{$u.register_date}}</td>
112                                                 <td class='login_date'>{{$u.login_date}}</td>
113                                                 <td class='lastitem_date'>{{$u.lastitem_date}}</td>
114                                                 <td class='login_date'>{{$u.deleted}}</td>
115                                         </tr>
116                                 {{/foreach}}
117                                 </tbody>
118                         </table>
119                 {{/if}}
120   <h3>{{$h_newuser}}</h3> 
121   <form action="{{$baseurl}}/admin/users" method="post"> 
122   <input type='hidden' name='form_security_token' value='{{$form_security_token}}'> 
123   <table id='users'> 
124       <tbody> 
125         <tr> 
126         <td>{{include file="field_input.tpl" field=$newusername}}</td> 
127     </tr> 
128         <tr> 
129         <td>{{include file="field_input.tpl" field=$newusernickname}}</td> 
130     </tr> 
131         <tr> 
132         <td>{{include file="field_input.tpl" field=$newuseremail}}</td> 
133     </tr> 
134       </tbody> 
135   </table> 
136   <div class="submit"><input type="submit" name="add_new_user_submit" value="{{$submit}}" /></div>             
137   </form>
138 </div>