aboutsummaryrefslogtreecommitdiff
path: root/app/views/vips/solutions/show_assignment_log.php
blob: 99b3c2a6b1ea06a808cd980fbaf2a8271eade744 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
 * @var User $user
 * @var array $logs
 */
?>
<table class="default" style="min-width: 960px;">
    <caption>
        <?= sprintf(_('Abgabeprotokoll für %s, %s (%s)'), $user->nachname, $user->vorname, $user->username) ?>
    </caption>

    <thead>
        <tr>
            <th>
                <?= _('Ereignis') ?>
            </th>
            <th>
                <?= _('Zeit') ?>
            </th>
            <th>
                <?= _('IP-Adresse') ?>
            </th>
            <th>
                <?= _('Rechnername') ?>
            </th>
            <th>
                <?= _('Sitzungs-ID') ?>
                <?= tooltipIcon(_('Die Sitzungs-ID wird beim Login in Stud.IP vergeben und bleibt bis zum Abmelden gültig.')) ?>
            </th>
        </tr>
    </thead>

    <tbody>
        <? foreach ($logs as $log): ?>
            <tr>
                <td class="<?= $log['archived'] ? 'quiet' : '' ?>">
                    <?= htmlReady($log['label']) ?>
                </td>
                <td>
                    <?= date('d.m.Y, H:i:s', $log['time']) ?>
                </td>
                <td>
                    <?= htmlReady($log['ip_address']) ?>
                </td>
                <td>
                    <? if ($log['ip_address']): ?>
                        <?= htmlReady($controller->gethostbyaddr($log['ip_address'])) ?>
                    <? endif ?>
                </td>
                <td>
                    <?= htmlReady($log['session_id']) ?>
                </td>
            </tr>
        <? endforeach ?>
    </tbody>
</table>