Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

104 lines
4.0 KiB

  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. <form action="{{$baseurl}}/admin/users" method="post">
  21. <input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
  22. <h3>{{$h_pending}}</h3>
  23. {{if $pending}}
  24. <table id='pending'>
  25. <thead>
  26. <tr>
  27. {{foreach $th_pending as $th}}<th>{{$th}}</th>{{/foreach}}
  28. <th></th>
  29. <th></th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. {{foreach $pending as $u}}
  34. <tr>
  35. <td class="created">{{$u.created}}</td>
  36. <td class="name">{{$u.name}}</td>
  37. <td class="email">{{$u.email}}</td>
  38. <td class="checkbox"><input type="checkbox" class="pending_ckbx" id="id_pending_{{$u.hash}}" name="pending[]" value="{{$u.hash}}" /></td>
  39. <td class="tools">
  40. <a href="{{$baseurl}}/regmod/allow/{{$u.hash}}" title='{{$approve}}'><span class='icon like'></span></a>
  41. <a href="{{$baseurl}}/regmod/deny/{{$u.hash}}" title='{{$deny}}'><span class='icon dislike'></span></a>
  42. </td>
  43. </tr>
  44. {{/foreach}}
  45. </tbody>
  46. </table>
  47. <div class='selectall'><a href='#' onclick="return selectall('pending_ckbx');">{{$select_all}}</a></div>
  48. <div class="submit"><input type="submit" name="page_users_deny" value="{{$deny}}"/> <input type="submit" name="page_users_approve" value="{{$approve}}" /></div>
  49. {{else}}
  50. <p>{{$no_pending}}</p>
  51. {{/if}}
  52. <h3>{{$h_users}}</h3>
  53. {{if $users}}
  54. <table id='users'>
  55. <thead>
  56. <tr>
  57. <th></th>
  58. {{foreach $th_users as $th}}<th>{{$th}}</th>{{/foreach}}
  59. <th></th>
  60. <th></th>
  61. </tr>
  62. </thead>
  63. <tbody>
  64. {{foreach $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}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.account_expired}}({{$accountexpired}}){{/if}}</td>
  73. <td class="checkbox">
  74. {{if $u.is_admin}}
  75. &nbsp;
  76. {{else}}
  77. <input type="checkbox" class="users_ckbx" id="id_user_{{$u.uid}}" name="user[]" value="{{$u.uid}}"/></td>
  78. {{/if}}
  79. <td class="tools">
  80. {{if $u.is_admin}}
  81. &nbsp;
  82. {{else}}
  83. <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>
  84. <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>
  85. {{/if}}
  86. </td>
  87. </tr>
  88. {{/foreach}}
  89. </tbody>
  90. </table>
  91. <div class='selectall'><a href='#' onclick="return selectall('users_ckbx');">{{$select_all}}</a></div>
  92. <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>
  93. {{else}}
  94. NO USERS?!?
  95. {{/if}}
  96. </form>
  97. </div>