~critecia/critecia/trunk

« back to all changes in this revision

Viewing changes to src/app/views/maintenances/showuserrights.ctp

  • Committer: Christian A. Reiter
  • Date: 2011-11-16 20:08:35 UTC
  • Revision ID: christian.a.reiter@gmail.com-20111116200835-h3xx0ekm47lububw
fixed jQuery file links

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
 /**
3
 
 *    index.ctp - This file is part of Critecia
4
 
 *    Copyright (C) 2011 Alexander Lang
5
 
 *
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.
10
 
 *
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.
15
 
 *
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/>.
18
 
 */
19
 
 
20
 
?>
21
 
<div>
22
 
        <h2>Benutzerberechtigungen:</h2>
23
 
        
24
 
        <br/><br/>
25
 
        <table class="benutzerauswahltabelle">
26
 
        <tr>
27
 
        <td class="lefttd">
28
 
                <?php
29
 
                        if (isset($users)) {
30
 
                                $options = NULL;
31
 
                                foreach($users as $usertemp):
32
 
                                        $options[($usertemp['User']['id'])] = $usertemp['User']['firstname'].' '.$usertemp['User']['lastname'];
33
 
                                endforeach;
34
 
                                if (isset($user))
35
 
                                        $selectedtemp = $user['User']['id'];
36
 
                                else
37
 
                                        $selectedtemp = '';     
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');
42
 
                        }
43
 
                ?>
44
 
        </td>
45
 
        <td class="righttd">    
46
 
                <?php 
47
 
                        if (isset($user)) {
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>'; 
52
 
                                        endforeach; 
53
 
                                } else {
54
 
                                        echo 'Keine Berechtigungen in der Datenbank vorhanden...';
55
 
                                }
56
 
                        } 
57
 
                ?>      
58
 
        </td>
59
 
        </tr>
60
 
        </table>
61
 
</div>
62
 
 
63