2014-02-19 19:53:29 +04: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-02-20 14:35:31 +04:00
|
|
|
$userlistParams = array();
|
2014-02-19 19:53:29 +04:00
|
|
|
$allGroups=array();
|
|
|
|
foreach($_["groups"] as $group) {
|
|
|
|
$allGroups[] = $group['name'];
|
|
|
|
}
|
2014-02-20 14:35:31 +04:00
|
|
|
$userlistParams['subadmingroups'] = $allGroups;
|
|
|
|
$userlistParams['allGroups'] = json_encode($allGroups);
|
|
|
|
$items = array_flip($userlistParams['subadmingroups']);
|
2014-02-19 19:53:29 +04:00
|
|
|
unset($items['admin']);
|
2014-02-20 14:35:31 +04:00
|
|
|
$userlistParams['subadmingroups'] = array_flip($items);
|
2014-02-19 19:53:29 +04:00
|
|
|
?>
|
|
|
|
|
|
|
|
<div id="app-navigation">
|
|
|
|
<?php print_unescaped($this->inc('users/part.grouplist')); ?>
|
|
|
|
<div id="app-settings">
|
|
|
|
<?php print_unescaped($this->inc('users/part.setquota')); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="app-content">
|
|
|
|
<?php print_unescaped($this->inc('users/part.createuser')); ?>
|
2014-02-20 14:35:31 +04:00
|
|
|
<?php print_unescaped($this->inc('users/part.userlist', $userlistParams)); ?>
|
2014-02-19 19:53:29 +04:00
|
|
|
</div>
|