~critecia/critecia/trunk

« back to all changes in this revision

Viewing changes to src/app/views/logs/index.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
 
 
23
 
        <h2>Aktuelle Systeminformationen</h2>
24
 
        
25
 
        <table class="usertabelle">
26
 
        <?php foreach($logs as $log): ?>
27
 
                <tr>
28
 
                        <td class="user" style="border-bottom: 1px dotted #c0c0c0; padding-top: 15px;">
29
 
                        <?php 
30
 
                                $jahr = substr($log['Log']['created'],0,4);
31
 
                                $mon  = substr($log['Log']['created'],5,2);
32
 
                                $tag  = substr($log['Log']['created'],8,2);
33
 
                                $uhrzeit = substr($log['Log']['created'],11,8);
34
 
                                echo '<p style="margin-bottom: 8px;">['.$log['Log']['id'].'] ';
35
 
                                echo '<span class="lightfont">am</span> '.$tag.'.'.$mon
36
 
                                        .'.'.$jahr.' <span class="lightfont">um</span> '
37
 
                                        .$uhrzeit.' <span class="lightfont">Uhr</span></p>';
38
 
                                        
39
 
                                $tempuser = new User($log['Log']['user_id']);
40
 
                                echo '<p style="margin-bottom: 2px;"><b>User:</b> '.$tempuser->field('Firstname')
41
 
                                        .' '.$tempuser->field('Lastname').'</p>';
42
 
                                echo '<p style="margin-bottom: 8px;"><b>IP-Adresse:</b> '
43
 
                                        .$log['Log']['ipaddress'].'</p>';                                       
44
 
                                echo '<p style="margin-bottom: 20px;"><span class="lightfont">'
45
 
                                        .$log['Log']['warning'].'</span></p>'; 
46
 
                        ?>
47
 
                        </td>
48
 
                </tr>
49
 
        <?php endforeach; ?>
50
 
        </table>
51
 
 
52
 
        </div>
53
 
</div>
54
 
 
55