2014-02-19 15:53:29 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com>
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or later.
|
|
|
|
* See the COPYING-README file.
|
|
|
|
*/
|
2014-12-12 08:22:15 +00:00
|
|
|
|
|
|
|
script('settings', [
|
|
|
|
'users/deleteHandler',
|
|
|
|
'users/filter',
|
|
|
|
'users/users',
|
|
|
|
'users/groups'
|
|
|
|
]);
|
|
|
|
script('core', [
|
|
|
|
'multiselect',
|
|
|
|
'singleselect'
|
|
|
|
]);
|
|
|
|
style('settings', 'settings');
|
|
|
|
|
2014-02-20 10:35:31 +00:00
|
|
|
$userlistParams = array();
|
2014-02-19 15:53:29 +00:00
|
|
|
$allGroups=array();
|
|
|
|
foreach($_["groups"] as $group) {
|
|
|
|
$allGroups[] = $group['name'];
|
|
|
|
}
|
2014-05-06 13:01:37 +00:00
|
|
|
foreach($_["adminGroup"] as $group) {
|
|
|
|
$allGroups[] = $group['name'];
|
|
|
|
}
|
2014-02-20 10:35:31 +00:00
|
|
|
$userlistParams['subadmingroups'] = $allGroups;
|
|
|
|
$userlistParams['allGroups'] = json_encode($allGroups);
|
|
|
|
$items = array_flip($userlistParams['subadmingroups']);
|
2014-02-19 15:53:29 +00:00
|
|
|
unset($items['admin']);
|
2014-02-20 10:35:31 +00:00
|
|
|
$userlistParams['subadmingroups'] = array_flip($items);
|
2014-10-29 09:57:46 +00:00
|
|
|
|
|
|
|
translation('settings');
|
2014-02-19 15:53:29 +00:00
|
|
|
?>
|
|
|
|
|
|
|
|
<div id="app-navigation">
|
|
|
|
<?php print_unescaped($this->inc('users/part.grouplist')); ?>
|
|
|
|
<div id="app-settings">
|
2014-08-28 22:08:01 +00:00
|
|
|
<div id="app-settings-header">
|
|
|
|
<button class="settings-button" tabindex="0" data-apps-slide-toggle="#app-settings-content"></button>
|
|
|
|
</div>
|
|
|
|
<div id="app-settings-content">
|
|
|
|
<?php print_unescaped($this->inc('users/part.setquota')); ?>
|
|
|
|
|
|
|
|
<div id="userlistoptions">
|
|
|
|
<p><label>
|
|
|
|
<input type="checkbox" name="StorageLocation" value="StorageLocation" id="CheckboxStorageLocation">
|
|
|
|
<?php p($l->t('Show storage location')) ?>
|
|
|
|
</label></p>
|
|
|
|
<p><label>
|
|
|
|
<input type="checkbox" name="LastLogin" value="LastLogin" id="CheckboxLastLogin">
|
|
|
|
<?php p($l->t('Show last log in')) ?>
|
|
|
|
</label></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-02-19 15:53:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="app-content">
|
|
|
|
<?php print_unescaped($this->inc('users/part.createuser')); ?>
|
2014-02-20 10:35:31 +00:00
|
|
|
<?php print_unescaped($this->inc('users/part.userlist', $userlistParams)); ?>
|
2014-10-29 09:57:46 +00:00
|
|
|
</div>
|