user_export.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php /** @noinspection PhpUnhandledExceptionInspection */
  2. $level_options = [
  3. User::LEVEL_REGISTERED => __("Registered"),
  4. User::LEVEL_UNVERIFIED => __("Pending Verification"),
  5. User::LEVEL_TESTER => __("Testers"),
  6. ];
  7. ?>
  8. <div class="modal fade" role="dialog" tabindex="-1" data-backdrop="static" id="user-export-modal">
  9. <div class="modal-dialog modal-lg">
  10. <form class="modal-content" method="get" action="/account/users/export/email">
  11. <?php
  12. View::include("modals/header", ["title" => __("Export Users")]);
  13. ?>
  14. <div class="modal-body">
  15. <div class="form-group">
  16. <label for="export-users-level"><?=htmlspecialchars(__("User Level"))?></label>
  17. <select class="form-control" name="level" id="export-users-level">
  18. <option value=""><?=htmlspecialchars(__("All"))?></option>
  19. <?php
  20. HtmlHelper::renderOptions($level_options);
  21. ?>
  22. </select>
  23. </div>
  24. <div class="form-group">
  25. <label for="export-users-max-age"><?=htmlspecialchars(__("Maximum Age"))?></label>
  26. <input class="form-control" type="number" name="max_age" id="export-users-max-age" placeholder="<?=htmlspecialchars(__("Type max age"))?>" />
  27. </div>
  28. <div class="form-group">
  29. <label for="export-users-no-tests-after"><?=htmlspecialchars(__("No Test After"))?></label>
  30. <input class="form-control" type="date" name="no_tests_after" id="export-users-no-tests-after" placeholder="<?=htmlspecialchars(__("Enter date"))?>" />
  31. </div>
  32. <div class="form-group">
  33. <label for="export-users-newsletter-consent"><?=htmlspecialchars(__("Newsletter Consent"))?></label>
  34. <select class="form-control" name="newsletter_consent" id="export-users-newsletter-consent">
  35. <option value=""><?=htmlspecialchars(__("Any"))?></option>
  36. <option value="1"><?=htmlspecialchars(__("Opted In"))?></option>
  37. <option value="0"><?=htmlspecialchars(__("Opted Out"))?></option>
  38. </select>
  39. </div>
  40. </div>
  41. <div class="modal-footer">
  42. <button type="button" class="btn btn-secondary" data-dismiss="modal">
  43. <?=htmlspecialchars(__("Close"))?>
  44. </button>
  45. <button type="submit" class="btn btn-success">
  46. <?=htmlspecialchars(__("Export"))?>
  47. </button>
  48. </div>
  49. </form>
  50. </div>
  51. </div>