3
* index.ctp - This file is part of Critecia
4
* Copyright (C) 2011 Alexander Lang
6
* This program is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU Affero General Public License as
8
* published by the Free Software Foundation, either version 3 of the
9
* License, or (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU Affero General Public License for more details.
16
* You should have received a copy of the GNU Affero General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
22
<h2>Benutzerberechtigungen:</h2>
25
<table class="benutzerauswahltabelle">
31
foreach($users as $usertemp):
32
$options[($usertemp['User']['id'])] = $usertemp['User']['firstname'].' '.$usertemp['User']['lastname'];
35
$selectedtemp = $user['User']['id'];
38
echo $this->Form->create('Maintenance');
39
echo $this->Form->select('id', $options, $selectedtemp, array('size'=>10, 'label'=>'Benutzerauswahl', 'class'=>'benutzerauswahl', 'empty'=>false));
40
echo '<br/>'.$html->image('none.png', array('height' => '30'));
41
echo $this->Form->end('Abfragen');
48
echo '<h4>Berechtigungen für <b>'.$user['User']['firstname'].' '.$user['User']['lastname'].'</b>:</h4>';
49
if (isset($userrights)) {
50
foreach($userrights as $userright):
51
echo '<p>'.$userright.'</p>';
54
echo 'Keine Berechtigungen in der Datenbank vorhanden...';