users.php 682 B

12345678910111213141516171819202122232425262728
  1. <html>
  2. <?php include("header.php") ?>
  3. <table>
  4. <tr>
  5. <th>User Id</th>
  6. <th>Display Name</th>
  7. <th>Username</th>
  8. <th>Domains</th>
  9. <th>Actions</th>
  10. </tr>
  11. <?php foreach($users as $user) : ?>
  12. <?php if (empty($user)) continue; ?>
  13. <tr>
  14. <td><?=$user['user_id']?></td>
  15. <td><?=$user['display_name']?></td>
  16. <td><?=$user['username']?></td>
  17. <td><?=implode(', ', $user['domains'])?></td>
  18. <td>
  19. <button class="edit" data-user="<?=$user['user_id']?>">Edit</button>
  20. <button class="change-password" data-user="<?=$user['user_id']?>">Change Password</button>
  21. </td>
  22. </tr>
  23. <?php endforeach; ?>
  24. </table>
  25. <button class="add">Add New User</button>
  26. </body>
  27. </html>