aboutsummaryrefslogtreecommitdiff
path: root/app/views/privacy/print.php
blob: a5a2995d349bb9a5b54bcf6e37ce141c44712a40 (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
<?php
/**

 * @var string $user_fullname

 * @var array $plugin_data

 */
?>
<h1><?= sprintf(_('Personenbezogene Daten von %s'), htmlReady($user_fullname)); ?></h1>
<? foreach ($plugin_data as $label => $tabledata) : ?>
    <? if ($tabledata['table_content']) : ?>
        <h3><?= htmlReady($label) ?></h3>
        <? foreach ($tabledata['table_content'] as $row) : ?>
            <table border="1">
                <tbody>
                <? foreach ($row as $key => $value) : ?>
                    <tr>
                        <th><?= htmlReady($key) ?></th>
                        <td>
                        <? if ($tabledata['table_name'] === 'log_events' && $key === 'readable_entry') : ?>
                            <?= $value ?>
                        <? else: ?>
                            <?= \Studip\Markup::isHtml($value) ? formatReady($value) : htmlReady($value) ?>
                        <? endif; ?>
                        </td>
                    </tr>
                <? endforeach; ?>
                </tbody>
            </table>
            <br>
        <? endforeach; ?>
    <? endif; ?>
<? endforeach; ?>