main.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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"></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>
  71. <input type="checkbox" name="EmailAddress" value="EmailAddress" id="CheckboxEmailAddress"
  72. class="checkbox" <?php if ($_['show_email'] === 'true') print_unescaped('checked="checked"'); ?> />
  73. <label for="CheckboxEmailAddress">
  74. <?php p($l->t('Show email address')) ?>
  75. </label>
  76. </p>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. <div id="app-content">
  82. <?php print_unescaped($this->inc('users/part.createuser')); ?>
  83. <?php print_unescaped($this->inc('users/part.userlist', $userlistParams)); ?>
  84. </div>