main.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php
  2. /**
  3. * Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com>
  4. * This file is licensed under the Affero General Public License version 3 or later.
  5. * See the COPYING-README file.
  6. */
  7. script('settings', [
  8. 'users/deleteHandler',
  9. 'users/filter',
  10. 'users/users',
  11. 'users/groups'
  12. ]);
  13. script('core', [
  14. 'multiselect',
  15. 'singleselect'
  16. ]);
  17. style('settings', 'settings');
  18. $userlistParams = array();
  19. $allGroups=array();
  20. foreach($_["adminGroup"] as $group) {
  21. $allGroups[] = $group['name'];
  22. }
  23. foreach($_["groups"] as $group) {
  24. $allGroups[] = $group['name'];
  25. }
  26. $userlistParams['subadmingroups'] = $allGroups;
  27. $userlistParams['allGroups'] = json_encode($allGroups);
  28. $items = array_flip($userlistParams['subadmingroups']);
  29. unset($items['admin']);
  30. $userlistParams['subadmingroups'] = array_flip($items);
  31. translation('settings');
  32. ?>
  33. <div id="app-navigation">
  34. <?php print_unescaped($this->inc('users/part.grouplist')); ?>
  35. <div id="app-settings">
  36. <div id="app-settings-header">
  37. <button class="settings-button" tabindex="0" data-apps-slide-toggle="#app-settings-content"><?php p($l->t('Settings'));?></button>
  38. </div>
  39. <div id="app-settings-content">
  40. <?php print_unescaped($this->inc('users/part.setquota')); ?>
  41. <div id="userlistoptions">
  42. <p>
  43. <input type="checkbox" name="StorageLocation" value="StorageLocation" id="CheckboxStorageLocation"
  44. class="checkbox" <?php if ($_['show_storage_location'] === 'true') print_unescaped('checked="checked"'); ?> />
  45. <label for="CheckboxStorageLocation">
  46. <?php p($l->t('Show storage location')) ?>
  47. </label>
  48. </p>
  49. <p>
  50. <input type="checkbox" name="LastLogin" value="LastLogin" id="CheckboxLastLogin"
  51. class="checkbox" <?php if ($_['show_last_login'] === 'true') print_unescaped('checked="checked"'); ?> />
  52. <label for="CheckboxLastLogin">
  53. <?php p($l->t('Show last log in')) ?>
  54. </label>
  55. </p>
  56. <p>
  57. <input type="checkbox" name="UserBackend" value="UserBackend" id="CheckboxUserBackend"
  58. class="checkbox" <?php if ($_['show_backend'] === 'true') print_unescaped('checked="checked"'); ?> />
  59. <label for="CheckboxUserBackend">
  60. <?php p($l->t('Show user backend')) ?>
  61. </label>
  62. </p>
  63. <p>
  64. <input type="checkbox" name="MailOnUserCreate" value="MailOnUserCreate" id="CheckboxMailOnUserCreate"
  65. class="checkbox" <?php if ($_['send_email'] === 'true') print_unescaped('checked="checked"'); ?> />
  66. <label for="CheckboxMailOnUserCreate">
  67. <?php p($l->t('Send email to new user')) ?>
  68. </label>
  69. </p>
  70. <p class="info-text">
  71. <?php p($l->t('When the password of the new user is left empty an activation email with a link to set the password is send to the user')) ?>
  72. </p>
  73. <p>
  74. <input type="checkbox" name="EmailAddress" value="EmailAddress" id="CheckboxEmailAddress"
  75. class="checkbox" <?php if ($_['show_email'] === 'true') print_unescaped('checked="checked"'); ?> />
  76. <label for="CheckboxEmailAddress">
  77. <?php p($l->t('Show email address')) ?>
  78. </label>
  79. </p>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. <div id="app-content">
  85. <?php print_unescaped($this->inc('users/part.createuser')); ?>
  86. <?php print_unescaped($this->inc('users/part.userlist', $userlistParams)); ?>
  87. </div>