main.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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($_["groups"] as $group) {
  21. $allGroups[] = $group['name'];
  22. }
  23. foreach($_["adminGroup"] 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. <label for="CheckboxStorageLocation">
  45. <?php p($l->t('Show storage location')) ?>
  46. </label>
  47. </p>
  48. <p>
  49. <input type="checkbox" name="LastLogin" value="LastLogin" id="CheckboxLastLogin">
  50. <label for="CheckboxLastLogin">
  51. <?php p($l->t('Show last log in')) ?>
  52. </label>
  53. </p>
  54. <p>
  55. <input type="checkbox" name="UserBackend" value="UserBackend" id="CheckboxUserBackend">
  56. <label for="CheckboxUserBackend">
  57. <?php p($l->t('Show user backend')) ?>
  58. </label>
  59. </p>
  60. <p>
  61. <input type="checkbox" name="MailOnUserCreate" value="MailOnUserCreate" id="CheckboxMailOnUserCreate">
  62. <label for="CheckboxMailOnUserCreate">
  63. <?php p($l->t('Send email to new user')) ?>
  64. </label>
  65. </p>
  66. <p>
  67. <input type="checkbox" name="EmailAddress" value="EmailAddress" id="CheckboxEmailAddress">
  68. <label for="CheckboxEmailAddress">
  69. <?php p($l->t('Show email address')) ?>
  70. </label>
  71. </p>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. <div id="app-content">
  77. <?php print_unescaped($this->inc('users/part.createuser')); ?>
  78. <?php print_unescaped($this->inc('users/part.userlist', $userlistParams)); ?>
  79. </div>