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.
 
 
 
 
 
 

89 lines
3.0 KiB

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