51 lines
1.6 KiB
PHP
51 lines
1.6 KiB
PHP
<?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.
|
|
*/
|
|
$userlistParams = array();
|
|
$allGroups=array();
|
|
foreach($_["groups"] as $group) {
|
|
$allGroups[] = $group['name'];
|
|
}
|
|
foreach($_["adminGroup"] as $group) {
|
|
$allGroups[] = $group['name'];
|
|
}
|
|
$userlistParams['subadmingroups'] = $allGroups;
|
|
$userlistParams['allGroups'] = json_encode($allGroups);
|
|
$items = array_flip($userlistParams['subadmingroups']);
|
|
unset($items['admin']);
|
|
$userlistParams['subadmingroups'] = array_flip($items);
|
|
|
|
translation('settings');
|
|
?>
|
|
|
|
<div id="app-navigation">
|
|
<?php print_unescaped($this->inc('users/part.grouplist')); ?>
|
|
<div id="app-settings">
|
|
<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>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="app-content">
|
|
<?php print_unescaped($this->inc('users/part.createuser')); ?>
|
|
<?php print_unescaped($this->inc('users/part.userlist', $userlistParams)); ?>
|
|
</div>
|