aboutsummaryrefslogtreecommitdiff
path: root/app/views/profile/working_place.php
blob: 9df91e4bd8b210449f62a0059354b226716e1a8e (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
<?php
$fields = [
    'raum'         => _('Raum'),
    'sprechzeiten' => _('Sprechzeit'),
    'telefon'      => _('Telefon'),
    'fax'          => _('Fax'),
];
?>

<dt><?= _('Wo ich arbeite:') ?></dt>
<dd>
    <ul>
    <? foreach ($institutes as $institute): ?>
        <li>
            <a href="<?= $controller->link_for('institute/overview', ['auswahl' => $institute['institut_id']]) ?>">
                <?= htmlReady($institute['institute_name']) ?>
            </a>

        <? foreach ($fields as $key => $label): ?>
            <? if (trim($institute[$key])): ?>
                <br>
                <strong><?= htmlReady($label) ?>:</strong>
                <?= htmlReady($institute[$key]) ?>
            <? endif; ?>
        <? endforeach; ?>

        <? if (!empty($institute['datafield'])): ?>
            <? foreach ($institute['datafield'] as $datafield): ?>
                <br>
                <strong><?= htmlReady($datafield['name']) ?>:</strong>
                <?= $datafield['value'] ?>
                <? if ($datafield['show_star']): ?>*<? endif; ?>
            <? endforeach; ?>
        <? endif; ?>

        <? if (!empty($institute['role'])): ?>
            <table cellpadding="0" cellspacing="0" border="0">
                <?= $institute['role'] ?>
            </table>
        <? endif; ?>
        </li>
    <? endforeach; ?>
    </ul>

</dd>