aboutsummaryrefslogtreecommitdiff
path: root/app/views/search/stgtable/index.php
blob: f9d82608a240024023f4b88e49e191f07910c0d7 (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
<table class="default">
    <colgroup>
        <col>
        <? for ($i = count($kategorien); $i > 0; $i--) : ?>
        <col style="text-align: center;">
        <? endfor; ?>
    </colgroup>
    <thead>
        <tr>
            <th><?= _('Studiengänge') ?></th>
            <? foreach ($kategorien as $kategorie): ?>
                <th style="text-align: center;"><?= htmlReady($kategorie->name) ?></th>
            <? endforeach; ?>
        </tr>
    </thead>
    <tbody>
        <? foreach ($stgs as $name => $stg): ?>
            <tr>
                <td><?= htmlReady($name) ?></td>
                <? foreach ($kategorien as $kat_id => $kategorie): ?>
                    <? if (!empty($stg[$kat_id])) : ?>
                <td style="text-align: center;">
                    <a href="<?= $controller->action_link('studiengang', $stg[$kat_id]) ?>"><?= Icon::create('info-circle-full', 'clickable', ['title' => _('Studiengang anzeigen')])->asImg(); ?></a>
                </td>
                    <? else : ?>
                        <td></td>
                    <? endif; ?>
                <? endforeach; ?>
            </tr>
        <? endforeach; ?>
    </tbody>
</table>