]> git.mxchange.org Git - friendica.git/blob - view/admin_users.tpl
revup
[friendica.git] / view / 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                 
18                 <h3>$h_pending</h3>
19                 {{ if $pending }}
20                         <table id='pending'>
21                                 <thead>
22                                 <tr>
23                                         {{ for $th_pending as $th }}<th>$th</th>{{ endfor }}
24                                         <th></th>
25                                         <th></th>
26                                 </tr>
27                                 </thead>
28                                 <tbody>
29                         {{ for $pending as $u }}
30                                 <tr>
31                                         <td class="created">$u.created</td>
32                                         <td class="name">$u.name</td>
33                                         <td class="email">$u.email</td>
34                                         <td class="checkbox"><input type="checkbox" class="pending_ckbx" id="id_pending_$u.hash" name="pending[]" value="$u.hash" /></td>
35                                         <td class="tools">
36                                                 <a href="$baseurl/regmod/allow/$u.hash" title='$approve'><span class='icon like'></span></a>
37                                                 <a href="$baseurl/regmod/deny/$u.hash" title='$deny'><span class='icon dislike'></span></a>
38                                         </td>
39                                 </tr>
40                         {{ endfor }}
41                                 </tbody>
42                         </table>
43                         <div class='selectall'><a href='#' onclick="return selectall('pending_ckbx');">$select_all</a></div>
44                         <div class="submit"><input type="submit" name="page_users_deny" value="$deny"/> <input type="submit" name="page_users_approve" value="$approve" /></div>                        
45                 {{ else }}
46                         <p>$no_pending</p>
47                 {{ endif }}
48         
49         
50                 
51         
52                 <h3>$h_users</h3>
53                 {{ if $users }}
54                         <table id='users'>
55                                 <thead>
56                                 <tr>
57                                         <th></th>
58                                         {{ for $th_users as $th }}<th>$th</th>{{ endfor }}
59                                         <th></th>
60                                         <th></th>
61                                 </tr>
62                                 </thead>
63                                 <tbody>
64                                 {{ for $users as $u }}
65                                         <tr>
66                                                 <td><img src="$u.micro" alt="$u.nickname" title="$u.nickname"></td>
67                                                 <td class='name'><a href="$u.url" title="$u.nickname" >$u.name</a></td>
68                                                 <td class='email'>$u.email</td>
69                                                 <td class='register_date'>$u.register_date</td>
70                                                 <td class='login_date'>$u.login_date</td>
71                                                 <td class='lastitem_date'>$u.lastitem_date</td>
72                                                 <td class='login_date'>$u.page-flags</td>
73                                                 <td class="checkbox"><input type="checkbox" class="users_ckbx" id="id_user_$u.uid" name="user[]" value="$u.uid"/></td>
74                                                 <td class="tools">
75                                                         <a href="$baseurl/admin/users/block/$u.uid" title='{{ if $u.blocked }}$unblock{{ else }}$block{{ endif }}'><span class='icon block {{ if $u.blocked==0 }}dim{{ endif }}'></span></a>
76                                                         <a href="$baseurl/admin/users/delete/$u.uid" title='$delete' onclick="return confirm_delete('$u.name')"><span class='icon drop'></span></a>
77                                                 </td>
78                                         </tr>
79                                 {{ endfor }}
80                                 </tbody>
81                         </table>
82                         <div class='selectall'><a href='#' onclick="return selectall('users_ckbx');">$select_all</a></div>
83                         <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>                                              
84                 {{ else }}
85                         NO USERS?!?
86                 {{ endif }}
87         </form>
88 </div>