aboutsummaryrefslogtreecommitdiff
path: root/app/views/shared/studiengang/_studiengang_info.php
blob: 80b496b381b38feb7c01119c46ddd3a2cd793557 (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
<table class="default nohover">
    <colgroup>
        <col width="30%">
        <col width="70%">
    </colgroup>
    <thead>
        <tr>
        <? if (trim($stg->name_kurz)) : ?>
            <th class="mvv-modul-details-head"><?= htmlReady($stg->name_kurz) ?></th>
            <th class="mvv-modul-details-head"><?= htmlReady($stg->getDisplayName()) ?></th>
        <? else : ?>
            <th class="mvv-modul-details-head" colspan="2"><?= htmlReady($stg->getDisplayName()) ?></th>
        <? endif; ?>
        </tr>
        <tr>
            <td colspan="2">
                <? printf(_('%s %s vom %s'), ModuleManagementModel::getLocaleOrdinalNumberSuffix($stg->fassung_nr),
                        htmlReady($GLOBALS['MVV_STUDIENGANG']['FASSUNG_TYP']['values'][$stg->fassung_typ]['name']),
                        strftime('%x', $stg->beschlussdatum));
                ?>
            </td>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td><strong><?= _('Name') ?></strong></td>
            <td><?= htmlReady($stg->getDisplayName()) ?></td>
        </tr>
        <tr>
            <td><strong><?= _('Abschluss') ?></strong></td>
            <td><?= htmlReady($stg->abschluss->getDisplayName()) ?></td>
        </tr>
        <tr>
            <td><strong><?= _('Gültigkeit') ?></strong></td>
            <td>
            <? $start_sem = Semester::find($stg->start) ?>
            <? $end_sem = Semester::find($stg->end) ?>
            <? if ($stg->start_sem == $stg->end_sem) : ?>
                <?= htmlReady($start_sem->name) ?>
            <? elseif (!$stg->end) : ?>
                <? printf(_('%s bis unbegrenzt'), htmlReady($start_sem->name)) ?>
            <? else : ?>
                <? printf(_('%s bis %s'), htmlReady($start_sem->name), htmlReady($end_sem->name)) ?>
            <? endif; ?>
        </tr>
        <tr>
            <td>
                <strong><?= _('Beschreibung') ?></strong>
            </td>
            <td>
                <?= formatReady($stg->beschreibung) ?>
            </td>
        </tr>
    </tbody>
</table>